UNPKG

70.8 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class Batch extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: Batch.Types.ClientConfiguration)
13 config: Config & Batch.Types.ClientConfiguration;
14 /**
15 * Cancels a job in an AWS Batch job queue. Jobs that are in the SUBMITTED, PENDING, or RUNNABLE state are cancelled. Jobs that have progressed to STARTING or RUNNING are not cancelled (but the API operation still succeeds, even if no job is cancelled); these jobs must be terminated with the TerminateJob operation.
16 */
17 cancelJob(params: Batch.Types.CancelJobRequest, callback?: (err: AWSError, data: Batch.Types.CancelJobResponse) => void): Request<Batch.Types.CancelJobResponse, AWSError>;
18 /**
19 * Cancels a job in an AWS Batch job queue. Jobs that are in the SUBMITTED, PENDING, or RUNNABLE state are cancelled. Jobs that have progressed to STARTING or RUNNING are not cancelled (but the API operation still succeeds, even if no job is cancelled); these jobs must be terminated with the TerminateJob operation.
20 */
21 cancelJob(callback?: (err: AWSError, data: Batch.Types.CancelJobResponse) => void): Request<Batch.Types.CancelJobResponse, AWSError>;
22 /**
23 * Creates an AWS Batch compute environment. You can create MANAGED or UNMANAGED compute environments. In a managed compute environment, AWS Batch manages the capacity and instance types of the compute resources within the environment. This is based on the compute resource specification that you define or the launch template that you specify when you create the compute environment. You can choose to use Amazon EC2 On-Demand Instances or Spot Instances in your managed compute environment. You can optionally set a maximum price so that Spot Instances only launch when the Spot Instance price is below a specified percentage of the On-Demand price. Multi-node parallel jobs are not supported on Spot Instances. In an unmanaged compute environment, you can manage your own compute resources. This provides more compute resource configuration options, such as using a custom AMI, but you must ensure that your AMI meets the Amazon ECS container instance AMI specification. For more information, see Container Instance AMIs in the Amazon Elastic Container Service Developer Guide. After you have created your unmanaged compute environment, you can use the DescribeComputeEnvironments operation to find the Amazon ECS cluster that is associated with it. Then, manually launch your container instances into that Amazon ECS cluster. For more information, see Launching an Amazon ECS Container Instance in the Amazon Elastic Container Service Developer Guide. AWS Batch does not upgrade the AMIs in a compute environment after it is created (for example, when a newer version of the Amazon ECS-optimized AMI is available). You are responsible for the management of the guest operating system (including updates and security patches) and any additional application software or utilities that you install on the compute resources. To use a new AMI for your AWS Batch jobs: Create a new compute environment with the new AMI. Add the compute environment to an existing job queue. Remove the old compute environment from your job queue. Delete the old compute environment.
24 */
25 createComputeEnvironment(params: Batch.Types.CreateComputeEnvironmentRequest, callback?: (err: AWSError, data: Batch.Types.CreateComputeEnvironmentResponse) => void): Request<Batch.Types.CreateComputeEnvironmentResponse, AWSError>;
26 /**
27 * Creates an AWS Batch compute environment. You can create MANAGED or UNMANAGED compute environments. In a managed compute environment, AWS Batch manages the capacity and instance types of the compute resources within the environment. This is based on the compute resource specification that you define or the launch template that you specify when you create the compute environment. You can choose to use Amazon EC2 On-Demand Instances or Spot Instances in your managed compute environment. You can optionally set a maximum price so that Spot Instances only launch when the Spot Instance price is below a specified percentage of the On-Demand price. Multi-node parallel jobs are not supported on Spot Instances. In an unmanaged compute environment, you can manage your own compute resources. This provides more compute resource configuration options, such as using a custom AMI, but you must ensure that your AMI meets the Amazon ECS container instance AMI specification. For more information, see Container Instance AMIs in the Amazon Elastic Container Service Developer Guide. After you have created your unmanaged compute environment, you can use the DescribeComputeEnvironments operation to find the Amazon ECS cluster that is associated with it. Then, manually launch your container instances into that Amazon ECS cluster. For more information, see Launching an Amazon ECS Container Instance in the Amazon Elastic Container Service Developer Guide. AWS Batch does not upgrade the AMIs in a compute environment after it is created (for example, when a newer version of the Amazon ECS-optimized AMI is available). You are responsible for the management of the guest operating system (including updates and security patches) and any additional application software or utilities that you install on the compute resources. To use a new AMI for your AWS Batch jobs: Create a new compute environment with the new AMI. Add the compute environment to an existing job queue. Remove the old compute environment from your job queue. Delete the old compute environment.
28 */
29 createComputeEnvironment(callback?: (err: AWSError, data: Batch.Types.CreateComputeEnvironmentResponse) => void): Request<Batch.Types.CreateComputeEnvironmentResponse, AWSError>;
30 /**
31 * Creates an AWS Batch job queue. When you create a job queue, you associate one or more compute environments to the queue and assign an order of preference for the compute environments. You also set a priority to the job queue that determines the order in which the AWS Batch scheduler places jobs onto its associated compute environments. For example, if a compute environment is associated with more than one job queue, the job queue with a higher priority is given preference for scheduling jobs to that compute environment.
32 */
33 createJobQueue(params: Batch.Types.CreateJobQueueRequest, callback?: (err: AWSError, data: Batch.Types.CreateJobQueueResponse) => void): Request<Batch.Types.CreateJobQueueResponse, AWSError>;
34 /**
35 * Creates an AWS Batch job queue. When you create a job queue, you associate one or more compute environments to the queue and assign an order of preference for the compute environments. You also set a priority to the job queue that determines the order in which the AWS Batch scheduler places jobs onto its associated compute environments. For example, if a compute environment is associated with more than one job queue, the job queue with a higher priority is given preference for scheduling jobs to that compute environment.
36 */
37 createJobQueue(callback?: (err: AWSError, data: Batch.Types.CreateJobQueueResponse) => void): Request<Batch.Types.CreateJobQueueResponse, AWSError>;
38 /**
39 * Deletes an AWS Batch compute environment. Before you can delete a compute environment, you must set its state to DISABLED with the UpdateComputeEnvironment API operation and disassociate it from any job queues with the UpdateJobQueue API operation.
40 */
41 deleteComputeEnvironment(params: Batch.Types.DeleteComputeEnvironmentRequest, callback?: (err: AWSError, data: Batch.Types.DeleteComputeEnvironmentResponse) => void): Request<Batch.Types.DeleteComputeEnvironmentResponse, AWSError>;
42 /**
43 * Deletes an AWS Batch compute environment. Before you can delete a compute environment, you must set its state to DISABLED with the UpdateComputeEnvironment API operation and disassociate it from any job queues with the UpdateJobQueue API operation.
44 */
45 deleteComputeEnvironment(callback?: (err: AWSError, data: Batch.Types.DeleteComputeEnvironmentResponse) => void): Request<Batch.Types.DeleteComputeEnvironmentResponse, AWSError>;
46 /**
47 * Deletes the specified job queue. You must first disable submissions for a queue with the UpdateJobQueue operation. All jobs in the queue are terminated when you delete a job queue. It is not necessary to disassociate compute environments from a queue before submitting a DeleteJobQueue request.
48 */
49 deleteJobQueue(params: Batch.Types.DeleteJobQueueRequest, callback?: (err: AWSError, data: Batch.Types.DeleteJobQueueResponse) => void): Request<Batch.Types.DeleteJobQueueResponse, AWSError>;
50 /**
51 * Deletes the specified job queue. You must first disable submissions for a queue with the UpdateJobQueue operation. All jobs in the queue are terminated when you delete a job queue. It is not necessary to disassociate compute environments from a queue before submitting a DeleteJobQueue request.
52 */
53 deleteJobQueue(callback?: (err: AWSError, data: Batch.Types.DeleteJobQueueResponse) => void): Request<Batch.Types.DeleteJobQueueResponse, AWSError>;
54 /**
55 * Deregisters an AWS Batch job definition.
56 */
57 deregisterJobDefinition(params: Batch.Types.DeregisterJobDefinitionRequest, callback?: (err: AWSError, data: Batch.Types.DeregisterJobDefinitionResponse) => void): Request<Batch.Types.DeregisterJobDefinitionResponse, AWSError>;
58 /**
59 * Deregisters an AWS Batch job definition.
60 */
61 deregisterJobDefinition(callback?: (err: AWSError, data: Batch.Types.DeregisterJobDefinitionResponse) => void): Request<Batch.Types.DeregisterJobDefinitionResponse, AWSError>;
62 /**
63 * Describes one or more of your compute environments. If you are using an unmanaged compute environment, you can use the DescribeComputeEnvironment operation to determine the ecsClusterArn that you should launch your Amazon ECS container instances into.
64 */
65 describeComputeEnvironments(params: Batch.Types.DescribeComputeEnvironmentsRequest, callback?: (err: AWSError, data: Batch.Types.DescribeComputeEnvironmentsResponse) => void): Request<Batch.Types.DescribeComputeEnvironmentsResponse, AWSError>;
66 /**
67 * Describes one or more of your compute environments. If you are using an unmanaged compute environment, you can use the DescribeComputeEnvironment operation to determine the ecsClusterArn that you should launch your Amazon ECS container instances into.
68 */
69 describeComputeEnvironments(callback?: (err: AWSError, data: Batch.Types.DescribeComputeEnvironmentsResponse) => void): Request<Batch.Types.DescribeComputeEnvironmentsResponse, AWSError>;
70 /**
71 * Describes a list of job definitions. You can specify a status (such as ACTIVE) to only return job definitions that match that status.
72 */
73 describeJobDefinitions(params: Batch.Types.DescribeJobDefinitionsRequest, callback?: (err: AWSError, data: Batch.Types.DescribeJobDefinitionsResponse) => void): Request<Batch.Types.DescribeJobDefinitionsResponse, AWSError>;
74 /**
75 * Describes a list of job definitions. You can specify a status (such as ACTIVE) to only return job definitions that match that status.
76 */
77 describeJobDefinitions(callback?: (err: AWSError, data: Batch.Types.DescribeJobDefinitionsResponse) => void): Request<Batch.Types.DescribeJobDefinitionsResponse, AWSError>;
78 /**
79 * Describes one or more of your job queues.
80 */
81 describeJobQueues(params: Batch.Types.DescribeJobQueuesRequest, callback?: (err: AWSError, data: Batch.Types.DescribeJobQueuesResponse) => void): Request<Batch.Types.DescribeJobQueuesResponse, AWSError>;
82 /**
83 * Describes one or more of your job queues.
84 */
85 describeJobQueues(callback?: (err: AWSError, data: Batch.Types.DescribeJobQueuesResponse) => void): Request<Batch.Types.DescribeJobQueuesResponse, AWSError>;
86 /**
87 * Describes a list of AWS Batch jobs.
88 */
89 describeJobs(params: Batch.Types.DescribeJobsRequest, callback?: (err: AWSError, data: Batch.Types.DescribeJobsResponse) => void): Request<Batch.Types.DescribeJobsResponse, AWSError>;
90 /**
91 * Describes a list of AWS Batch jobs.
92 */
93 describeJobs(callback?: (err: AWSError, data: Batch.Types.DescribeJobsResponse) => void): Request<Batch.Types.DescribeJobsResponse, AWSError>;
94 /**
95 * Returns a list of AWS Batch jobs. You must specify only one of the following: a job queue ID to return a list of jobs in that job queue a multi-node parallel job ID to return a list of that job's nodes an array job ID to return a list of that job's children You can filter the results by job status with the jobStatus parameter. If you do not specify a status, only RUNNING jobs are returned.
96 */
97 listJobs(params: Batch.Types.ListJobsRequest, callback?: (err: AWSError, data: Batch.Types.ListJobsResponse) => void): Request<Batch.Types.ListJobsResponse, AWSError>;
98 /**
99 * Returns a list of AWS Batch jobs. You must specify only one of the following: a job queue ID to return a list of jobs in that job queue a multi-node parallel job ID to return a list of that job's nodes an array job ID to return a list of that job's children You can filter the results by job status with the jobStatus parameter. If you do not specify a status, only RUNNING jobs are returned.
100 */
101 listJobs(callback?: (err: AWSError, data: Batch.Types.ListJobsResponse) => void): Request<Batch.Types.ListJobsResponse, AWSError>;
102 /**
103 * Registers an AWS Batch job definition.
104 */
105 registerJobDefinition(params: Batch.Types.RegisterJobDefinitionRequest, callback?: (err: AWSError, data: Batch.Types.RegisterJobDefinitionResponse) => void): Request<Batch.Types.RegisterJobDefinitionResponse, AWSError>;
106 /**
107 * Registers an AWS Batch job definition.
108 */
109 registerJobDefinition(callback?: (err: AWSError, data: Batch.Types.RegisterJobDefinitionResponse) => void): Request<Batch.Types.RegisterJobDefinitionResponse, AWSError>;
110 /**
111 * Submits an AWS Batch job from a job definition. Parameters specified during SubmitJob override parameters defined in the job definition.
112 */
113 submitJob(params: Batch.Types.SubmitJobRequest, callback?: (err: AWSError, data: Batch.Types.SubmitJobResponse) => void): Request<Batch.Types.SubmitJobResponse, AWSError>;
114 /**
115 * Submits an AWS Batch job from a job definition. Parameters specified during SubmitJob override parameters defined in the job definition.
116 */
117 submitJob(callback?: (err: AWSError, data: Batch.Types.SubmitJobResponse) => void): Request<Batch.Types.SubmitJobResponse, AWSError>;
118 /**
119 * Terminates a job in a job queue. Jobs that are in the STARTING or RUNNING state are terminated, which causes them to transition to FAILED. Jobs that have not progressed to the STARTING state are cancelled.
120 */
121 terminateJob(params: Batch.Types.TerminateJobRequest, callback?: (err: AWSError, data: Batch.Types.TerminateJobResponse) => void): Request<Batch.Types.TerminateJobResponse, AWSError>;
122 /**
123 * Terminates a job in a job queue. Jobs that are in the STARTING or RUNNING state are terminated, which causes them to transition to FAILED. Jobs that have not progressed to the STARTING state are cancelled.
124 */
125 terminateJob(callback?: (err: AWSError, data: Batch.Types.TerminateJobResponse) => void): Request<Batch.Types.TerminateJobResponse, AWSError>;
126 /**
127 * Updates an AWS Batch compute environment.
128 */
129 updateComputeEnvironment(params: Batch.Types.UpdateComputeEnvironmentRequest, callback?: (err: AWSError, data: Batch.Types.UpdateComputeEnvironmentResponse) => void): Request<Batch.Types.UpdateComputeEnvironmentResponse, AWSError>;
130 /**
131 * Updates an AWS Batch compute environment.
132 */
133 updateComputeEnvironment(callback?: (err: AWSError, data: Batch.Types.UpdateComputeEnvironmentResponse) => void): Request<Batch.Types.UpdateComputeEnvironmentResponse, AWSError>;
134 /**
135 * Updates a job queue.
136 */
137 updateJobQueue(params: Batch.Types.UpdateJobQueueRequest, callback?: (err: AWSError, data: Batch.Types.UpdateJobQueueResponse) => void): Request<Batch.Types.UpdateJobQueueResponse, AWSError>;
138 /**
139 * Updates a job queue.
140 */
141 updateJobQueue(callback?: (err: AWSError, data: Batch.Types.UpdateJobQueueResponse) => void): Request<Batch.Types.UpdateJobQueueResponse, AWSError>;
142}
143declare namespace Batch {
144 export type ArrayJobDependency = "N_TO_N"|"SEQUENTIAL"|string;
145 export type ArrayJobStatusSummary = {[key: string]: Integer};
146 export interface ArrayProperties {
147 /**
148 * The size of the array job.
149 */
150 size?: Integer;
151 }
152 export interface ArrayPropertiesDetail {
153 /**
154 * A summary of the number of array job children in each available job status. This parameter is returned for parent array jobs.
155 */
156 statusSummary?: ArrayJobStatusSummary;
157 /**
158 * The size of the array job. This parameter is returned for parent array jobs.
159 */
160 size?: Integer;
161 /**
162 * The job index within the array that is associated with this job. This parameter is returned for array job children.
163 */
164 index?: Integer;
165 }
166 export interface ArrayPropertiesSummary {
167 /**
168 * The size of the array job. This parameter is returned for parent array jobs.
169 */
170 size?: Integer;
171 /**
172 * The job index within the array that is associated with this job. This parameter is returned for children of array jobs.
173 */
174 index?: Integer;
175 }
176 export interface AttemptContainerDetail {
177 /**
178 * The Amazon Resource Name (ARN) of the Amazon ECS container instance that hosts the job attempt.
179 */
180 containerInstanceArn?: String;
181 /**
182 * The Amazon Resource Name (ARN) of the Amazon ECS task that is associated with the job attempt. Each container attempt receives a task ARN when they reach the STARTING status.
183 */
184 taskArn?: String;
185 /**
186 * The exit code for the job attempt. A non-zero exit code is considered a failure.
187 */
188 exitCode?: Integer;
189 /**
190 * A short (255 max characters) human-readable string to provide additional details about a running or stopped container.
191 */
192 reason?: String;
193 /**
194 * The name of the CloudWatch Logs log stream associated with the container. The log group for AWS Batch jobs is /aws/batch/job. Each container attempt receives a log stream name when they reach the RUNNING status.
195 */
196 logStreamName?: String;
197 /**
198 * The network interfaces associated with the job attempt.
199 */
200 networkInterfaces?: NetworkInterfaceList;
201 }
202 export interface AttemptDetail {
203 /**
204 * Details about the container in this job attempt.
205 */
206 container?: AttemptContainerDetail;
207 /**
208 * The Unix timestamp (in seconds and milliseconds) for when the attempt was started (when the attempt transitioned from the STARTING state to the RUNNING state).
209 */
210 startedAt?: Long;
211 /**
212 * The Unix timestamp (in seconds and milliseconds) for when the attempt was stopped (when the attempt transitioned from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED).
213 */
214 stoppedAt?: Long;
215 /**
216 * A short, human-readable string to provide additional details about the current status of the job attempt.
217 */
218 statusReason?: String;
219 }
220 export type AttemptDetails = AttemptDetail[];
221 export type Boolean = boolean;
222 export type CEState = "ENABLED"|"DISABLED"|string;
223 export type CEStatus = "CREATING"|"UPDATING"|"DELETING"|"DELETED"|"VALID"|"INVALID"|string;
224 export type CEType = "MANAGED"|"UNMANAGED"|string;
225 export type CRType = "EC2"|"SPOT"|string;
226 export interface CancelJobRequest {
227 /**
228 * The AWS Batch job ID of the job to cancel.
229 */
230 jobId: String;
231 /**
232 * A message to attach to the job that explains the reason for canceling it. This message is returned by future DescribeJobs operations on the job. This message is also recorded in the AWS Batch activity logs.
233 */
234 reason: String;
235 }
236 export interface CancelJobResponse {
237 }
238 export interface ComputeEnvironmentDetail {
239 /**
240 * The name of the compute environment.
241 */
242 computeEnvironmentName: String;
243 /**
244 * The Amazon Resource Name (ARN) of the compute environment.
245 */
246 computeEnvironmentArn: String;
247 /**
248 * The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster used by the compute environment.
249 */
250 ecsClusterArn: String;
251 /**
252 * The type of the compute environment.
253 */
254 type?: CEType;
255 /**
256 * The state of the compute environment. The valid values are ENABLED or DISABLED. If the state is ENABLED, then the AWS Batch scheduler can attempt to place jobs from an associated job queue on the compute resources within the environment. If the compute environment is managed, then it can scale its instances out or in automatically, based on the job queue demand. If the state is DISABLED, then the AWS Batch scheduler does not attempt to place jobs within the environment. Jobs in a STARTING or RUNNING state continue to progress normally. Managed compute environments in the DISABLED state do not scale out. However, they scale in to minvCpus value after instances become idle.
257 */
258 state?: CEState;
259 /**
260 * The current status of the compute environment (for example, CREATING or VALID).
261 */
262 status?: CEStatus;
263 /**
264 * A short, human-readable string to provide additional details about the current status of the compute environment.
265 */
266 statusReason?: String;
267 /**
268 * The compute resources defined for the compute environment.
269 */
270 computeResources?: ComputeResource;
271 /**
272 * The service role associated with the compute environment that allows AWS Batch to make calls to AWS API operations on your behalf.
273 */
274 serviceRole?: String;
275 }
276 export type ComputeEnvironmentDetailList = ComputeEnvironmentDetail[];
277 export interface ComputeEnvironmentOrder {
278 /**
279 * The order of the compute environment.
280 */
281 order: Integer;
282 /**
283 * The Amazon Resource Name (ARN) of the compute environment.
284 */
285 computeEnvironment: String;
286 }
287 export type ComputeEnvironmentOrders = ComputeEnvironmentOrder[];
288 export interface ComputeResource {
289 /**
290 * The type of compute environment.
291 */
292 type: CRType;
293 /**
294 * The minimum number of EC2 vCPUs that an environment should maintain (even if the compute environment is DISABLED).
295 */
296 minvCpus: Integer;
297 /**
298 * The maximum number of EC2 vCPUs that an environment can reach.
299 */
300 maxvCpus: Integer;
301 /**
302 * The desired number of EC2 vCPUS in the compute environment.
303 */
304 desiredvCpus?: Integer;
305 /**
306 * The instances types that may be launched. You can specify instance families to launch any instance type within those families (for example, c4 or p3), or you can specify specific sizes within a family (such as c4.8xlarge). You can also choose optimal to pick instance types (from the latest C, M, and R instance families) on the fly that match the demand of your job queues.
307 */
308 instanceTypes: StringList;
309 /**
310 * The Amazon Machine Image (AMI) ID used for instances launched in the compute environment.
311 */
312 imageId?: String;
313 /**
314 * The VPC subnets into which the compute resources are launched.
315 */
316 subnets: StringList;
317 /**
318 * The EC2 security group that is associated with instances launched in the compute environment.
319 */
320 securityGroupIds?: StringList;
321 /**
322 * The EC2 key pair that is used for instances launched in the compute environment.
323 */
324 ec2KeyPair?: String;
325 /**
326 * The Amazon ECS instance profile applied to Amazon EC2 instances in a compute environment. You can specify the short name or full Amazon Resource Name (ARN) of an instance profile. For example, ecsInstanceRole or arn:aws:iam::&lt;aws_account_id&gt;:instance-profile/ecsInstanceRole. For more information, see Amazon ECS Instance Role in the AWS Batch User Guide.
327 */
328 instanceRole: String;
329 /**
330 * Key-value pair tags to be applied to resources that are launched in the compute environment.
331 */
332 tags?: TagsMap;
333 /**
334 * The Amazon EC2 placement group to associate with your compute resources. If you intend to submit multi-node parallel jobs to your compute environment, you should consider creating a cluster placement group and associate it with your compute resources. This keeps your multi-node parallel job on a logical grouping of instances within a single Availability Zone with high network flow potential. For more information, see Placement Groups in the Amazon EC2 User Guide for Linux Instances.
335 */
336 placementGroup?: String;
337 /**
338 * The maximum percentage that a Spot Instance price can be when compared with the On-Demand price for that instance type before instances are launched. For example, if your maximum percentage is 20%, then the Spot price must be below 20% of the current On-Demand price for that EC2 instance. You always pay the lowest (market) price and never more than your maximum percentage. If you leave this field empty, the default value is 100% of the On-Demand price.
339 */
340 bidPercentage?: Integer;
341 /**
342 * The Amazon Resource Name (ARN) of the Amazon EC2 Spot Fleet IAM role applied to a SPOT compute environment.
343 */
344 spotIamFleetRole?: String;
345 /**
346 * The launch template to use for your compute resources. Any other compute resource parameters that you specify in a CreateComputeEnvironment API operation override the same parameters in the launch template. You must specify either the launch template ID or launch template name in the request, but not both.
347 */
348 launchTemplate?: LaunchTemplateSpecification;
349 }
350 export interface ComputeResourceUpdate {
351 /**
352 * The minimum number of EC2 vCPUs that an environment should maintain.
353 */
354 minvCpus?: Integer;
355 /**
356 * The maximum number of EC2 vCPUs that an environment can reach.
357 */
358 maxvCpus?: Integer;
359 /**
360 * The desired number of EC2 vCPUS in the compute environment.
361 */
362 desiredvCpus?: Integer;
363 }
364 export interface ContainerDetail {
365 /**
366 * The image used to start the container.
367 */
368 image?: String;
369 /**
370 * The number of VCPUs allocated for the job.
371 */
372 vcpus?: Integer;
373 /**
374 * The number of MiB of memory reserved for the job.
375 */
376 memory?: Integer;
377 /**
378 * The command that is passed to the container.
379 */
380 command?: StringList;
381 /**
382 * The Amazon Resource Name (ARN) associated with the job upon execution.
383 */
384 jobRoleArn?: String;
385 /**
386 * A list of volumes associated with the job.
387 */
388 volumes?: Volumes;
389 /**
390 * The environment variables to pass to a container. Environment variables must not start with AWS_BATCH; this naming convention is reserved for variables that are set by the AWS Batch service.
391 */
392 environment?: EnvironmentVariables;
393 /**
394 * The mount points for data volumes in your container.
395 */
396 mountPoints?: MountPoints;
397 /**
398 * When this parameter is true, the container is given read-only access to its root file system.
399 */
400 readonlyRootFilesystem?: Boolean;
401 /**
402 * A list of ulimit values to set in the container.
403 */
404 ulimits?: Ulimits;
405 /**
406 * When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user).
407 */
408 privileged?: Boolean;
409 /**
410 * The user name to use inside the container.
411 */
412 user?: String;
413 /**
414 * The exit code to return upon completion.
415 */
416 exitCode?: Integer;
417 /**
418 * A short (255 max characters) human-readable string to provide additional details about a running or stopped container.
419 */
420 reason?: String;
421 /**
422 * The Amazon Resource Name (ARN) of the container instance on which the container is running.
423 */
424 containerInstanceArn?: String;
425 /**
426 * The Amazon Resource Name (ARN) of the Amazon ECS task that is associated with the container job. Each container attempt receives a task ARN when they reach the STARTING status.
427 */
428 taskArn?: String;
429 /**
430 * The name of the CloudWatch Logs log stream associated with the container. The log group for AWS Batch jobs is /aws/batch/job. Each container attempt receives a log stream name when they reach the RUNNING status.
431 */
432 logStreamName?: String;
433 /**
434 * The instance type of the underlying host infrastructure of a multi-node parallel job.
435 */
436 instanceType?: String;
437 /**
438 * The network interfaces associated with the job.
439 */
440 networkInterfaces?: NetworkInterfaceList;
441 }
442 export interface ContainerOverrides {
443 /**
444 * The number of vCPUs to reserve for the container. This value overrides the value set in the job definition.
445 */
446 vcpus?: Integer;
447 /**
448 * The number of MiB of memory reserved for the job. This value overrides the value set in the job definition.
449 */
450 memory?: Integer;
451 /**
452 * The command to send to the container that overrides the default command from the Docker image or the job definition.
453 */
454 command?: StringList;
455 /**
456 * The instance type to use for a multi-node parallel job. This parameter is not valid for single-node container jobs.
457 */
458 instanceType?: String;
459 /**
460 * The environment variables to send to the container. You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the job definition. Environment variables must not start with AWS_BATCH; this naming convention is reserved for variables that are set by the AWS Batch service.
461 */
462 environment?: EnvironmentVariables;
463 }
464 export interface ContainerProperties {
465 /**
466 * The image used to start a container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with repository-url/image:tag . Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to Image in the Create a container section of the Docker Remote API and the IMAGE parameter of docker run. Images in Amazon ECR repositories use the full registry and repository URI (for example, 012345678910.dkr.ecr.&lt;region-name&gt;.amazonaws.com/&lt;repository-name&gt;). Images in official repositories on Docker Hub use a single name (for example, ubuntu or mongo). Images in other repositories on Docker Hub are qualified with an organization name (for example, amazon/amazon-ecs-agent). Images in other online repositories are qualified further by a domain name (for example, quay.io/assemblyline/ubuntu).
467 */
468 image?: String;
469 /**
470 * The number of vCPUs reserved for the container. This parameter maps to CpuShares in the Create a container section of the Docker Remote API and the --cpu-shares option to docker run. Each vCPU is equivalent to 1,024 CPU shares. You must specify at least one vCPU.
471 */
472 vcpus?: Integer;
473 /**
474 * The hard limit (in MiB) of memory to present to the container. If your container attempts to exceed the memory specified here, the container is killed. This parameter maps to Memory in the Create a container section of the Docker Remote API and the --memory option to docker run. You must specify at least 4 MiB of memory for a job. If you are trying to maximize your resource utilization by providing your jobs as much memory as possible for a particular instance type, see Memory Management in the AWS Batch User Guide.
475 */
476 memory?: Integer;
477 /**
478 * The command that is passed to the container. This parameter maps to Cmd in the Create a container section of the Docker Remote API and the COMMAND parameter to docker run. For more information, see https://docs.docker.com/engine/reference/builder/#cmd.
479 */
480 command?: StringList;
481 /**
482 * The Amazon Resource Name (ARN) of the IAM role that the container can assume for AWS permissions.
483 */
484 jobRoleArn?: String;
485 /**
486 * A list of data volumes used in a job.
487 */
488 volumes?: Volumes;
489 /**
490 * The environment variables to pass to a container. This parameter maps to Env in the Create a container section of the Docker Remote API and the --env option to docker run. We do not recommend using plaintext environment variables for sensitive information, such as credential data. Environment variables must not start with AWS_BATCH; this naming convention is reserved for variables that are set by the AWS Batch service.
491 */
492 environment?: EnvironmentVariables;
493 /**
494 * The mount points for data volumes in your container. This parameter maps to Volumes in the Create a container section of the Docker Remote API and the --volume option to docker run.
495 */
496 mountPoints?: MountPoints;
497 /**
498 * When this parameter is true, the container is given read-only access to its root file system. This parameter maps to ReadonlyRootfs in the Create a container section of the Docker Remote API and the --read-only option to docker run.
499 */
500 readonlyRootFilesystem?: Boolean;
501 /**
502 * When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user). This parameter maps to Privileged in the Create a container section of the Docker Remote API and the --privileged option to docker run.
503 */
504 privileged?: Boolean;
505 /**
506 * A list of ulimits to set in the container. This parameter maps to Ulimits in the Create a container section of the Docker Remote API and the --ulimit option to docker run.
507 */
508 ulimits?: Ulimits;
509 /**
510 * The user name to use inside the container. This parameter maps to User in the Create a container section of the Docker Remote API and the --user option to docker run.
511 */
512 user?: String;
513 /**
514 * The instance type to use for a multi-node parallel job. Currently all node groups in a multi-node parallel job must use the same instance type. This parameter is not valid for single-node container jobs.
515 */
516 instanceType?: String;
517 }
518 export interface ContainerSummary {
519 /**
520 * The exit code to return upon completion.
521 */
522 exitCode?: Integer;
523 /**
524 * A short (255 max characters) human-readable string to provide additional details about a running or stopped container.
525 */
526 reason?: String;
527 }
528 export interface CreateComputeEnvironmentRequest {
529 /**
530 * The name for your compute environment. Up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.
531 */
532 computeEnvironmentName: String;
533 /**
534 * The type of the compute environment. For more information, see Compute Environments in the AWS Batch User Guide.
535 */
536 type: CEType;
537 /**
538 * The state of the compute environment. If the state is ENABLED, then the compute environment accepts jobs from a queue and can scale out automatically based on queues.
539 */
540 state?: CEState;
541 /**
542 * Details of the compute resources managed by the compute environment. This parameter is required for managed compute environments.
543 */
544 computeResources?: ComputeResource;
545 /**
546 * The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf. If your specified role has a path other than /, then you must either specify the full role ARN (this is recommended) or prefix the role name with the path. Depending on how you created your AWS Batch service role, its ARN may contain the service-role path prefix. When you only specify the name of the service role, AWS Batch assumes that your ARN does not use the service-role path prefix. Because of this, we recommend that you specify the full ARN of your service role when you create compute environments.
547 */
548 serviceRole: String;
549 }
550 export interface CreateComputeEnvironmentResponse {
551 /**
552 * The name of the compute environment.
553 */
554 computeEnvironmentName?: String;
555 /**
556 * The Amazon Resource Name (ARN) of the compute environment.
557 */
558 computeEnvironmentArn?: String;
559 }
560 export interface CreateJobQueueRequest {
561 /**
562 * The name of the job queue.
563 */
564 jobQueueName: String;
565 /**
566 * The state of the job queue. If the job queue state is ENABLED, it is able to accept jobs.
567 */
568 state?: JQState;
569 /**
570 * The priority of the job queue. Job queues with a higher priority (or a higher integer value for the priority parameter) are evaluated first when associated with the same compute environment. Priority is determined in descending order, for example, a job queue with a priority value of 10 is given scheduling preference over a job queue with a priority value of 1.
571 */
572 priority: Integer;
573 /**
574 * The set of compute environments mapped to a job queue and their order relative to each other. The job scheduler uses this parameter to determine which compute environment should execute a given job. Compute environments must be in the VALID state before you can associate them with a job queue. You can associate up to three compute environments with a job queue.
575 */
576 computeEnvironmentOrder: ComputeEnvironmentOrders;
577 }
578 export interface CreateJobQueueResponse {
579 /**
580 * The name of the job queue.
581 */
582 jobQueueName: String;
583 /**
584 * The Amazon Resource Name (ARN) of the job queue.
585 */
586 jobQueueArn: String;
587 }
588 export interface DeleteComputeEnvironmentRequest {
589 /**
590 * The name or Amazon Resource Name (ARN) of the compute environment to delete.
591 */
592 computeEnvironment: String;
593 }
594 export interface DeleteComputeEnvironmentResponse {
595 }
596 export interface DeleteJobQueueRequest {
597 /**
598 * The short name or full Amazon Resource Name (ARN) of the queue to delete.
599 */
600 jobQueue: String;
601 }
602 export interface DeleteJobQueueResponse {
603 }
604 export interface DeregisterJobDefinitionRequest {
605 /**
606 * The name and revision (name:revision) or full Amazon Resource Name (ARN) of the job definition to deregister.
607 */
608 jobDefinition: String;
609 }
610 export interface DeregisterJobDefinitionResponse {
611 }
612 export interface DescribeComputeEnvironmentsRequest {
613 /**
614 * A list of up to 100 compute environment names or full Amazon Resource Name (ARN) entries.
615 */
616 computeEnvironments?: StringList;
617 /**
618 * The maximum number of cluster results returned by DescribeComputeEnvironments in paginated output. When this parameter is used, DescribeComputeEnvironments only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another DescribeComputeEnvironments request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then DescribeComputeEnvironments returns up to 100 results and a nextToken value if applicable.
619 */
620 maxResults?: Integer;
621 /**
622 * The nextToken value returned from a previous paginated DescribeComputeEnvironments request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return. This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
623 */
624 nextToken?: String;
625 }
626 export interface DescribeComputeEnvironmentsResponse {
627 /**
628 * The list of compute environments.
629 */
630 computeEnvironments?: ComputeEnvironmentDetailList;
631 /**
632 * The nextToken value to include in a future DescribeComputeEnvironments request. When the results of a DescribeJobDefinitions request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.
633 */
634 nextToken?: String;
635 }
636 export interface DescribeJobDefinitionsRequest {
637 /**
638 * A space-separated list of up to 100 job definition names or full Amazon Resource Name (ARN) entries.
639 */
640 jobDefinitions?: StringList;
641 /**
642 * The maximum number of results returned by DescribeJobDefinitions in paginated output. When this parameter is used, DescribeJobDefinitions only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another DescribeJobDefinitions request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then DescribeJobDefinitions returns up to 100 results and a nextToken value if applicable.
643 */
644 maxResults?: Integer;
645 /**
646 * The name of the job definition to describe.
647 */
648 jobDefinitionName?: String;
649 /**
650 * The status with which to filter job definitions.
651 */
652 status?: String;
653 /**
654 * The nextToken value returned from a previous paginated DescribeJobDefinitions request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return. This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
655 */
656 nextToken?: String;
657 }
658 export interface DescribeJobDefinitionsResponse {
659 /**
660 * The list of job definitions.
661 */
662 jobDefinitions?: JobDefinitionList;
663 /**
664 * The nextToken value to include in a future DescribeJobDefinitions request. When the results of a DescribeJobDefinitions request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.
665 */
666 nextToken?: String;
667 }
668 export interface DescribeJobQueuesRequest {
669 /**
670 * A list of up to 100 queue names or full queue Amazon Resource Name (ARN) entries.
671 */
672 jobQueues?: StringList;
673 /**
674 * The maximum number of results returned by DescribeJobQueues in paginated output. When this parameter is used, DescribeJobQueues only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another DescribeJobQueues request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then DescribeJobQueues returns up to 100 results and a nextToken value if applicable.
675 */
676 maxResults?: Integer;
677 /**
678 * The nextToken value returned from a previous paginated DescribeJobQueues request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return. This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
679 */
680 nextToken?: String;
681 }
682 export interface DescribeJobQueuesResponse {
683 /**
684 * The list of job queues.
685 */
686 jobQueues?: JobQueueDetailList;
687 /**
688 * The nextToken value to include in a future DescribeJobQueues request. When the results of a DescribeJobQueues request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.
689 */
690 nextToken?: String;
691 }
692 export interface DescribeJobsRequest {
693 /**
694 * A space-separated list of up to 100 job IDs.
695 */
696 jobs: StringList;
697 }
698 export interface DescribeJobsResponse {
699 /**
700 * The list of jobs.
701 */
702 jobs?: JobDetailList;
703 }
704 export type EnvironmentVariables = KeyValuePair[];
705 export interface Host {
706 /**
707 * The path on the host container instance that is presented to the container. If this parameter is empty, then the Docker daemon has assigned a host path for you. If the host parameter contains a sourcePath file location, then the data volume persists at the specified location on the host container instance until you delete it manually. If the sourcePath value does not exist on the host container instance, the Docker daemon creates it. If the location does exist, the contents of the source path folder are exported.
708 */
709 sourcePath?: String;
710 }
711 export type Integer = number;
712 export type JQState = "ENABLED"|"DISABLED"|string;
713 export type JQStatus = "CREATING"|"UPDATING"|"DELETING"|"DELETED"|"VALID"|"INVALID"|string;
714 export interface JobDefinition {
715 /**
716 * The name of the job definition.
717 */
718 jobDefinitionName: String;
719 /**
720 * The Amazon Resource Name (ARN) for the job definition.
721 */
722 jobDefinitionArn: String;
723 /**
724 * The revision of the job definition.
725 */
726 revision: Integer;
727 /**
728 * The status of the job definition.
729 */
730 status?: String;
731 /**
732 * The type of job definition.
733 */
734 type: String;
735 /**
736 * Default parameters or parameter substitution placeholders that are set in the job definition. Parameters are specified as a key-value pair mapping. Parameters in a SubmitJob request override any corresponding parameter defaults from the job definition.
737 */
738 parameters?: ParametersMap;
739 /**
740 * The retry strategy to use for failed jobs that are submitted with this job definition.
741 */
742 retryStrategy?: RetryStrategy;
743 /**
744 * An object with various properties specific to container-based jobs.
745 */
746 containerProperties?: ContainerProperties;
747 /**
748 * The timeout configuration for jobs that are submitted with this job definition. You can specify a timeout duration after which AWS Batch terminates your jobs if they have not finished.
749 */
750 timeout?: JobTimeout;
751 /**
752 * An object with various properties specific to multi-node parallel jobs.
753 */
754 nodeProperties?: NodeProperties;
755 }
756 export type JobDefinitionList = JobDefinition[];
757 export type JobDefinitionType = "container"|"multinode"|string;
758 export interface JobDependency {
759 /**
760 * The job ID of the AWS Batch job associated with this dependency.
761 */
762 jobId?: String;
763 /**
764 * The type of the job dependency.
765 */
766 type?: ArrayJobDependency;
767 }
768 export type JobDependencyList = JobDependency[];
769 export interface JobDetail {
770 /**
771 * The name of the job.
772 */
773 jobName: String;
774 /**
775 * The ID for the job.
776 */
777 jobId: String;
778 /**
779 * The Amazon Resource Name (ARN) of the job queue with which the job is associated.
780 */
781 jobQueue: String;
782 /**
783 * The current status for the job. If your jobs do not progress to STARTING, see Jobs Stuck in RUNNABLE Status in the troubleshooting section of the AWS Batch User Guide.
784 */
785 status: JobStatus;
786 /**
787 * A list of job attempts associated with this job.
788 */
789 attempts?: AttemptDetails;
790 /**
791 * A short, human-readable string to provide additional details about the current status of the job.
792 */
793 statusReason?: String;
794 /**
795 * The Unix timestamp (in seconds and milliseconds) for when the job was created. For non-array jobs and parent array jobs, this is when the job entered the SUBMITTED state (at the time SubmitJob was called). For array child jobs, this is when the child job was spawned by its parent and entered the PENDING state.
796 */
797 createdAt?: Long;
798 /**
799 * The retry strategy to use for this job if an attempt fails.
800 */
801 retryStrategy?: RetryStrategy;
802 /**
803 * The Unix timestamp (in seconds and milliseconds) for when the job was started (when the job transitioned from the STARTING state to the RUNNING state).
804 */
805 startedAt: Long;
806 /**
807 * The Unix timestamp (in seconds and milliseconds) for when the job was stopped (when the job transitioned from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED).
808 */
809 stoppedAt?: Long;
810 /**
811 * A list of job names or IDs on which this job depends.
812 */
813 dependsOn?: JobDependencyList;
814 /**
815 * The job definition that is used by this job.
816 */
817 jobDefinition: String;
818 /**
819 * Additional parameters passed to the job that replace parameter substitution placeholders or override any corresponding parameter defaults from the job definition.
820 */
821 parameters?: ParametersMap;
822 /**
823 * An object representing the details of the container that is associated with the job.
824 */
825 container?: ContainerDetail;
826 /**
827 * An object representing the details of a node that is associated with a multi-node parallel job.
828 */
829 nodeDetails?: NodeDetails;
830 /**
831 * An object representing the node properties of a multi-node parallel job.
832 */
833 nodeProperties?: NodeProperties;
834 /**
835 * The array properties of the job, if it is an array job.
836 */
837 arrayProperties?: ArrayPropertiesDetail;
838 /**
839 * The timeout configuration for the job.
840 */
841 timeout?: JobTimeout;
842 }
843 export type JobDetailList = JobDetail[];
844 export interface JobQueueDetail {
845 /**
846 * The name of the job queue.
847 */
848 jobQueueName: String;
849 /**
850 * The Amazon Resource Name (ARN) of the job queue.
851 */
852 jobQueueArn: String;
853 /**
854 * Describes the ability of the queue to accept new jobs.
855 */
856 state: JQState;
857 /**
858 * The status of the job queue (for example, CREATING or VALID).
859 */
860 status?: JQStatus;
861 /**
862 * A short, human-readable string to provide additional details about the current status of the job queue.
863 */
864 statusReason?: String;
865 /**
866 * The priority of the job queue.
867 */
868 priority: Integer;
869 /**
870 * The compute environments that are attached to the job queue and the order in which job placement is preferred. Compute environments are selected for job placement in ascending order.
871 */
872 computeEnvironmentOrder: ComputeEnvironmentOrders;
873 }
874 export type JobQueueDetailList = JobQueueDetail[];
875 export type JobStatus = "SUBMITTED"|"PENDING"|"RUNNABLE"|"STARTING"|"RUNNING"|"SUCCEEDED"|"FAILED"|string;
876 export interface JobSummary {
877 /**
878 * The ID of the job.
879 */
880 jobId: String;
881 /**
882 * The name of the job.
883 */
884 jobName: String;
885 /**
886 * The Unix timestamp for when the job was created. For non-array jobs and parent array jobs, this is when the job entered the SUBMITTED state (at the time SubmitJob was called). For array child jobs, this is when the child job was spawned by its parent and entered the PENDING state.
887 */
888 createdAt?: Long;
889 /**
890 * The current status for the job.
891 */
892 status?: JobStatus;
893 /**
894 * A short, human-readable string to provide additional details about the current status of the job.
895 */
896 statusReason?: String;
897 /**
898 * The Unix timestamp for when the job was started (when the job transitioned from the STARTING state to the RUNNING state).
899 */
900 startedAt?: Long;
901 /**
902 * The Unix timestamp for when the job was stopped (when the job transitioned from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED).
903 */
904 stoppedAt?: Long;
905 /**
906 * An object representing the details of the container that is associated with the job.
907 */
908 container?: ContainerSummary;
909 /**
910 * The array properties of the job, if it is an array job.
911 */
912 arrayProperties?: ArrayPropertiesSummary;
913 /**
914 * The node properties for a single node in a job summary list.
915 */
916 nodeProperties?: NodePropertiesSummary;
917 }
918 export type JobSummaryList = JobSummary[];
919 export interface JobTimeout {
920 /**
921 * The time duration in seconds (measured from the job attempt's startedAt timestamp) after which AWS Batch terminates your jobs if they have not finished.
922 */
923 attemptDurationSeconds?: Integer;
924 }
925 export interface KeyValuePair {
926 /**
927 * The name of the key-value pair. For environment variables, this is the name of the environment variable.
928 */
929 name?: String;
930 /**
931 * The value of the key-value pair. For environment variables, this is the value of the environment variable.
932 */
933 value?: String;
934 }
935 export interface LaunchTemplateSpecification {
936 /**
937 * The ID of the launch template.
938 */
939 launchTemplateId?: String;
940 /**
941 * The name of the launch template.
942 */
943 launchTemplateName?: String;
944 /**
945 * The version number of the launch template. Default: The default version of the launch template.
946 */
947 version?: String;
948 }
949 export interface ListJobsRequest {
950 /**
951 * The name or full Amazon Resource Name (ARN) of the job queue with which to list jobs.
952 */
953 jobQueue?: String;
954 /**
955 * The job ID for an array job. Specifying an array job ID with this parameter lists all child jobs from within the specified array.
956 */
957 arrayJobId?: String;
958 /**
959 * The job ID for a multi-node parallel job. Specifying a multi-node parallel job ID with this parameter lists all nodes that are associated with the specified job.
960 */
961 multiNodeJobId?: String;
962 /**
963 * The job status with which to filter jobs in the specified queue. If you do not specify a status, only RUNNING jobs are returned.
964 */
965 jobStatus?: JobStatus;
966 /**
967 * The maximum number of results returned by ListJobs in paginated output. When this parameter is used, ListJobs only returns maxResults results in a single page along with a nextToken response element. The remaining results of the initial request can be seen by sending another ListJobs request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListJobs returns up to 100 results and a nextToken value if applicable.
968 */
969 maxResults?: Integer;
970 /**
971 * The nextToken value returned from a previous paginated ListJobs request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return. This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
972 */
973 nextToken?: String;
974 }
975 export interface ListJobsResponse {
976 /**
977 * A list of job summaries that match the request.
978 */
979 jobSummaryList: JobSummaryList;
980 /**
981 * The nextToken value to include in a future ListJobs request. When the results of a ListJobs request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.
982 */
983 nextToken?: String;
984 }
985 export type Long = number;
986 export interface MountPoint {
987 /**
988 * The path on the container at which to mount the host volume.
989 */
990 containerPath?: String;
991 /**
992 * If this value is true, the container has read-only access to the volume; otherwise, the container can write to the volume. The default value is false.
993 */
994 readOnly?: Boolean;
995 /**
996 * The name of the volume to mount.
997 */
998 sourceVolume?: String;
999 }
1000 export type MountPoints = MountPoint[];
1001 export interface NetworkInterface {
1002 /**
1003 * The attachment ID for the network interface.
1004 */
1005 attachmentId?: String;
1006 /**
1007 * The private IPv6 address for the network interface.
1008 */
1009 ipv6Address?: String;
1010 /**
1011 * The private IPv4 address for the network interface.
1012 */
1013 privateIpv4Address?: String;
1014 }
1015 export type NetworkInterfaceList = NetworkInterface[];
1016 export interface NodeDetails {
1017 /**
1018 * The node index for the node. Node index numbering begins at zero. This index is also available on the node with the AWS_BATCH_JOB_NODE_INDEX environment variable.
1019 */
1020 nodeIndex?: Integer;
1021 /**
1022 * Specifies whether the current node is the main node for a multi-node parallel job.
1023 */
1024 isMainNode?: Boolean;
1025 }
1026 export interface NodeOverrides {
1027 /**
1028 * The node property overrides for the job.
1029 */
1030 nodePropertyOverrides?: NodePropertyOverrides;
1031 }
1032 export interface NodeProperties {
1033 /**
1034 * The number of nodes associated with a multi-node parallel job.
1035 */
1036 numNodes: Integer;
1037 /**
1038 * Specifies the node index for the main node of a multi-node parallel job.
1039 */
1040 mainNode: Integer;
1041 /**
1042 * A list of node ranges and their properties associated with a multi-node parallel job.
1043 */
1044 nodeRangeProperties: NodeRangeProperties;
1045 }
1046 export interface NodePropertiesSummary {
1047 /**
1048 * Specifies whether the current node is the main node for a multi-node parallel job.
1049 */
1050 isMainNode?: Boolean;
1051 /**
1052 * The number of nodes associated with a multi-node parallel job.
1053 */
1054 numNodes?: Integer;
1055 /**
1056 * The node index for the node. Node index numbering begins at zero. This index is also available on the node with the AWS_BATCH_JOB_NODE_INDEX environment variable.
1057 */
1058 nodeIndex?: Integer;
1059 }
1060 export interface NodePropertyOverride {
1061 /**
1062 * The range of nodes, using node index values, with which to override. A range of 0:3 indicates nodes with index values of 0 through 3. If the starting range value is omitted (:n), then 0 is used to start the range. If the ending range value is omitted (n:), then the highest possible node index is used to end the range.
1063 */
1064 targetNodes: String;
1065 /**
1066 * The overrides that should be sent to a node range.
1067 */
1068 containerOverrides?: ContainerOverrides;
1069 }
1070 export type NodePropertyOverrides = NodePropertyOverride[];
1071 export type NodeRangeProperties = NodeRangeProperty[];
1072 export interface NodeRangeProperty {
1073 /**
1074 * The range of nodes, using node index values. A range of 0:3 indicates nodes with index values of 0 through 3. If the starting range value is omitted (:n), then 0 is used to start the range. If the ending range value is omitted (n:), then the highest possible node index is used to end the range. Your accumulative node ranges must account for all nodes (0:n). You may nest node ranges, for example 0:10 and 4:5, in which case the 4:5 range properties override the 0:10 properties.
1075 */
1076 targetNodes: String;
1077 /**
1078 * The container details for the node range.
1079 */
1080 container?: ContainerProperties;
1081 }
1082 export type ParametersMap = {[key: string]: String};
1083 export interface RegisterJobDefinitionRequest {
1084 /**
1085 * The name of the job definition to register. Up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.
1086 */
1087 jobDefinitionName: String;
1088 /**
1089 * The type of job definition.
1090 */
1091 type: JobDefinitionType;
1092 /**
1093 * Default parameter substitution placeholders to set in the job definition. Parameters are specified as a key-value pair mapping. Parameters in a SubmitJob request override any corresponding parameter defaults from the job definition.
1094 */
1095 parameters?: ParametersMap;
1096 /**
1097 * An object with various properties specific to single-node container-based jobs. If the job definition's type parameter is container, then you must specify either containerProperties or nodeProperties.
1098 */
1099 containerProperties?: ContainerProperties;
1100 /**
1101 * An object with various properties specific to multi-node parallel jobs. If you specify node properties for a job, it becomes a multi-node parallel job. For more information, see Multi-node Parallel Jobs in the AWS Batch User Guide. If the job definition's type parameter is container, then you must specify either containerProperties or nodeProperties.
1102 */
1103 nodeProperties?: NodeProperties;
1104 /**
1105 * The retry strategy to use for failed jobs that are submitted with this job definition. Any retry strategy that is specified during a SubmitJob operation overrides the retry strategy defined here. If a job is terminated due to a timeout, it is not retried.
1106 */
1107 retryStrategy?: RetryStrategy;
1108 /**
1109 * The timeout configuration for jobs that are submitted with this job definition, after which AWS Batch terminates your jobs if they have not finished. If a job is terminated due to a timeout, it is not retried. The minimum value for the timeout is 60 seconds. Any timeout configuration that is specified during a SubmitJob operation overrides the timeout configuration defined here. For more information, see Job Timeouts in the Amazon Elastic Container Service Developer Guide.
1110 */
1111 timeout?: JobTimeout;
1112 }
1113 export interface RegisterJobDefinitionResponse {
1114 /**
1115 * The name of the job definition.
1116 */
1117 jobDefinitionName: String;
1118 /**
1119 * The Amazon Resource Name (ARN) of the job definition.
1120 */
1121 jobDefinitionArn: String;
1122 /**
1123 * The revision of the job definition.
1124 */
1125 revision: Integer;
1126 }
1127 export interface RetryStrategy {
1128 /**
1129 * The number of times to move a job to the RUNNABLE status. You may specify between 1 and 10 attempts. If the value of attempts is greater than one, the job is retried on failure the same number of attempts as the value.
1130 */
1131 attempts?: Integer;
1132 }
1133 export type String = string;
1134 export type StringList = String[];
1135 export interface SubmitJobRequest {
1136 /**
1137 * The name of the job. The first character must be alphanumeric, and up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.
1138 */
1139 jobName: String;
1140 /**
1141 * The job queue into which the job is submitted. You can specify either the name or the Amazon Resource Name (ARN) of the queue.
1142 */
1143 jobQueue: String;
1144 /**
1145 * The array properties for the submitted job, such as the size of the array. The array size can be between 2 and 10,000. If you specify array properties for a job, it becomes an array job. For more information, see Array Jobs in the AWS Batch User Guide.
1146 */
1147 arrayProperties?: ArrayProperties;
1148 /**
1149 * A list of dependencies for the job. A job can depend upon a maximum of 20 jobs. You can specify a SEQUENTIAL type dependency without specifying a job ID for array jobs so that each child array job completes sequentially, starting at index 0. You can also specify an N_TO_N type dependency with a job ID for array jobs. In that case, each index child of this job must wait for the corresponding index child of each dependency to complete before it can begin.
1150 */
1151 dependsOn?: JobDependencyList;
1152 /**
1153 * The job definition used by this job. This value can be either a name:revision or the Amazon Resource Name (ARN) for the job definition.
1154 */
1155 jobDefinition: String;
1156 /**
1157 * Additional parameters passed to the job that replace parameter substitution placeholders that are set in the job definition. Parameters are specified as a key and value pair mapping. Parameters in a SubmitJob request override any corresponding parameter defaults from the job definition.
1158 */
1159 parameters?: ParametersMap;
1160 /**
1161 * A list of container overrides in JSON format that specify the name of a container in the specified job definition and the overrides it should receive. You can override the default command for a container (that is specified in the job definition or the Docker image) with a command override. You can also override existing environment variables (that are specified in the job definition or Docker image) on a container or add new environment variables to it with an environment override.
1162 */
1163 containerOverrides?: ContainerOverrides;
1164 /**
1165 * A list of node overrides in JSON format that specify the node range to target and the container overrides for that node range.
1166 */
1167 nodeOverrides?: NodeOverrides;
1168 /**
1169 * The retry strategy to use for failed jobs from this SubmitJob operation. When a retry strategy is specified here, it overrides the retry strategy defined in the job definition.
1170 */
1171 retryStrategy?: RetryStrategy;
1172 /**
1173 * The timeout configuration for this SubmitJob operation. You can specify a timeout duration after which AWS Batch terminates your jobs if they have not finished. If a job is terminated due to a timeout, it is not retried. The minimum value for the timeout is 60 seconds. This configuration overrides any timeout configuration specified in the job definition. For array jobs, child jobs have the same timeout configuration as the parent job. For more information, see Job Timeouts in the Amazon Elastic Container Service Developer Guide.
1174 */
1175 timeout?: JobTimeout;
1176 }
1177 export interface SubmitJobResponse {
1178 /**
1179 * The name of the job.
1180 */
1181 jobName: String;
1182 /**
1183 * The unique identifier for the job.
1184 */
1185 jobId: String;
1186 }
1187 export type TagsMap = {[key: string]: String};
1188 export interface TerminateJobRequest {
1189 /**
1190 * The AWS Batch job ID of the job to terminate.
1191 */
1192 jobId: String;
1193 /**
1194 * A message to attach to the job that explains the reason for canceling it. This message is returned by future DescribeJobs operations on the job. This message is also recorded in the AWS Batch activity logs.
1195 */
1196 reason: String;
1197 }
1198 export interface TerminateJobResponse {
1199 }
1200 export interface Ulimit {
1201 /**
1202 * The hard limit for the ulimit type.
1203 */
1204 hardLimit: Integer;
1205 /**
1206 * The type of the ulimit.
1207 */
1208 name: String;
1209 /**
1210 * The soft limit for the ulimit type.
1211 */
1212 softLimit: Integer;
1213 }
1214 export type Ulimits = Ulimit[];
1215 export interface UpdateComputeEnvironmentRequest {
1216 /**
1217 * The name or full Amazon Resource Name (ARN) of the compute environment to update.
1218 */
1219 computeEnvironment: String;
1220 /**
1221 * The state of the compute environment. Compute environments in the ENABLED state can accept jobs from a queue and scale in or out automatically based on the workload demand of its associated queues.
1222 */
1223 state?: CEState;
1224 /**
1225 * Details of the compute resources managed by the compute environment. Required for a managed compute environment.
1226 */
1227 computeResources?: ComputeResourceUpdate;
1228 /**
1229 * The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf. If your specified role has a path other than /, then you must either specify the full role ARN (this is recommended) or prefix the role name with the path. Depending on how you created your AWS Batch service role, its ARN may contain the service-role path prefix. When you only specify the name of the service role, AWS Batch assumes that your ARN does not use the service-role path prefix. Because of this, we recommend that you specify the full ARN of your service role when you create compute environments.
1230 */
1231 serviceRole?: String;
1232 }
1233 export interface UpdateComputeEnvironmentResponse {
1234 /**
1235 * The name of the compute environment.
1236 */
1237 computeEnvironmentName?: String;
1238 /**
1239 * The Amazon Resource Name (ARN) of the compute environment.
1240 */
1241 computeEnvironmentArn?: String;
1242 }
1243 export interface UpdateJobQueueRequest {
1244 /**
1245 * The name or the Amazon Resource Name (ARN) of the job queue.
1246 */
1247 jobQueue: String;
1248 /**
1249 * Describes the queue's ability to accept new jobs.
1250 */
1251 state?: JQState;
1252 /**
1253 * The priority of the job queue. Job queues with a higher priority (or a higher integer value for the priority parameter) are evaluated first when associated with the same compute environment. Priority is determined in descending order, for example, a job queue with a priority value of 10 is given scheduling preference over a job queue with a priority value of 1.
1254 */
1255 priority?: Integer;
1256 /**
1257 * Details the set of compute environments mapped to a job queue and their order relative to each other. This is one of the parameters used by the job scheduler to determine which compute environment should execute a given job.
1258 */
1259 computeEnvironmentOrder?: ComputeEnvironmentOrders;
1260 }
1261 export interface UpdateJobQueueResponse {
1262 /**
1263 * The name of the job queue.
1264 */
1265 jobQueueName?: String;
1266 /**
1267 * The Amazon Resource Name (ARN) of the job queue.
1268 */
1269 jobQueueArn?: String;
1270 }
1271 export interface Volume {
1272 /**
1273 * The contents of the host parameter determine whether your data volume persists on the host container instance and where it is stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume. However, the data is not guaranteed to persist after the containers associated with it stop running.
1274 */
1275 host?: Host;
1276 /**
1277 * The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. This name is referenced in the sourceVolume parameter of container definition mountPoints.
1278 */
1279 name?: String;
1280 }
1281 export type Volumes = Volume[];
1282 /**
1283 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
1284 */
1285 export type apiVersion = "2016-08-10"|"latest"|string;
1286 export interface ClientApiVersions {
1287 /**
1288 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
1289 */
1290 apiVersion?: apiVersion;
1291 }
1292 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
1293 /**
1294 * Contains interfaces for use with the Batch client.
1295 */
1296 export import Types = Batch;
1297}
1298export = Batch;