@aws-sdk/client-batch 3.312.0 → 3.316.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Batch.js +28 -336
- package/dist-cjs/protocols/Aws_restJson1.js +297 -1958
- package/dist-es/Batch.js +28 -336
- package/dist-es/protocols/Aws_restJson1.js +271 -1932
- package/dist-types/Batch.d.ts +41 -201
- package/dist-types/ts3.4/Batch.d.ts +2 -1
- package/package.json +6 -6
package/dist-types/Batch.d.ts
CHANGED
|
@@ -24,325 +24,165 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
|
|
|
24
24
|
import { UpdateComputeEnvironmentCommandInput, UpdateComputeEnvironmentCommandOutput } from "./commands/UpdateComputeEnvironmentCommand";
|
|
25
25
|
import { UpdateJobQueueCommandInput, UpdateJobQueueCommandOutput } from "./commands/UpdateJobQueueCommand";
|
|
26
26
|
import { UpdateSchedulingPolicyCommandInput, UpdateSchedulingPolicyCommandOutput } from "./commands/UpdateSchedulingPolicyCommand";
|
|
27
|
-
|
|
28
|
-
* @public
|
|
29
|
-
* <fullname>Batch</fullname>
|
|
30
|
-
* <p>Using Batch, you can run batch computing workloads on the Amazon Web Services Cloud. Batch computing is a common means for
|
|
31
|
-
* developers, scientists, and engineers to access large amounts of compute resources. Batch uses the advantages of
|
|
32
|
-
* the batch computing to remove the undifferentiated heavy lifting of configuring and managing required infrastructure.
|
|
33
|
-
* At the same time, it also adopts a familiar batch computing software approach. You can use Batch to efficiently
|
|
34
|
-
* provision resources d, and work toward eliminating capacity constraints, reducing your overall compute costs, and
|
|
35
|
-
* delivering results more quickly.</p>
|
|
36
|
-
* <p>As a fully managed service, Batch can run batch computing workloads of any scale. Batch automatically
|
|
37
|
-
* provisions compute resources and optimizes workload distribution based on the quantity and scale of your specific
|
|
38
|
-
* workloads. With Batch, there's no need to install or manage batch computing software. This means that you can focus
|
|
39
|
-
* on analyzing results and solving your specific problems instead.</p>
|
|
40
|
-
*/
|
|
41
|
-
export declare class Batch extends BatchClient {
|
|
27
|
+
export interface Batch {
|
|
42
28
|
/**
|
|
43
|
-
* @
|
|
44
|
-
* <p>Cancels a job in an Batch job queue. Jobs that are in the
|
|
45
|
-
* <code>SUBMITTED</code>
|
|
46
|
-
* or
|
|
47
|
-
* <code>PENDING</code>
|
|
48
|
-
* are
|
|
49
|
-
* canceled. A job
|
|
50
|
-
* in<code>RUNNABLE</code> remains in <code>RUNNABLE</code> until it reaches the head of the
|
|
51
|
-
* job queue. Then the job status is updated to
|
|
52
|
-
* <code>FAILED</code>.</p>
|
|
53
|
-
* <p>Jobs that progressed to the <code>STARTING</code> or
|
|
54
|
-
* <code>RUNNING</code> state aren't canceled. However, the API operation still succeeds, even
|
|
55
|
-
* if no job is canceled. These jobs must be terminated with the <a>TerminateJob</a>
|
|
56
|
-
* operation.</p>
|
|
29
|
+
* @see {@link CancelJobCommand}
|
|
57
30
|
*/
|
|
58
31
|
cancelJob(args: CancelJobCommandInput, options?: __HttpHandlerOptions): Promise<CancelJobCommandOutput>;
|
|
59
32
|
cancelJob(args: CancelJobCommandInput, cb: (err: any, data?: CancelJobCommandOutput) => void): void;
|
|
60
33
|
cancelJob(args: CancelJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelJobCommandOutput) => void): void;
|
|
61
34
|
/**
|
|
62
|
-
* @
|
|
63
|
-
* <p>Creates an Batch compute environment. You can create <code>MANAGED</code> or <code>UNMANAGED</code> compute
|
|
64
|
-
* environments. <code>MANAGED</code> compute environments can use Amazon EC2 or Fargate resources.
|
|
65
|
-
* <code>UNMANAGED</code> compute environments can only use EC2 resources.</p>
|
|
66
|
-
* <p>In a managed compute environment, Batch manages the capacity and instance types of the compute resources
|
|
67
|
-
* within the environment. This is based on the compute resource specification that you define or the <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html">launch template</a> that you
|
|
68
|
-
* specify when you create the compute environment. Either, you can choose to use EC2 On-Demand Instances and EC2 Spot
|
|
69
|
-
* Instances. Or, you can use Fargate and Fargate Spot capacity in your managed compute environment. You can
|
|
70
|
-
* optionally set a maximum price so that Spot Instances only launch when the Spot Instance price is less than a
|
|
71
|
-
* specified percentage of the On-Demand price.</p>
|
|
72
|
-
* <note>
|
|
73
|
-
* <p>Multi-node parallel jobs aren't supported on Spot Instances.</p>
|
|
74
|
-
* </note>
|
|
75
|
-
* <p>In an unmanaged compute environment, you can manage your own EC2 compute resources and have flexibility with how
|
|
76
|
-
* you configure your compute resources. For example, you can use custom AMIs. However, you must verify that each of
|
|
77
|
-
* your AMIs meet the Amazon ECS container instance AMI specification. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container_instance_AMIs.html">container instance AMIs</a> in the
|
|
78
|
-
* <i>Amazon Elastic Container Service Developer Guide</i>. After you created your unmanaged compute environment, you can use the <a>DescribeComputeEnvironments</a> operation to find the Amazon ECS cluster that's associated with it. Then, launch
|
|
79
|
-
* your container instances into that Amazon ECS cluster. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html">Launching an Amazon ECS container instance</a> in the
|
|
80
|
-
* <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
81
|
-
* <note>
|
|
82
|
-
* <p>To create a compute environment that uses EKS resources, the caller must have permissions to call
|
|
83
|
-
* <code>eks:DescribeCluster</code>.</p>
|
|
84
|
-
* </note>
|
|
85
|
-
* <note>
|
|
86
|
-
* <p>Batch doesn't automatically upgrade the AMIs in a compute environment after it's created. For example, it
|
|
87
|
-
* also doesn't update the AMIs in your compute environment when a newer version of the Amazon ECS optimized AMI is
|
|
88
|
-
* available. You're responsible for the management of the guest operating system. This includes any updates and
|
|
89
|
-
* security patches. You're also responsible for any additional application software or utilities that you install on
|
|
90
|
-
* the compute resources. There are two ways to use a new AMI for your Batch jobs. The original method is to complete
|
|
91
|
-
* these steps:</p>
|
|
92
|
-
* <ol>
|
|
93
|
-
* <li>
|
|
94
|
-
* <p>Create a new compute environment with the new AMI.</p>
|
|
95
|
-
* </li>
|
|
96
|
-
* <li>
|
|
97
|
-
* <p>Add the compute environment to an existing job queue.</p>
|
|
98
|
-
* </li>
|
|
99
|
-
* <li>
|
|
100
|
-
* <p>Remove the earlier compute environment from your job queue.</p>
|
|
101
|
-
* </li>
|
|
102
|
-
* <li>
|
|
103
|
-
* <p>Delete the earlier compute environment.</p>
|
|
104
|
-
* </li>
|
|
105
|
-
* </ol>
|
|
106
|
-
* <p>In April 2022, Batch added enhanced support for updating compute environments. For more information, see
|
|
107
|
-
* <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating compute
|
|
108
|
-
* environments</a>. To use the enhanced updating of compute environments to update AMIs, follow these
|
|
109
|
-
* rules:</p>
|
|
110
|
-
* <ul>
|
|
111
|
-
* <li>
|
|
112
|
-
* <p>Either don't set the service role (<code>serviceRole</code>) parameter or set it to the <b>AWSBatchServiceRole</b> service-linked role.</p>
|
|
113
|
-
* </li>
|
|
114
|
-
* <li>
|
|
115
|
-
* <p>Set the allocation strategy (<code>allocationStrategy</code>) parameter to <code>BEST_FIT_PROGRESSIVE</code>
|
|
116
|
-
* or <code>SPOT_CAPACITY_OPTIMIZED</code>.</p>
|
|
117
|
-
* </li>
|
|
118
|
-
* <li>
|
|
119
|
-
* <p>Set the update to latest image version (<code>updateToLatestImageVersion</code>) parameter to
|
|
120
|
-
* <code>true</code>.</p>
|
|
121
|
-
* </li>
|
|
122
|
-
* <li>
|
|
123
|
-
* <p>Don't specify an AMI ID in <code>imageId</code>, <code>imageIdOverride</code> (in <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_Ec2Configuration.html">
|
|
124
|
-
* <code>ec2Configuration</code>
|
|
125
|
-
* </a>), or in the launch
|
|
126
|
-
* template (<code>launchTemplate</code>). In that case, Batch selects the latest Amazon ECS optimized AMI that's
|
|
127
|
-
* supported by Batch at the time the infrastructure update is initiated. Alternatively, you can specify the AMI ID
|
|
128
|
-
* in the <code>imageId</code> or <code>imageIdOverride</code> parameters, or the launch template identified by the
|
|
129
|
-
* <code>LaunchTemplate</code> properties. Changing any of these properties starts an infrastructure update. If the
|
|
130
|
-
* AMI ID is specified in the launch template, it can't be replaced by specifying an AMI ID in either the
|
|
131
|
-
* <code>imageId</code> or <code>imageIdOverride</code> parameters. It can only be replaced by specifying a different
|
|
132
|
-
* launch template, or if the launch template version is set to <code>$Default</code> or <code>$Latest</code>, by
|
|
133
|
-
* setting either a new default version for the launch template (if <code>$Default</code>) or by adding a new version
|
|
134
|
-
* to the launch template (if <code>$Latest</code>).</p>
|
|
135
|
-
* </li>
|
|
136
|
-
* </ul>
|
|
137
|
-
* <p>If these rules are followed, any update that starts an infrastructure update causes the AMI ID to be
|
|
138
|
-
* re-selected. If the <code>version</code> setting in the launch template (<code>launchTemplate</code>) is set to
|
|
139
|
-
* <code>$Latest</code> or <code>$Default</code>, the latest or default version of the launch template is evaluated up
|
|
140
|
-
* at the time of the infrastructure update, even if the <code>launchTemplate</code> wasn't updated.</p>
|
|
141
|
-
* </note>
|
|
35
|
+
* @see {@link CreateComputeEnvironmentCommand}
|
|
142
36
|
*/
|
|
143
37
|
createComputeEnvironment(args: CreateComputeEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<CreateComputeEnvironmentCommandOutput>;
|
|
144
38
|
createComputeEnvironment(args: CreateComputeEnvironmentCommandInput, cb: (err: any, data?: CreateComputeEnvironmentCommandOutput) => void): void;
|
|
145
39
|
createComputeEnvironment(args: CreateComputeEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateComputeEnvironmentCommandOutput) => void): void;
|
|
146
40
|
/**
|
|
147
|
-
* @
|
|
148
|
-
* <p>Creates an Batch job queue. When you create a job queue, you associate one or more compute environments to the
|
|
149
|
-
* queue and assign an order of preference for the compute environments.</p>
|
|
150
|
-
* <p>You also set a priority to the job queue that determines the order that the Batch scheduler places jobs onto
|
|
151
|
-
* its associated compute environments. For example, if a compute environment is associated with more than one job
|
|
152
|
-
* queue, the job queue with a higher priority is given preference for scheduling jobs to that compute
|
|
153
|
-
* environment.</p>
|
|
41
|
+
* @see {@link CreateJobQueueCommand}
|
|
154
42
|
*/
|
|
155
43
|
createJobQueue(args: CreateJobQueueCommandInput, options?: __HttpHandlerOptions): Promise<CreateJobQueueCommandOutput>;
|
|
156
44
|
createJobQueue(args: CreateJobQueueCommandInput, cb: (err: any, data?: CreateJobQueueCommandOutput) => void): void;
|
|
157
45
|
createJobQueue(args: CreateJobQueueCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateJobQueueCommandOutput) => void): void;
|
|
158
46
|
/**
|
|
159
|
-
* @
|
|
160
|
-
* <p>Creates an Batch scheduling policy.</p>
|
|
47
|
+
* @see {@link CreateSchedulingPolicyCommand}
|
|
161
48
|
*/
|
|
162
49
|
createSchedulingPolicy(args: CreateSchedulingPolicyCommandInput, options?: __HttpHandlerOptions): Promise<CreateSchedulingPolicyCommandOutput>;
|
|
163
50
|
createSchedulingPolicy(args: CreateSchedulingPolicyCommandInput, cb: (err: any, data?: CreateSchedulingPolicyCommandOutput) => void): void;
|
|
164
51
|
createSchedulingPolicy(args: CreateSchedulingPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSchedulingPolicyCommandOutput) => void): void;
|
|
165
52
|
/**
|
|
166
|
-
* @
|
|
167
|
-
* <p>Deletes an Batch compute environment.</p>
|
|
168
|
-
* <p>Before you can delete a compute environment, you must set its state to <code>DISABLED</code> with the <a>UpdateComputeEnvironment</a> API operation and disassociate it from any job queues with the <a>UpdateJobQueue</a> API operation. Compute environments that use Fargate resources must terminate all
|
|
169
|
-
* active jobs on that compute environment before deleting the compute environment. If this isn't done, the compute
|
|
170
|
-
* environment enters an invalid state.</p>
|
|
53
|
+
* @see {@link DeleteComputeEnvironmentCommand}
|
|
171
54
|
*/
|
|
172
55
|
deleteComputeEnvironment(args: DeleteComputeEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<DeleteComputeEnvironmentCommandOutput>;
|
|
173
56
|
deleteComputeEnvironment(args: DeleteComputeEnvironmentCommandInput, cb: (err: any, data?: DeleteComputeEnvironmentCommandOutput) => void): void;
|
|
174
57
|
deleteComputeEnvironment(args: DeleteComputeEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteComputeEnvironmentCommandOutput) => void): void;
|
|
175
58
|
/**
|
|
176
|
-
* @
|
|
177
|
-
* <p>Deletes the specified job queue. You must first disable submissions for a queue with the <a>UpdateJobQueue</a> operation. All jobs in the queue are eventually terminated when you delete a job queue.
|
|
178
|
-
* The jobs are terminated at a rate of about 16 jobs each second.</p>
|
|
179
|
-
* <p>It's not necessary to disassociate compute environments from a queue before submitting a
|
|
180
|
-
* <code>DeleteJobQueue</code> request.</p>
|
|
59
|
+
* @see {@link DeleteJobQueueCommand}
|
|
181
60
|
*/
|
|
182
61
|
deleteJobQueue(args: DeleteJobQueueCommandInput, options?: __HttpHandlerOptions): Promise<DeleteJobQueueCommandOutput>;
|
|
183
62
|
deleteJobQueue(args: DeleteJobQueueCommandInput, cb: (err: any, data?: DeleteJobQueueCommandOutput) => void): void;
|
|
184
63
|
deleteJobQueue(args: DeleteJobQueueCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteJobQueueCommandOutput) => void): void;
|
|
185
64
|
/**
|
|
186
|
-
* @
|
|
187
|
-
* <p>Deletes the specified scheduling policy.</p>
|
|
188
|
-
* <p>You can't delete a scheduling policy that's used in any job queues.</p>
|
|
65
|
+
* @see {@link DeleteSchedulingPolicyCommand}
|
|
189
66
|
*/
|
|
190
67
|
deleteSchedulingPolicy(args: DeleteSchedulingPolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSchedulingPolicyCommandOutput>;
|
|
191
68
|
deleteSchedulingPolicy(args: DeleteSchedulingPolicyCommandInput, cb: (err: any, data?: DeleteSchedulingPolicyCommandOutput) => void): void;
|
|
192
69
|
deleteSchedulingPolicy(args: DeleteSchedulingPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSchedulingPolicyCommandOutput) => void): void;
|
|
193
70
|
/**
|
|
194
|
-
* @
|
|
195
|
-
* <p>Deregisters an Batch job definition. Job definitions are permanently deleted after 180 days.</p>
|
|
71
|
+
* @see {@link DeregisterJobDefinitionCommand}
|
|
196
72
|
*/
|
|
197
73
|
deregisterJobDefinition(args: DeregisterJobDefinitionCommandInput, options?: __HttpHandlerOptions): Promise<DeregisterJobDefinitionCommandOutput>;
|
|
198
74
|
deregisterJobDefinition(args: DeregisterJobDefinitionCommandInput, cb: (err: any, data?: DeregisterJobDefinitionCommandOutput) => void): void;
|
|
199
75
|
deregisterJobDefinition(args: DeregisterJobDefinitionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeregisterJobDefinitionCommandOutput) => void): void;
|
|
200
76
|
/**
|
|
201
|
-
* @
|
|
202
|
-
* <p>Describes one or more of your compute environments.</p>
|
|
203
|
-
* <p>If you're using an unmanaged compute environment, you can use the <code>DescribeComputeEnvironment</code>
|
|
204
|
-
* operation to determine the <code>ecsClusterArn</code> that you launch your Amazon ECS container instances
|
|
205
|
-
* into.</p>
|
|
77
|
+
* @see {@link DescribeComputeEnvironmentsCommand}
|
|
206
78
|
*/
|
|
207
79
|
describeComputeEnvironments(args: DescribeComputeEnvironmentsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeComputeEnvironmentsCommandOutput>;
|
|
208
80
|
describeComputeEnvironments(args: DescribeComputeEnvironmentsCommandInput, cb: (err: any, data?: DescribeComputeEnvironmentsCommandOutput) => void): void;
|
|
209
81
|
describeComputeEnvironments(args: DescribeComputeEnvironmentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeComputeEnvironmentsCommandOutput) => void): void;
|
|
210
82
|
/**
|
|
211
|
-
* @
|
|
212
|
-
* <p>Describes a list of job definitions. You can specify a <code>status</code> (such as <code>ACTIVE</code>) to only
|
|
213
|
-
* return job definitions that match that status.</p>
|
|
83
|
+
* @see {@link DescribeJobDefinitionsCommand}
|
|
214
84
|
*/
|
|
215
85
|
describeJobDefinitions(args: DescribeJobDefinitionsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeJobDefinitionsCommandOutput>;
|
|
216
86
|
describeJobDefinitions(args: DescribeJobDefinitionsCommandInput, cb: (err: any, data?: DescribeJobDefinitionsCommandOutput) => void): void;
|
|
217
87
|
describeJobDefinitions(args: DescribeJobDefinitionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeJobDefinitionsCommandOutput) => void): void;
|
|
218
88
|
/**
|
|
219
|
-
* @
|
|
220
|
-
* <p>Describes one or more of your job queues.</p>
|
|
89
|
+
* @see {@link DescribeJobQueuesCommand}
|
|
221
90
|
*/
|
|
222
91
|
describeJobQueues(args: DescribeJobQueuesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeJobQueuesCommandOutput>;
|
|
223
92
|
describeJobQueues(args: DescribeJobQueuesCommandInput, cb: (err: any, data?: DescribeJobQueuesCommandOutput) => void): void;
|
|
224
93
|
describeJobQueues(args: DescribeJobQueuesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeJobQueuesCommandOutput) => void): void;
|
|
225
94
|
/**
|
|
226
|
-
* @
|
|
227
|
-
* <p>Describes a list of Batch jobs.</p>
|
|
95
|
+
* @see {@link DescribeJobsCommand}
|
|
228
96
|
*/
|
|
229
97
|
describeJobs(args: DescribeJobsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeJobsCommandOutput>;
|
|
230
98
|
describeJobs(args: DescribeJobsCommandInput, cb: (err: any, data?: DescribeJobsCommandOutput) => void): void;
|
|
231
99
|
describeJobs(args: DescribeJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeJobsCommandOutput) => void): void;
|
|
232
100
|
/**
|
|
233
|
-
* @
|
|
234
|
-
* <p>Describes one or more of your scheduling policies.</p>
|
|
101
|
+
* @see {@link DescribeSchedulingPoliciesCommand}
|
|
235
102
|
*/
|
|
236
103
|
describeSchedulingPolicies(args: DescribeSchedulingPoliciesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeSchedulingPoliciesCommandOutput>;
|
|
237
104
|
describeSchedulingPolicies(args: DescribeSchedulingPoliciesCommandInput, cb: (err: any, data?: DescribeSchedulingPoliciesCommandOutput) => void): void;
|
|
238
105
|
describeSchedulingPolicies(args: DescribeSchedulingPoliciesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSchedulingPoliciesCommandOutput) => void): void;
|
|
239
106
|
/**
|
|
240
|
-
* @
|
|
241
|
-
* <p>Returns a list of Batch jobs.</p>
|
|
242
|
-
* <p>You must specify only one of the following items:</p>
|
|
243
|
-
* <ul>
|
|
244
|
-
* <li>
|
|
245
|
-
* <p>A job queue ID to return a list of jobs in that job queue</p>
|
|
246
|
-
* </li>
|
|
247
|
-
* <li>
|
|
248
|
-
* <p>A multi-node parallel job ID to return a list of nodes for that job</p>
|
|
249
|
-
* </li>
|
|
250
|
-
* <li>
|
|
251
|
-
* <p>An array job ID to return a list of the children for that job</p>
|
|
252
|
-
* </li>
|
|
253
|
-
* </ul>
|
|
254
|
-
* <p>You can filter the results by job status with the <code>jobStatus</code> parameter. If you don't specify a
|
|
255
|
-
* status, only <code>RUNNING</code> jobs are returned.</p>
|
|
107
|
+
* @see {@link ListJobsCommand}
|
|
256
108
|
*/
|
|
257
109
|
listJobs(args: ListJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListJobsCommandOutput>;
|
|
258
110
|
listJobs(args: ListJobsCommandInput, cb: (err: any, data?: ListJobsCommandOutput) => void): void;
|
|
259
111
|
listJobs(args: ListJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListJobsCommandOutput) => void): void;
|
|
260
112
|
/**
|
|
261
|
-
* @
|
|
262
|
-
* <p>Returns a list of Batch scheduling policies.</p>
|
|
113
|
+
* @see {@link ListSchedulingPoliciesCommand}
|
|
263
114
|
*/
|
|
264
115
|
listSchedulingPolicies(args: ListSchedulingPoliciesCommandInput, options?: __HttpHandlerOptions): Promise<ListSchedulingPoliciesCommandOutput>;
|
|
265
116
|
listSchedulingPolicies(args: ListSchedulingPoliciesCommandInput, cb: (err: any, data?: ListSchedulingPoliciesCommandOutput) => void): void;
|
|
266
117
|
listSchedulingPolicies(args: ListSchedulingPoliciesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSchedulingPoliciesCommandOutput) => void): void;
|
|
267
118
|
/**
|
|
268
|
-
* @
|
|
269
|
-
* <p>Lists the tags for an Batch resource. Batch resources that support tags are compute environments, jobs, job definitions, job queues,
|
|
270
|
-
* and scheduling policies. ARNs for child jobs of array and multi-node parallel (MNP) jobs aren't supported.</p>
|
|
119
|
+
* @see {@link ListTagsForResourceCommand}
|
|
271
120
|
*/
|
|
272
121
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
273
122
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
274
123
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
275
124
|
/**
|
|
276
|
-
* @
|
|
277
|
-
* <p>Registers an Batch job definition.</p>
|
|
125
|
+
* @see {@link RegisterJobDefinitionCommand}
|
|
278
126
|
*/
|
|
279
127
|
registerJobDefinition(args: RegisterJobDefinitionCommandInput, options?: __HttpHandlerOptions): Promise<RegisterJobDefinitionCommandOutput>;
|
|
280
128
|
registerJobDefinition(args: RegisterJobDefinitionCommandInput, cb: (err: any, data?: RegisterJobDefinitionCommandOutput) => void): void;
|
|
281
129
|
registerJobDefinition(args: RegisterJobDefinitionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterJobDefinitionCommandOutput) => void): void;
|
|
282
130
|
/**
|
|
283
|
-
* @
|
|
284
|
-
* <p>Submits an Batch job from a job definition. Parameters that are specified during <a>SubmitJob</a>
|
|
285
|
-
* override parameters defined in the job definition. vCPU and memory requirements that are specified in the
|
|
286
|
-
* <code>resourceRequirements</code> objects in the job definition are the exception. They can't be overridden this way
|
|
287
|
-
* using the <code>memory</code> and <code>vcpus</code> parameters. Rather, you must specify updates to job definition
|
|
288
|
-
* parameters in a <code>resourceRequirements</code> object that's included in the <code>containerOverrides</code>
|
|
289
|
-
* parameter.</p>
|
|
290
|
-
* <note>
|
|
291
|
-
* <p>Job queues with a scheduling policy are limited to 500 active fair share identifiers at a time. </p>
|
|
292
|
-
* </note>
|
|
293
|
-
* <important>
|
|
294
|
-
* <p>Jobs that run on Fargate resources can't be guaranteed to run for more than 14 days. This is because, after 14
|
|
295
|
-
* days, Fargate resources might become unavailable and job might be terminated.</p>
|
|
296
|
-
* </important>
|
|
131
|
+
* @see {@link SubmitJobCommand}
|
|
297
132
|
*/
|
|
298
133
|
submitJob(args: SubmitJobCommandInput, options?: __HttpHandlerOptions): Promise<SubmitJobCommandOutput>;
|
|
299
134
|
submitJob(args: SubmitJobCommandInput, cb: (err: any, data?: SubmitJobCommandOutput) => void): void;
|
|
300
135
|
submitJob(args: SubmitJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SubmitJobCommandOutput) => void): void;
|
|
301
136
|
/**
|
|
302
|
-
* @
|
|
303
|
-
* <p>Associates the specified tags to a resource with the specified <code>resourceArn</code>. If existing tags on a
|
|
304
|
-
* resource aren't specified in the request parameters, they aren't changed. When a resource is deleted, the tags that
|
|
305
|
-
* are associated with that resource are deleted as well. Batch resources that support tags are compute environments, jobs, job definitions, job queues,
|
|
306
|
-
* and scheduling policies. ARNs for child jobs of array and multi-node parallel (MNP) jobs aren't supported.</p>
|
|
137
|
+
* @see {@link TagResourceCommand}
|
|
307
138
|
*/
|
|
308
139
|
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
309
140
|
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
310
141
|
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
311
142
|
/**
|
|
312
|
-
* @
|
|
313
|
-
* <p>Terminates a job in a job queue. Jobs that are in the <code>STARTING</code> or <code>RUNNING</code> state are
|
|
314
|
-
* terminated, which causes them to transition to <code>FAILED</code>. Jobs that have not progressed to the
|
|
315
|
-
* <code>STARTING</code> state are cancelled.</p>
|
|
143
|
+
* @see {@link TerminateJobCommand}
|
|
316
144
|
*/
|
|
317
145
|
terminateJob(args: TerminateJobCommandInput, options?: __HttpHandlerOptions): Promise<TerminateJobCommandOutput>;
|
|
318
146
|
terminateJob(args: TerminateJobCommandInput, cb: (err: any, data?: TerminateJobCommandOutput) => void): void;
|
|
319
147
|
terminateJob(args: TerminateJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TerminateJobCommandOutput) => void): void;
|
|
320
148
|
/**
|
|
321
|
-
* @
|
|
322
|
-
* <p>Deletes specified tags from an Batch resource.</p>
|
|
149
|
+
* @see {@link UntagResourceCommand}
|
|
323
150
|
*/
|
|
324
151
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
325
152
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
326
153
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
327
154
|
/**
|
|
328
|
-
* @
|
|
329
|
-
* <p>Updates an Batch compute environment.</p>
|
|
155
|
+
* @see {@link UpdateComputeEnvironmentCommand}
|
|
330
156
|
*/
|
|
331
157
|
updateComputeEnvironment(args: UpdateComputeEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<UpdateComputeEnvironmentCommandOutput>;
|
|
332
158
|
updateComputeEnvironment(args: UpdateComputeEnvironmentCommandInput, cb: (err: any, data?: UpdateComputeEnvironmentCommandOutput) => void): void;
|
|
333
159
|
updateComputeEnvironment(args: UpdateComputeEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateComputeEnvironmentCommandOutput) => void): void;
|
|
334
160
|
/**
|
|
335
|
-
* @
|
|
336
|
-
* <p>Updates a job queue.</p>
|
|
161
|
+
* @see {@link UpdateJobQueueCommand}
|
|
337
162
|
*/
|
|
338
163
|
updateJobQueue(args: UpdateJobQueueCommandInput, options?: __HttpHandlerOptions): Promise<UpdateJobQueueCommandOutput>;
|
|
339
164
|
updateJobQueue(args: UpdateJobQueueCommandInput, cb: (err: any, data?: UpdateJobQueueCommandOutput) => void): void;
|
|
340
165
|
updateJobQueue(args: UpdateJobQueueCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateJobQueueCommandOutput) => void): void;
|
|
341
166
|
/**
|
|
342
|
-
* @
|
|
343
|
-
* <p>Updates a scheduling policy.</p>
|
|
167
|
+
* @see {@link UpdateSchedulingPolicyCommand}
|
|
344
168
|
*/
|
|
345
169
|
updateSchedulingPolicy(args: UpdateSchedulingPolicyCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSchedulingPolicyCommandOutput>;
|
|
346
170
|
updateSchedulingPolicy(args: UpdateSchedulingPolicyCommandInput, cb: (err: any, data?: UpdateSchedulingPolicyCommandOutput) => void): void;
|
|
347
171
|
updateSchedulingPolicy(args: UpdateSchedulingPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSchedulingPolicyCommandOutput) => void): void;
|
|
348
172
|
}
|
|
173
|
+
/**
|
|
174
|
+
* @public
|
|
175
|
+
* <fullname>Batch</fullname>
|
|
176
|
+
* <p>Using Batch, you can run batch computing workloads on the Amazon Web Services Cloud. Batch computing is a common means for
|
|
177
|
+
* developers, scientists, and engineers to access large amounts of compute resources. Batch uses the advantages of
|
|
178
|
+
* the batch computing to remove the undifferentiated heavy lifting of configuring and managing required infrastructure.
|
|
179
|
+
* At the same time, it also adopts a familiar batch computing software approach. You can use Batch to efficiently
|
|
180
|
+
* provision resources d, and work toward eliminating capacity constraints, reducing your overall compute costs, and
|
|
181
|
+
* delivering results more quickly.</p>
|
|
182
|
+
* <p>As a fully managed service, Batch can run batch computing workloads of any scale. Batch automatically
|
|
183
|
+
* provisions compute resources and optimizes workload distribution based on the quantity and scale of your specific
|
|
184
|
+
* workloads. With Batch, there's no need to install or manage batch computing software. This means that you can focus
|
|
185
|
+
* on analyzing results and solving your specific problems instead.</p>
|
|
186
|
+
*/
|
|
187
|
+
export declare class Batch extends BatchClient implements Batch {
|
|
188
|
+
}
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
UpdateSchedulingPolicyCommandInput,
|
|
97
97
|
UpdateSchedulingPolicyCommandOutput,
|
|
98
98
|
} from "./commands/UpdateSchedulingPolicyCommand";
|
|
99
|
-
export
|
|
99
|
+
export interface Batch {
|
|
100
100
|
cancelJob(
|
|
101
101
|
args: CancelJobCommandInput,
|
|
102
102
|
options?: __HttpHandlerOptions
|
|
@@ -410,3 +410,4 @@ export declare class Batch extends BatchClient {
|
|
|
410
410
|
cb: (err: any, data?: UpdateSchedulingPolicyCommandOutput) => void
|
|
411
411
|
): void;
|
|
412
412
|
}
|
|
413
|
+
export declare class Batch extends BatchClient implements Batch {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-batch",
|
|
3
3
|
"description": "AWS SDK for JavaScript Batch Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.316.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.316.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.316.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|