UNPKG

76.3 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. Job definitions will be permanently deleted after 180 days.
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. Job definitions will be permanently deleted after 180 days.
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 CRAllocationStrategy = "BEST_FIT"|"BEST_FIT_PROGRESSIVE"|"SPOT_CAPACITY_OPTIMIZED"|string;
226 export type CRType = "EC2"|"SPOT"|string;
227 export interface CancelJobRequest {
228 /**
229 * The AWS Batch job ID of the job to cancel.
230 */
231 jobId: String;
232 /**
233 * 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.
234 */
235 reason: String;
236 }
237 export interface CancelJobResponse {
238 }
239 export interface ComputeEnvironmentDetail {
240 /**
241 * The name of the compute environment.
242 */
243 computeEnvironmentName: String;
244 /**
245 * The Amazon Resource Name (ARN) of the compute environment.
246 */
247 computeEnvironmentArn: String;
248 /**
249 * The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster used by the compute environment.
250 */
251 ecsClusterArn: String;
252 /**
253 * The type of the compute environment.
254 */
255 type?: CEType;
256 /**
257 * 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.
258 */
259 state?: CEState;
260 /**
261 * The current status of the compute environment (for example, CREATING or VALID).
262 */
263 status?: CEStatus;
264 /**
265 * A short, human-readable string to provide additional details about the current status of the compute environment.
266 */
267 statusReason?: String;
268 /**
269 * The compute resources defined for the compute environment.
270 */
271 computeResources?: ComputeResource;
272 /**
273 * The service role associated with the compute environment that allows AWS Batch to make calls to AWS API operations on your behalf.
274 */
275 serviceRole?: String;
276 }
277 export type ComputeEnvironmentDetailList = ComputeEnvironmentDetail[];
278 export interface ComputeEnvironmentOrder {
279 /**
280 * The order of the compute environment.
281 */
282 order: Integer;
283 /**
284 * The Amazon Resource Name (ARN) of the compute environment.
285 */
286 computeEnvironment: String;
287 }
288 export type ComputeEnvironmentOrders = ComputeEnvironmentOrder[];
289 export interface ComputeResource {
290 /**
291 * The type of compute environment: EC2 or SPOT.
292 */
293 type: CRType;
294 /**
295 * The allocation strategy to use for the compute resource in case not enough instances of the best fitting instance type can be allocated. This could be due to availability of the instance type in the region or Amazon EC2 service limits. If this is not specified, the default is BEST_FIT, which will use only the best fitting instance type, waiting for additional capacity if it's not available. This allocation strategy keeps costs lower but can limit scaling. If you are using Spot Fleets with BEST_FIT then the Spot Fleet IAM Role must be specified. BEST_FIT_PROGRESSIVE will select additional instance types that are large enough to meet the requirements of the jobs in the queue, with a preference for instance types with a lower cost per vCPU. SPOT_CAPACITY_OPTIMIZED is only available for Spot Instance compute resources and will select additional instance types that are large enough to meet the requirements of the jobs in the queue, with a preference for instance types that are less likely to be interrupted. For more information, see Allocation Strategies in the AWS Batch User Guide.
296 */
297 allocationStrategy?: CRAllocationStrategy;
298 /**
299 * The minimum number of Amazon EC2 vCPUs that an environment should maintain (even if the compute environment is DISABLED).
300 */
301 minvCpus: Integer;
302 /**
303 * The maximum number of Amazon EC2 vCPUs that an environment can reach.
304 */
305 maxvCpus: Integer;
306 /**
307 * The desired number of Amazon EC2 vCPUS in the compute environment.
308 */
309 desiredvCpus?: Integer;
310 /**
311 * The instances types that may be launched. You can specify instance families to launch any instance type within those families (for example, c5 or p3), or you can specify specific sizes within a family (such as c5.8xlarge). You can also choose optimal to pick instance types (from the C, M, and R instance families) on the fly that match the demand of your job queues.
312 */
313 instanceTypes: StringList;
314 /**
315 * The Amazon Machine Image (AMI) ID used for instances launched in the compute environment.
316 */
317 imageId?: String;
318 /**
319 * The VPC subnets into which the compute resources are launched. For more information, see VPCs and Subnets in the Amazon VPC User Guide.
320 */
321 subnets: StringList;
322 /**
323 * The Amazon EC2 security groups associated with instances launched in the compute environment. One or more security groups must be specified, either in securityGroupIds or using a launch template referenced in launchTemplate. If security groups are specified using both securityGroupIds and launchTemplate, the values in securityGroupIds will be used.
324 */
325 securityGroupIds?: StringList;
326 /**
327 * The Amazon EC2 key pair that is used for instances launched in the compute environment.
328 */
329 ec2KeyPair?: String;
330 /**
331 * 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.
332 */
333 instanceRole: String;
334 /**
335 * Key-value pair tags to be applied to resources that are launched in the compute environment. For AWS Batch, these take the form of "String1": "String2", where String1 is the tag key and String2 is the tag value—for example, { "Name": "AWS Batch Instance - C4OnDemand" }.
336 */
337 tags?: TagsMap;
338 /**
339 * 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.
340 */
341 placementGroup?: String;
342 /**
343 * 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 Amazon 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.
344 */
345 bidPercentage?: Integer;
346 /**
347 * The Amazon Resource Name (ARN) of the Amazon EC2 Spot Fleet IAM role applied to a SPOT compute environment. This role is required if the allocation strategy set to BEST_FIT or if the allocation strategy is not specified. For more information, see Amazon EC2 Spot Fleet Role in the AWS Batch User Guide.
348 */
349 spotIamFleetRole?: String;
350 /**
351 * 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. For more information, see Launch Template Support in the AWS Batch User Guide.
352 */
353 launchTemplate?: LaunchTemplateSpecification;
354 }
355 export interface ComputeResourceUpdate {
356 /**
357 * The minimum number of Amazon EC2 vCPUs that an environment should maintain.
358 */
359 minvCpus?: Integer;
360 /**
361 * The maximum number of Amazon EC2 vCPUs that an environment can reach.
362 */
363 maxvCpus?: Integer;
364 /**
365 * The desired number of Amazon EC2 vCPUS in the compute environment.
366 */
367 desiredvCpus?: Integer;
368 }
369 export interface ContainerDetail {
370 /**
371 * The image used to start the container.
372 */
373 image?: String;
374 /**
375 * The number of VCPUs allocated for the job.
376 */
377 vcpus?: Integer;
378 /**
379 * The number of MiB of memory reserved for the job.
380 */
381 memory?: Integer;
382 /**
383 * The command that is passed to the container.
384 */
385 command?: StringList;
386 /**
387 * The Amazon Resource Name (ARN) associated with the job upon execution.
388 */
389 jobRoleArn?: String;
390 /**
391 * A list of volumes associated with the job.
392 */
393 volumes?: Volumes;
394 /**
395 * 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.
396 */
397 environment?: EnvironmentVariables;
398 /**
399 * The mount points for data volumes in your container.
400 */
401 mountPoints?: MountPoints;
402 /**
403 * When this parameter is true, the container is given read-only access to its root file system.
404 */
405 readonlyRootFilesystem?: Boolean;
406 /**
407 * A list of ulimit values to set in the container.
408 */
409 ulimits?: Ulimits;
410 /**
411 * When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user).
412 */
413 privileged?: Boolean;
414 /**
415 * The user name to use inside the container.
416 */
417 user?: String;
418 /**
419 * The exit code to return upon completion.
420 */
421 exitCode?: Integer;
422 /**
423 * A short (255 max characters) human-readable string to provide additional details about a running or stopped container.
424 */
425 reason?: String;
426 /**
427 * The Amazon Resource Name (ARN) of the container instance on which the container is running.
428 */
429 containerInstanceArn?: String;
430 /**
431 * 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.
432 */
433 taskArn?: String;
434 /**
435 * 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.
436 */
437 logStreamName?: String;
438 /**
439 * The instance type of the underlying host infrastructure of a multi-node parallel job.
440 */
441 instanceType?: String;
442 /**
443 * The network interfaces associated with the job.
444 */
445 networkInterfaces?: NetworkInterfaceList;
446 /**
447 * The type and amount of a resource to assign to a container. Currently, the only supported resource is GPU.
448 */
449 resourceRequirements?: ResourceRequirements;
450 /**
451 * Linux-specific modifications that are applied to the container, such as details for device mappings.
452 */
453 linuxParameters?: LinuxParameters;
454 }
455 export interface ContainerOverrides {
456 /**
457 * The number of vCPUs to reserve for the container. This value overrides the value set in the job definition.
458 */
459 vcpus?: Integer;
460 /**
461 * The number of MiB of memory reserved for the job. This value overrides the value set in the job definition.
462 */
463 memory?: Integer;
464 /**
465 * The command to send to the container that overrides the default command from the Docker image or the job definition.
466 */
467 command?: StringList;
468 /**
469 * The instance type to use for a multi-node parallel job. This parameter is not valid for single-node container jobs.
470 */
471 instanceType?: String;
472 /**
473 * 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.
474 */
475 environment?: EnvironmentVariables;
476 /**
477 * The type and amount of a resource to assign to a container. This value overrides the value set in the job definition. Currently, the only supported resource is GPU.
478 */
479 resourceRequirements?: ResourceRequirements;
480 }
481 export interface ContainerProperties {
482 /**
483 * 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).
484 */
485 image?: String;
486 /**
487 * 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.
488 */
489 vcpus?: Integer;
490 /**
491 * 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.
492 */
493 memory?: Integer;
494 /**
495 * 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.
496 */
497 command?: StringList;
498 /**
499 * The Amazon Resource Name (ARN) of the IAM role that the container can assume for AWS permissions.
500 */
501 jobRoleArn?: String;
502 /**
503 * A list of data volumes used in a job.
504 */
505 volumes?: Volumes;
506 /**
507 * 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.
508 */
509 environment?: EnvironmentVariables;
510 /**
511 * 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.
512 */
513 mountPoints?: MountPoints;
514 /**
515 * 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.
516 */
517 readonlyRootFilesystem?: Boolean;
518 /**
519 * 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.
520 */
521 privileged?: Boolean;
522 /**
523 * 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.
524 */
525 ulimits?: Ulimits;
526 /**
527 * 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.
528 */
529 user?: String;
530 /**
531 * 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.
532 */
533 instanceType?: String;
534 /**
535 * The type and amount of a resource to assign to a container. Currently, the only supported resource is GPU.
536 */
537 resourceRequirements?: ResourceRequirements;
538 /**
539 * Linux-specific modifications that are applied to the container, such as details for device mappings.
540 */
541 linuxParameters?: LinuxParameters;
542 }
543 export interface ContainerSummary {
544 /**
545 * The exit code to return upon completion.
546 */
547 exitCode?: Integer;
548 /**
549 * A short (255 max characters) human-readable string to provide additional details about a running or stopped container.
550 */
551 reason?: String;
552 }
553 export interface CreateComputeEnvironmentRequest {
554 /**
555 * The name for your compute environment. Up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.
556 */
557 computeEnvironmentName: String;
558 /**
559 * The type of the compute environment. For more information, see Compute Environments in the AWS Batch User Guide.
560 */
561 type: CEType;
562 /**
563 * 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.
564 */
565 state?: CEState;
566 /**
567 * Details of the compute resources managed by the compute environment. This parameter is required for managed compute environments. For more information, see Compute Environments in the AWS Batch User Guide.
568 */
569 computeResources?: ComputeResource;
570 /**
571 * 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.
572 */
573 serviceRole: String;
574 }
575 export interface CreateComputeEnvironmentResponse {
576 /**
577 * The name of the compute environment.
578 */
579 computeEnvironmentName?: String;
580 /**
581 * The Amazon Resource Name (ARN) of the compute environment.
582 */
583 computeEnvironmentArn?: String;
584 }
585 export interface CreateJobQueueRequest {
586 /**
587 * The name of the job queue.
588 */
589 jobQueueName: String;
590 /**
591 * The state of the job queue. If the job queue state is ENABLED, it is able to accept jobs.
592 */
593 state?: JQState;
594 /**
595 * 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.
596 */
597 priority: Integer;
598 /**
599 * 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.
600 */
601 computeEnvironmentOrder: ComputeEnvironmentOrders;
602 }
603 export interface CreateJobQueueResponse {
604 /**
605 * The name of the job queue.
606 */
607 jobQueueName: String;
608 /**
609 * The Amazon Resource Name (ARN) of the job queue.
610 */
611 jobQueueArn: String;
612 }
613 export interface DeleteComputeEnvironmentRequest {
614 /**
615 * The name or Amazon Resource Name (ARN) of the compute environment to delete.
616 */
617 computeEnvironment: String;
618 }
619 export interface DeleteComputeEnvironmentResponse {
620 }
621 export interface DeleteJobQueueRequest {
622 /**
623 * The short name or full Amazon Resource Name (ARN) of the queue to delete.
624 */
625 jobQueue: String;
626 }
627 export interface DeleteJobQueueResponse {
628 }
629 export interface DeregisterJobDefinitionRequest {
630 /**
631 * The name and revision (name:revision) or full Amazon Resource Name (ARN) of the job definition to deregister.
632 */
633 jobDefinition: String;
634 }
635 export interface DeregisterJobDefinitionResponse {
636 }
637 export interface DescribeComputeEnvironmentsRequest {
638 /**
639 * A list of up to 100 compute environment names or full Amazon Resource Name (ARN) entries.
640 */
641 computeEnvironments?: StringList;
642 /**
643 * 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.
644 */
645 maxResults?: Integer;
646 /**
647 * 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.
648 */
649 nextToken?: String;
650 }
651 export interface DescribeComputeEnvironmentsResponse {
652 /**
653 * The list of compute environments.
654 */
655 computeEnvironments?: ComputeEnvironmentDetailList;
656 /**
657 * 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.
658 */
659 nextToken?: String;
660 }
661 export interface DescribeJobDefinitionsRequest {
662 /**
663 * A list of up to 100 job definition names or full Amazon Resource Name (ARN) entries.
664 */
665 jobDefinitions?: StringList;
666 /**
667 * 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.
668 */
669 maxResults?: Integer;
670 /**
671 * The name of the job definition to describe.
672 */
673 jobDefinitionName?: String;
674 /**
675 * The status with which to filter job definitions.
676 */
677 status?: String;
678 /**
679 * 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.
680 */
681 nextToken?: String;
682 }
683 export interface DescribeJobDefinitionsResponse {
684 /**
685 * The list of job definitions.
686 */
687 jobDefinitions?: JobDefinitionList;
688 /**
689 * 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.
690 */
691 nextToken?: String;
692 }
693 export interface DescribeJobQueuesRequest {
694 /**
695 * A list of up to 100 queue names or full queue Amazon Resource Name (ARN) entries.
696 */
697 jobQueues?: StringList;
698 /**
699 * 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.
700 */
701 maxResults?: Integer;
702 /**
703 * 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.
704 */
705 nextToken?: String;
706 }
707 export interface DescribeJobQueuesResponse {
708 /**
709 * The list of job queues.
710 */
711 jobQueues?: JobQueueDetailList;
712 /**
713 * 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.
714 */
715 nextToken?: String;
716 }
717 export interface DescribeJobsRequest {
718 /**
719 * A list of up to 100 job IDs.
720 */
721 jobs: StringList;
722 }
723 export interface DescribeJobsResponse {
724 /**
725 * The list of jobs.
726 */
727 jobs?: JobDetailList;
728 }
729 export interface Device {
730 /**
731 * The path for the device on the host container instance.
732 */
733 hostPath: String;
734 /**
735 * The path inside the container at which to expose the host device. By default the hostPath value is used.
736 */
737 containerPath?: String;
738 /**
739 * The explicit permissions to provide to the container for the device. By default, the container has permissions for read, write, and mknod for the device.
740 */
741 permissions?: DeviceCgroupPermissions;
742 }
743 export type DeviceCgroupPermission = "READ"|"WRITE"|"MKNOD"|string;
744 export type DeviceCgroupPermissions = DeviceCgroupPermission[];
745 export type DevicesList = Device[];
746 export type EnvironmentVariables = KeyValuePair[];
747 export interface Host {
748 /**
749 * 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 this parameter contains a file location, then the data volume persists at the specified location on the host container instance until you delete it manually. If the source path location 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.
750 */
751 sourcePath?: String;
752 }
753 export type Integer = number;
754 export type JQState = "ENABLED"|"DISABLED"|string;
755 export type JQStatus = "CREATING"|"UPDATING"|"DELETING"|"DELETED"|"VALID"|"INVALID"|string;
756 export interface JobDefinition {
757 /**
758 * The name of the job definition.
759 */
760 jobDefinitionName: String;
761 /**
762 * The Amazon Resource Name (ARN) for the job definition.
763 */
764 jobDefinitionArn: String;
765 /**
766 * The revision of the job definition.
767 */
768 revision: Integer;
769 /**
770 * The status of the job definition.
771 */
772 status?: String;
773 /**
774 * The type of job definition.
775 */
776 type: String;
777 /**
778 * 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. For more information about specifying parameters, see Job Definition Parameters in the AWS Batch User Guide.
779 */
780 parameters?: ParametersMap;
781 /**
782 * The retry strategy to use for failed jobs that are submitted with this job definition.
783 */
784 retryStrategy?: RetryStrategy;
785 /**
786 * An object with various properties specific to container-based jobs.
787 */
788 containerProperties?: ContainerProperties;
789 /**
790 * 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.
791 */
792 timeout?: JobTimeout;
793 /**
794 * An object with various properties specific to multi-node parallel jobs.
795 */
796 nodeProperties?: NodeProperties;
797 }
798 export type JobDefinitionList = JobDefinition[];
799 export type JobDefinitionType = "container"|"multinode"|string;
800 export interface JobDependency {
801 /**
802 * The job ID of the AWS Batch job associated with this dependency.
803 */
804 jobId?: String;
805 /**
806 * The type of the job dependency.
807 */
808 type?: ArrayJobDependency;
809 }
810 export type JobDependencyList = JobDependency[];
811 export interface JobDetail {
812 /**
813 * The name of the job.
814 */
815 jobName: String;
816 /**
817 * The ID for the job.
818 */
819 jobId: String;
820 /**
821 * The Amazon Resource Name (ARN) of the job queue with which the job is associated.
822 */
823 jobQueue: String;
824 /**
825 * 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.
826 */
827 status: JobStatus;
828 /**
829 * A list of job attempts associated with this job.
830 */
831 attempts?: AttemptDetails;
832 /**
833 * A short, human-readable string to provide additional details about the current status of the job.
834 */
835 statusReason?: String;
836 /**
837 * 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.
838 */
839 createdAt?: Long;
840 /**
841 * The retry strategy to use for this job if an attempt fails.
842 */
843 retryStrategy?: RetryStrategy;
844 /**
845 * 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).
846 */
847 startedAt: Long;
848 /**
849 * 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).
850 */
851 stoppedAt?: Long;
852 /**
853 * A list of job IDs on which this job depends.
854 */
855 dependsOn?: JobDependencyList;
856 /**
857 * The job definition that is used by this job.
858 */
859 jobDefinition: String;
860 /**
861 * Additional parameters passed to the job that replace parameter substitution placeholders or override any corresponding parameter defaults from the job definition.
862 */
863 parameters?: ParametersMap;
864 /**
865 * An object representing the details of the container that is associated with the job.
866 */
867 container?: ContainerDetail;
868 /**
869 * An object representing the details of a node that is associated with a multi-node parallel job.
870 */
871 nodeDetails?: NodeDetails;
872 /**
873 * An object representing the node properties of a multi-node parallel job.
874 */
875 nodeProperties?: NodeProperties;
876 /**
877 * The array properties of the job, if it is an array job.
878 */
879 arrayProperties?: ArrayPropertiesDetail;
880 /**
881 * The timeout configuration for the job.
882 */
883 timeout?: JobTimeout;
884 }
885 export type JobDetailList = JobDetail[];
886 export interface JobQueueDetail {
887 /**
888 * The name of the job queue.
889 */
890 jobQueueName: String;
891 /**
892 * The Amazon Resource Name (ARN) of the job queue.
893 */
894 jobQueueArn: String;
895 /**
896 * Describes the ability of the queue to accept new jobs.
897 */
898 state: JQState;
899 /**
900 * The status of the job queue (for example, CREATING or VALID).
901 */
902 status?: JQStatus;
903 /**
904 * A short, human-readable string to provide additional details about the current status of the job queue.
905 */
906 statusReason?: String;
907 /**
908 * The priority of the job queue.
909 */
910 priority: Integer;
911 /**
912 * 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.
913 */
914 computeEnvironmentOrder: ComputeEnvironmentOrders;
915 }
916 export type JobQueueDetailList = JobQueueDetail[];
917 export type JobStatus = "SUBMITTED"|"PENDING"|"RUNNABLE"|"STARTING"|"RUNNING"|"SUCCEEDED"|"FAILED"|string;
918 export interface JobSummary {
919 /**
920 * The ID of the job.
921 */
922 jobId: String;
923 /**
924 * The name of the job.
925 */
926 jobName: String;
927 /**
928 * 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.
929 */
930 createdAt?: Long;
931 /**
932 * The current status for the job.
933 */
934 status?: JobStatus;
935 /**
936 * A short, human-readable string to provide additional details about the current status of the job.
937 */
938 statusReason?: String;
939 /**
940 * The Unix timestamp for when the job was started (when the job transitioned from the STARTING state to the RUNNING state).
941 */
942 startedAt?: Long;
943 /**
944 * 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).
945 */
946 stoppedAt?: Long;
947 /**
948 * An object representing the details of the container that is associated with the job.
949 */
950 container?: ContainerSummary;
951 /**
952 * The array properties of the job, if it is an array job.
953 */
954 arrayProperties?: ArrayPropertiesSummary;
955 /**
956 * The node properties for a single node in a job summary list.
957 */
958 nodeProperties?: NodePropertiesSummary;
959 }
960 export type JobSummaryList = JobSummary[];
961 export interface JobTimeout {
962 /**
963 * 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.
964 */
965 attemptDurationSeconds?: Integer;
966 }
967 export interface KeyValuePair {
968 /**
969 * The name of the key-value pair. For environment variables, this is the name of the environment variable.
970 */
971 name?: String;
972 /**
973 * The value of the key-value pair. For environment variables, this is the value of the environment variable.
974 */
975 value?: String;
976 }
977 export interface LaunchTemplateSpecification {
978 /**
979 * The ID of the launch template.
980 */
981 launchTemplateId?: String;
982 /**
983 * The name of the launch template.
984 */
985 launchTemplateName?: String;
986 /**
987 * The version number of the launch template. Default: The default version of the launch template.
988 */
989 version?: String;
990 }
991 export interface LinuxParameters {
992 /**
993 * Any host devices to expose to the container. This parameter maps to Devices in the Create a container section of the Docker Remote API and the --device option to docker run.
994 */
995 devices?: DevicesList;
996 }
997 export interface ListJobsRequest {
998 /**
999 * The name or full Amazon Resource Name (ARN) of the job queue with which to list jobs.
1000 */
1001 jobQueue?: String;
1002 /**
1003 * The job ID for an array job. Specifying an array job ID with this parameter lists all child jobs from within the specified array.
1004 */
1005 arrayJobId?: String;
1006 /**
1007 * 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.
1008 */
1009 multiNodeJobId?: String;
1010 /**
1011 * The job status with which to filter jobs in the specified queue. If you do not specify a status, only RUNNING jobs are returned.
1012 */
1013 jobStatus?: JobStatus;
1014 /**
1015 * 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.
1016 */
1017 maxResults?: Integer;
1018 /**
1019 * 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.
1020 */
1021 nextToken?: String;
1022 }
1023 export interface ListJobsResponse {
1024 /**
1025 * A list of job summaries that match the request.
1026 */
1027 jobSummaryList: JobSummaryList;
1028 /**
1029 * 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.
1030 */
1031 nextToken?: String;
1032 }
1033 export type Long = number;
1034 export interface MountPoint {
1035 /**
1036 * The path on the container at which to mount the host volume.
1037 */
1038 containerPath?: String;
1039 /**
1040 * 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.
1041 */
1042 readOnly?: Boolean;
1043 /**
1044 * The name of the volume to mount.
1045 */
1046 sourceVolume?: String;
1047 }
1048 export type MountPoints = MountPoint[];
1049 export interface NetworkInterface {
1050 /**
1051 * The attachment ID for the network interface.
1052 */
1053 attachmentId?: String;
1054 /**
1055 * The private IPv6 address for the network interface.
1056 */
1057 ipv6Address?: String;
1058 /**
1059 * The private IPv4 address for the network interface.
1060 */
1061 privateIpv4Address?: String;
1062 }
1063 export type NetworkInterfaceList = NetworkInterface[];
1064 export interface NodeDetails {
1065 /**
1066 * 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.
1067 */
1068 nodeIndex?: Integer;
1069 /**
1070 * Specifies whether the current node is the main node for a multi-node parallel job.
1071 */
1072 isMainNode?: Boolean;
1073 }
1074 export interface NodeOverrides {
1075 /**
1076 * The number of nodes to use with a multi-node parallel job. This value overrides the number of nodes that are specified in the job definition. To use this override: There must be at least one node range in your job definition that has an open upper boundary (such as : or n:). The lower boundary of the node range specified in the job definition must be fewer than the number of nodes specified in the override. The main node index specified in the job definition must be fewer than the number of nodes specified in the override.
1077 */
1078 numNodes?: Integer;
1079 /**
1080 * The node property overrides for the job.
1081 */
1082 nodePropertyOverrides?: NodePropertyOverrides;
1083 }
1084 export interface NodeProperties {
1085 /**
1086 * The number of nodes associated with a multi-node parallel job.
1087 */
1088 numNodes: Integer;
1089 /**
1090 * Specifies the node index for the main node of a multi-node parallel job. This node index value must be fewer than the number of nodes.
1091 */
1092 mainNode: Integer;
1093 /**
1094 * A list of node ranges and their properties associated with a multi-node parallel job.
1095 */
1096 nodeRangeProperties: NodeRangeProperties;
1097 }
1098 export interface NodePropertiesSummary {
1099 /**
1100 * Specifies whether the current node is the main node for a multi-node parallel job.
1101 */
1102 isMainNode?: Boolean;
1103 /**
1104 * The number of nodes associated with a multi-node parallel job.
1105 */
1106 numNodes?: Integer;
1107 /**
1108 * 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.
1109 */
1110 nodeIndex?: Integer;
1111 }
1112 export interface NodePropertyOverride {
1113 /**
1114 * 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.
1115 */
1116 targetNodes: String;
1117 /**
1118 * The overrides that should be sent to a node range.
1119 */
1120 containerOverrides?: ContainerOverrides;
1121 }
1122 export type NodePropertyOverrides = NodePropertyOverride[];
1123 export type NodeRangeProperties = NodeRangeProperty[];
1124 export interface NodeRangeProperty {
1125 /**
1126 * 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.
1127 */
1128 targetNodes: String;
1129 /**
1130 * The container details for the node range.
1131 */
1132 container?: ContainerProperties;
1133 }
1134 export type ParametersMap = {[key: string]: String};
1135 export interface RegisterJobDefinitionRequest {
1136 /**
1137 * The name of the job definition to register. Up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.
1138 */
1139 jobDefinitionName: String;
1140 /**
1141 * The type of job definition.
1142 */
1143 type: JobDefinitionType;
1144 /**
1145 * 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.
1146 */
1147 parameters?: ParametersMap;
1148 /**
1149 * 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.
1150 */
1151 containerProperties?: ContainerProperties;
1152 /**
1153 * 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.
1154 */
1155 nodeProperties?: NodeProperties;
1156 /**
1157 * 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.
1158 */
1159 retryStrategy?: RetryStrategy;
1160 /**
1161 * 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.
1162 */
1163 timeout?: JobTimeout;
1164 }
1165 export interface RegisterJobDefinitionResponse {
1166 /**
1167 * The name of the job definition.
1168 */
1169 jobDefinitionName: String;
1170 /**
1171 * The Amazon Resource Name (ARN) of the job definition.
1172 */
1173 jobDefinitionArn: String;
1174 /**
1175 * The revision of the job definition.
1176 */
1177 revision: Integer;
1178 }
1179 export interface ResourceRequirement {
1180 /**
1181 * The number of physical GPUs to reserve for the container. The number of GPUs reserved for all containers in a job should not exceed the number of available GPUs on the compute resource that the job is launched on.
1182 */
1183 value: String;
1184 /**
1185 * The type of resource to assign to a container. Currently, the only supported resource type is GPU.
1186 */
1187 type: ResourceType;
1188 }
1189 export type ResourceRequirements = ResourceRequirement[];
1190 export type ResourceType = "GPU"|string;
1191 export interface RetryStrategy {
1192 /**
1193 * 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.
1194 */
1195 attempts?: Integer;
1196 }
1197 export type String = string;
1198 export type StringList = String[];
1199 export interface SubmitJobRequest {
1200 /**
1201 * 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.
1202 */
1203 jobName: String;
1204 /**
1205 * The job queue into which the job is submitted. You can specify either the name or the Amazon Resource Name (ARN) of the queue.
1206 */
1207 jobQueue: String;
1208 /**
1209 * 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.
1210 */
1211 arrayProperties?: ArrayProperties;
1212 /**
1213 * 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.
1214 */
1215 dependsOn?: JobDependencyList;
1216 /**
1217 * The job definition used by this job. This value can be one of name, name:revision, or the Amazon Resource Name (ARN) for the job definition. If name is specified without a revision then the latest active revision is used.
1218 */
1219 jobDefinition: String;
1220 /**
1221 * 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.
1222 */
1223 parameters?: ParametersMap;
1224 /**
1225 * 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.
1226 */
1227 containerOverrides?: ContainerOverrides;
1228 /**
1229 * A list of node overrides in JSON format that specify the node range to target and the container overrides for that node range.
1230 */
1231 nodeOverrides?: NodeOverrides;
1232 /**
1233 * 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.
1234 */
1235 retryStrategy?: RetryStrategy;
1236 /**
1237 * 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.
1238 */
1239 timeout?: JobTimeout;
1240 }
1241 export interface SubmitJobResponse {
1242 /**
1243 * The name of the job.
1244 */
1245 jobName: String;
1246 /**
1247 * The unique identifier for the job.
1248 */
1249 jobId: String;
1250 }
1251 export type TagsMap = {[key: string]: String};
1252 export interface TerminateJobRequest {
1253 /**
1254 * The AWS Batch job ID of the job to terminate.
1255 */
1256 jobId: String;
1257 /**
1258 * 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.
1259 */
1260 reason: String;
1261 }
1262 export interface TerminateJobResponse {
1263 }
1264 export interface Ulimit {
1265 /**
1266 * The hard limit for the ulimit type.
1267 */
1268 hardLimit: Integer;
1269 /**
1270 * The type of the ulimit.
1271 */
1272 name: String;
1273 /**
1274 * The soft limit for the ulimit type.
1275 */
1276 softLimit: Integer;
1277 }
1278 export type Ulimits = Ulimit[];
1279 export interface UpdateComputeEnvironmentRequest {
1280 /**
1281 * The name or full Amazon Resource Name (ARN) of the compute environment to update.
1282 */
1283 computeEnvironment: String;
1284 /**
1285 * 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.
1286 */
1287 state?: CEState;
1288 /**
1289 * Details of the compute resources managed by the compute environment. Required for a managed compute environment.
1290 */
1291 computeResources?: ComputeResourceUpdate;
1292 /**
1293 * 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.
1294 */
1295 serviceRole?: String;
1296 }
1297 export interface UpdateComputeEnvironmentResponse {
1298 /**
1299 * The name of the compute environment.
1300 */
1301 computeEnvironmentName?: String;
1302 /**
1303 * The Amazon Resource Name (ARN) of the compute environment.
1304 */
1305 computeEnvironmentArn?: String;
1306 }
1307 export interface UpdateJobQueueRequest {
1308 /**
1309 * The name or the Amazon Resource Name (ARN) of the job queue.
1310 */
1311 jobQueue: String;
1312 /**
1313 * Describes the queue's ability to accept new jobs.
1314 */
1315 state?: JQState;
1316 /**
1317 * 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.
1318 */
1319 priority?: Integer;
1320 /**
1321 * 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.
1322 */
1323 computeEnvironmentOrder?: ComputeEnvironmentOrders;
1324 }
1325 export interface UpdateJobQueueResponse {
1326 /**
1327 * The name of the job queue.
1328 */
1329 jobQueueName?: String;
1330 /**
1331 * The Amazon Resource Name (ARN) of the job queue.
1332 */
1333 jobQueueArn?: String;
1334 }
1335 export interface Volume {
1336 /**
1337 * 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.
1338 */
1339 host?: Host;
1340 /**
1341 * 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.
1342 */
1343 name?: String;
1344 }
1345 export type Volumes = Volume[];
1346 /**
1347 * 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.
1348 */
1349 export type apiVersion = "2016-08-10"|"latest"|string;
1350 export interface ClientApiVersions {
1351 /**
1352 * 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.
1353 */
1354 apiVersion?: apiVersion;
1355 }
1356 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
1357 /**
1358 * Contains interfaces for use with the Batch client.
1359 */
1360 export import Types = Batch;
1361}
1362export = Batch;