diff --git a/clients/client-batch/src/commands/CreateComputeEnvironmentCommand.ts b/clients/client-batch/src/commands/CreateComputeEnvironmentCommand.ts index abedd2e275a7..4c0e7237a72e 100644 --- a/clients/client-batch/src/commands/CreateComputeEnvironmentCommand.ts +++ b/clients/client-batch/src/commands/CreateComputeEnvironmentCommand.ts @@ -28,35 +28,42 @@ export interface CreateComputeEnvironmentCommandOutput extends CreateComputeEnvi /** * @public - *

Creates an Batch compute environment. You can create MANAGED or UNMANAGED compute - * environments. MANAGED compute environments can use Amazon EC2 or Fargate resources. - * UNMANAGED compute environments can only use EC2 resources.

- *

In a managed compute environment, 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. Either, you can choose to use EC2 On-Demand Instances and EC2 Spot - * Instances. Or, you can use Fargate and Fargate Spot capacity in your managed compute environment. You can - * optionally set a maximum price so that Spot Instances only launch when the Spot Instance price is less than a - * specified percentage of the On-Demand price.

+ *

Creates an Batch compute environment. You can create MANAGED or + * UNMANAGED compute environments. MANAGED compute environments can + * use Amazon EC2 or Fargate resources. UNMANAGED compute environments can only use + * EC2 resources.

+ *

In a managed compute environment, 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. Either, you can choose to use EC2 On-Demand + * Instances and EC2 Spot Instances. Or, you can use Fargate and Fargate Spot capacity in + * your managed compute environment. You can optionally set a maximum price so that Spot + * Instances only launch when the Spot Instance price is less than a specified percentage of the + * On-Demand price.

* *

Multi-node parallel jobs aren't supported on Spot Instances.

*
- *

In an unmanaged compute environment, you can manage your own EC2 compute resources and have flexibility with how - * you configure your compute resources. For example, you can use custom AMIs. However, you must verify that each of - * your AMIs meet the Amazon ECS container instance AMI specification. For more information, see container instance AMIs in the - * Amazon Elastic Container Service Developer Guide. After you created your unmanaged compute environment, you can use the DescribeComputeEnvironments operation to find the Amazon ECS cluster that's associated with it. Then, 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.

+ *

In an unmanaged compute environment, you can manage your own EC2 compute resources and + * have flexibility with how you configure your compute resources. For example, you can use + * custom AMIs. However, you must verify that each of your AMIs meet the Amazon ECS container instance + * AMI specification. For more information, see container instance AMIs in the + * Amazon Elastic Container Service Developer Guide. After you created your unmanaged compute environment, + * you can use the DescribeComputeEnvironments operation to find the Amazon ECS + * cluster that's associated with it. Then, 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.

* - *

To create a compute environment that uses EKS resources, the caller must have permissions to call - * eks:DescribeCluster.

+ *

To create a compute environment that uses EKS resources, the caller must have + * permissions to call eks:DescribeCluster.

*
* - *

Batch doesn't automatically upgrade the AMIs in a compute environment after it's created. For example, it - * also doesn't update the AMIs in your compute environment when a newer version of the Amazon ECS optimized AMI is - * available. You're responsible for the management of the guest operating system. This includes any updates and - * security patches. You're also responsible for any additional application software or utilities that you install on - * the compute resources. There are two ways to use a new AMI for your Batch jobs. The original method is to complete - * these steps:

+ *

Batch doesn't automatically upgrade the AMIs in a compute environment after it's + * created. For example, it also doesn't update the AMIs in your compute environment when a + * newer version of the Amazon ECS optimized AMI is available. You're responsible for the management + * of the guest operating system. This includes any updates and security patches. You're also + * responsible for any additional application software or utilities that you install on the + * compute resources. There are two ways to use a new AMI for your Batch jobs. The original + * method is to complete these steps:

*
    *
  1. *

    Create a new compute environment with the new AMI.

    @@ -71,17 +78,19 @@ export interface CreateComputeEnvironmentCommandOutput extends CreateComputeEnvi *

    Delete the earlier compute environment.

    *
  2. *
- *

In April 2022, Batch added enhanced support for updating compute environments. For more information, see - * Updating compute - * environments. To use the enhanced updating of compute environments to update AMIs, follow these - * rules:

+ *

In April 2022, Batch added enhanced support for updating compute environments. For + * more information, see Updating compute environments. + * To use the enhanced updating of compute environments to update AMIs, follow these + * rules:

* - *

If these rules are followed, any update that starts an infrastructure update causes the AMI ID to be - * re-selected. If the version setting in the launch template (launchTemplate) is set to - * $Latest or $Default, the latest or default version of the launch template is evaluated up - * at the time of the infrastructure update, even if the launchTemplate wasn't updated.

+ *

If these rules are followed, any update that starts an infrastructure update causes the + * AMI ID to be re-selected. If the version setting in the launch template + * (launchTemplate) is set to $Latest or $Default, the + * latest or default version of the launch template is evaluated up at the time of the + * infrastructure update, even if the launchTemplate wasn't updated.

*
* @example * Use a bare-bones client and the command you need to make an API call. diff --git a/clients/client-batch/src/commands/CreateJobQueueCommand.ts b/clients/client-batch/src/commands/CreateJobQueueCommand.ts index b3878e706e07..57a46c8c8c02 100644 --- a/clients/client-batch/src/commands/CreateJobQueueCommand.ts +++ b/clients/client-batch/src/commands/CreateJobQueueCommand.ts @@ -28,12 +28,13 @@ export interface CreateJobQueueCommandOutput extends CreateJobQueueResponse, __M /** * @public - *

Creates an 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 that the 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.

+ *

Creates an 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 that the 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.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-batch/src/commands/DeleteComputeEnvironmentCommand.ts b/clients/client-batch/src/commands/DeleteComputeEnvironmentCommand.ts index 40d98eb7c40a..68f047cb3b3a 100644 --- a/clients/client-batch/src/commands/DeleteComputeEnvironmentCommand.ts +++ b/clients/client-batch/src/commands/DeleteComputeEnvironmentCommand.ts @@ -29,9 +29,12 @@ export interface DeleteComputeEnvironmentCommandOutput extends DeleteComputeEnvi /** * @public *

Deletes an 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. Compute environments that use Fargate resources must terminate all - * active jobs on that compute environment before deleting the compute environment. If this isn't done, the compute - * environment enters an invalid state.

+ *

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. + * Compute environments that use Fargate resources must terminate all active jobs on that + * compute environment before deleting the compute environment. If this isn't done, the compute + * environment enters an invalid state.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-batch/src/commands/DeleteJobQueueCommand.ts b/clients/client-batch/src/commands/DeleteJobQueueCommand.ts index 20bbd0393893..d00ddb361f30 100644 --- a/clients/client-batch/src/commands/DeleteJobQueueCommand.ts +++ b/clients/client-batch/src/commands/DeleteJobQueueCommand.ts @@ -28,10 +28,12 @@ export interface DeleteJobQueueCommandOutput extends DeleteJobQueueResponse, __M /** * @public - *

Deletes the specified job queue. You must first disable submissions for a queue with the UpdateJobQueue operation. All jobs in the queue are eventually terminated when you delete a job queue. - * The jobs are terminated at a rate of about 16 jobs each second.

+ *

Deletes the specified job queue. You must first disable submissions for a queue with the + * UpdateJobQueue operation. All jobs in the queue are eventually terminated + * when you delete a job queue. The jobs are terminated at a rate of about 16 jobs each + * second.

*

It's not necessary to disassociate compute environments from a queue before submitting a - * DeleteJobQueue request.

+ * DeleteJobQueue request.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-batch/src/commands/DeregisterJobDefinitionCommand.ts b/clients/client-batch/src/commands/DeregisterJobDefinitionCommand.ts index 1c875c50b0c3..406eb6a8c20f 100644 --- a/clients/client-batch/src/commands/DeregisterJobDefinitionCommand.ts +++ b/clients/client-batch/src/commands/DeregisterJobDefinitionCommand.ts @@ -28,7 +28,8 @@ export interface DeregisterJobDefinitionCommandOutput extends DeregisterJobDefin /** * @public - *

Deregisters an Batch job definition. Job definitions are permanently deleted after 180 days.

+ *

Deregisters an Batch job definition. Job definitions are permanently deleted after 180 + * days.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-batch/src/commands/DescribeComputeEnvironmentsCommand.ts b/clients/client-batch/src/commands/DescribeComputeEnvironmentsCommand.ts index ea1429966fc3..914754dac123 100644 --- a/clients/client-batch/src/commands/DescribeComputeEnvironmentsCommand.ts +++ b/clients/client-batch/src/commands/DescribeComputeEnvironmentsCommand.ts @@ -34,9 +34,9 @@ export interface DescribeComputeEnvironmentsCommandOutput /** * @public *

Describes one or more of your compute environments.

- *

If you're using an unmanaged compute environment, you can use the DescribeComputeEnvironment - * operation to determine the ecsClusterArn that you launch your Amazon ECS container instances - * into.

+ *

If you're using an unmanaged compute environment, you can use the + * DescribeComputeEnvironment operation to determine the + * ecsClusterArn that you launch your Amazon ECS container instances into.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-batch/src/commands/DescribeJobDefinitionsCommand.ts b/clients/client-batch/src/commands/DescribeJobDefinitionsCommand.ts index 14869d7c8ea1..01150b1ef7f5 100644 --- a/clients/client-batch/src/commands/DescribeJobDefinitionsCommand.ts +++ b/clients/client-batch/src/commands/DescribeJobDefinitionsCommand.ts @@ -28,8 +28,8 @@ export interface DescribeJobDefinitionsCommandOutput extends DescribeJobDefiniti /** * @public - *

Describes a list of job definitions. You can specify a status (such as ACTIVE) to only - * return job definitions that match that status.

+ *

Describes a list of job definitions. You can specify a status (such as + * ACTIVE) to only return job definitions that match that status.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript @@ -299,6 +299,47 @@ export interface DescribeJobDefinitionsCommandOutput extends DescribeJobDefiniti * // credentialsParameter: "STRING_VALUE", // required * // }, * // }, + * // instanceTypes: "", + * // ecsProperties: { // EcsProperties + * // taskProperties: [ // ListEcsTaskProperties // required + * // { // EcsTaskProperties + * // containers: [ // ListTaskContainerProperties // required + * // { // TaskContainerProperties + * // command: "", + * // dependsOn: [ // TaskContainerDependencyList + * // { // TaskContainerDependency + * // containerName: "STRING_VALUE", + * // condition: "STRING_VALUE", + * // }, + * // ], + * // environment: "", + * // essential: true || false, + * // image: "STRING_VALUE", // required + * // linuxParameters: "", + * // logConfiguration: "", + * // mountPoints: "", + * // name: "STRING_VALUE", + * // privileged: true || false, + * // readonlyRootFilesystem: true || false, + * // repositoryCredentials: "", + * // resourceRequirements: "", + * // secrets: "", + * // ulimits: "", + * // user: "STRING_VALUE", + * // }, + * // ], + * // ephemeralStorage: "", + * // executionRoleArn: "STRING_VALUE", + * // platformVersion: "STRING_VALUE", + * // ipcMode: "STRING_VALUE", + * // taskRoleArn: "STRING_VALUE", + * // pidMode: "STRING_VALUE", + * // networkConfiguration: "", + * // runtimePlatform: "", + * // volumes: "", + * // }, + * // ], + * // }, * // }, * // ], * // }, @@ -309,6 +350,46 @@ export interface DescribeJobDefinitionsCommandOutput extends DescribeJobDefiniti * // platformCapabilities: [ // PlatformCapabilityList * // "EC2" || "FARGATE", * // ], + * // ecsProperties: { + * // taskProperties: [ // required + * // { + * // containers: [ // required + * // { + * // command: "", + * // dependsOn: [ + * // { + * // containerName: "STRING_VALUE", + * // condition: "STRING_VALUE", + * // }, + * // ], + * // environment: "", + * // essential: true || false, + * // image: "STRING_VALUE", // required + * // linuxParameters: "", + * // logConfiguration: "", + * // mountPoints: "", + * // name: "STRING_VALUE", + * // privileged: true || false, + * // readonlyRootFilesystem: true || false, + * // repositoryCredentials: "", + * // resourceRequirements: "", + * // secrets: "", + * // ulimits: "", + * // user: "STRING_VALUE", + * // }, + * // ], + * // ephemeralStorage: "", + * // executionRoleArn: "STRING_VALUE", + * // platformVersion: "STRING_VALUE", + * // ipcMode: "STRING_VALUE", + * // taskRoleArn: "STRING_VALUE", + * // pidMode: "STRING_VALUE", + * // networkConfiguration: "", + * // runtimePlatform: "", + * // volumes: "", + * // }, + * // ], + * // }, * // eksProperties: { // EksProperties * // podProperties: { // EksPodProperties * // serviceAccountName: "STRING_VALUE", @@ -351,6 +432,43 @@ export interface DescribeJobDefinitionsCommandOutput extends DescribeJobDefiniti * // }, * // }, * // ], + * // initContainers: [ + * // { + * // name: "STRING_VALUE", + * // image: "STRING_VALUE", // required + * // imagePullPolicy: "STRING_VALUE", + * // command: "", + * // args: "", + * // env: [ + * // { + * // name: "STRING_VALUE", // required + * // value: "STRING_VALUE", + * // }, + * // ], + * // resources: { + * // limits: { + * // "": "STRING_VALUE", + * // }, + * // requests: { + * // "": "STRING_VALUE", + * // }, + * // }, + * // volumeMounts: [ + * // { + * // name: "STRING_VALUE", + * // mountPath: "STRING_VALUE", + * // readOnly: true || false, + * // }, + * // ], + * // securityContext: { + * // runAsUser: Number("long"), + * // runAsGroup: Number("long"), + * // privileged: true || false, + * // readOnlyRootFilesystem: true || false, + * // runAsNonRoot: true || false, + * // }, + * // }, + * // ], * // volumes: [ // EksVolumes * // { // EksVolume * // name: "STRING_VALUE", // required @@ -372,6 +490,7 @@ export interface DescribeJobDefinitionsCommandOutput extends DescribeJobDefiniti * // "": "STRING_VALUE", * // }, * // }, + * // shareProcessNamespace: true || false, * // }, * // }, * // containerOrchestrationType: "ECS" || "EKS", diff --git a/clients/client-batch/src/commands/DescribeJobsCommand.ts b/clients/client-batch/src/commands/DescribeJobsCommand.ts index f5357f7a5210..c6b841100b78 100644 --- a/clients/client-batch/src/commands/DescribeJobsCommand.ts +++ b/clients/client-batch/src/commands/DescribeJobsCommand.ts @@ -340,6 +340,47 @@ export interface DescribeJobsCommandOutput extends DescribeJobsResponse, __Metad * // credentialsParameter: "STRING_VALUE", // required * // }, * // }, + * // instanceTypes: "", + * // ecsProperties: { // EcsProperties + * // taskProperties: [ // ListEcsTaskProperties // required + * // { // EcsTaskProperties + * // containers: [ // ListTaskContainerProperties // required + * // { // TaskContainerProperties + * // command: "", + * // dependsOn: [ // TaskContainerDependencyList + * // { // TaskContainerDependency + * // containerName: "STRING_VALUE", + * // condition: "STRING_VALUE", + * // }, + * // ], + * // environment: "", + * // essential: true || false, + * // image: "STRING_VALUE", // required + * // linuxParameters: "", + * // logConfiguration: "", + * // mountPoints: "", + * // name: "STRING_VALUE", + * // privileged: true || false, + * // readonlyRootFilesystem: true || false, + * // repositoryCredentials: "", + * // resourceRequirements: "", + * // secrets: "", + * // ulimits: "", + * // user: "STRING_VALUE", + * // }, + * // ], + * // ephemeralStorage: "", + * // executionRoleArn: "STRING_VALUE", + * // platformVersion: "STRING_VALUE", + * // ipcMode: "STRING_VALUE", + * // taskRoleArn: "STRING_VALUE", + * // pidMode: "STRING_VALUE", + * // networkConfiguration: "", + * // runtimePlatform: "", + * // volumes: "", + * // }, + * // ], + * // }, * // }, * // ], * // }, @@ -404,6 +445,45 @@ export interface DescribeJobsCommandOutput extends DescribeJobsResponse, __Metad * // }, * // }, * // ], + * // initContainers: [ + * // { + * // name: "STRING_VALUE", + * // image: "STRING_VALUE", + * // imagePullPolicy: "STRING_VALUE", + * // command: "", + * // args: "", + * // env: [ + * // { + * // name: "STRING_VALUE", // required + * // value: "STRING_VALUE", + * // }, + * // ], + * // resources: { + * // limits: { + * // "": "STRING_VALUE", + * // }, + * // requests: { + * // "": "STRING_VALUE", + * // }, + * // }, + * // exitCode: Number("int"), + * // reason: "STRING_VALUE", + * // volumeMounts: [ + * // { + * // name: "STRING_VALUE", + * // mountPath: "STRING_VALUE", + * // readOnly: true || false, + * // }, + * // ], + * // securityContext: { + * // runAsUser: Number("long"), + * // runAsGroup: Number("long"), + * // privileged: true || false, + * // readOnlyRootFilesystem: true || false, + * // runAsNonRoot: true || false, + * // }, + * // }, + * // ], * // volumes: [ // EksVolumes * // { // EksVolume * // name: "STRING_VALUE", // required @@ -427,6 +507,7 @@ export interface DescribeJobsCommandOutput extends DescribeJobsResponse, __Metad * // "": "STRING_VALUE", * // }, * // }, + * // shareProcessNamespace: true || false, * // }, * // }, * // eksAttempts: [ // EksAttemptDetails @@ -437,6 +518,12 @@ export interface DescribeJobsCommandOutput extends DescribeJobsResponse, __Metad * // reason: "STRING_VALUE", * // }, * // ], + * // initContainers: [ + * // { + * // exitCode: Number("int"), + * // reason: "STRING_VALUE", + * // }, + * // ], * // podName: "STRING_VALUE", * // nodeName: "STRING_VALUE", * // startedAt: Number("long"), @@ -444,6 +531,52 @@ export interface DescribeJobsCommandOutput extends DescribeJobsResponse, __Metad * // statusReason: "STRING_VALUE", * // }, * // ], + * // ecsProperties: { // EcsPropertiesDetail + * // taskProperties: [ // ListEcsTaskDetails + * // { // EcsTaskDetails + * // containers: [ // ListTaskContainerDetails + * // { // TaskContainerDetails + * // command: "", + * // dependsOn: [ + * // { + * // containerName: "STRING_VALUE", + * // condition: "STRING_VALUE", + * // }, + * // ], + * // environment: "", + * // essential: true || false, + * // image: "STRING_VALUE", + * // linuxParameters: "", + * // logConfiguration: "", + * // mountPoints: "", + * // name: "STRING_VALUE", + * // privileged: true || false, + * // readonlyRootFilesystem: true || false, + * // repositoryCredentials: "", + * // resourceRequirements: "", + * // secrets: "", + * // ulimits: "", + * // user: "STRING_VALUE", + * // exitCode: Number("int"), + * // reason: "STRING_VALUE", + * // logStreamName: "STRING_VALUE", + * // networkInterfaces: "", + * // }, + * // ], + * // containerInstanceArn: "STRING_VALUE", + * // taskArn: "STRING_VALUE", + * // ephemeralStorage: "", + * // executionRoleArn: "STRING_VALUE", + * // platformVersion: "STRING_VALUE", + * // ipcMode: "STRING_VALUE", + * // taskRoleArn: "STRING_VALUE", + * // pidMode: "STRING_VALUE", + * // networkConfiguration: "", + * // runtimePlatform: "", + * // volumes: "", + * // }, + * // ], + * // }, * // isCancelled: true || false, * // isTerminated: true || false, * // }, diff --git a/clients/client-batch/src/commands/ListJobsCommand.ts b/clients/client-batch/src/commands/ListJobsCommand.ts index 7c7246fb1b37..e5d9473a95c0 100644 --- a/clients/client-batch/src/commands/ListJobsCommand.ts +++ b/clients/client-batch/src/commands/ListJobsCommand.ts @@ -41,8 +41,8 @@ export interface ListJobsCommandOutput extends ListJobsResponse, __MetadataBeare *

An array job ID to return a list of the children for that job

* * - *

You can filter the results by job status with the jobStatus parameter. If you don't specify a - * status, only RUNNING jobs are returned.

+ *

You can filter the results by job status with the jobStatus parameter. If you + * don't specify a status, only RUNNING jobs are returned.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-batch/src/commands/RegisterJobDefinitionCommand.ts b/clients/client-batch/src/commands/RegisterJobDefinitionCommand.ts index dc098e644485..a52ca6eb361d 100644 --- a/clients/client-batch/src/commands/RegisterJobDefinitionCommand.ts +++ b/clients/client-batch/src/commands/RegisterJobDefinitionCommand.ts @@ -268,6 +268,47 @@ export interface RegisterJobDefinitionCommandOutput extends RegisterJobDefinitio * credentialsParameter: "STRING_VALUE", // required * }, * }, + * instanceTypes: "", + * ecsProperties: { // EcsProperties + * taskProperties: [ // ListEcsTaskProperties // required + * { // EcsTaskProperties + * containers: [ // ListTaskContainerProperties // required + * { // TaskContainerProperties + * command: "", + * dependsOn: [ // TaskContainerDependencyList + * { // TaskContainerDependency + * containerName: "STRING_VALUE", + * condition: "STRING_VALUE", + * }, + * ], + * environment: "", + * essential: true || false, + * image: "STRING_VALUE", // required + * linuxParameters: "", + * logConfiguration: "", + * mountPoints: "", + * name: "STRING_VALUE", + * privileged: true || false, + * readonlyRootFilesystem: true || false, + * repositoryCredentials: "", + * resourceRequirements: "", + * secrets: "", + * ulimits: "", + * user: "STRING_VALUE", + * }, + * ], + * ephemeralStorage: "", + * executionRoleArn: "STRING_VALUE", + * platformVersion: "STRING_VALUE", + * ipcMode: "STRING_VALUE", + * taskRoleArn: "STRING_VALUE", + * pidMode: "STRING_VALUE", + * networkConfiguration: "", + * runtimePlatform: "", + * volumes: "", + * }, + * ], + * }, * }, * ], * }, @@ -334,6 +375,43 @@ export interface RegisterJobDefinitionCommandOutput extends RegisterJobDefinitio * }, * }, * ], + * initContainers: [ + * { + * name: "STRING_VALUE", + * image: "STRING_VALUE", // required + * imagePullPolicy: "STRING_VALUE", + * command: "", + * args: "", + * env: [ + * { + * name: "STRING_VALUE", // required + * value: "STRING_VALUE", + * }, + * ], + * resources: { + * limits: { + * "": "STRING_VALUE", + * }, + * requests: { + * "": "STRING_VALUE", + * }, + * }, + * volumeMounts: [ + * { + * name: "STRING_VALUE", + * mountPath: "STRING_VALUE", + * readOnly: true || false, + * }, + * ], + * securityContext: { + * runAsUser: Number("long"), + * runAsGroup: Number("long"), + * privileged: true || false, + * readOnlyRootFilesystem: true || false, + * runAsNonRoot: true || false, + * }, + * }, + * ], * volumes: [ // EksVolumes * { // EksVolume * name: "STRING_VALUE", // required @@ -355,8 +433,49 @@ export interface RegisterJobDefinitionCommandOutput extends RegisterJobDefinitio * "": "STRING_VALUE", * }, * }, + * shareProcessNamespace: true || false, * }, * }, + * ecsProperties: { + * taskProperties: [ // required + * { + * containers: [ // required + * { + * command: "", + * dependsOn: [ + * { + * containerName: "STRING_VALUE", + * condition: "STRING_VALUE", + * }, + * ], + * environment: "", + * essential: true || false, + * image: "STRING_VALUE", // required + * linuxParameters: "", + * logConfiguration: "", + * mountPoints: "", + * name: "STRING_VALUE", + * privileged: true || false, + * readonlyRootFilesystem: true || false, + * repositoryCredentials: "", + * resourceRequirements: "", + * secrets: "", + * ulimits: "", + * user: "STRING_VALUE", + * }, + * ], + * ephemeralStorage: "", + * executionRoleArn: "STRING_VALUE", + * platformVersion: "STRING_VALUE", + * ipcMode: "STRING_VALUE", + * taskRoleArn: "STRING_VALUE", + * pidMode: "STRING_VALUE", + * networkConfiguration: "", + * runtimePlatform: "", + * volumes: "", + * }, + * ], + * }, * }; * const command = new RegisterJobDefinitionCommand(input); * const response = await client.send(command); diff --git a/clients/client-batch/src/commands/SubmitJobCommand.ts b/clients/client-batch/src/commands/SubmitJobCommand.ts index 4142b424c458..04069465102f 100644 --- a/clients/client-batch/src/commands/SubmitJobCommand.ts +++ b/clients/client-batch/src/commands/SubmitJobCommand.ts @@ -28,18 +28,20 @@ export interface SubmitJobCommandOutput extends SubmitJobResponse, __MetadataBea /** * @public - *

Submits an Batch job from a job definition. Parameters that are specified during SubmitJob - * override parameters defined in the job definition. vCPU and memory requirements that are specified in the - * resourceRequirements objects in the job definition are the exception. They can't be overridden this way - * using the memory and vcpus parameters. Rather, you must specify updates to job definition - * parameters in a resourceRequirements object that's included in the containerOverrides - * parameter.

+ *

Submits an Batch job from a job definition. Parameters that are specified during SubmitJob override parameters defined in the job definition. vCPU and memory + * requirements that are specified in the resourceRequirements objects in the job + * definition are the exception. They can't be overridden this way using the memory + * and vcpus parameters. Rather, you must specify updates to job definition + * parameters in a resourceRequirements object that's included in the + * containerOverrides parameter.

* - *

Job queues with a scheduling policy are limited to 500 active fair share identifiers at a time.

+ *

Job queues with a scheduling policy are limited to 500 active fair share identifiers at + * a time.

*
* - *

Jobs that run on Fargate resources can't be guaranteed to run for more than 14 days. This is because, after 14 - * days, Fargate resources might become unavailable and job might be terminated.

+ *

Jobs that run on Fargate resources can't be guaranteed to run for more than 14 days. + * This is because, after 14 days, Fargate resources might become unavailable and job might be + * terminated.

*
* @example * Use a bare-bones client and the command you need to make an API call. @@ -110,6 +112,21 @@ export interface SubmitJobCommandOutput extends SubmitJobResponse, __MetadataBea * }, * ], * }, + * ecsPropertiesOverride: { // EcsPropertiesOverride + * taskProperties: [ // ListTaskPropertiesOverride + * { // TaskPropertiesOverride + * containers: [ // ListTaskContainerOverrides + * { // TaskContainerOverrides + * command: "", + * environment: "", + * name: "STRING_VALUE", + * resourceRequirements: "", + * }, + * ], + * }, + * ], + * }, + * instanceTypes: "", * }, * ], * }, @@ -135,13 +152,10 @@ export interface SubmitJobCommandOutput extends SubmitJobResponse, __MetadataBea * podProperties: { // EksPodPropertiesOverride * containers: [ // EksContainerOverrideList * { // EksContainerOverride + * name: "STRING_VALUE", * image: "STRING_VALUE", - * command: [ - * "STRING_VALUE", - * ], - * args: [ - * "STRING_VALUE", - * ], + * command: "", + * args: "", * env: [ // EksContainerEnvironmentVariables * { // EksContainerEnvironmentVariable * name: "STRING_VALUE", // required @@ -158,6 +172,28 @@ export interface SubmitJobCommandOutput extends SubmitJobResponse, __MetadataBea * }, * }, * ], + * initContainers: [ + * { + * name: "STRING_VALUE", + * image: "STRING_VALUE", + * command: "", + * args: "", + * env: [ + * { + * name: "STRING_VALUE", // required + * value: "STRING_VALUE", + * }, + * ], + * resources: { + * limits: { + * "": "STRING_VALUE", + * }, + * requests: { + * "": "STRING_VALUE", + * }, + * }, + * }, + * ], * metadata: { // EksMetadata * labels: { // EksLabelsMap * "": "STRING_VALUE", @@ -165,6 +201,20 @@ export interface SubmitJobCommandOutput extends SubmitJobResponse, __MetadataBea * }, * }, * }, + * ecsPropertiesOverride: { + * taskProperties: [ + * { + * containers: [ + * { + * command: "", + * environment: "", + * name: "STRING_VALUE", + * resourceRequirements: "", + * }, + * ], + * }, + * ], + * }, * }; * const command = new SubmitJobCommand(input); * const response = await client.send(command); diff --git a/clients/client-batch/src/commands/TagResourceCommand.ts b/clients/client-batch/src/commands/TagResourceCommand.ts index 7e4e958e7665..6094a331f372 100644 --- a/clients/client-batch/src/commands/TagResourceCommand.ts +++ b/clients/client-batch/src/commands/TagResourceCommand.ts @@ -28,9 +28,10 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat /** * @public - *

Associates the specified tags to a resource with the specified resourceArn. If existing tags on a - * resource aren't specified in the request parameters, they aren't changed. When a resource is deleted, the tags that - * are associated with that resource are deleted as well. Batch resources that support tags are compute environments, jobs, job definitions, job queues, + *

Associates the specified tags to a resource with the specified resourceArn. + * If existing tags on a resource aren't specified in the request parameters, they aren't + * changed. When a resource is deleted, the tags that are associated with that resource are + * deleted as well. Batch resources that support tags are compute environments, jobs, job definitions, job queues, * and scheduling policies. ARNs for child jobs of array and multi-node parallel (MNP) jobs aren't supported.

* @example * Use a bare-bones client and the command you need to make an API call. diff --git a/clients/client-batch/src/commands/TerminateJobCommand.ts b/clients/client-batch/src/commands/TerminateJobCommand.ts index b5e87e0bbc8c..91c362ad1dc1 100644 --- a/clients/client-batch/src/commands/TerminateJobCommand.ts +++ b/clients/client-batch/src/commands/TerminateJobCommand.ts @@ -28,9 +28,10 @@ export interface TerminateJobCommandOutput extends TerminateJobResponse, __Metad /** * @public - *

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.

+ *

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.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-batch/src/models/models_0.ts b/clients/client-batch/src/models/models_0.ts index c654f27a3e7a..9dbaed06950f 100644 --- a/clients/client-batch/src/models/models_0.ts +++ b/clients/client-batch/src/models/models_0.ts @@ -206,9 +206,9 @@ export interface CancelJobRequest { /** * @public - *

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 Batch activity - * logs.

+ *

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 Batch activity logs.

*/ reason: string | undefined; } @@ -416,7 +416,7 @@ export interface LaunchTemplateSpecification { * isn't changed when the compute environment is updated. It's only changed if the * updateToLatestImageVersion parameter for the compute environment is set to * true. During an infrastructure update, if either $Latest or - * $Default is specified, Batch re-evaluates the launch template version, and it + * $Default is specified, Batch re-evaluates the launch template version, and it * might use a different version of the launch template. This is the case even if the launch * template isn't specified in the update. When updating a compute environment, changing the launch * template requires an infrastructure update of the compute environment. For more information, see @@ -500,18 +500,18 @@ export interface ComputeResource { * *
SPOT_PRICE_CAPACITY_OPTIMIZED
*
- *

The price and capacity optimized allocation strategy looks at both price and capacity to + *

The price and capacity optimized allocation strategy looks at both price and capacity to * select the Spot Instance pools that are the least likely to be interrupted and have the lowest * possible price. This allocation strategy is only available for Spot Instance compute * resources.

*
* *

With BEST_FIT_PROGRESSIVE,SPOT_CAPACITY_OPTIMIZED and - * SPOT_PRICE_CAPACITY_OPTIMIZED + * SPOT_PRICE_CAPACITY_OPTIMIZED * (recommended) strategies using On-Demand or Spot Instances, and the - * BEST_FIT strategy using Spot Instances, Batch might need to exceed - * maxvCpus to meet your capacity requirements. In this event, Batch never exceeds - * maxvCpus by more than a single instance.

+ * BEST_FIT strategy using Spot Instances, Batch might need to exceed + * maxvCpus to meet your capacity requirements. In this event, Batch never exceeds + * maxvCpus by more than a single instance.

*/ allocationStrategy?: CRAllocationStrategy; @@ -536,11 +536,11 @@ export interface ComputeResource { * support.

* *

With BEST_FIT_PROGRESSIVE,SPOT_CAPACITY_OPTIMIZED and - * SPOT_PRICE_CAPACITY_OPTIMIZED + * SPOT_PRICE_CAPACITY_OPTIMIZED * (recommended) strategies using On-Demand or Spot Instances, and the - * BEST_FIT strategy using Spot Instances, Batch might need to exceed - * maxvCpus to meet your capacity requirements. In this event, Batch never exceeds - * maxvCpus by more than a single instance.

+ * BEST_FIT strategy using Spot Instances, Batch might need to exceed + * maxvCpus to meet your capacity requirements. In this event, Batch never exceeds + * maxvCpus by more than a single instance.

*
*/ maxvCpus: number | undefined; @@ -642,9 +642,9 @@ export interface ComputeResource { /** * @public - *

The Amazon ECS instance profile applied to Amazon EC2 instances in a compute environment. This parameter is required - * for Amazon EC2 instances types. You can specify the short name or full Amazon Resource Name (ARN) of an instance profile. For example, - * + *

The Amazon ECS instance profile applied to Amazon EC2 instances in a compute environment. This + * parameter is required for Amazon EC2 instances types. You can specify the short name or full Amazon Resource Name (ARN) + * of an instance profile. For example, * ecsInstanceRole * or * arn:aws:iam:::instance-profile/ecsInstanceRole @@ -658,13 +658,13 @@ export interface ComputeResource { /** * @public - *

Key-value pair tags to be applied to EC2 resources that are launched in the compute + *

Key-value pair tags to be applied to Amazon EC2 resources that are launched in the compute * environment. For Batch, these take the form of "String1": "String2", where * String1 is the tag key and String2 is the tag value-for example, * \{ "Name": "Batch Instance - C4OnDemand" \}. This is helpful for recognizing your * Batch instances in the Amazon EC2 console. Updating these tags requires an infrastructure update to * the compute environment. For more information, see Updating compute environments in the - * Batch User Guide. These tags aren't seen when using the Batch + * Batch User Guide. These tags aren't seen when using the Batch * ListTagsForResource API operation.

* *

This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.

@@ -723,9 +723,9 @@ export interface ComputeResource { /** * @public *

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 + * 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 * Batch User Guide.

* *

This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.

@@ -735,8 +735,8 @@ export interface ComputeResource { /** * @public - *

Provides information that's used to select Amazon Machine Images (AMIs) for EC2 instances in - * the compute environment. If Ec2Configuration isn't specified, the default is + *

Provides information that's used to select Amazon Machine Images (AMIs) for Amazon EC2 instances + * in the compute environment. If Ec2Configuration isn't specified, the default is * ECS_AL2.

*

One or two values can be provided.

* @@ -813,9 +813,8 @@ export interface CreateComputeEnvironmentRequest { /** * @public - *

The type of the compute environment: MANAGED or UNMANAGED. For more information, see - * Compute Environments in the - * Batch User Guide.

+ *

The type of the compute environment: MANAGED or UNMANAGED. For + * more information, see Compute Environments in the Batch User Guide.

*/ type: CEType | undefined; @@ -847,53 +846,58 @@ export interface CreateComputeEnvironmentRequest { /** * @public - *

The maximum number of vCPUs for an unmanaged compute environment. This parameter is only used for fair share - * scheduling to reserve vCPU capacity for new share identifiers. If this parameter isn't provided for a fair share job - * queue, no vCPU capacity is reserved.

+ *

The maximum number of vCPUs for an unmanaged compute environment. This parameter is only + * used for fair share scheduling to reserve vCPU capacity for new share identifiers. If this + * parameter isn't provided for a fair share job queue, no vCPU capacity is reserved.

* - *

This parameter is only supported when the type parameter is set to UNMANAGED.

+ *

This parameter is only supported when the type parameter is set to + * UNMANAGED.

*
*/ unmanagedvCpus?: number; /** * @public - *

Details about the compute resources managed by the compute environment. This parameter is required for managed - * compute environments. For more information, see Compute Environments in the Batch User Guide.

+ *

Details about the compute resources managed by the compute environment. This parameter is + * required for managed compute environments. For more information, see Compute Environments + * in the Batch User Guide.

*/ computeResources?: ComputeResource; /** * @public - *

The full Amazon Resource Name (ARN) of the IAM role that allows Batch to make calls to other Amazon Web Services services on your behalf. For - * more information, see Batch service IAM - * role in the Batch User Guide.

+ *

The full Amazon Resource Name (ARN) of the IAM role that allows Batch to make calls to other Amazon Web Services + * services on your behalf. For more information, see Batch service IAM role in the + * Batch User Guide.

* - *

If your account already created the Batch service-linked role, that role is used by default for your compute - * environment unless you specify a different role here. If the Batch service-linked role doesn't exist in your - * account, and no role is specified here, the service attempts to create the Batch service-linked role in your - * account.

+ *

If your account already created the Batch service-linked role, that role is used by + * default for your compute environment unless you specify a different role here. If the + * Batch service-linked role doesn't exist in your account, and no role is specified here, + * the service attempts to create the Batch service-linked role in your account.

*
- *

If your specified role has a path other than /, then you must specify either the full role ARN - * (recommended) or prefix the role name with the path. For example, if a role with the name bar has a path - * of /foo/, specify /foo/bar as the role name. For more information, see Friendly names - * and paths in the IAM User Guide.

+ *

If your specified role has a path other than /, then you must specify either + * the full role ARN (recommended) or prefix the role name with the path. For example, if a + * role with the name bar has a path of /foo/, specify + * /foo/bar as the role name. For more information, see Friendly + * names and paths in the IAM User Guide.

* - *

Depending on how you created your Batch service role, its ARN might contain the service-role - * path prefix. When you only specify the name of the service role, Batch assumes that your ARN doesn't 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.

+ *

Depending on how you created your Batch service role, its ARN might contain the + * service-role path prefix. When you only specify the name of the service role, + * Batch assumes that your ARN doesn't 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.

*
*/ serviceRole?: string; /** * @public - *

The tags that you apply to the compute environment to help you categorize and organize your resources. Each tag - * consists of a key and an optional value. For more information, see Tagging Amazon Web Services Resources in Amazon Web Services General - * Reference.

- *

These tags can be updated or removed using the TagResource and UntagResource API operations. These tags don't - * propagate to the underlying compute resources.

+ *

The tags that you apply to the compute environment to help you categorize and organize + * your resources. Each tag consists of a key and an optional value. For more information, see + * Tagging Amazon Web Services + * Resources in Amazon Web Services General Reference.

+ *

These tags can be updated or removed using the TagResource and UntagResource API operations. These tags don't propagate to the underlying compute + * resources.

*/ tags?: Record; @@ -930,7 +934,7 @@ export interface CreateComputeEnvironmentResponse { * for job placement first. Compute environments must be in the VALID state before you * can associate them with a job queue. All of the compute environments must be either EC2 * (EC2 or SPOT) or Fargate (FARGATE or - * FARGATE_SPOT); EC2 and Fargate compute environments can't be mixed.

+ * FARGATE_SPOT); Amazon EC2 and Fargate compute environments can't be mixed.

* *

All compute environments that are associated with a job queue must share the same * architecture. Batch doesn't support mixing compute environment architecture types in a single @@ -974,62 +978,66 @@ export type JQState = (typeof JQState)[keyof typeof JQState]; export interface CreateJobQueueRequest { /** * @public - *

The name of the job queue. It can be up to 128 letters long. It can contain uppercase and lowercase letters, - * numbers, hyphens (-), and underscores (_).

+ *

The name of the job queue. It can be up to 128 letters long. It can contain uppercase and + * lowercase letters, numbers, hyphens (-), and underscores (_).

*/ jobQueueName: string | undefined; /** * @public - *

The state of the job queue. If the job queue state is ENABLED, it is able to accept jobs. If the - * job queue state is DISABLED, new jobs can't be added to the queue, but jobs already in the queue can - * finish.

+ *

The state of the job queue. If the job queue state is ENABLED, it is able to + * accept jobs. If the job queue state is DISABLED, new jobs can't be added to the + * queue, but jobs already in the queue can finish.

*/ state?: JQState; /** * @public - *

The Amazon Resource Name (ARN) of the fair share scheduling policy. If this parameter is specified, the job queue uses a fair - * share scheduling policy. If this parameter isn't specified, the job queue uses a first in, first out (FIFO) - * scheduling policy. After a job queue is created, you can replace but can't remove the fair share scheduling policy. - * The format is - * aws:Partition:batch:Region:Account:scheduling-policy/Name + *

The Amazon Resource Name (ARN) of the fair share scheduling policy. If this parameter is specified, the job + * queue uses a fair share scheduling policy. If this parameter isn't specified, the job queue + * uses a first in, first out (FIFO) scheduling policy. After a job queue is created, you can + * replace but can't remove the fair share scheduling policy. The format is + * aws:Partition:batch:Region:Account:scheduling-policy/Name * . - * An example is - * aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

+ * An example is + * aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

*/ schedulingPolicyArn?: string; /** * @public - *

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. All of the compute environments must be either - * EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT); EC2 and - * Fargate compute environments can't be mixed.

+ *

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. All of the compute environments must be either EC2 + * (EC2 or SPOT) or Fargate (FARGATE or + * FARGATE_SPOT); EC2 and Fargate compute environments can't be mixed.

*/ priority: number | undefined; /** * @public - *

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 runs a specific 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. All of the compute environments must be either EC2 (EC2 or - * SPOT) or Fargate (FARGATE or FARGATE_SPOT); EC2 and Fargate compute - * environments can't be mixed.

+ *

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 runs a + * specific 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. All of the compute environments must be either EC2 (EC2 or + * SPOT) or Fargate (FARGATE or FARGATE_SPOT); EC2 and + * Fargate compute environments can't be mixed.

* - *

All compute environments that are associated with a job queue must share the same architecture. Batch doesn't - * support mixing compute environment architecture types in a single job queue.

+ *

All compute environments that are associated with a job queue must share the same + * architecture. Batch doesn't support mixing compute environment architecture types in a + * single job queue.

*
*/ computeEnvironmentOrder: ComputeEnvironmentOrder[] | undefined; /** * @public - *

The tags that you apply to the job queue to help you categorize and organize your resources. Each tag consists - * of a key and an optional value. For more information, see Tagging your Batch resources in Batch User Guide.

+ *

The tags that you apply to the job queue to help you categorize and organize your + * resources. Each tag consists of a key and an optional value. For more information, see Tagging your Batch resources + * in Batch User Guide.

*/ tags?: Record; } @@ -1132,8 +1140,8 @@ export interface FairsharePolicy { export interface CreateSchedulingPolicyRequest { /** * @public - *

The name of the scheduling policy. It can be up to 128 letters long. It can contain uppercase and lowercase - * letters, numbers, hyphens (-), and underscores (_).

+ *

The name of the scheduling policy. It can be up to 128 letters long. It can contain + * uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).

*/ name: string | undefined; @@ -1145,9 +1153,9 @@ export interface CreateSchedulingPolicyRequest { /** * @public - *

The tags that you apply to the scheduling policy to help you categorize and organize your resources. Each tag - * consists of a key and an optional value. For more information, see Tagging Amazon Web Services Resources in Amazon Web Services General - * Reference.

+ *

The tags that you apply to the scheduling policy to help you categorize and organize your + * resources. Each tag consists of a key and an optional value. For more information, see Tagging Amazon Web Services + * Resources in Amazon Web Services General Reference.

*

These tags can be updated or removed using the TagResource and UntagResource API operations.

*/ tags?: Record; @@ -1166,10 +1174,10 @@ export interface CreateSchedulingPolicyResponse { /** * @public *

The Amazon Resource Name (ARN) of the scheduling policy. The format is - * aws:Partition:batch:Region:Account:scheduling-policy/Name + * aws:Partition:batch:Region:Account:scheduling-policy/Name * . - * For example, - * aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

+ * For example, + * aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

*/ arn: string | undefined; } @@ -1231,7 +1239,8 @@ export interface DeleteSchedulingPolicyResponse {} export interface DeregisterJobDefinitionRequest { /** * @public - *

The name and revision (name:revision) or full Amazon Resource Name (ARN) of the job definition to deregister.

+ *

The name and revision (name:revision) or full Amazon Resource Name (ARN) of the job definition + * to deregister.

*/ jobDefinition: string | undefined; } @@ -1254,22 +1263,25 @@ export interface DescribeComputeEnvironmentsRequest { /** * @public - *

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 isn't used, then - * DescribeComputeEnvironments returns up to 100 results and a nextToken - * value if applicable.

+ *

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 isn't used, then DescribeComputeEnvironments + * returns up to 100 results and a nextToken value if + * applicable.

*/ maxResults?: number; /** * @public - *

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.

+ *

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.

* *

Treat this token as an opaque identifier that's only used to * retrieve the next items in a list and not for other programmatic purposes.

@@ -1424,8 +1436,8 @@ export interface ComputeEnvironmentDetail { /** * @public *

The service role that's associated with the compute environment that allows Batch to make - * calls to Amazon Web Services API operations on your behalf. For more information, see Batch service IAM role in - * the Batch User Guide.

+ * calls to Amazon Web Services API operations on your behalf. For more information, see Batch service IAM role in the + * Batch User Guide.

*/ serviceRole?: string; @@ -1470,10 +1482,11 @@ export interface DescribeComputeEnvironmentsResponse { /** * @public - *

The nextToken value to include in a future DescribeComputeEnvironments request. When - * the results of a DescribeComputeEnvironments 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.

+ *

The nextToken value to include in a future + * DescribeComputeEnvironments request. When the results of a + * DescribeComputeEnvironments 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.

*/ nextToken?: string; } @@ -1488,19 +1501,21 @@ export interface DescribeJobDefinitionsRequest { *

A list of up to 100 job definitions. Each entry in the list can either be an ARN in the * format * arn:aws:batch:$\{Region\}:$\{Account\}:job-definition/$\{JobDefinitionName\}:$\{Revision\} - * or a short version using the form $\{JobDefinitionName\}:$\{Revision\}. This parameter can't be used with other parameters.

+ * or a short version using the form $\{JobDefinitionName\}:$\{Revision\}. This + * parameter can't be used with other parameters.

*/ jobDefinitions?: string[]; /** * @public - *

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 - * and 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 isn't used, then - * DescribeJobDefinitions returns up to 100 results and a nextToken value - * if applicable.

+ *

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 and 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 isn't + * used, then DescribeJobDefinitions returns up to 100 results and + * a nextToken value if applicable.

*/ maxResults?: number; @@ -1518,10 +1533,11 @@ export interface DescribeJobDefinitionsRequest { /** * @public - *

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.

+ *

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.

* *

Treat this token as an opaque identifier that's only used to * retrieve the next items in a list and not for other programmatic purposes.

@@ -1568,7 +1584,7 @@ export interface EphemeralStorage { /** * @public *

The platform configuration for jobs that are running on Fargate resources. Jobs that run - * on EC2 resources must not specify this parameter.

+ * on Amazon EC2 resources must not specify this parameter.

*/ export interface FargatePlatformConfiguration { /** @@ -1931,7 +1947,8 @@ export interface LogConfiguration { /** * @public *

Details for a Docker volume mount point that's used in a job's container properties. This - * parameter maps to Volumes in the Create a container section of the Docker Remote API and the + * parameter maps to Volumes in the Create a + * container section of the Docker Remote API and the * --volume option to docker run.

*/ export interface MountPoint { @@ -1958,7 +1975,7 @@ export interface MountPoint { /** * @public *

The network configuration for jobs that are running on Fargate resources. Jobs that are - * running on EC2 resources must not specify this parameter.

+ * running on Amazon EC2 resources must not specify this parameter.

*/ export interface NetworkConfiguration { /** @@ -1979,7 +1996,8 @@ export interface NetworkConfiguration { export interface RepositoryCredentials { /** * @public - *

The Amazon Resource Name (ARN) of the secret containing the private repository credentials.

+ *

The Amazon Resource Name (ARN) of the secret containing the private repository + * credentials.

*/ credentialsParameter: string | undefined; } @@ -2022,7 +2040,7 @@ export interface ResourceRequirement { *
type="MEMORY"
*
*

The memory hard limit (in MiB) present to the container. This parameter is supported for - * jobs that are running on EC2 resources. If your container attempts to exceed the memory + * jobs that are running on Amazon EC2 resources. If your container attempts to exceed the memory * specified, the container is terminated. This parameter maps to Memory in the * Create a container section of the Docker Remote API and the * --memory option to docker run. You @@ -2116,7 +2134,7 @@ export interface ResourceRequirement { *

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. - * For EC2 resources, you must specify at least one vCPU. This is required but can be specified + * For Amazon EC2 resources, you must specify at least one vCPU. This is required but can be specified * in several places; it must be specified for each node at least once.

*

The default for the Fargate On-Demand vCPU resource count quota is 6 vCPUs. For more * information about Fargate quotas, see Fargate quotas @@ -2180,52 +2198,50 @@ export interface ResourceRequirement { /** * @public - *

- * An object that represents the compute environment architecture for Batch jobs on Fargate. - *

+ *

An object that represents the compute environment architecture for Batch jobs on + * Fargate.

*/ export interface RuntimePlatform { /** * @public *

The operating system for the compute environment. * Valid values are: - * LINUX (default), WINDOWS_SERVER_2019_CORE, - * WINDOWS_SERVER_2019_FULL, WINDOWS_SERVER_2022_CORE, and - * WINDOWS_SERVER_2022_FULL.

+ * LINUX (default), WINDOWS_SERVER_2019_CORE, + * WINDOWS_SERVER_2019_FULL, WINDOWS_SERVER_2022_CORE, and + * WINDOWS_SERVER_2022_FULL.

* *

The following parameters can’t be set for Windows containers: linuxParameters, - * privileged, user, ulimits, - * readonlyRootFilesystem, - * and efsVolumeConfiguration.

+ * privileged, user, ulimits, + * readonlyRootFilesystem, + * and efsVolumeConfiguration.

*
* *

The Batch Scheduler checks - * the compute environments - * that are attached to the job queue before registering a task definition with - * Fargate. In this - * scenario, the job queue is where the job is submitted. If the job requires a - * Windows container and the first compute environment is LINUX, the compute - * environment is skipped and the next compute environment is checked until a Windows-based compute - * environment is found.

+ * the compute environments + * that are attached to the job queue before registering a task definition with + * Fargate. In this + * scenario, the job queue is where the job is submitted. If the job requires a + * Windows container and the first compute environment is LINUX, the compute + * environment is skipped and the next compute environment is checked until a Windows-based compute + * environment is found.

*
* *

Fargate Spot is not supported for - * ARM64 and - * Windows-based containers on Fargate. A job queue will be blocked if a - * Fargate - * ARM64 or - * Windows job is submitted to a job queue with only Fargate Spot compute environments. - * However, you can attach both FARGATE and - * FARGATE_SPOT compute environments to the same job queue.

+ * ARM64 and + * Windows-based containers on Fargate. A job queue will be blocked if a + * Fargate + * ARM64 or + * Windows job is submitted to a job queue with only Fargate Spot compute environments. + * However, you can attach both FARGATE and + * FARGATE_SPOT compute environments to the same job queue.

*
*/ operatingSystemFamily?: string; /** * @public - *

- * The vCPU architecture. The default value is X86_64. Valid values are - * X86_64 and ARM64.

+ *

The vCPU architecture. The default value is X86_64. Valid values are + * X86_64 and ARM64.

* *

This parameter must be set to * X86_64 @@ -2244,8 +2260,7 @@ export interface RuntimePlatform { /** * @public - *

The ulimit settings to pass to the container. For more information, see - * Ulimit.

+ *

The ulimit settings to pass to the container. For more information, see Ulimit.

* *

This object isn't applicable to jobs that are running on Fargate resources.

*
@@ -2259,10 +2274,11 @@ export interface Ulimit { /** * @public - *

The type of the ulimit. Valid values are: core | cpu | - * data | fsize | locks | memlock | msgqueue | - * nice | nofile | nproc | rss | rtprio | - * rttime | sigpending | stack.

+ *

The type of the ulimit. Valid values are: core | + * cpu | data | fsize | locks | + * memlock | msgqueue | nice | nofile | + * nproc | rss | rtprio | rttime | + * sigpending | stack.

*/ name: string | undefined; @@ -2500,7 +2516,8 @@ export interface ContainerProperties { * *

This parameter is deprecated, use resourceRequirements to specify the vCPU * requirements for the job definition. It's not supported for jobs running on Fargate resources. - * For jobs running on EC2 resources, it specifies the number of vCPUs reserved for the job.

+ * For jobs running on Amazon EC2 resources, it specifies the number of vCPUs reserved for the + * job.

*

Each vCPU is equivalent to 1,024 CPU shares. This parameter maps to CpuShares * in the Create a container section of the Docker Remote API and the * --cpu-shares option to docker run. The @@ -2515,10 +2532,10 @@ export interface ContainerProperties { * *

This parameter is deprecated, use resourceRequirements to specify the memory * requirements for the job definition. It's not supported for jobs running on Fargate resources. - * For jobs that run on EC2 resources, it specifies the memory hard limit (in MiB) for a container. - * If your container attempts to exceed the specified number, it's terminated. You must specify at - * least 4 MiB of memory for a job using this parameter. The memory hard limit can be specified in - * several places. It must be specified for each node at least once.

+ * For jobs that run on Amazon EC2 resources, it specifies the memory hard limit (in MiB) for a + * container. If your container attempts to exceed the specified number, it's terminated. You must + * specify at least 4 MiB of memory for a job using this parameter. The memory hard limit can be + * specified in several places. It must be specified for each node at least once.

*/ memory?: number; @@ -2659,7 +2676,7 @@ export interface ContainerProperties { * in the Docker documentation.

* *

Batch currently supports a subset of the logging drivers available to the Docker daemon - * (shown in the LogConfiguration data type).

+ * (shown in the LogConfiguration data type).

*
*

This parameter requires version 1.18 of the Docker Remote API or greater on your * container instance. To check the Docker Remote API version on your container instance, log in to your @@ -2685,14 +2702,14 @@ export interface ContainerProperties { /** * @public *

The network configuration for jobs that are running on Fargate resources. Jobs that are - * running on EC2 resources must not specify this parameter.

+ * running on Amazon EC2 resources must not specify this parameter.

*/ networkConfiguration?: NetworkConfiguration; /** * @public *

The platform configuration for jobs that are running on Fargate resources. Jobs that are - * running on EC2 resources must not specify this parameter.

+ * running on Amazon EC2 resources must not specify this parameter.

*/ fargatePlatformConfiguration?: FargatePlatformConfiguration; @@ -2706,7 +2723,8 @@ export interface ContainerProperties { /** * @public - *

An object that represents the compute environment architecture for Batch jobs on Fargate.

+ *

An object that represents the compute environment architecture for Batch jobs on + * Fargate.

*/ runtimePlatform?: RuntimePlatform; @@ -2719,1104 +2737,1955 @@ export interface ContainerProperties { /** * @public - *

An environment variable.

+ *

A list of containers that this task depends on.

*/ -export interface EksContainerEnvironmentVariable { +export interface TaskContainerDependency { /** * @public - *

The name of the environment variable.

+ *

A unique identifier for the container.

*/ - name: string | undefined; + containerName?: string; /** * @public - *

The value of the environment variable.

+ *

The dependency condition of the container. The following are the available conditions and + * their behavior:

+ *
    + *
  • + *

    + * START - This condition emulates the behavior of links and volumes today. It validates that a dependent container is started before permitting other containers to start.

    + *
  • + *
  • + *

    + * COMPLETE - This condition validates that a dependent container runs to + * completion (exits) before permitting other containers to start. This can be useful for + * nonessential containers that run a script and then exit. This condition can't be set on an + * essential container.

    + *
  • + *
  • + *

    + * SUCCESS - This condition is the same as COMPLETE, but it also + * requires that the container exits with a zero status. This condition can't be set on an + * essential container.

    + *
  • + *
*/ - value?: string; + condition?: string; } /** * @public - *

The type and amount of resources to assign to a container. The supported resources include - * memory, cpu, and nvidia.com/gpu. For more information, - * see Resource management for pods and containers in the Kubernetes - * documentation.

+ *

Container properties are used for Amazon ECS-based job definitions. These properties to describe + * the container that's launched as part of a job.

*/ -export interface EksContainerResourceRequirements { +export interface TaskContainerProperties { /** * @public - *

The type and quantity of the resources to reserve for the container. The values vary based - * on the name that's specified. Resources can be requested using either the - * limits or the requests objects.

- *
- *
memory
- *
- *

The memory hard limit (in MiB) for the container, using whole integers, with a "Mi" - * suffix. If your container attempts to exceed the memory specified, the container is - * terminated. You must specify at least 4 MiB of memory for a job. memory can be - * specified in limits, requests, or both. If memory is - * specified in both places, then the value that's specified in limits must be equal - * to the value that's specified in requests.

- * - *

To maximize your resource utilization, provide your jobs with as much memory as possible - * for the specific instance type that you are using. To learn how, see Memory management in the - * Batch User Guide.

- *
- *
- *
cpu
- *
- *

The number of CPUs that's reserved for the container. Values must be an even multiple of - * 0.25. cpu can be specified in limits, - * requests, or both. If cpu is specified in both places, then the - * value that's specified in limits must be at least as large as the value that's - * specified in requests.

- *
- *
nvidia.com/gpu
- *
- *

The number of GPUs that's reserved for the container. Values must be a whole integer. - * memory can be specified in limits, requests, or both. - * If memory is specified in both places, then the value that's specified in - * limits must be equal to the value that's specified in - * requests.

- *
- *
+ *

The command that's 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 Dockerfile reference: + * CMD.

*/ - limits?: Record; + command?: string[]; /** * @public - *

The type and quantity of the resources to request for the container. The values vary based - * on the name that's specified. Resources can be requested by using either the - * limits or the requests objects.

- *
- *
memory
- *
- *

The memory hard limit (in MiB) for the container, using whole integers, with a "Mi" - * suffix. If your container attempts to exceed the memory specified, the container is - * terminated. You must specify at least 4 MiB of memory for a job. memory can be - * specified in limits, requests, or both. If memory is - * specified in both, then the value that's specified in limits must be equal to the - * value that's specified in requests.

- * - *

If you're 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 - * Batch User Guide.

- *
- *
- *
cpu
- *
- *

The number of CPUs that are reserved for the container. Values must be an even multiple - * of 0.25. cpu can be specified in limits, - * requests, or both. If cpu is specified in both, then the value - * that's specified in limits must be at least as large as the value that's - * specified in requests.

- *
- *
nvidia.com/gpu
- *
- *

The number of GPUs that are reserved for the container. Values must be a whole integer. - * nvidia.com/gpu can be specified in limits, requests, - * or both. If nvidia.com/gpu is specified in both, then the value that's specified - * in limits must be equal to the value that's specified in - * requests.

- *
- *
+ *

A list of containers that this container depends on.

*/ - requests?: Record; -} + dependsOn?: TaskContainerDependency[]; -/** - * @public - *

The security context for a job. For more information, see Configure a - * security context for a pod or container in the Kubernetes - * documentation.

- */ -export interface EksContainerSecurityContext { /** * @public - *

When this parameter is specified, the container is run as the specified user ID - * (uid). If this parameter isn't specified, the default is the user that's specified - * in the image metadata. This parameter maps to RunAsUser and MustRanAs - * policy in the Users - * and groups pod security policies in the Kubernetes - * documentation.

+ *

The environment variables to pass to a container. This parameter maps to Env inthe Create a container + * section of the Docker Remote API + * and the --env parameter to docker run.

+ * + *

We don't recommend using plaintext environment variables for sensitive information, such as + * credential data.

+ *
+ * + *

Environment variables cannot start with AWS_BATCH. This naming convention is + * reserved for variables that Batch sets.

+ *
*/ - runAsUser?: number; + environment?: KeyValuePair[]; /** * @public - *

When this parameter is specified, the container is run as the specified group ID - * (gid). If this parameter isn't specified, the default is the group that's specified - * in the image metadata. This parameter maps to RunAsGroup and MustRunAs - * policy in the Users - * and groups pod security policies in the Kubernetes - * documentation.

+ *

If the essential parameter of a container is marked as true, and that container + * fails or stops for any reason, all other containers that are part of the task are stopped. If the + * essential parameter of a container is marked as false, its failure doesn't affect + * the rest of the containers in a task. If this parameter is omitted, a container is assumed to be + * essential.

+ *

All tasks must have at least one essential container. If you have an application that's + * composed of multiple containers, group containers that are used for a common purpose into + * components, and separate the different components into multiple task definitions. For more + * information, see Application + * Architecture in the Amazon Elastic Container Service Developer Guide.

*/ - runAsGroup?: number; + essential?: boolean; /** * @public - *

When this parameter is true, the container is given elevated permissions on the - * host container instance. The level of permissions are similar to the root user - * permissions. The default value is false. This parameter maps to - * privileged policy in the Privileged - * pod security policies in the Kubernetes documentation.

+ *

The image used to start a container. This string is passed directly to the Docker daemon. By + * default, images in the Docker Hub registry are available. Other repositories are specified with + * either repository-url/image:tag or repository-url/image@digest. 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 the + * docker + * run + * .

*/ - privileged?: boolean; + image: string | undefined; /** * @public - *

When this parameter is true, the container is given read-only access to its - * root file system. The default value is false. This parameter maps to - * ReadOnlyRootFilesystem policy in the Volumes and file systems pod security policies in the Kubernetes - * documentation.

+ *

Linux-specific modifications that are applied to the container, such as Linux kernel + * capabilities. For more information, see KernelCapabilities.

*/ - readOnlyRootFilesystem?: boolean; + linuxParameters?: LinuxParameters; /** * @public - *

When this parameter is specified, the container is run as a user with a uid - * other than 0. If this parameter isn't specified, so such rule is enforced. This parameter maps to - * RunAsUser and MustRunAsNonRoot policy in the Users - * and groups pod security policies in the Kubernetes - * documentation.

+ *

The log configuration specification for the container.

+ *

This parameter maps to LogConfig in the Create a + * container section of the Docker + * Remote API and the --log-driver option to docker + * run.

+ *

By default, containers use the same logging driver that the Docker daemon uses. However the + * container can use a different logging driver than the Docker daemon by specifying a log driver + * with this parameter in the container definition. To use a different logging driver for a + * container, the log system must be configured properly on the container instance (or on a + * different log server for remote logging options). For more information about the options for + * different supported log drivers, see Configure logging drivers + * in the Docker documentation.

+ * + *

Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon + * (shown in the LogConfiguration data type). Additional log drivers may be available + * in future releases of the Amazon ECS container agent.

+ *
+ *

This parameter requires version 1.18 of the Docker Remote API or greater on your container + * instance. To check the Docker Remote API version on your container instance, log in to your + * container instance and run the following command: sudo docker version --format + * '\{\{.Server.APIVersion\}\}' + *

+ * + *

The Amazon ECS container agent running on a container instance must register the logging drivers + * available on that instance with the ECS_AVAILABLE_LOGGING_DRIVERS environment + * variable before containers placed on that instance can use these log configuration options. For + * more information, see Amazon ECS container agent + * configuration in the Amazon Elastic Container Service Developer Guide.

+ *
*/ - runAsNonRoot?: boolean; -} + logConfiguration?: LogConfiguration; -/** - * @public - *

The volume mounts for a container for an Amazon EKS job. For more information about volumes and - * volume mounts in Kubernetes, see Volumes in the Kubernetes documentation.

- */ -export interface EksContainerVolumeMount { /** * @public - *

The name the volume mount. This must match the name of one of the volumes in the - * pod.

+ *

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.

+ *

Windows containers can mount whole directories on the same drive as + * $env:ProgramData. Windows containers can't mount directories on a different drive, + * and mount point can't be across drives.

+ */ + mountPoints?: MountPoint[]; + + /** + * @public + *

The name of a container. The name can be used as a unique identifier to target your dependsOn and Overrides objects.

*/ name?: string; /** * @public - *

The path on the container where the volume is mounted.

+ *

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.

+ * + *

This parameter is not supported for Windows containers or tasks run on Fargate.

+ *
*/ - mountPath?: string; + privileged?: boolean; /** * @public - *

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.

+ *

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.

+ * + *

This parameter is not supported for Windows containers.

+ *
*/ - readOnly?: boolean; -} + readonlyRootFilesystem?: boolean; -/** - * @public - *

EKS container properties are used in job definitions for Amazon EKS based job definitions to - * describe the properties for a container node in the pod that's launched as part of a job. This - * can't be specified for Amazon ECS based job definitions.

- */ -export interface EksContainer { /** * @public - *

The name of the container. If the name isn't specified, the default name - * "Default" is used. Each container in a pod must have a unique name.

+ *

The private repository authentication credentials to use.

*/ - name?: string; + repositoryCredentials?: RepositoryCredentials; /** * @public - *

The Docker image used to start the container.

+ *

The type and amount of a resource to assign to a container. The only supported resource is a + * GPU.

*/ - image: string | undefined; + resourceRequirements?: ResourceRequirement[]; /** * @public - *

The image pull policy for the container. Supported values are Always, - * IfNotPresent, and Never. This parameter defaults to - * IfNotPresent. However, if the :latest tag is specified, it defaults to - * Always. For more information, see Updating - * images in the Kubernetes documentation.

+ *

The secrets to pass to the container. For more information, see Specifying Sensitive + * Data in the Amazon Elastic Container Service Developer Guide.

*/ - imagePullPolicy?: string; + secrets?: Secret[]; /** * @public - *

The entrypoint for the container. This isn't run within a shell. If this isn't specified, - * the ENTRYPOINT of the container image is used. Environment variable references are - * expanded using the container's environment.

- *

If the referenced environment variable doesn't exist, the reference in the command isn't - * changed. For example, if the reference is to "$(NAME1)" and the NAME1 - * environment variable doesn't exist, the command string will remain "$(NAME1)." - * $$ is replaced with $ and the resulting string isn't expanded. For - * example, $$(VAR_NAME) will be passed as $(VAR_NAME) whether or not the - * VAR_NAME environment variable exists. The entrypoint can't be updated. For more - * information, see ENTRYPOINT in the Dockerfile reference and Define a command and arguments for a container and Entrypoint in the Kubernetes documentation.

+ *

A list of ulimits to set in the container. If a ulimit value is + * specified in a task definition, it overrides the default values set by Docker. This parameter + * maps to Ulimits in the Create a + * container section of the Docker + * Remote API and the --ulimit option to docker + * run.

+ *

Amazon ECS tasks hosted on Fargate use the default resource limit values set by the operating + * system with the exception of the nofile resource limit parameter which Fargate overrides. The + * nofile resource limit sets a restriction on the number of open files that a + * container can use. The default nofile soft limit is 1024 and the + * default hard limit is 65535.

+ *

This parameter requires version 1.18 of the Docker Remote API or greater on your container + * instance. To check the Docker Remote API version on your container instance, log in to your + * container instance and run the following command: sudo docker version --format + * '\{\{.Server.APIVersion\}\}' + *

+ * + *

This parameter is not supported for Windows containers.

+ *
*/ - command?: string[]; + ulimits?: Ulimit[]; /** * @public - *

An array of arguments to the entrypoint. If this isn't specified, the CMD of - * the container image is used. This corresponds to the args member in the Entrypoint portion of the Pod + *

The user 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.

+ * + *

When running tasks using the host network mode, don't run containers using the + * root user (UID 0). We recommend using a non-root user for better security.

+ *
+ *

You can specify the user using the following formats. If specifying a UID or + * GID, you must specify it as a positive integer.

+ *
    + *
  • + *

    + * user + *

    + *
  • + *
  • + *

    + * user:group + *

    + *
  • + *
  • + *

    + * uid + *

    + *
  • + *
  • + *

    + * uid:gid + *

    + *
  • + *
  • + *

    + * user:gi + *

    + *
  • + *
  • + *

    + * uid:group + *

    + *
  • + *
+ * + *

This parameter is not supported for Windows containers.

+ *
+ */ + user?: string; +} + +/** + * @public + *

The properties for a task definition that describes the container and volume definitions of + * an Amazon ECS task. You can specify which Docker images to use, the required resources, and other + * configurations related to launching the task definition through an Amazon ECS service or task.

+ */ +export interface EcsTaskProperties { + /** + * @public + *

This object is a list of containers.

+ */ + containers: TaskContainerProperties[] | undefined; + + /** + * @public + *

The amount of ephemeral storage to allocate for the task. This parameter is used to expand + * the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on + * Fargate.

+ */ + ephemeralStorage?: EphemeralStorage; + + /** + * @public + *

The Amazon Resource Name (ARN) of the execution role that Batch can assume. For jobs that run on Fargate + * resources, you must provide an execution role. For more information, see Batch execution IAM role + * in the Batch User Guide.

+ */ + executionRoleArn?: string; + + /** + * @public + *

The Fargate platform version where the jobs are running. A platform version is specified + * only for jobs that are running on Fargate resources. If one isn't specified, the + * LATEST platform version is used by default. This uses a recent, approved version of + * the Fargate platform for compute resources. For more information, see Fargate + * platform versions in the Amazon Elastic Container Service Developer Guide.

+ */ + platformVersion?: string; + + /** + * @public + *

The IPC resource namespace to use for the containers in the task. The valid values are + * host, task, or none.

+ *

If host is specified, all containers within the tasks that specified the + * host IPC mode on the same container instance share the same IPC resources with the + * host Amazon EC2 instance.

+ *

If task is specified, all containers within the specified task + * share the same IPC resources.

+ *

If none is specified, the IPC resources within the containers of a task are + * private, and are not shared with other containers in a task or on the container instance.

+ *

If no value is specified, then the IPC resource namespace sharing depends on the Docker + * daemon setting on the container instance. For more information, see IPC settings in + * the Docker run reference.

+ */ + ipcMode?: string; + + /** + * @public + *

The Amazon Resource Name (ARN) that's associated with the Amazon ECS task.

+ * + *

This is object is comparable to ContainerProperties:jobRoleArn.

+ *
+ */ + taskRoleArn?: string; + + /** + * @public + *

The process namespace to use for the containers in the task. The valid values are + * host or task. For example, monitoring sidecars might need + * pidMode to access information about other containers running in the same + * task.

+ *

If host is specified, all containers within the tasks that specified the + * host PID mode on the same container instance share the process namespace with the + * host Amazon EC2 instance.

+ *

If task is specified, all containers within the specified task share the same + * process namespace.

+ *

If no value is specified, the default is a private namespace for each container. For more + * information, see PID settings in the Docker run reference.

+ */ + pidMode?: string; + + /** + * @public + *

The network configuration for jobs that are running on Fargate resources. Jobs that are + * running on Amazon EC2 resources must not specify this parameter.

+ */ + networkConfiguration?: NetworkConfiguration; + + /** + * @public + *

An object that represents the compute environment architecture for Batch jobs on + * Fargate.

+ */ + runtimePlatform?: RuntimePlatform; + + /** + * @public + *

A list of volumes that are associated with the job.

+ */ + volumes?: Volume[]; +} + +/** + * @public + *

An object that contains the properties for the Amazon ECS resources of a job.

+ */ +export interface EcsProperties { + /** + * @public + *

An object that contains the properties for the Amazon ECS task definition of a job.

+ * + *

This object is currently limited to one element.

+ *
+ */ + taskProperties: EcsTaskProperties[] | undefined; +} + +/** + * @public + *

An environment variable.

+ */ +export interface EksContainerEnvironmentVariable { + /** + * @public + *

The name of the environment variable.

+ */ + name: string | undefined; + + /** + * @public + *

The value of the environment variable.

+ */ + value?: string; +} + +/** + * @public + *

The type and amount of resources to assign to a container. The supported resources include + * memory, cpu, and nvidia.com/gpu. For more information, + * see Resource management for pods and containers in the Kubernetes + * documentation.

+ */ +export interface EksContainerResourceRequirements { + /** + * @public + *

The type and quantity of the resources to reserve for the container. The values vary based + * on the name that's specified. Resources can be requested using either the + * limits or the requests objects.

+ *
+ *
memory
+ *
+ *

The memory hard limit (in MiB) for the container, using whole integers, with a "Mi" + * suffix. If your container attempts to exceed the memory specified, the container is + * terminated. You must specify at least 4 MiB of memory for a job. memory can be + * specified in limits, requests, or both. If memory is + * specified in both places, then the value that's specified in limits must be equal + * to the value that's specified in requests.

+ * + *

To maximize your resource utilization, provide your jobs with as much memory as possible + * for the specific instance type that you are using. To learn how, see Memory management in the + * Batch User Guide.

+ *
+ *
+ *
cpu
+ *
+ *

The number of CPUs that's reserved for the container. Values must be an even multiple of + * 0.25. cpu can be specified in limits, + * requests, or both. If cpu is specified in both places, then the + * value that's specified in limits must be at least as large as the value that's + * specified in requests.

+ *
+ *
nvidia.com/gpu
+ *
+ *

The number of GPUs that's reserved for the container. Values must be a whole integer. + * memory can be specified in limits, requests, or both. + * If memory is specified in both places, then the value that's specified in + * limits must be equal to the value that's specified in + * requests.

+ *
+ *
+ */ + limits?: Record; + + /** + * @public + *

The type and quantity of the resources to request for the container. The values vary based + * on the name that's specified. Resources can be requested by using either the + * limits or the requests objects.

+ *
+ *
memory
+ *
+ *

The memory hard limit (in MiB) for the container, using whole integers, with a "Mi" + * suffix. If your container attempts to exceed the memory specified, the container is + * terminated. You must specify at least 4 MiB of memory for a job. memory can be + * specified in limits, requests, or both. If memory is + * specified in both, then the value that's specified in limits must be equal to the + * value that's specified in requests.

+ * + *

If you're 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 + * Batch User Guide.

+ *
+ *
+ *
cpu
+ *
+ *

The number of CPUs that are reserved for the container. Values must be an even multiple + * of 0.25. cpu can be specified in limits, + * requests, or both. If cpu is specified in both, then the value + * that's specified in limits must be at least as large as the value that's + * specified in requests.

+ *
+ *
nvidia.com/gpu
+ *
+ *

The number of GPUs that are reserved for the container. Values must be a whole integer. + * nvidia.com/gpu can be specified in limits, requests, + * or both. If nvidia.com/gpu is specified in both, then the value that's specified + * in limits must be equal to the value that's specified in + * requests.

+ *
+ *
+ */ + requests?: Record; +} + +/** + * @public + *

The security context for a job. For more information, see Configure a + * security context for a pod or container in the Kubernetes + * documentation.

+ */ +export interface EksContainerSecurityContext { + /** + * @public + *

When this parameter is specified, the container is run as the specified user ID + * (uid). If this parameter isn't specified, the default is the user that's specified + * in the image metadata. This parameter maps to RunAsUser and MustRanAs + * policy in the Users + * and groups pod security policies in the Kubernetes + * documentation.

+ */ + runAsUser?: number; + + /** + * @public + *

When this parameter is specified, the container is run as the specified group ID + * (gid). If this parameter isn't specified, the default is the group that's specified + * in the image metadata. This parameter maps to RunAsGroup and MustRunAs + * policy in the Users + * and groups pod security policies in the Kubernetes + * documentation.

+ */ + runAsGroup?: number; + + /** + * @public + *

When this parameter is true, the container is given elevated permissions on the + * host container instance. The level of permissions are similar to the root user + * permissions. The default value is false. This parameter maps to + * privileged policy in the Privileged + * pod security policies in the Kubernetes documentation.

+ */ + privileged?: boolean; + + /** + * @public + *

When this parameter is true, the container is given read-only access to its + * root file system. The default value is false. This parameter maps to + * ReadOnlyRootFilesystem policy in the Volumes and file systems pod security policies in the Kubernetes + * documentation.

+ */ + readOnlyRootFilesystem?: boolean; + + /** + * @public + *

When this parameter is specified, the container is run as a user with a uid + * other than 0. If this parameter isn't specified, so such rule is enforced. This parameter maps to + * RunAsUser and MustRunAsNonRoot policy in the Users + * and groups pod security policies in the Kubernetes + * documentation.

+ */ + runAsNonRoot?: boolean; +} + +/** + * @public + *

The volume mounts for a container for an Amazon EKS job. For more information about volumes and + * volume mounts in Kubernetes, see Volumes in the Kubernetes documentation.

+ */ +export interface EksContainerVolumeMount { + /** + * @public + *

The name the volume mount. This must match the name of one of the volumes in the + * pod.

+ */ + name?: string; + + /** + * @public + *

The path on the container where the volume is mounted.

+ */ + mountPath?: string; + + /** + * @public + *

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.

+ */ + readOnly?: boolean; +} + +/** + * @public + *

EKS container properties are used in job definitions for Amazon EKS based job definitions to + * describe the properties for a container node in the pod that's launched as part of a job. This + * can't be specified for Amazon ECS based job definitions.

+ */ +export interface EksContainer { + /** + * @public + *

The name of the container. If the name isn't specified, the default name + * "Default" is used. Each container in a pod must have a unique name.

+ */ + name?: string; + + /** + * @public + *

The Docker image used to start the container.

+ */ + image: string | undefined; + + /** + * @public + *

The image pull policy for the container. Supported values are Always, + * IfNotPresent, and Never. This parameter defaults to + * IfNotPresent. However, if the :latest tag is specified, it defaults to + * Always. For more information, see Updating + * images in the Kubernetes documentation.

+ */ + imagePullPolicy?: string; + + /** + * @public + *

The entrypoint for the container. This isn't run within a shell. If this isn't specified, + * the ENTRYPOINT of the container image is used. Environment variable references are + * expanded using the container's environment.

+ *

If the referenced environment variable doesn't exist, the reference in the command isn't + * changed. For example, if the reference is to "$(NAME1)" and the NAME1 + * environment variable doesn't exist, the command string will remain "$(NAME1)." + * $$ is replaced with $ and the resulting string isn't expanded. For + * example, $$(VAR_NAME) will be passed as $(VAR_NAME) whether or not the + * VAR_NAME environment variable exists. The entrypoint can't be updated. For more + * information, see ENTRYPOINT in the Dockerfile reference and Define a command and arguments for a container and Entrypoint in the Kubernetes documentation.

+ */ + command?: string[]; + + /** + * @public + *

An array of arguments to the entrypoint. If this isn't specified, the CMD of + * the container image is used. This corresponds to the args member in the Entrypoint portion of the Pod * in Kubernetes. Environment variable references are expanded using the container's environment.

*

If the referenced environment variable doesn't exist, the reference in the command isn't * changed. For example, if the reference is to "$(NAME1)" and the NAME1 * environment variable doesn't exist, the command string will remain "$(NAME1)." * $$ is replaced with $, and the resulting string isn't expanded. For * example, $$(VAR_NAME) is passed as $(VAR_NAME) whether or not the - * VAR_NAME environment variable exists. For more information, see CMD in the - * Dockerfile reference and Define a command and arguments for a pod in the Kubernetes + * VAR_NAME environment variable exists. For more information, see Dockerfile reference: CMD + * and Define a command and arguments for a pod in the Kubernetes + * documentation.

+ */ + args?: string[]; + + /** + * @public + *

The environment variables to pass to a container.

+ * + *

Environment variables cannot start with "AWS_BATCH". This naming + * convention is reserved for variables that Batch sets.

+ *
+ */ + env?: EksContainerEnvironmentVariable[]; + + /** + * @public + *

The type and amount of resources to assign to a container. The supported resources include + * memory, cpu, and nvidia.com/gpu. For more information, + * see Resource management for pods and containers in the Kubernetes * documentation.

*/ - args?: string[]; + resources?: EksContainerResourceRequirements; + + /** + * @public + *

The volume mounts for the container. Batch supports emptyDir, + * hostPath, and secret volume types. For more information about volumes + * and volume mounts in Kubernetes, see Volumes in the Kubernetes documentation.

+ */ + volumeMounts?: EksContainerVolumeMount[]; + + /** + * @public + *

The security context for a job. For more information, see Configure a + * security context for a pod or container in the Kubernetes + * documentation.

+ */ + securityContext?: EksContainerSecurityContext; +} + +/** + * @public + *

Describes and uniquely identifies Kubernetes resources. For example, the compute environment that + * a pod runs in or the jobID for a job running in the pod. For more information, see + * Understanding Kubernetes Objects in the Kubernetes documentation.

+ */ +export interface EksMetadata { + /** + * @public + *

Key-value pairs used to identify, sort, and organize cube resources. Can contain up to 63 + * uppercase letters, lowercase letters, numbers, hyphens (-), and underscores (_). Labels can be + * added or modified at any time. Each resource can have multiple labels, but each key must be + * unique for a given object.

+ */ + labels?: Record; +} + +/** + * @public + *

Specifies the configuration of a Kubernetes emptyDir volume. An + * emptyDir volume is first created when a pod is assigned to a node. It exists as + * long as that pod is running on that node. The emptyDir volume is initially empty. + * All containers in the pod can read and write the files in the emptyDir volume. + * However, the emptyDir volume can be mounted at the same or different paths in each + * container. When a pod is removed from a node for any reason, the data in the + * emptyDir is deleted permanently. For more information, see emptyDir in the + * Kubernetes documentation.

+ */ +export interface EksEmptyDir { + /** + * @public + *

The medium to store the volume. The default value is an empty string, which uses the storage + * of the node.

+ *
+ *
""
+ *
+ *

+ * (Default) Use the disk storage of the node.

+ *
+ *
"Memory"
+ *
+ *

Use the tmpfs volume that's backed by the RAM of the node. Contents of the + * volume are lost when the node reboots, and any storage on the volume counts against the + * container's memory limit.

+ *
+ *
+ */ + medium?: string; + + /** + * @public + *

The maximum size of the volume. By default, there's no maximum size defined.

+ */ + sizeLimit?: string; +} + +/** + * @public + *

Specifies the configuration of a Kubernetes hostPath volume. A hostPath + * volume mounts an existing file or directory from the host node's filesystem into your pod. For + * more information, see hostPath in the Kubernetes documentation.

+ */ +export interface EksHostPath { + /** + * @public + *

The path of the file or directory on the host to mount into containers on the pod.

+ */ + path?: string; +} + +/** + * @public + *

Specifies the configuration of a Kubernetes secret volume. For more information, see + * secret in the + * Kubernetes documentation.

+ */ +export interface EksSecret { + /** + * @public + *

The name of the secret. The name must be allowed as a DNS subdomain name. For more + * information, see DNS subdomain names in the Kubernetes documentation.

+ */ + secretName: string | undefined; + + /** + * @public + *

Specifies whether the secret or the secret's keys must be defined.

+ */ + optional?: boolean; +} + +/** + * @public + *

Specifies an Amazon EKS volume for a job definition.

+ */ +export interface EksVolume { + /** + * @public + *

The name of the volume. The name must be allowed as a DNS subdomain name. For more + * information, see DNS subdomain names in the Kubernetes documentation.

+ */ + name: string | undefined; + + /** + * @public + *

Specifies the configuration of a Kubernetes hostPath volume. For more information, + * see hostPath + * in the Kubernetes documentation.

+ */ + hostPath?: EksHostPath; + + /** + * @public + *

Specifies the configuration of a Kubernetes emptyDir volume. For more information, + * see emptyDir + * in the Kubernetes documentation.

+ */ + emptyDir?: EksEmptyDir; /** * @public - *

The environment variables to pass to a container.

+ *

Specifies the configuration of a Kubernetes secret volume. For more information, see + * secret in the + * Kubernetes documentation.

+ */ + secret?: EksSecret; +} + +/** + * @public + *

The properties for the pod.

+ */ +export interface EksPodProperties { + /** + * @public + *

The name of the service account that's used to run the pod. For more information, see + * Kubernetes service + * accounts and Configure a Kubernetes service account + * to assume an IAM role in the Amazon EKS User Guide and Configure service accounts for pods in the Kubernetes + * documentation.

+ */ + serviceAccountName?: string; + + /** + * @public + *

Indicates if the pod uses the hosts' network IP address. The default value is + * true. Setting this to false enables the Kubernetes pod networking model. + * Most Batch workloads are egress-only and don't require the overhead of IP allocation for each + * pod for incoming connections. For more information, see Host + * namespaces and Pod networking + * in the Kubernetes documentation.

+ */ + hostNetwork?: boolean; + + /** + * @public + *

The DNS policy for the pod. The default value is ClusterFirst. If the + * hostNetwork parameter is not specified, the default is + * ClusterFirstWithHostNet. ClusterFirst indicates that any DNS query + * that does not match the configured cluster domain suffix is forwarded to the upstream nameserver + * inherited from the node. For more information, see Pod's DNS policy in the Kubernetes documentation.

+ *

Valid values: Default | ClusterFirst | + * ClusterFirstWithHostNet + *

+ */ + dnsPolicy?: string; + + /** + * @public + *

The properties of the container that's used on the Amazon EKS pod.

+ */ + containers?: EksContainer[]; + + /** + * @public + *

These containers run before application containers, always runs to completion, and must complete successfully before the next container starts. These containers are registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store. For more information, see Init + * Containers in the Kubernetes documentation.

* - *

Environment variables cannot start with "AWS_BATCH". This naming - * convention is reserved for variables that Batch sets.

+ *

This object is limited to 10 elements

*
*/ - env?: EksContainerEnvironmentVariable[]; + initContainers?: EksContainer[]; /** * @public - *

The type and amount of resources to assign to a container. The supported resources include - * memory, cpu, and nvidia.com/gpu. For more information, - * see Resource management for pods and containers in the Kubernetes - * documentation.

+ *

Specifies the volumes for a job definition that uses Amazon EKS resources.

*/ - resources?: EksContainerResourceRequirements; + volumes?: EksVolume[]; /** * @public - *

The volume mounts for the container. Batch supports emptyDir, - * hostPath, and secret volume types. For more information about volumes - * and volume mounts in Kubernetes, see Volumes in the Kubernetes documentation.

+ *

Metadata about the + * Kubernetes + * pod. For + * more information, see Understanding Kubernetes Objects in the Kubernetes + * documentation.

*/ - volumeMounts?: EksContainerVolumeMount[]; + metadata?: EksMetadata; /** * @public - *

The security context for a job. For more information, see Configure a - * security context for a pod or container in the Kubernetes - * documentation.

+ *

Indicates if the processes in a container are shared, or visible, to other containers in the + * same pod. For more information, see Share + * Process Namespace between Containers in a Pod.

+ */ + shareProcessNamespace?: boolean; +} + +/** + * @public + *

An object that contains the properties for the Kubernetes resources of a job.

+ */ +export interface EksProperties { + /** + * @public + *

The properties for the Kubernetes pod resources of a job.

+ */ + podProperties?: EksPodProperties; +} + +/** + * @public + *

This is an object that represents the properties of the node range for a multi-node parallel + * job.

+ */ +export interface NodeRangeProperty { + /** + * @public + *

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 can nest + * node ranges (for example, 0:10 and 4:5). In this case, the + * 4:5 range properties override the 0:10 properties.

+ */ + targetNodes: string | undefined; + + /** + * @public + *

The container details for the node range.

+ */ + container?: ContainerProperties; + + /** + * @public + *

The instance types of the underlying host infrastructure of a multi-node parallel job.

+ * + *

This parameter isn't applicable to jobs that are running on Fargate resources.

+ *

In addition, this list object is currently limited to one element.

+ *
+ */ + instanceTypes?: string[]; + + /** + * @public + *

This is an object that represents the properties of the node range for a multi-node parallel + * job.

+ */ + ecsProperties?: EcsProperties; +} + +/** + * @public + *

An object that represents the node properties of a multi-node parallel job.

+ * + *

Node properties can't be specified for Amazon EKS based job definitions.

+ *
+ */ +export interface NodeProperties { + /** + * @public + *

The number of nodes that are associated with a multi-node parallel job.

+ */ + numNodes: number | undefined; + + /** + * @public + *

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.

+ */ + mainNode: number | undefined; + + /** + * @public + *

A list of node ranges and their properties that are associated with a multi-node parallel + * job.

+ */ + nodeRangeProperties: NodeRangeProperty[] | undefined; +} + +/** + * @public + * @enum + */ +export const PlatformCapability = { + EC2: "EC2", + FARGATE: "FARGATE", +} as const; + +/** + * @public + */ +export type PlatformCapability = (typeof PlatformCapability)[keyof typeof PlatformCapability]; + +/** + * @public + * @enum + */ +export const RetryAction = { + EXIT: "EXIT", + RETRY: "RETRY", +} as const; + +/** + * @public + */ +export type RetryAction = (typeof RetryAction)[keyof typeof RetryAction]; + +/** + * @public + *

Specifies an array of up to 5 conditions to be met, and an action to take + * (RETRY or EXIT) if all conditions are met. If none of the + * EvaluateOnExit conditions in a RetryStrategy match, then the job is + * retried.

+ */ +export interface EvaluateOnExit { + /** + * @public + *

Contains a glob pattern to match against the StatusReason returned for a job. + * The pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), + * colons (:), and white spaces (including spaces or tabs). + * It can + * optionally end with an asterisk (*) so that only the start of the string needs to be an exact + * match.

+ */ + onStatusReason?: string; + + /** + * @public + *

Contains a glob pattern to match against the Reason returned for a job. The + * pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), colons + * (:), and white space (including spaces and tabs). It can optionally end with an asterisk (*) so + * that only the start of the string needs to be an exact match.

+ */ + onReason?: string; + + /** + * @public + *

Contains a glob pattern to match against the decimal representation of the + * ExitCode returned for a job. The pattern can be up to 512 characters long. It can + * contain only numbers, and can end with an asterisk (*) so that only the start of the string needs + * to be an exact match.

+ *

The string can contain up to 512 characters.

+ */ + onExitCode?: string; + + /** + * @public + *

Specifies the action to take if all of the specified conditions + * (onStatusReason, onReason, and onExitCode) are met. The + * values aren't case sensitive.

+ */ + action: RetryAction | undefined; +} + +/** + * @public + *

The retry strategy that's associated with a job. For more information, see Automated job retries in the + * Batch User Guide.

+ */ +export interface RetryStrategy { + /** + * @public + *

The number of times to move a job to the RUNNABLE status. You can 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.

+ */ + attempts?: number; + + /** + * @public + *

Array of up to 5 objects that specify the conditions where jobs are retried or failed. If + * this parameter is specified, then the attempts parameter must also be specified. If + * none of the listed conditions match, then the job is retried.

*/ - securityContext?: EksContainerSecurityContext; + evaluateOnExit?: EvaluateOnExit[]; } /** * @public - *

Describes and uniquely identifies Kubernetes resources. For example, the compute environment - * that a pod runs in or the jobID for a job running in the pod. For more information, - * see Understanding Kubernetes Objects in the Kubernetes - * documentation.

+ *

An object that represents a job timeout configuration.

*/ -export interface EksMetadata { +export interface JobTimeout { /** * @public - *

Key-value pairs used to identify, sort, and organize cube resources. Can contain up to 63 - * uppercase letters, lowercase letters, numbers, hyphens (-), and underscores (_). Labels can be - * added or modified at any time. Each resource can have multiple labels, but each key must be - * unique for a given object.

+ *

The job timeout time (in seconds) that's measured from the job attempt's + * startedAt timestamp. After this time passes, Batch terminates your jobs if they + * aren't finished. The minimum value for the timeout is 60 seconds.

+ *

For array jobs, the timeout applies to the child jobs, not to the parent array job.

+ *

For multi-node parallel (MNP) jobs, the timeout applies to the whole job, not to the + * individual nodes.

*/ - labels?: Record; + attemptDurationSeconds?: number; } /** * @public - *

Specifies the configuration of a Kubernetes emptyDir volume. An - * emptyDir volume is first created when a pod is assigned to a node. It exists as - * long as that pod is running on that node. The emptyDir volume is initially empty. - * All containers in the pod can read and write the files in the emptyDir volume. - * However, the emptyDir volume can be mounted at the same or different paths in each - * container. When a pod is removed from a node for any reason, the data in the - * emptyDir is deleted permanently. For more information, see emptyDir in the - * Kubernetes documentation.

+ *

An object that represents an Batch job definition.

*/ -export interface EksEmptyDir { +export interface JobDefinition { /** * @public - *

The medium to store the volume. The default value is an empty string, which uses the storage - * of the node.

- *
- *
""
- *
- *

- * (Default) Use the disk storage of the node.

- *
- *
"Memory"
- *
- *

Use the tmpfs volume that's backed by the RAM of the node. Contents of the - * volume are lost when the node reboots, and any storage on the volume counts against the - * container's memory limit.

- *
- *
+ *

The name of the job definition.

*/ - medium?: string; + jobDefinitionName: string | undefined; /** * @public - *

The maximum size of the volume. By default, there's no maximum size defined.

+ *

The Amazon Resource Name (ARN) for the job definition.

*/ - sizeLimit?: string; -} + jobDefinitionArn: string | undefined; -/** - * @public - *

Specifies the configuration of a Kubernetes hostPath volume. A hostPath - * volume mounts an existing file or directory from the host node's filesystem into your pod. For - * more information, see hostPath in the Kubernetes documentation.

- */ -export interface EksHostPath { /** * @public - *

The path of the file or directory on the host to mount into containers on the pod.

+ *

The revision of the job definition.

*/ - path?: string; -} + revision: number | undefined; -/** - * @public - *

Specifies the configuration of a Kubernetes secret volume. For more information, see - * secret in the - * Kubernetes documentation.

- */ -export interface EksSecret { /** * @public - *

The name of the secret. The name must be allowed as a DNS subdomain name. For more - * information, see DNS subdomain names in the Kubernetes documentation.

+ *

The status of the job definition.

*/ - secretName: string | undefined; + status?: string; /** * @public - *

Specifies whether the secret or the secret's keys must be defined.

+ *

The type of job definition. It's either container or multinode. If + * the job is run on Fargate resources, then multinode isn't supported. For more + * information about multi-node parallel jobs, see Creating a multi-node parallel job definition in + * the Batch User Guide.

*/ - optional?: boolean; -} + type: string | undefined; -/** - * @public - *

Specifies an Amazon EKS volume for a job definition.

- */ -export interface EksVolume { /** * @public - *

The name of the volume. The name must be allowed as a DNS subdomain name. For more - * information, see DNS subdomain names in the Kubernetes documentation.

+ *

The scheduling priority of the job definition. This only affects jobs in job queues with a + * fair share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower + * scheduling priority.

*/ - name: string | undefined; + schedulingPriority?: number; /** * @public - *

Specifies the configuration of a Kubernetes hostPath volume. For more information, - * see hostPath - * in the Kubernetes documentation.

+ *

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 + * Batch User Guide.

*/ - hostPath?: EksHostPath; + parameters?: Record; /** * @public - *

Specifies the configuration of a Kubernetes emptyDir volume. For more information, - * see emptyDir - * in the Kubernetes documentation.

+ *

The retry strategy to use for failed jobs that are submitted with this job + * definition.

*/ - emptyDir?: EksEmptyDir; + retryStrategy?: RetryStrategy; /** * @public - *

Specifies the configuration of a Kubernetes secret volume. For more information, see - * secret in the - * Kubernetes documentation.

+ *

An object with properties specific to Amazon ECS-based jobs. When containerProperties is used in the job definition, it can't be used in addition to eksProperties, ecsProperties, or + * nodeProperties.

*/ - secret?: EksSecret; -} + containerProperties?: ContainerProperties; -/** - * @public - *

The properties for the pod.

- */ -export interface EksPodProperties { /** * @public - *

The name of the service account that's used to run the pod. For more information, see - * Kubernetes service - * accounts and Configure a Kubernetes service account - * to assume an IAM role in the Amazon EKS User Guide and Configure service accounts for pods in the Kubernetes - * documentation.

+ *

The timeout time for jobs that are submitted with this job definition. After the amount of + * time you specify passes, Batch terminates your jobs if they aren't finished.

*/ - serviceAccountName?: string; + timeout?: JobTimeout; /** * @public - *

Indicates if the pod uses the hosts' network IP address. The default value is - * true. Setting this to false enables the Kubernetes pod networking model. - * Most Batch workloads are egress-only and don't require the overhead of IP allocation for each - * pod for incoming connections. For more information, see Host - * namespaces and Pod networking - * in the Kubernetes documentation.

+ *

An object with properties that are specific to multi-node parallel jobs. When nodeProperties is used in the job definition, it can't be used in addition to containerProperties, ecsProperties, or eksProperties.

+ * + *

If the job runs on Fargate resources, don't specify nodeProperties. Use + * containerProperties instead.

+ *
*/ - hostNetwork?: boolean; + nodeProperties?: NodeProperties; /** * @public - *

The DNS policy for the pod. The default value is ClusterFirst. If the - * hostNetwork parameter is not specified, the default is - * ClusterFirstWithHostNet. ClusterFirst indicates that any DNS query - * that does not match the configured cluster domain suffix is forwarded to the upstream nameserver - * inherited from the node. For more information, see Pod's DNS policy in the Kubernetes documentation.

- *

Valid values: Default | ClusterFirst | - * ClusterFirstWithHostNet - *

+ *

The tags that are applied to the job definition.

*/ - dnsPolicy?: string; + tags?: Record; /** * @public - *

The properties of the container that's used on the Amazon EKS pod.

+ *

Specifies whether to propagate the tags from the job or job definition to the corresponding + * Amazon ECS task. If no value is specified, the tags aren't propagated. Tags can only be propagated to + * the tasks when the tasks are created. For tags with the same name, job tags are given priority + * over job definitions tags. If the total number of combined tags from the job and job definition + * is over 50, the job is moved to the FAILED state.

*/ - containers?: EksContainer[]; + propagateTags?: boolean; /** * @public - *

Specifies the volumes for a job definition that uses Amazon EKS resources.

+ *

The platform capabilities required by the job definition. If no value is specified, it + * defaults to EC2. Jobs run on Fargate resources specify + * FARGATE.

*/ - volumes?: EksVolume[]; + platformCapabilities?: PlatformCapability[]; /** * @public - *

Metadata about the - * Kubernetes - * pod. For - * more information, see Understanding Kubernetes Objects in the Kubernetes - * documentation.

+ *

An object that contains the properties for the Amazon ECS resources of a job.When ecsProperties + * is used in the job definition, it can't be used in addition to containerProperties, eksProperties, or nodeProperties.

*/ - metadata?: EksMetadata; -} + ecsProperties?: EcsProperties; -/** - * @public - *

An object that contains the properties for the Kubernetes resources of a job.

- */ -export interface EksProperties { /** * @public - *

The properties for the Kubernetes pod resources of a job.

+ *

An object with properties that are specific to Amazon EKS-based jobs. When eksProperties + * is used in the job definition, it can't be used in addition to containerProperties, ecsProperties, or nodeProperties.

*/ - podProperties?: EksPodProperties; + eksProperties?: EksProperties; + + /** + * @public + *

The orchestration type of the compute environment. The valid values are ECS + * (default) or EKS.

+ */ + containerOrchestrationType?: OrchestrationType; } /** * @public - *

An object that represents the properties of the node range for a multi-node parallel - * job.

*/ -export interface NodeRangeProperty { +export interface DescribeJobDefinitionsResponse { /** * @public - *

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 can nest - * node ranges (for example, 0:10 and 4:5). In this case, the - * 4:5 range properties override the 0:10 properties.

+ *

The list of job definitions.

*/ - targetNodes: string | undefined; + jobDefinitions?: JobDefinition[]; /** * @public - *

The container details for the node range.

+ *

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.

*/ - container?: ContainerProperties; + nextToken?: string; } /** * @public - *

An object that represents the node properties of a multi-node parallel job.

- * - *

Node properties can't be specified for Amazon EKS based job definitions.

- *
+ *

Contains the parameters for DescribeJobQueues.

*/ -export interface NodeProperties { +export interface DescribeJobQueuesRequest { /** * @public - *

The number of nodes that are associated with a multi-node parallel job.

+ *

A list of up to 100 queue names or full queue Amazon Resource Name (ARN) entries.

*/ - numNodes: number | undefined; + jobQueues?: string[]; /** * @public - *

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.

+ *

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 and 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 isn't used, + * then DescribeJobQueues returns up to 100 results and a + * nextToken value if applicable.

*/ - mainNode: number | undefined; + maxResults?: number; /** * @public - *

A list of node ranges and their properties that are associated with a multi-node parallel - * job.

+ *

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.

+ * + *

Treat this token as an opaque identifier that's only used to + * retrieve the next items in a list and not for other programmatic purposes.

+ *
*/ - nodeRangeProperties: NodeRangeProperty[] | undefined; + nextToken?: string; } /** * @public * @enum */ -export const PlatformCapability = { - EC2: "EC2", - FARGATE: "FARGATE", -} as const; - -/** - * @public - */ -export type PlatformCapability = (typeof PlatformCapability)[keyof typeof PlatformCapability]; - -/** - * @public - * @enum - */ -export const RetryAction = { - EXIT: "EXIT", - RETRY: "RETRY", +export const JQStatus = { + CREATING: "CREATING", + DELETED: "DELETED", + DELETING: "DELETING", + INVALID: "INVALID", + UPDATING: "UPDATING", + VALID: "VALID", } as const; /** * @public */ -export type RetryAction = (typeof RetryAction)[keyof typeof RetryAction]; +export type JQStatus = (typeof JQStatus)[keyof typeof JQStatus]; /** * @public - *

Specifies an array of up to 5 conditions to be met, and an action to take - * (RETRY or EXIT) if all conditions are met. If none of the - * EvaluateOnExit conditions in a RetryStrategy match, then the job is - * retried.

+ *

An object that represents the details for an Batch job queue.

*/ -export interface EvaluateOnExit { +export interface JobQueueDetail { /** * @public - *

Contains a glob pattern to match against the StatusReason returned for a job. - * The pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), - * colons (:), and white spaces (including spaces or tabs). - * It can - * optionally end with an asterisk (*) so that only the start of the string needs to be an exact - * match.

+ *

The job queue name.

*/ - onStatusReason?: string; + jobQueueName: string | undefined; /** * @public - *

Contains a glob pattern to match against the Reason returned for a job. The - * pattern can contain up to 512 characters. It can contain letters, numbers, periods (.), colons - * (:), and white space (including spaces and tabs). It can optionally end with an asterisk (*) so - * that only the start of the string needs to be an exact match.

+ *

The Amazon Resource Name (ARN) of the job queue.

*/ - onReason?: string; + jobQueueArn: string | undefined; /** * @public - *

Contains a glob pattern to match against the decimal representation of the - * ExitCode returned for a job. The pattern can be up to 512 characters long. It can - * contain only numbers, and can end with an asterisk (*) so that only the start of the string needs - * to be an exact match.

- *

The string can contain up to 512 characters.

+ *

Describes the ability of the queue to accept new jobs. If the job queue state is + * ENABLED, it can accept jobs. If the job queue state is DISABLED, new + * jobs can't be added to the queue, but jobs already in the queue can finish.

*/ - onExitCode?: string; + state: JQState | undefined; /** * @public - *

Specifies the action to take if all of the specified conditions - * (onStatusReason, onReason, and onExitCode) are met. The - * values aren't case sensitive.

+ *

The Amazon Resource Name (ARN) of the scheduling policy. The format is + * aws:Partition:batch:Region:Account:scheduling-policy/Name + * . + * For example, + * aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

*/ - action: RetryAction | undefined; -} + schedulingPolicyArn?: string; -/** - * @public - *

The retry strategy that's associated with a job. For more information, see Automated job retries in the - * Batch User Guide.

- */ -export interface RetryStrategy { /** * @public - *

The number of times to move a job to the RUNNABLE status. You can 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.

+ *

The status of the job queue (for example, CREATING or + * VALID).

*/ - attempts?: number; + status?: JQStatus; /** * @public - *

Array of up to 5 objects that specify the conditions where jobs are retried or failed. If - * this parameter is specified, then the attempts parameter must also be specified. If - * none of the listed conditions match, then the job is retried.

+ *

A short, human-readable string to provide additional details for the current status of the + * job queue.

*/ - evaluateOnExit?: EvaluateOnExit[]; -} + statusReason?: string; -/** - * @public - *

An object that represents a job timeout configuration.

- */ -export interface JobTimeout { /** * @public - *

The job timeout time (in seconds) that's measured from the job attempt's - * startedAt timestamp. After this time passes, Batch terminates your jobs if they - * aren't finished. The minimum value for the timeout is 60 seconds.

- *

For array jobs, the timeout applies to the child jobs, not to the parent array job.

- *

For multi-node parallel (MNP) jobs, the timeout applies to the whole job, not to the - * individual nodes.

+ *

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. All of the compute environments must be either Amazon EC2 (EC2 + * or SPOT) or Fargate (FARGATE or FARGATE_SPOT). Amazon EC2 and + * Fargate compute environments can't be mixed.

*/ - attemptDurationSeconds?: number; + priority: number | undefined; + + /** + * @public + *

The compute environments that are attached to the job queue and the order that job placement + * is preferred. Compute environments are selected for job placement in ascending order.

+ */ + computeEnvironmentOrder: ComputeEnvironmentOrder[] | undefined; + + /** + * @public + *

The tags that are applied to the job queue. For more information, see Tagging your Batch resources in + * Batch User Guide.

+ */ + tags?: Record; } /** * @public - *

An object that represents an Batch job definition.

*/ -export interface JobDefinition { +export interface DescribeJobQueuesResponse { /** * @public - *

The name of the job definition.

+ *

The list of job queues.

*/ - jobDefinitionName: string | undefined; + jobQueues?: JobQueueDetail[]; /** * @public - *

The Amazon Resource Name (ARN) for the job definition.

+ *

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.

*/ - jobDefinitionArn: string | undefined; + nextToken?: string; +} +/** + * @public + *

Contains the parameters for DescribeJobs.

+ */ +export interface DescribeJobsRequest { /** * @public - *

The revision of the job definition.

+ *

A list of up to 100 job IDs.

*/ - revision: number | undefined; + jobs: string[] | undefined; +} +/** + * @public + *

An object that represents the details of a container that's part of a job.

+ */ +export interface ContainerDetail { /** * @public - *

The status of the job definition.

+ *

The image used to start the container.

*/ - status?: string; + image?: string; /** * @public - *

The type of job definition. It's either container or multinode. If - * the job is run on Fargate resources, then multinode isn't supported. For more - * information about multi-node parallel jobs, see Creating a multi-node parallel job definition in - * the Batch User Guide.

+ *

The number of vCPUs reserved for the container. For jobs that run on Amazon EC2 resources, you + * can specify the vCPU requirement for the job using resourceRequirements, but you + * can't specify the vCPU requirements in both the vcpus and + * resourceRequirements object. 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. This is required but + * can be specified in several places. It must be specified for each node at least once.

+ * + *

This parameter isn't applicable to jobs that run on Fargate resources. For jobs that run + * on Fargate resources, you must specify the vCPU requirement for the job using + * resourceRequirements.

+ *
*/ - type: string | undefined; + vcpus?: number; /** * @public - *

The scheduling priority of the job definition. This only affects jobs in job queues with a - * fair share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower - * scheduling priority.

+ *

For jobs running on Amazon EC2 resources that didn't specify memory requirements using + * resourceRequirements, the number of MiB of memory reserved for the job. For other + * jobs, including all run on Fargate resources, see resourceRequirements.

*/ - schedulingPriority?: number; + memory?: number; /** * @public - *

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 - * Batch User Guide.

+ *

The command that's passed to the container.

*/ - parameters?: Record; + command?: string[]; /** * @public - *

The retry strategy to use for failed jobs that are submitted with this job - * definition.

+ *

The Amazon Resource Name (ARN) that's associated with the job when run.

*/ - retryStrategy?: RetryStrategy; + jobRoleArn?: string; /** * @public - *

An object with various properties specific to Amazon ECS based jobs. Valid values are - * containerProperties, eksProperties, and nodeProperties. - * Only one can be specified.

+ *

The Amazon Resource Name (ARN) of the + * execution + * role that Batch can assume. For more information, + * see Batch execution IAM + * role in the Batch User Guide.

*/ - containerProperties?: ContainerProperties; + executionRoleArn?: string; /** * @public - *

The timeout time for jobs that are submitted with this job definition. After the amount of - * time you specify passes, Batch terminates your jobs if they aren't finished.

+ *

A list of volumes that are associated with the job.

*/ - timeout?: JobTimeout; + volumes?: Volume[]; /** * @public - *

An object with various properties that are specific to multi-node parallel jobs. Valid - * values are containerProperties, eksProperties, and - * nodeProperties. Only one can be specified.

+ *

The environment variables to pass to a container.

* - *

If the job runs on Fargate resources, don't specify nodeProperties. Use - * containerProperties instead.

+ *

Environment variables cannot start with "AWS_BATCH". This naming + * convention is reserved for variables that Batch sets.

*
*/ - nodeProperties?: NodeProperties; + environment?: KeyValuePair[]; /** * @public - *

The tags that are applied to the job definition.

+ *

The mount points for data volumes in your container.

*/ - tags?: Record; + mountPoints?: MountPoint[]; /** * @public - *

Specifies whether to propagate the tags from the job or job definition to the corresponding - * Amazon ECS task. If no value is specified, the tags aren't propagated. Tags can only be propagated to - * the tasks when the tasks are created. For tags with the same name, job tags are given priority - * over job definitions tags. If the total number of combined tags from the job and job definition - * is over 50, the job is moved to the FAILED state.

+ *

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 + * .

*/ - propagateTags?: boolean; + readonlyRootFilesystem?: boolean; /** * @public - *

The platform capabilities required by the job definition. If no value is specified, it - * defaults to EC2. Jobs run on Fargate resources specify - * FARGATE.

+ *

A list of ulimit values 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.

+ * + *

This parameter isn't applicable to jobs that are running on Fargate resources.

+ *
*/ - platformCapabilities?: PlatformCapability[]; + ulimits?: Ulimit[]; /** * @public - *

An object with various properties that are specific to Amazon EKS based jobs. Valid values are - * containerProperties, eksProperties, and nodeProperties. - * Only one can be specified.

+ *

When this parameter is true, the container is given elevated permissions on the host + * container instance (similar to the root user). The default value is + * false.

+ * + *

This parameter isn't applicable to jobs that are running on Fargate resources and + * shouldn't be provided, or specified as false.

+ *
*/ - eksProperties?: EksProperties; + privileged?: boolean; /** * @public - *

The orchestration type of the compute environment. The valid values are ECS - * (default) or EKS.

+ *

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.

*/ - containerOrchestrationType?: OrchestrationType; -} + user?: string; -/** - * @public - */ -export interface DescribeJobDefinitionsResponse { /** * @public - *

The list of job definitions.

+ *

The exit code returned upon completion.

*/ - jobDefinitions?: JobDefinition[]; + exitCode?: number; /** * @public - *

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.

+ *

A short (255 max characters) human-readable string to provide additional details for a + * running or stopped container.

*/ - nextToken?: string; -} + reason?: string; + + /** + * @public + *

The Amazon Resource Name (ARN) of the container instance that the container is running on.

+ */ + containerInstanceArn?: string; -/** - * @public - *

Contains the parameters for DescribeJobQueues.

- */ -export interface DescribeJobQueuesRequest { /** * @public - *

A list of up to 100 queue names or full queue Amazon Resource Name (ARN) entries.

+ *

The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with the container job. Each container + * attempt receives a task ARN when they reach the STARTING status.

*/ - jobQueues?: string[]; + taskArn?: string; /** * @public - *

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 and 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 isn't used, then DescribeJobQueues returns up - * to 100 results and a nextToken value if applicable.

+ *

The name of the Amazon CloudWatch Logs log stream that's associated with the container. The log group for + * Batch jobs is /aws/batch/job. Each container attempt receives a log stream name + * when they reach the RUNNING status.

*/ - maxResults?: number; + logStreamName?: string; /** * @public - *

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.

+ *

The instance type of the underlying host infrastructure of a multi-node parallel job.

* - *

Treat this token as an opaque identifier that's only used to - * retrieve the next items in a list and not for other programmatic purposes.

+ *

This parameter isn't applicable to jobs that are running on Fargate resources.

*
*/ - nextToken?: string; -} - -/** - * @public - * @enum - */ -export const JQStatus = { - CREATING: "CREATING", - DELETED: "DELETED", - DELETING: "DELETING", - INVALID: "INVALID", - UPDATING: "UPDATING", - VALID: "VALID", -} as const; + instanceType?: string; -/** - * @public - */ -export type JQStatus = (typeof JQStatus)[keyof typeof JQStatus]; + /** + * @public + *

The network interfaces that are associated with the job.

+ */ + networkInterfaces?: NetworkInterface[]; -/** - * @public - *

An object that represents the details for an Batch job queue.

- */ -export interface JobQueueDetail { /** * @public - *

The job queue name.

+ *

The type and amount of resources to assign to a container. The supported resources include + * GPU, MEMORY, and VCPU.

*/ - jobQueueName: string | undefined; + resourceRequirements?: ResourceRequirement[]; /** * @public - *

The Amazon Resource Name (ARN) of the job queue.

+ *

Linux-specific modifications that are applied to the container, such as details for device + * mappings.

*/ - jobQueueArn: string | undefined; + linuxParameters?: LinuxParameters; /** * @public - *

Describes the ability of the queue to accept new jobs. If the job queue state is - * ENABLED, it can accept jobs. If the job queue state is DISABLED, new - * jobs can't be added to the queue, but jobs already in the queue can finish.

+ *

The log configuration specification for the container.

+ *

This parameter maps to LogConfig in the Create a container + * section of the Docker Remote API and the --log-driver option to docker run. By default, containers use the same logging + * driver that the Docker daemon uses. However, the container might use a different logging driver + * than the Docker daemon by specifying a log driver with this parameter in the container + * definition. To use a different logging driver for a container, the log system must be configured + * properly on the container instance. Or, alternatively, it must be configured on a different log + * server for remote logging options. For more information on the options for different supported + * log drivers, see Configure + * logging drivers in the Docker documentation.

+ * + *

Batch currently supports a subset of the logging drivers available to the Docker daemon + * (shown in the LogConfiguration data type). Additional log drivers might be available in future + * releases of the Amazon ECS container agent.

+ *
+ *

This parameter requires version 1.18 of the Docker Remote API or greater on your + * container instance. To check the Docker Remote API version on your container instance, log in to your + * container instance and run the following command: sudo docker version | grep "Server API version" + *

+ * + *

The Amazon ECS container agent running on a container instance must register the logging drivers + * available on that instance with the ECS_AVAILABLE_LOGGING_DRIVERS environment + * variable before containers placed on that instance can use these log configuration options. For + * more information, see Amazon ECS container agent + * configuration in the Amazon Elastic Container Service Developer Guide.

+ *
*/ - state: JQState | undefined; + logConfiguration?: LogConfiguration; /** * @public - *

The Amazon Resource Name (ARN) of the scheduling policy. The format is - * aws:Partition:batch:Region:Account:scheduling-policy/Name - * . - * For example, - * aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

+ *

The secrets to pass to the container. For more information, see Specifying sensitive data in the + * Batch User Guide.

*/ - schedulingPolicyArn?: string; + secrets?: Secret[]; /** * @public - *

The status of the job queue (for example, CREATING or - * VALID).

+ *

The network configuration for jobs that are running on Fargate resources. Jobs that are + * running on Amazon EC2 resources must not specify this parameter.

*/ - status?: JQStatus; + networkConfiguration?: NetworkConfiguration; /** * @public - *

A short, human-readable string to provide additional details for the current status of the - * job queue.

+ *

The platform configuration for jobs that are running on Fargate resources. Jobs that are + * running on Amazon EC2 resources must not specify this parameter.

*/ - statusReason?: string; + fargatePlatformConfiguration?: FargatePlatformConfiguration; /** * @public - *

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. All of the compute environments must be either EC2 (EC2 or - * SPOT) or Fargate (FARGATE or FARGATE_SPOT). EC2 and - * Fargate compute environments can't be mixed.

+ *

The amount of ephemeral storage allocated for the task. This parameter is used to expand the + * total amount of ephemeral storage available, beyond the default amount, for tasks hosted on + * Fargate.

*/ - priority: number | undefined; + ephemeralStorage?: EphemeralStorage; /** * @public - *

The compute environments that are attached to the job queue and the order that job placement - * is preferred. Compute environments are selected for job placement in ascending order.

+ *

An object that represents the compute environment architecture for Batch jobs on + * Fargate.

*/ - computeEnvironmentOrder: ComputeEnvironmentOrder[] | undefined; + runtimePlatform?: RuntimePlatform; /** * @public - *

The tags that are applied to the job queue. For more information, see Tagging your Batch resources in - * Batch User Guide.

+ *

The private repository authentication credentials to use.

*/ - tags?: Record; + repositoryCredentials?: RepositoryCredentials; } /** * @public + *

An object that represents an Batch job dependency.

*/ -export interface DescribeJobQueuesResponse { +export interface JobDependency { /** * @public - *

The list of job queues.

+ *

The job ID of the Batch job that's associated with this dependency.

*/ - jobQueues?: JobQueueDetail[]; + jobId?: string; /** * @public - *

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.

+ *

The type of the job dependency.

*/ - nextToken?: string; + type?: ArrayJobDependency; } /** * @public - *

Contains the parameters for DescribeJobs.

+ *

The details for the container in this task attempt.

*/ -export interface DescribeJobsRequest { +export interface TaskContainerDetails { /** * @public - *

A list of up to 100 job IDs.

+ *

The command that's 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.

*/ - jobs: string[] | undefined; -} + command?: string[]; -/** - * @public - *

An object that represents the details of a container that's part of a job.

- */ -export interface ContainerDetail { /** * @public - *

The image used to start the container.

+ *

A list of containers that this container depends on.

*/ - image?: string; + dependsOn?: TaskContainerDependency[]; /** * @public - *

The number of vCPUs reserved for the container. For jobs that run on EC2 resources, you can - * specify the vCPU requirement for the job using resourceRequirements, but you can't - * specify the vCPU requirements in both the vcpus and - * resourceRequirements object. 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. This is required but - * can be specified in several places. It must be specified for each node at least once.

- * - *

This parameter isn't applicable to jobs that run on Fargate resources. For jobs that run - * on Fargate resources, you must specify the vCPU requirement for the job using - * resourceRequirements.

- *
+ *

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 don't recommend using plaintext environment variables for sensitive information, such as + * credential data.

+ *
*/ - vcpus?: number; + environment?: KeyValuePair[]; /** * @public - *

For jobs running on EC2 resources that didn't specify memory requirements using - * resourceRequirements, the number of MiB of memory reserved for the job. For other - * jobs, including all run on Fargate resources, see resourceRequirements.

+ *

If the essential parameter of a container is marked as true, and that container + * fails or stops for any reason, all other containers that are part of the task are stopped. If the + * essential parameter of a container is marked as false, its failure doesn't affect + * the rest of the containers in a task. If this parameter is omitted, a container is assumed to be + * essential.

+ *

All tasks must have at least one essential container. If you have an application that's + * composed of multiple containers, group containers that are used for a common purpose into + * components, and separate the different components into multiple task definitions. For more + * information, see Application + * Architecture in the Amazon Elastic Container Service Developer Guide.

*/ - memory?: number; + essential?: boolean; /** * @public - *

The command that's passed to the container.

+ *

The image used to start a container. This string is passed directly to the Docker daemon. By + * default, images in the Docker Hub registry are available. Other repositories are specified with + * either repository-url/image:tag or repository-url/image@digest. 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 the + * docker + * run + * .

*/ - command?: string[]; + image?: string; /** * @public - *

The Amazon Resource Name (ARN) that's associated with the job when run.

+ *

Linux-specific modifications that are applied to the container, such as Linux kernel + * capabilities. For more information, see KernelCapabilities.

+ * + *

This parameter is not supported for Windows containers.

+ *
*/ - jobRoleArn?: string; + linuxParameters?: LinuxParameters; /** * @public - *

The Amazon Resource Name (ARN) of the - * execution - * role that Batch can assume. For more information, - * see Batch execution IAM - * role in the Batch User Guide.

+ *

The log configuration specification for the container.

+ *

This parameter maps to LogConfig in the Create a + * container section of the Docker + * Remote API and the --log-driver option to docker + * run.

+ *

By default, containers use the same logging driver that the Docker daemon uses. However the + * container can use a different logging driver than the Docker daemon by specifying a log driver + * with this parameter in the container definition. To use a different logging driver for a + * container, the log system must be configured properly on the container instance (or on a + * different log server for remote logging options). For more information about the options for + * different supported log drivers, see Configure logging drivers + * in the Docker documentation.

+ * + *

Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon + * (shown in the LogConfiguration data type). Additional log drivers may be available + * in future releases of the Amazon ECS container agent.

+ *
+ *

This parameter requires version 1.18 of the Docker Remote API or greater on your container + * instance. To check the Docker Remote API version on your container instance, log in to your + * container instance and run the following command: sudo docker version --format + * '\{\{.Server.APIVersion\}\}' + *

+ * + *

The Amazon ECS container agent running on a container instance must register the logging drivers + * available on that instance with the ECS_AVAILABLE_LOGGING_DRIVERS environment + * variable before containers placed on that instance can use these log configuration options. For + * more information, see Amazon ECS container agent + * configuration in the Amazon Elastic Container Service Developer Guide.

+ *
*/ - executionRoleArn?: string; + logConfiguration?: LogConfiguration; /** * @public - *

A list of volumes that are associated with the job.

+ *

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.

+ *

Windows containers can mount whole directories on the same drive as + * $env:ProgramData. Windows containers can't mount directories on a different drive, + * and mount point can't be across drives.

*/ - volumes?: Volume[]; + mountPoints?: MountPoint[]; /** * @public - *

The environment variables to pass to a container.

- * - *

Environment variables cannot start with "AWS_BATCH". This naming - * convention is reserved for variables that Batch sets.

- *
+ *

The name of a container.

*/ - environment?: KeyValuePair[]; + name?: string; /** * @public - *

The mount points for data volumes in your container.

+ *

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.

+ * + *

This parameter is not supported for Windows containers or tasks run on Fargate.

+ *
*/ - mountPoints?: MountPoint[]; + privileged?: boolean; /** * @public *

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 - * .

+ * 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.

+ * + *

This parameter is not supported for Windows containers.

+ *
*/ readonlyRootFilesystem?: boolean; /** * @public - *

A list of ulimit values 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.

- * - *

This parameter isn't applicable to jobs that are running on Fargate resources.

- *
+ *

The private repository authentication credentials to use.

*/ - ulimits?: Ulimit[]; + repositoryCredentials?: RepositoryCredentials; /** * @public - *

When this parameter is true, the container is given elevated permissions on the host - * container instance (similar to the root user). The default value is - * false.

+ *

The type and amount of a resource to assign to a container. The only supported resource is a + * GPU.

+ */ + resourceRequirements?: ResourceRequirement[]; + + /** + * @public + *

The secrets to pass to the container. For more information, see Specifying Sensitive + * Data in the Amazon Elastic Container Service Developer Guide.

+ */ + secrets?: Secret[]; + + /** + * @public + *

A list of ulimits to set in the container. If a ulimit value is + * specified in a task definition, it overrides the default values set by Docker. This parameter + * maps to Ulimits in the Create a + * container section of the Docker + * Remote API and the --ulimit option to docker + * run.

+ *

Amazon ECS tasks hosted on Fargate use the default resource limit values set by the operating + * system with the exception of the nofile resource limit parameter which Fargate overrides. The + * nofile resource limit sets a restriction on the number of open files that a + * container can use. The default nofile soft limit is 1024 and the + * default hard limit is 65535.

+ *

This parameter requires version 1.18 of the Docker Remote API or greater on your container + * instance. To check the Docker Remote API version on your container instance, log in to your + * container instance and run the following command: sudo docker version --format + * '\{\{.Server.APIVersion\}\}' + *

* - *

This parameter isn't applicable to jobs that are running on Fargate resources and - * shouldn't be provided, or specified as false.

+ *

This parameter is not supported for Windows containers.

*
*/ - privileged?: boolean; + ulimits?: Ulimit[]; /** * @public - *

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.

+ *

The user 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.

+ * + *

When running tasks using the host network mode, don't run containers using the + * root user (UID 0). We recommend using a non-root user for better security.

+ *
+ *

You can specify the user using the following formats. If specifying a UID or + * GID, you must specify it as a positive integer.

+ *
    + *
  • + *

    + * user + *

    + *
  • + *
  • + *

    + * user:group + *

    + *
  • + *
  • + *

    + * uid + *

    + *
  • + *
  • + *

    + * uid:gid + *

    + *
  • + *
  • + *

    + * user:gi + *

    + *
  • + *
  • + *

    + * uid:group + *

    + *
  • + *
  • + *

    + * + *

    + *
  • + *
+ * + *

This parameter is not supported for Windows containers.

+ *
*/ user?: string; /** * @public - *

The exit code to return upon completion.

+ *

The exit code returned upon completion.

*/ exitCode?: number; @@ -3829,143 +4698,118 @@ export interface ContainerDetail { /** * @public - *

The Amazon Resource Name (ARN) of the container instance that the container is running on.

+ *

The name of the CloudWatch Logs log stream that's associated with the container. The log group for + * Batch jobs is /aws/batch/job. Each container attempt receives a log stream name when they reach + * the RUNNING status.

*/ - containerInstanceArn?: string; + logStreamName?: string; /** * @public - *

The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with the container job. Each container - * attempt receives a task ARN when they reach the STARTING status.

+ *

The network interfaces that are associated with the job.

*/ - taskArn?: string; + networkInterfaces?: NetworkInterface[]; +} +/** + * @public + *

The details of a task definition that describes the container and volume definitions of an + * Amazon ECS task.

+ */ +export interface EcsTaskDetails { /** * @public - *

The name of the Amazon CloudWatch Logs log stream that's associated with the container. The log group for - * Batch jobs is /aws/batch/job. Each container attempt receives a log stream name - * when they reach the RUNNING status.

+ *

A list of containers that are included in the taskProperties + * list.

*/ - logStreamName?: string; + containers?: TaskContainerDetails[]; /** * @public - *

The instance type of the underlying host infrastructure of a multi-node parallel job.

- * - *

This parameter isn't applicable to jobs that are running on Fargate resources.

- *
+ *

The Amazon Resource Name (ARN) of the container instance that hosts the task.

*/ - instanceType?: string; + containerInstanceArn?: string; /** * @public - *

The network interfaces that are associated with the job.

+ *

The ARN of the Amazon ECS task.

*/ - networkInterfaces?: NetworkInterface[]; + taskArn?: string; /** * @public - *

The type and amount of resources to assign to a container. The supported resources include - * GPU, MEMORY, and VCPU.

+ *

The amount of ephemeral storage allocated for the task.

*/ - resourceRequirements?: ResourceRequirement[]; + ephemeralStorage?: EphemeralStorage; /** * @public - *

Linux-specific modifications that are applied to the container, such as details for device - * mappings.

+ *

The Amazon Resource Name (ARN) of the execution role that Batch can assume. For more information, see + * Batch execution IAM + * role in the Batch User Guide.

*/ - linuxParameters?: LinuxParameters; + executionRoleArn?: string; /** * @public - *

The log configuration specification for the container.

- *

This parameter maps to LogConfig in the Create a container - * section of the Docker Remote API and the --log-driver option to docker run. By default, containers use the same logging - * driver that the Docker daemon uses. However, the container might use a different logging driver - * than the Docker daemon by specifying a log driver with this parameter in the container - * definition. To use a different logging driver for a container, the log system must be configured - * properly on the container instance. Or, alternatively, it must be configured on a different log - * server for remote logging options. For more information on the options for different supported - * log drivers, see Configure - * logging drivers in the Docker documentation.

- * - *

Batch currently supports a subset of the logging drivers available to the Docker daemon - * (shown in the LogConfiguration data type). Additional log drivers might be - * available in future releases of the Amazon ECS container agent.

- *
- *

This parameter requires version 1.18 of the Docker Remote API or greater on your - * container instance. To check the Docker Remote API version on your container instance, log in to your - * container instance and run the following command: sudo docker version | grep "Server API version" - *

- * - *

The Amazon ECS container agent running on a container instance must register the logging drivers - * available on that instance with the ECS_AVAILABLE_LOGGING_DRIVERS environment - * variable before containers placed on that instance can use these log configuration options. For - * more information, see Amazon ECS container agent - * configuration in the Amazon Elastic Container Service Developer Guide.

- *
+ *

The Fargate platform version where the jobs are running.

*/ - logConfiguration?: LogConfiguration; + platformVersion?: string; /** * @public - *

The secrets to pass to the container. For more information, see Specifying sensitive data in the - * Batch User Guide.

+ *

The IPC resource namespace to use for the containers in the task.

*/ - secrets?: Secret[]; + ipcMode?: string; /** * @public - *

The network configuration for jobs that are running on Fargate resources. Jobs that are - * running on EC2 resources must not specify this parameter.

+ *

The Amazon Resource Name (ARN) of the IAM role that the container can assume for Amazon Web Services permissions. For more + * information, see IAM roles for tasks in the + * Amazon Elastic Container Service Developer Guide.

+ * + *

This is object is comparable to ContainerProperties:jobRoleArn.

+ *
*/ - networkConfiguration?: NetworkConfiguration; + taskRoleArn?: string; /** * @public - *

The platform configuration for jobs that are running on Fargate resources. Jobs that are - * running on EC2 resources must not specify this parameter.

+ *

The process namespace to use for the containers in the task.

*/ - fargatePlatformConfiguration?: FargatePlatformConfiguration; + pidMode?: string; /** * @public - *

The amount of ephemeral storage allocated for the task. This parameter is used to expand the - * total amount of ephemeral storage available, beyond the default amount, for tasks hosted on - * Fargate.

+ *

The network configuration for jobs that are running on Fargate resources. Jobs that are + * running on Amazon EC2 resources must not specify this parameter.

*/ - ephemeralStorage?: EphemeralStorage; + networkConfiguration?: NetworkConfiguration; /** * @public - *

An object that represents the compute environment architecture for Batch jobs on Fargate.

+ *

An object that represents the compute environment architecture for Batch jobs on + * Fargate.

*/ runtimePlatform?: RuntimePlatform; /** * @public - *

The private repository authentication credentials to use.

+ *

A list of data volumes used in a job.

*/ - repositoryCredentials?: RepositoryCredentials; + volumes?: Volume[]; } /** * @public - *

An object that represents an Batch job dependency.

+ *

An object that contains the details for the Amazon ECS resources of a job.

*/ -export interface JobDependency { - /** - * @public - *

The job ID of the Batch job that's associated with this dependency.

- */ - jobId?: string; - +export interface EcsPropertiesDetail { /** * @public - *

The type of the job dependency.

+ *

The properties for the Amazon ECS task definition of a job.

*/ - type?: ArrayJobDependency; + taskProperties?: EcsTaskDetails[]; } /** @@ -3976,7 +4820,7 @@ export interface JobDependency { export interface EksAttemptContainerDetail { /** * @public - *

The exit code for the job attempt. A non-zero exit code is considered failed.

+ *

The exit code returned for the job attempt. A non-zero exit code is considered failed.

*/ exitCode?: number; @@ -4000,6 +4844,12 @@ export interface EksAttemptDetail { */ containers?: EksAttemptContainerDetail[]; + /** + * @public + *

The details for the init containers.

+ */ + initContainers?: EksAttemptContainerDetail[]; + /** * @public *

The name of the pod for this job attempt.

@@ -4080,8 +4930,8 @@ export interface EksContainerDetail { * environment variable doesn't exist, the command string will remain "$(NAME1)". * $$ is replaced with $ and the resulting string isn't expanded. For * example, $$(VAR_NAME) is passed as $(VAR_NAME) whether or not the - * VAR_NAME environment variable exists. For more information, see CMD in the - * Dockerfile reference and Define a command and arguments for a pod in the Kubernetes + * VAR_NAME environment variable exists. For more information, see Dockerfile reference: CMD + * and Define a command and arguments for a pod in the Kubernetes * documentation.

*/ args?: string[]; @@ -4107,7 +4957,7 @@ export interface EksContainerDetail { /** * @public - *

The exit code for the job attempt. A non-zero exit code is considered failed.

+ *

The exit code returned for the job attempt. A non-zero exit code is considered failed.

*/ exitCode?: number; @@ -4184,6 +5034,13 @@ export interface EksPodPropertiesDetail { */ containers?: EksContainerDetail[]; + /** + * @public + *

The container registered with the Amazon EKS Connector agent and persists the registration + * information in the Kubernetes backend data store.

+ */ + initContainers?: EksContainerDetail[]; + /** * @public *

Specifies the volumes for a job definition using Amazon EKS resources.

@@ -4204,12 +5061,19 @@ export interface EksPodPropertiesDetail { /** * @public - *

Describes and uniquely identifies Kubernetes resources. For example, the compute environment - * that a pod runs in or the jobID for a job running in the pod. For more information, - * see Understanding Kubernetes Objects in the Kubernetes - * documentation.

+ *

Describes and uniquely identifies Kubernetes resources. For example, the compute environment that + * a pod runs in or the jobID for a job running in the pod. For more information, see + * Understanding Kubernetes Objects in the Kubernetes documentation.

*/ metadata?: EksMetadata; + + /** + * @public + *

Indicates if the processes in a container are shared, or visible, to other containers in the + * same pod. For more information, see Share + * Process Namespace between Containers in a Pod.

+ */ + shareProcessNamespace?: boolean; } /** @@ -4333,8 +5197,9 @@ export interface JobDetail { * @public *

The Unix timestamp (in milliseconds) for when the job was created. For non-array jobs and * parent array jobs, this is when the job entered the SUBMITTED state. This is - * specifically 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.

+ * specifically 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.

*/ createdAt?: number; @@ -4382,7 +5247,7 @@ export interface JobDetail { /** * @public *

An object that represents the details for the container that's associated with the - * job.

+ * job. If the details are for a multiple-container job, this object will be empty.

*/ container?: ContainerDetail; @@ -4440,9 +5305,7 @@ export interface JobDetail { /** * @public - *

An object with various properties that are specific to Amazon EKS based jobs. Only one of - * container, eksProperties, or nodeDetails is - * specified.

+ *

An object with various properties that are specific to Amazon EKS based jobs.

*/ eksProperties?: EksPropertiesDetail; @@ -4452,6 +5315,12 @@ export interface JobDetail { */ eksAttempts?: EksAttemptDetail[]; + /** + * @public + *

An object with properties that are specific to Amazon ECS-based jobs.

+ */ + ecsProperties?: EcsPropertiesDetail; + /** * @public *

Indicates whether the job is canceled.

@@ -4565,43 +5434,46 @@ export interface ListJobsRequest { /** * @public - *

The job ID for an array job. Specifying an array job ID with this parameter lists all child jobs from within the - * specified array.

+ *

The job ID for an array job. Specifying an array job ID with this parameter lists all + * child jobs from within the specified array.

*/ arrayJobId?: string; /** * @public - *

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.

+ *

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.

*/ multiNodeJobId?: string; /** * @public - *

The job status used to filter jobs in the specified queue. If the filters parameter is specified, - * the jobStatus parameter is ignored and jobs with any status are returned. If you don't specify a status, - * only RUNNING jobs are returned.

+ *

The job status used to filter jobs in the specified queue. If the filters + * parameter is specified, the jobStatus parameter is ignored and jobs with any + * status are returned. If you don't specify a status, only RUNNING jobs are + * returned.

*/ jobStatus?: JobStatus; /** * @public - *

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 and 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 isn't used, then ListJobs returns up to - * 100 results and a nextToken value if applicable.

+ *

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 and 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 isn't used, then ListJobs returns up to + * 100 results and a nextToken value if applicable.

*/ maxResults?: number; /** * @public - *

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.

+ *

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.

* *

Treat this token as an opaque identifier that's only used to * retrieve the next items in a list and not for other programmatic purposes.

@@ -4611,42 +5483,47 @@ export interface ListJobsRequest { /** * @public - *

The filter to apply to the query. Only one filter can be used at a time. When the filter is used, - * jobStatus is ignored. The filter doesn't apply to child jobs in an array or multi-node parallel (MNP) - * jobs. The results are sorted by the createdAt field, with the most recent jobs being first.

+ *

The filter to apply to the query. Only one filter can be used at a time. When the filter + * is used, jobStatus is ignored. The filter doesn't apply to child jobs in an array + * or multi-node parallel (MNP) jobs. The results are sorted by the createdAt field, + * with the most recent jobs being first.

*
*
JOB_NAME
*
- *

The value of the filter is a case-insensitive match for the job name. If the value ends with an asterisk (*), - * the filter matches any job name that begins with the string before the '*'. This corresponds to the - * jobName value. For example, test1 matches both Test1 and - * test1, and test1* matches both test1 and Test10. When the - * JOB_NAME filter is used, the results are grouped by the job name and version.

+ *

The value of the filter is a case-insensitive match for the job name. If the value + * ends with an asterisk (*), the filter matches any job name that begins with the string + * before the '*'. This corresponds to the jobName value. For example, + * test1 matches both Test1 and test1, and + * test1* matches both test1 and Test10. When the + * JOB_NAME filter is used, the results are grouped by the job name and + * version.

*
*
JOB_DEFINITION
*
- *

The value for the filter is the name or Amazon Resource Name (ARN) of the job definition. This corresponds to the - * jobDefinition value. The value is case sensitive. When the value for the filter is the job definition - * name, the results include all the jobs that used any revision of that job definition name. If the value ends with - * an asterisk (*), the filter matches any job definition name that begins with the string before the '*'. For - * example, jd1 matches only jd1, and jd1* matches both jd1 and - * jd1A. The version of the job definition that's used doesn't affect the sort order. When the - * JOB_DEFINITION filter is used and the ARN is used (which is in the form - * arn:$\{Partition\}:batch:$\{Region\}:$\{Account\}:job-definition/$\{JobDefinitionName\}:$\{Revision\}), the - * results include jobs that used the specified revision of the job definition. Asterisk (*) isn't supported when the - * ARN is used.

+ *

The value for the filter is the name or Amazon Resource Name (ARN) of the job definition. This + * corresponds to the jobDefinition value. The value is case sensitive. When + * the value for the filter is the job definition name, the results include all the jobs + * that used any revision of that job definition name. If the value ends with an asterisk + * (*), the filter matches any job definition name that begins with the string before the + * '*'. For example, jd1 matches only jd1, and jd1* + * matches both jd1 and jd1A. The version of the job definition + * that's used doesn't affect the sort order. When the JOB_DEFINITION filter + * is used and the ARN is used (which is in the form + * arn:$\{Partition\}:batch:$\{Region\}:$\{Account\}:job-definition/$\{JobDefinitionName\}:$\{Revision\}), + * the results include jobs that used the specified revision of the job definition. + * Asterisk (*) isn't supported when the ARN is used.

*
*
BEFORE_CREATED_AT
*
- *

The value for the filter is the time that's before the job was created. This corresponds to the - * createdAt value. The value is a string representation of the number of milliseconds since 00:00:00 - * UTC (midnight) on January 1, 1970.

+ *

The value for the filter is the time that's before the job was created. This + * corresponds to the createdAt value. The value is a string representation of + * the number of milliseconds since 00:00:00 UTC (midnight) on January 1, 1970.

*
*
AFTER_CREATED_AT
*
- *

The value for the filter is the time that's after the job was created. This corresponds to the - * createdAt value. The value is a string representation of the number of milliseconds since 00:00:00 - * UTC (midnight) on January 1, 1970.

+ *

The value for the filter is the time that's after the job was created. This + * corresponds to the createdAt value. The value is a string representation of + * the number of milliseconds since 00:00:00 UTC (midnight) on January 1, 1970.

*
*
*/ @@ -4725,8 +5602,9 @@ export interface JobSummary { * @public *

The Unix timestamp (in 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.

+ * SubmitJob + * was called). For array child jobs, this is when the child job was spawned by its parent and + * entered the PENDING state.

*/ createdAt?: number; @@ -4799,9 +5677,10 @@ export interface ListJobsResponse { /** * @public - *

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.

+ *

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.

*/ nextToken?: string; } @@ -4813,13 +5692,14 @@ export interface ListJobsResponse { export interface ListSchedulingPoliciesRequest { /** * @public - *

The maximum number of results that's returned by ListSchedulingPolicies in paginated output. When - * this parameter is used, ListSchedulingPolicies only returns maxResults results in a single - * page and a nextToken response element. You can see the remaining results of the initial request by - * sending another ListSchedulingPolicies request with the returned nextToken value. This - * value can be between 1 and 100. If this parameter isn't used, - * ListSchedulingPolicies returns up to 100 results and a nextToken value - * if applicable.

+ *

The maximum number of results that's returned by ListSchedulingPolicies in + * paginated output. When this parameter is used, ListSchedulingPolicies only + * returns maxResults results in a single page and a nextToken response + * element. You can see the remaining results of the initial request by sending another + * ListSchedulingPolicies request with the returned nextToken value. + * This value can be between 1 and 100. If this parameter isn't + * used, ListSchedulingPolicies returns up to 100 results and a + * nextToken value if applicable.

*/ maxResults?: number; @@ -4863,9 +5743,11 @@ export interface ListSchedulingPoliciesResponse { /** * @public - *

The nextToken value to include in a future ListSchedulingPolicies request. When the - * results of a ListSchedulingPolicies 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.

+ *

The nextToken value to include in a future + * ListSchedulingPolicies request. When the results of a + * ListSchedulingPolicies 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.

*/ nextToken?: string; } @@ -4915,15 +5797,24 @@ export type JobDefinitionType = (typeof JobDefinitionType)[keyof typeof JobDefin export interface RegisterJobDefinitionRequest { /** * @public - *

The name of the job definition to register. It can be up to 128 letters long. It can contain uppercase and - * lowercase letters, numbers, hyphens (-), and underscores (_).

+ *

The name of the job definition to register. It can be up to 128 letters long. It can + * contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).

*/ jobDefinitionName: string | undefined; /** * @public - *

The type of job definition. For more information about multi-node parallel jobs, see Creating a multi-node parallel job definition in the - * Batch User Guide.

+ *

The type of job definition. For more information about multi-node parallel jobs, see + * Creating a multi-node + * parallel job definition in the Batch User Guide.

+ *
    + *
  • + *

    If the value is container, then one of the following is required: containerProperties, ecsProperties, or eksProperties.

    + *
  • + *
  • + *

    If the value is multinode, then nodeProperties is required.

    + *
  • + *
* *

If the job is run on Fargate resources, then multinode isn't supported.

*
@@ -4932,102 +5823,116 @@ export interface RegisterJobDefinitionRequest { /** * @public - *

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.

+ *

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.

*/ parameters?: Record; /** * @public - *

The scheduling priority for jobs that are submitted with this job definition. This only affects jobs in job - * queues with a fair share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower - * scheduling priority.

+ *

The scheduling priority for jobs that are submitted with this job definition. This only + * affects jobs in job queues with a fair share policy. Jobs with a higher scheduling priority + * are scheduled before jobs with a lower scheduling priority.

*

The minimum supported value is 0 and the maximum supported value is 9999.

*/ schedulingPriority?: number; /** * @public - *

An object with various properties specific to Amazon ECS based single-node container-based jobs. If the job - * definition's type parameter is container, then you must specify either - * containerProperties or nodeProperties. This must not be specified for Amazon EKS based job - * definitions.

+ *

An object with properties specific to Amazon ECS-based single-node container-based jobs. If the + * job definition's type parameter is container, then you must specify + * either containerProperties or nodeProperties. This must not be + * specified for Amazon EKS-based job definitions.

* - *

If the job runs on Fargate resources, then you must not specify nodeProperties; use only - * containerProperties.

+ *

If the job runs on Fargate resources, then you must not specify + * nodeProperties; use only containerProperties.

*
*/ containerProperties?: ContainerProperties; /** * @public - *

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 - * Batch User Guide. If the job definition's type parameter is container, - * then you must specify either containerProperties or nodeProperties.

+ *

An object with 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 Batch User Guide.

* - *

If the job runs on Fargate resources, then you must not specify nodeProperties; use - * containerProperties instead.

+ *

If the job runs on Fargate resources, then you must not specify + * nodeProperties; use containerProperties instead.

*
* - *

If the job runs on Amazon EKS resources, then you must not specify nodeProperties.

+ *

If the job runs on Amazon EKS resources, then you must not specify + * nodeProperties.

*
*/ nodeProperties?: NodeProperties; /** * @public - *

The retry strategy to use for failed jobs that are submitted with this job definition. Any retry strategy that's - * specified during a SubmitJob operation overrides the retry strategy defined here. If a job is - * terminated due to a timeout, it isn't retried.

+ *

The retry strategy to use for failed jobs that are submitted with this job definition. Any + * retry strategy that's specified during a SubmitJob operation overrides the + * retry strategy defined here. If a job is terminated due to a timeout, it isn't retried.

*/ retryStrategy?: RetryStrategy; /** * @public - *

Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If no - * value is specified, the tags are not propagated. Tags can only be propagated to the tasks during task creation. For - * tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags - * from the job and job definition is over 50, the job is moved to the FAILED state.

+ *

Specifies whether to propagate the tags from the job or job definition to the + * corresponding Amazon ECS task. If no value is specified, the tags are not propagated. Tags can only + * be propagated to the tasks during task creation. For tags with the same name, job tags are + * given priority over job definitions tags. If the total number of combined tags from the job + * and job definition is over 50, the job is moved to the FAILED state.

* - *

If the job runs on Amazon EKS resources, then you must not specify propagateTags.

+ *

If the job runs on Amazon EKS resources, then you must not specify + * propagateTags.

*
*/ propagateTags?: boolean; /** * @public - *

The timeout configuration for jobs that are submitted with this job definition, after which Batch terminates - * your jobs if they have not finished. If a job is terminated due to a timeout, it isn't retried. The minimum value for - * the timeout is 60 seconds. Any timeout configuration that's specified during a SubmitJob operation - * overrides the timeout configuration defined here. For more information, see Job Timeouts in the Batch User Guide.

+ *

The timeout configuration for jobs that are submitted with this job definition, after + * which Batch terminates your jobs if they have not finished. If a job is terminated due to a + * timeout, it isn't retried. The minimum value for the timeout is 60 seconds. Any timeout + * configuration that's specified during a SubmitJob operation overrides the + * timeout configuration defined here. For more information, see Job Timeouts in the + * Batch User Guide.

*/ timeout?: JobTimeout; /** * @public - *

The tags that you apply to the job definition to help you categorize and organize your resources. Each tag - * consists of a key and an optional value. For more information, see Tagging Amazon Web Services Resources in Batch User Guide.

+ *

The tags that you apply to the job definition to help you categorize and organize your + * resources. Each tag consists of a key and an optional value. For more information, see Tagging Amazon Web Services Resources in + * Batch User Guide.

*/ tags?: Record; /** * @public - *

The platform capabilities required by the job definition. If no value is specified, it defaults to - * EC2. To run the job on Fargate resources, specify FARGATE.

+ *

The platform capabilities required by the job definition. If no value is specified, it + * defaults to EC2. To run the job on Fargate resources, specify + * FARGATE.

* - *

If the job runs on Amazon EKS resources, then you must not specify platformCapabilities.

+ *

If the job runs on Amazon EKS resources, then you must not specify + * platformCapabilities.

*
*/ platformCapabilities?: PlatformCapability[]; /** * @public - *

An object with various properties that are specific to Amazon EKS based jobs. This must not be specified for Amazon ECS - * based job definitions.

+ *

An object with properties that are specific to Amazon EKS-based jobs. This must not be + * specified for Amazon ECS based job definitions.

*/ eksProperties?: EksProperties; + + /** + * @public + *

An object with properties that are specific to Amazon ECS-based jobs. This must not be + * specified for Amazon EKS-based job definitions.

+ */ + ecsProperties?: EcsProperties; } /** @@ -5057,7 +5962,7 @@ export interface RegisterJobDefinitionResponse { * @public *

The overrides that should be sent to a container.

*

For information about using Batch overrides when you connect event sources to targets, see - * BatchContainerOverrides.

+ * BatchContainerOverrides.

*/ export interface ContainerOverrides { /** @@ -5066,7 +5971,7 @@ export interface ContainerOverrides { * *

This parameter is deprecated, use resourceRequirements to override the * vcpus parameter that's set in the job definition. It's not supported for jobs - * running on Fargate resources. For jobs that run on EC2 resources, it overrides the + * running on Fargate resources. For jobs that run on Amazon EC2 resources, it overrides the * vcpus parameter set in the job definition, but doesn't override any vCPU * requirement specified in the resourceRequirements structure in the job definition. * To override vCPU requirements that are specified in the resourceRequirements @@ -5083,8 +5988,8 @@ export interface ContainerOverrides { * *

This parameter is deprecated, use resourceRequirements to override the memory * requirements specified in the job definition. It's not supported for jobs running on Fargate - * resources. For jobs that run on EC2 resources, it overrides the memory parameter set - * in the job definition, but doesn't override any memory requirement that's specified in the + * resources. For jobs that run on Amazon EC2 resources, it overrides the memory parameter + * set in the job definition, but doesn't override any memory requirement that's specified in the * resourceRequirements structure in the job definition. To override memory * requirements that are specified in the resourceRequirements structure in the job * definition, resourceRequirements must be specified in the SubmitJob @@ -5137,9 +6042,88 @@ export interface ContainerOverrides { /** * @public - *

Object representing any Kubernetes overrides to a job definition that's used in a SubmitJob API operation.

+ *

The overrides that should be sent to a container.

+ *

For information about using Batch overrides when you connect event sources to targets, see + * BatchContainerOverrides.

+ */ +export interface TaskContainerOverrides { + /** + * @public + *

The command to send to the container that overrides the default command from the Docker + * image or the job definition.

+ * + *

This parameter can't contain an empty string.

+ *
+ */ + command?: string[]; + + /** + * @public + *

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 cannot start with AWS_BATCH. This naming convention is + * reserved for variables that Batch sets.

+ *
+ */ + environment?: KeyValuePair[]; + + /** + * @public + *

A pointer to the container that you want to override. The container's name provides a unique + * identifier for the container being used.

+ */ + name?: string; + + /** + * @public + *

The type and amount of resources to assign to a container. This overrides the settings in + * the job definition. The supported resources include GPU, MEMORY, and + * VCPU.

+ */ + resourceRequirements?: ResourceRequirement[]; +} + +/** + * @public + *

An object that contains overrides for the task definition of a job.

+ */ +export interface TaskPropertiesOverride { + /** + * @public + *

The overrides for the container definition of a job.

+ */ + containers?: TaskContainerOverrides[]; +} + +/** + * @public + *

An object that contains overrides for the Amazon ECS task definition of a job.

+ */ +export interface EcsPropertiesOverride { + /** + * @public + *

The overrides for the Amazon ECS task definition of a job.

+ * + *

This object is currently limited to one element.

+ *
+ */ + taskProperties?: TaskPropertiesOverride[]; +} + +/** + * @public + *

Object representing any Kubernetes overrides to a job definition that's used in a SubmitJob API + * operation.

*/ export interface EksContainerOverride { + /** + * @public + *

A pointer to the container that you want to override. The name must match a unique container name that you wish to override.

+ */ + name?: string; + /** * @public *

The override of the Docker image that's used to start the container.

@@ -5156,8 +6140,8 @@ export interface EksContainerOverride { /** * @public *

The arguments to the entrypoint to send to the container that overrides the default - * arguments from the Docker image or the job definition. For more information, see CMD in the - * Dockerfile reference and Define a command an arguments for a pod in the Kubernetes + * arguments from the Docker image or the job definition. For more information, see Dockerfile reference: CMD + * and Define a command an arguments for a pod in the Kubernetes * documentation.

*/ args?: string[]; @@ -5196,6 +6180,16 @@ export interface EksPodPropertiesOverride { */ containers?: EksContainerOverride[]; + /** + * @public + *

The overrides for the conatainers defined in the Amazon EKS pod. These containers run before application containers, always runs to completion, and must complete successfully before the next container starts. These containers are registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store. For more information, see Init + * Containers in the Kubernetes documentation.

+ * + *

This object is limited to 10 elements

+ *
+ */ + initContainers?: EksContainerOverride[]; + /** * @public *

Metadata about the @@ -5218,7 +6212,8 @@ export interface EksPropertiesOverride { /** * @public - *

The object that represents any node overrides to a job definition that's used in a SubmitJob API operation.

+ *

The object that represents any node overrides to a job definition that's used in a SubmitJob API + * operation.

*/ export interface NodePropertyOverride { /** @@ -5236,11 +6231,26 @@ export interface NodePropertyOverride { *

The overrides that are sent to a node range.

*/ containerOverrides?: ContainerOverrides; + + /** + * @public + *

An object that contains the properties that you want to replace for the existing Amazon ECS + * resources of a job.

+ */ + ecsPropertiesOverride?: EcsPropertiesOverride; + + /** + * @public + *

An object that contains the instance types that you want to replace for the existing + * resources of a job.

+ */ + instanceTypes?: string[]; } /** * @public - *

An object that represents any node overrides to a job definition that's used in a SubmitJob API operation.

+ *

An object that represents any node overrides to a job definition that's used in a SubmitJob API + * operation.

* *

This parameter isn't applicable to jobs that are running on Fargate resources. Don't * provide it for these jobs. Rather, use containerOverrides instead.

@@ -5283,14 +6293,16 @@ export interface NodeOverrides { export interface SubmitJobRequest { /** * @public - *

The name of the job. It can be up to 128 letters long. The first character must be alphanumeric, can contain - * uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).

+ *

The name of the job. It can be up to 128 letters long. The first character must be + * alphanumeric, can contain uppercase and lowercase letters, numbers, hyphens (-), and + * underscores (_).

*/ jobName: string | undefined; /** * @public - *

The job queue where the job is submitted. You can specify either the name or the Amazon Resource Name (ARN) of the queue.

+ *

The job queue where the job is submitted. You can specify either the name or the Amazon Resource Name (ARN) + * of the queue.

*/ jobQueue: string | undefined; @@ -5306,8 +6318,8 @@ export interface SubmitJobRequest { /** * @public - *

The scheduling priority for the job. This only affects jobs in job queues with a fair share - * policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower + *

The scheduling priority for the job. This only affects jobs in job queues with a fair + * share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower * scheduling priority. * This * overrides any scheduling priority in the job definition and works only within a single share @@ -5318,30 +6330,32 @@ export interface SubmitJobRequest { /** * @public - *

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 - * Batch User Guide.

+ *

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 Batch User Guide.

*/ arrayProperties?: ArrayProperties; /** * @public - *

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.

+ *

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.

*/ dependsOn?: JobDependency[]; /** * @public - *

The job definition used by this job. This value can be one of definition-name, - * definition-name:revision, or the Amazon Resource Name (ARN) for the job definition, with or without the revision - * (arn:aws:batch:region:account:job-definition/definition-name:revision + *

The job definition used by this job. This value can be one of + * definition-name, definition-name:revision, or the Amazon Resource Name (ARN) for the + * job definition, with or without the revision + * (arn:aws:batch:region:account:job-definition/definition-name:revision * , - * or - * arn:aws:batch:region:account:job-definition/definition-name + * or + * arn:aws:batch:region:account:job-definition/definition-name * ).

*

If the revision is not specified, then the latest active revision is used.

*/ @@ -5349,75 +6363,85 @@ export interface SubmitJobRequest { /** * @public - *

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.

+ *

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.

*/ parameters?: Record; /** * @public - *

An object with various properties that override the defaults for the job definition 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, which is specified in the job definition or the Docker image, with a command override. - * You can also override existing environment variables on a container or add new environment variables to it with an - * environment override.

+ *

An object with properties that override the defaults for the job definition 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, which is specified in the job definition + * or the Docker image, with a command override. You can also override existing + * environment variables on a container or add new environment variables to it with an + * environment override.

*/ containerOverrides?: ContainerOverrides; /** * @public - *

A list of node overrides in JSON format that specify the node range to target and the container overrides for - * that node range.

+ *

A list of node overrides in JSON format that specify the node range to target and the + * container overrides for that node range.

* *

This parameter isn't applicable to jobs that are running on Fargate resources; use - * containerOverrides instead.

+ * containerOverrides instead.

*
*/ nodeOverrides?: NodeOverrides; /** * @public - *

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.

+ *

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.

*/ retryStrategy?: RetryStrategy; /** * @public - *

Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If no - * value is specified, the tags aren't propagated. Tags can only be propagated to the tasks during task creation. For - * tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags - * from the job and job definition is over 50, the job is moved to the FAILED state. When specified, this - * overrides the tag propagation setting in the job definition.

+ *

Specifies whether to propagate the tags from the job or job definition to the + * corresponding Amazon ECS task. If no value is specified, the tags aren't propagated. Tags can only + * be propagated to the tasks during task creation. For tags with the same name, job tags are + * given priority over job definitions tags. If the total number of combined tags from the job + * and job definition is over 50, the job is moved to the FAILED state. When + * specified, this overrides the tag propagation setting in the job definition.

*/ propagateTags?: boolean; /** * @public - *

The timeout configuration for this SubmitJob operation. You can specify a timeout duration - * after which Batch terminates your jobs if they haven't finished. If a job is terminated due to a timeout, it isn't - * 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.

+ *

The timeout configuration for this SubmitJob operation. You can specify + * a timeout duration after which Batch terminates your jobs if they haven't finished. If a job + * is terminated due to a timeout, it isn't 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.

*/ timeout?: JobTimeout; /** * @public - *

The tags that you apply to the job request to help you categorize and organize your resources. Each tag consists - * of a key and an optional value. For more information, see Tagging Amazon Web Services Resources in Amazon Web Services General - * Reference.

+ *

The tags that you apply to the job request to help you categorize and organize your + * resources. Each tag consists of a key and an optional value. For more information, see Tagging Amazon Web Services + * Resources in Amazon Web Services General Reference.

*/ tags?: Record; /** * @public - *

An object that can only be specified for jobs that are run on Amazon EKS resources with various properties that - * override defaults for the job definition.

+ *

An object, with properties that override defaults for the job definition, can only be specified for jobs that are run on Amazon EKS resources.

*/ eksPropertiesOverride?: EksPropertiesOverride; + + /** + * @public + *

An object, with properties that override defaults for the job definition, can only be specified for jobs that are run on Amazon ECS resources.

+ */ + ecsPropertiesOverride?: EcsPropertiesOverride; } /** @@ -5457,9 +6481,9 @@ export interface TagResourceRequest { /** * @public - *

The tags that you apply to the resource to help you categorize and organize your resources. Each tag consists of - * a key and an optional value. For more information, see Tagging Amazon Web Services Resources in Amazon Web Services General - * Reference.

+ *

The tags that you apply to the resource to help you categorize and organize your + * resources. Each tag consists of a key and an optional value. For more information, see Tagging Amazon Web Services + * Resources in Amazon Web Services General Reference.

*/ tags: Record | undefined; } @@ -5482,9 +6506,9 @@ export interface TerminateJobRequest { /** * @public - *

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 Batch activity - * logs.

+ *

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 Batch activity logs.

*/ reason: string | undefined; } @@ -5556,11 +6580,11 @@ export interface ComputeResourceUpdate { *

The maximum number of Amazon EC2 vCPUs that an environment can reach.

* *

With BEST_FIT_PROGRESSIVE,SPOT_CAPACITY_OPTIMIZED and - * SPOT_PRICE_CAPACITY_OPTIMIZED + * SPOT_PRICE_CAPACITY_OPTIMIZED * (recommended) strategies using On-Demand or Spot Instances, and the - * BEST_FIT strategy using Spot Instances, Batch might need to exceed - * maxvCpus to meet your capacity requirements. In this event, Batch never exceeds - * maxvCpus by more than a single instance.

+ * BEST_FIT strategy using Spot Instances, Batch might need to exceed + * maxvCpus to meet your capacity requirements. In this event, Batch never exceeds + * maxvCpus by more than a single instance.

*
*/ maxvCpus?: number; @@ -5592,7 +6616,7 @@ export interface ComputeResourceUpdate { * @public *

The VPC subnets where the compute resources are launched. Fargate compute resources can * contain up to 16 subnets. For Fargate compute resources, providing an empty list will be - * handled as if this parameter wasn't specified and no change is made. For EC2 compute resources, + * handled as if this parameter wasn't specified and no change is made. For Amazon EC2 compute resources, * providing an empty list removes the VPC subnets from the compute resource. For more information, * see VPCs and * subnets in the Amazon VPC User Guide.

@@ -5615,9 +6639,9 @@ export interface ComputeResourceUpdate { *

The Amazon EC2 security groups that are associated with instances launched in the compute * environment. This parameter is required for Fargate compute resources, where it can contain up * to 5 security groups. For Fargate compute resources, providing an empty list is handled as if - * this parameter wasn't specified and no change is made. For EC2 compute resources, providing an + * this parameter wasn't specified and no change is made. For Amazon EC2 compute resources, providing an * empty list removes the security groups from the compute resource.

- *

When updating a compute environment, changing the EC2 security groups requires an + *

When updating a compute environment, changing the Amazon EC2 security groups requires an * infrastructure update of the compute environment. For more information, see Updating compute * environments in the Batch User Guide.

*/ @@ -5653,18 +6677,18 @@ export interface ComputeResourceUpdate { *
*
SPOT_PRICE_CAPACITY_OPTIMIZED
*
- *

The price and capacity optimized allocation strategy looks at both price and capacity to + *

The price and capacity optimized allocation strategy looks at both price and capacity to * select the Spot Instance pools that are the least likely to be interrupted and have the lowest * possible price. This allocation strategy is only available for Spot Instance compute * resources.

*
* *

With BEST_FIT_PROGRESSIVE,SPOT_CAPACITY_OPTIMIZED and - * SPOT_PRICE_CAPACITY_OPTIMIZED + * SPOT_PRICE_CAPACITY_OPTIMIZED * (recommended) strategies using On-Demand or Spot Instances, and the - * BEST_FIT strategy using Spot Instances, Batch might need to exceed - * maxvCpus to meet your capacity requirements. In this event, Batch never exceeds - * maxvCpus by more than a single instance.

+ * BEST_FIT strategy using Spot Instances, Batch might need to exceed + * maxvCpus to meet your capacity requirements. In this event, Batch never exceeds + * maxvCpus by more than a single instance.

*/ allocationStrategy?: CRUpdateAllocationStrategy; @@ -5699,7 +6723,7 @@ export interface ComputeResourceUpdate { *

The Amazon EC2 key pair that's used for instances launched in the compute environment. You can * use this key pair to log in to your instances with SSH. To remove the Amazon EC2 key pair, set this * value to an empty string.

- *

When updating a compute environment, changing the EC2 key pair requires an infrastructure + *

When updating a compute environment, changing the Amazon EC2 key pair requires an infrastructure * update of the compute environment. For more information, see Updating compute environments in the * Batch User Guide.

* @@ -5730,7 +6754,7 @@ export interface ComputeResourceUpdate { /** * @public - *

Key-value pair tags to be applied to EC2 resources that are launched in the compute + *

Key-value pair tags to be applied to Amazon EC2 resources that are launched in the compute * environment. For Batch, these take the form of "String1": "String2", where * String1 is the tag key and String2 is the tag value-for example, * \{ "Name": "Batch Instance - C4OnDemand" \}. This is helpful for recognizing your @@ -5801,12 +6825,12 @@ export interface ComputeResourceUpdate { /** * @public - *

Provides information used to select Amazon Machine Images (AMIs) for EC2 instances in the + *

Provides information used to select Amazon Machine Images (AMIs) for Amazon EC2 instances in the * compute environment. If Ec2Configuration isn't specified, the default is * ECS_AL2.

*

When updating a compute environment, changing this setting requires an infrastructure update * of the compute environment. For more information, see Updating compute environments in the - * Batch User Guide. To remove the EC2 configuration and any custom AMI ID + * Batch User Guide. To remove the Amazon EC2 configuration and any custom AMI ID * specified in imageIdOverride, set this value to an empty string.

*

One or two values can be provided.

* @@ -5911,49 +6935,51 @@ export interface UpdateComputeEnvironmentRequest { /** * @public - *

The maximum number of vCPUs expected to be used for an unmanaged compute environment. Don't specify this - * parameter for a managed compute environment. This parameter is only used for fair share scheduling to reserve vCPU - * capacity for new share identifiers. If this parameter isn't provided for a fair share job queue, no vCPU capacity is - * reserved.

+ *

The maximum number of vCPUs expected to be used for an unmanaged compute environment. + * Don't specify this parameter for a managed compute environment. This parameter is only used + * for fair share scheduling to reserve vCPU capacity for new share identifiers. If this + * parameter isn't provided for a fair share job queue, no vCPU capacity is reserved.

*/ unmanagedvCpus?: number; /** * @public - *

Details of the compute resources managed by the compute environment. Required for a managed compute environment. - * For more information, see Compute - * Environments in the Batch User Guide.

+ *

Details of the compute resources managed by the compute environment. Required for a + * managed compute environment. For more information, see Compute Environments in the + * Batch User Guide.

*/ computeResources?: ComputeResourceUpdate; /** * @public - *

The full Amazon Resource Name (ARN) of the IAM role that allows Batch to make calls to other Amazon Web Services services on your behalf. - * For more information, see Batch service IAM - * role in the Batch User Guide.

+ *

The full Amazon Resource Name (ARN) of the IAM role that allows Batch to make calls to other Amazon Web Services + * services on your behalf. For more information, see Batch service IAM role in the + * Batch User Guide.

* - *

If the compute environment has a service-linked role, it can't be changed to use a regular IAM role. - * Likewise, if the compute environment has a regular IAM role, it can't be changed to use a service-linked role. To - * update the parameters for the compute environment that require an infrastructure update to change, the AWSServiceRoleForBatch service-linked role must be used. For more information, see - * Updating compute - * environments in the Batch User Guide.

+ *

If the compute environment has a service-linked role, it can't be changed to use a + * regular IAM role. Likewise, if the compute environment has a regular IAM role, it can't + * be changed to use a service-linked role. To update the parameters for the compute + * environment that require an infrastructure update to change, the AWSServiceRoleForBatch service-linked role must be used. For more information, + * see Updating + * compute environments in the Batch User Guide.

*
- *

If your specified role has a path other than /, then you must either specify the full role ARN - * (recommended) or prefix the role name with the path.

+ *

If your specified role has a path other than /, then you must either specify + * the full role ARN (recommended) or prefix the role name with the path.

* - *

Depending on how you created your Batch service role, its ARN might contain the service-role - * path prefix. When you only specify the name of the service role, Batch assumes that your ARN doesn't 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.

+ *

Depending on how you created your Batch service role, its ARN might contain the + * service-role path prefix. When you only specify the name of the service role, + * Batch assumes that your ARN doesn't 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.

*
*/ serviceRole?: string; /** * @public - *

Specifies the updated infrastructure update policy for the compute environment. For more information about - * infrastructure updates, see Updating - * compute environments in the Batch User Guide.

+ *

Specifies the updated infrastructure update policy for the compute environment. For more + * information about infrastructure updates, see Updating compute environments in + * the Batch User Guide.

*/ updatePolicy?: UpdatePolicy; } @@ -5989,44 +7015,47 @@ export interface UpdateJobQueueRequest { /** * @public - *

Describes the queue's ability to accept new jobs. If the job queue state is ENABLED, it can accept - * jobs. If the job queue state is DISABLED, new jobs can't be added to the queue, but jobs already in the - * queue can finish.

+ *

Describes the queue's ability to accept new jobs. If the job queue state is + * ENABLED, it can accept jobs. If the job queue state is DISABLED, + * new jobs can't be added to the queue, but jobs already in the queue can finish.

*/ state?: JQState; /** * @public - *

Amazon Resource Name (ARN) of the fair share scheduling policy. Once a job queue is created, the fair share scheduling policy can - * be replaced but not removed. The format is - * aws:Partition:batch:Region:Account:scheduling-policy/Name + *

Amazon Resource Name (ARN) of the fair share scheduling policy. Once a job queue is created, the fair share + * scheduling policy can be replaced but not removed. The format is + * aws:Partition:batch:Region:Account:scheduling-policy/Name * . - * For example, - * aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

+ * For example, + * aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

*/ schedulingPolicyArn?: string; /** * @public - *

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. All of the compute environments must be either - * EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT). EC2 and - * Fargate compute environments can't be mixed.

+ *

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. All of the compute environments must be either EC2 + * (EC2 or SPOT) or Fargate (FARGATE or + * FARGATE_SPOT). EC2 and Fargate compute environments can't be mixed.

*/ priority?: number; /** * @public - *

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 runs a given job. Compute - * environments must be in the VALID state before you can associate them with a job queue. All of - * the compute environments must be either EC2 (EC2 or SPOT) or Fargate - * (FARGATE or FARGATE_SPOT). EC2 and Fargate compute environments can't be mixed.

+ *

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 runs a given job. Compute environments must be in the VALID state + * before you can associate them with a job queue. All of the compute environments must be either + * EC2 (EC2 or SPOT) or Fargate (FARGATE or + * FARGATE_SPOT). EC2 and Fargate compute environments can't be mixed.

* - *

All compute environments that are associated with a job queue must share the same architecture. Batch doesn't - * support mixing compute environment architecture types in a single job queue.

+ *

All compute environments that are associated with a job queue must share the same + * architecture. Batch doesn't support mixing compute environment architecture types in a + * single job queue.

*
*/ computeEnvironmentOrder?: ComputeEnvironmentOrder[]; diff --git a/clients/client-batch/src/protocols/Aws_restJson1.ts b/clients/client-batch/src/protocols/Aws_restJson1.ts index 0b9dec6dad52..04ad1be37d9f 100644 --- a/clients/client-batch/src/protocols/Aws_restJson1.ts +++ b/clients/client-batch/src/protocols/Aws_restJson1.ts @@ -5,7 +5,9 @@ import { _json, collectBody, decorateServiceException as __decorateServiceException, + expectBoolean as __expectBoolean, expectInt32 as __expectInt32, + expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, @@ -98,6 +100,9 @@ import { Device, DeviceCgroupPermission, Ec2Configuration, + EcsProperties, + EcsPropertiesOverride, + EcsTaskProperties, EFSAuthorizationConfig, EFSVolumeConfiguration, EksConfiguration, @@ -121,7 +126,9 @@ import { FairsharePolicy, FargatePlatformConfiguration, Host, + JobDefinition, JobDependency, + JobDetail, JobTimeout, KeyValuePair, KeyValuesPair, @@ -143,6 +150,10 @@ import { Secret, ServerException, ShareAttributes, + TaskContainerDependency, + TaskContainerOverrides, + TaskContainerProperties, + TaskPropertiesOverride, Tmpfs, Ulimit, UpdatePolicy, @@ -541,9 +552,10 @@ export const se_RegisterJobDefinitionCommand = async ( body = JSON.stringify( take(input, { containerProperties: (_) => _json(_), + ecsProperties: (_) => _json(_), eksProperties: (_) => _json(_), jobDefinitionName: [], - nodeProperties: (_) => _json(_), + nodeProperties: (_) => se_NodeProperties(_, context), parameters: (_) => _json(_), platformCapabilities: (_) => _json(_), propagateTags: [], @@ -576,6 +588,7 @@ export const se_SubmitJobCommand = async ( arrayProperties: (_) => _json(_), containerOverrides: (_) => _json(_), dependsOn: (_) => _json(_), + ecsPropertiesOverride: (_) => _json(_), eksPropertiesOverride: (_) => _json(_), jobDefinition: [], jobName: [], @@ -926,7 +939,7 @@ export const de_DescribeJobDefinitionsCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - jobDefinitions: _json, + jobDefinitions: (_) => de_JobDefinitionList(_, context), nextToken: __expectString, }); Object.assign(contents, doc); @@ -970,7 +983,7 @@ export const de_DescribeJobsCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { - jobs: _json, + jobs: (_) => de_JobDetailList(_, context), }); Object.assign(contents, doc); return contents; @@ -1305,6 +1318,12 @@ const de_ServerExceptionRes = async (parsedOutput: any, context: __SerdeContext) // se_Ec2ConfigurationList omitted. +// se_EcsProperties omitted. + +// se_EcsPropertiesOverride omitted. + +// se_EcsTaskProperties omitted. + // se_EFSAuthorizationConfig omitted. // se_EFSVolumeConfiguration omitted. @@ -1394,8 +1413,16 @@ const se_FairsharePolicy = (input: FairsharePolicy, context: __SerdeContext): an // se_LinuxParameters omitted. +// se_ListEcsTaskProperties omitted. + // se_ListJobsFilterList omitted. +// se_ListTaskContainerOverrides omitted. + +// se_ListTaskContainerProperties omitted. + +// se_ListTaskPropertiesOverride omitted. + // se_LogConfiguration omitted. // se_LogConfigurationOptionsMap omitted. @@ -1408,13 +1435,31 @@ const se_FairsharePolicy = (input: FairsharePolicy, context: __SerdeContext): an // se_NodeOverrides omitted. -// se_NodeProperties omitted. +/** + * serializeAws_restJson1NodeProperties + */ +const se_NodeProperties = (input: NodeProperties, context: __SerdeContext): any => { + return take(input, { + mainNode: [], + nodeRangeProperties: (_) => se_NodeRangeProperties(_, context), + numNodes: [], + }); +}; // se_NodePropertyOverride omitted. // se_NodePropertyOverrides omitted. -// se_NodeRangeProperties omitted. +/** + * serializeAws_restJson1NodeRangeProperties + */ +const se_NodeRangeProperties = (input: NodeRangeProperty[], context: __SerdeContext): any => { + return input + .filter((e: any) => e != null) + .map((entry) => { + return _json(entry); + }); +}; // se_NodeRangeProperty omitted. @@ -1463,6 +1508,16 @@ const se_ShareAttributesList = (input: ShareAttributes[], context: __SerdeContex // se_TagsMap omitted. +// se_TaskContainerDependency omitted. + +// se_TaskContainerDependencyList omitted. + +// se_TaskContainerOverrides omitted. + +// se_TaskContainerProperties omitted. + +// se_TaskPropertiesOverride omitted. + // se_Tmpfs omitted. // se_TmpfsList omitted. @@ -1515,6 +1570,14 @@ const se_ShareAttributesList = (input: ShareAttributes[], context: __SerdeContex // de_Ec2ConfigurationList omitted. +// de_EcsProperties omitted. + +// de_EcsPropertiesDetail omitted. + +// de_EcsTaskDetails omitted. + +// de_EcsTaskProperties omitted. + // de_EFSAuthorizationConfig omitted. // de_EFSVolumeConfiguration omitted. @@ -1598,17 +1661,95 @@ const de_FairsharePolicy = (output: any, context: __SerdeContext): FairsharePoli // de_Host omitted. -// de_JobDefinition omitted. +/** + * deserializeAws_restJson1JobDefinition + */ +const de_JobDefinition = (output: any, context: __SerdeContext): JobDefinition => { + return take(output, { + containerOrchestrationType: __expectString, + containerProperties: _json, + ecsProperties: _json, + eksProperties: _json, + jobDefinitionArn: __expectString, + jobDefinitionName: __expectString, + nodeProperties: (_: any) => de_NodeProperties(_, context), + parameters: _json, + platformCapabilities: _json, + propagateTags: __expectBoolean, + retryStrategy: _json, + revision: __expectInt32, + schedulingPriority: __expectInt32, + status: __expectString, + tags: _json, + timeout: _json, + type: __expectString, + }) as any; +}; -// de_JobDefinitionList omitted. +/** + * deserializeAws_restJson1JobDefinitionList + */ +const de_JobDefinitionList = (output: any, context: __SerdeContext): JobDefinition[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_JobDefinition(entry, context); + }); + return retVal; +}; // de_JobDependency omitted. // de_JobDependencyList omitted. -// de_JobDetail omitted. +/** + * deserializeAws_restJson1JobDetail + */ +const de_JobDetail = (output: any, context: __SerdeContext): JobDetail => { + return take(output, { + arrayProperties: _json, + attempts: _json, + container: _json, + createdAt: __expectLong, + dependsOn: _json, + ecsProperties: _json, + eksAttempts: _json, + eksProperties: _json, + isCancelled: __expectBoolean, + isTerminated: __expectBoolean, + jobArn: __expectString, + jobDefinition: __expectString, + jobId: __expectString, + jobName: __expectString, + jobQueue: __expectString, + nodeDetails: _json, + nodeProperties: (_: any) => de_NodeProperties(_, context), + parameters: _json, + platformCapabilities: _json, + propagateTags: __expectBoolean, + retryStrategy: _json, + schedulingPriority: __expectInt32, + shareIdentifier: __expectString, + startedAt: __expectLong, + status: __expectString, + statusReason: __expectString, + stoppedAt: __expectLong, + tags: _json, + timeout: _json, + }) as any; +}; -// de_JobDetailList omitted. +/** + * deserializeAws_restJson1JobDetailList + */ +const de_JobDetailList = (output: any, context: __SerdeContext): JobDetail[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_JobDetail(entry, context); + }); + return retVal; +}; // de_JobQueueDetail omitted. @@ -1626,6 +1767,14 @@ const de_FairsharePolicy = (output: any, context: __SerdeContext): FairsharePoli // de_LinuxParameters omitted. +// de_ListEcsTaskDetails omitted. + +// de_ListEcsTaskProperties omitted. + +// de_ListTaskContainerDetails omitted. + +// de_ListTaskContainerProperties omitted. + // de_LogConfiguration omitted. // de_LogConfigurationOptionsMap omitted. @@ -1642,11 +1791,30 @@ const de_FairsharePolicy = (output: any, context: __SerdeContext): FairsharePoli // de_NodeDetails omitted. -// de_NodeProperties omitted. +/** + * deserializeAws_restJson1NodeProperties + */ +const de_NodeProperties = (output: any, context: __SerdeContext): NodeProperties => { + return take(output, { + mainNode: __expectInt32, + nodeRangeProperties: (_: any) => de_NodeRangeProperties(_, context), + numNodes: __expectInt32, + }) as any; +}; // de_NodePropertiesSummary omitted. -// de_NodeRangeProperties omitted. +/** + * deserializeAws_restJson1NodeRangeProperties + */ +const de_NodeRangeProperties = (output: any, context: __SerdeContext): NodeRangeProperty[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return _json(entry); + }); + return retVal; +}; // de_NodeRangeProperty omitted. @@ -1724,6 +1892,14 @@ const de_ShareAttributesList = (output: any, context: __SerdeContext): ShareAttr // de_TagsMap omitted. +// de_TaskContainerDependency omitted. + +// de_TaskContainerDependencyList omitted. + +// de_TaskContainerDetails omitted. + +// de_TaskContainerProperties omitted. + // de_Tmpfs omitted. // de_TmpfsList omitted. diff --git a/codegen/sdk-codegen/aws-models/batch.json b/codegen/sdk-codegen/aws-models/batch.json index a8374a8db79b..6363317c528c 100644 --- a/codegen/sdk-codegen/aws-models/batch.json +++ b/codegen/sdk-codegen/aws-models/batch.json @@ -1549,7 +1549,7 @@ "target": "com.amazonaws.batch#String", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

A message to attach to the job that explains the reason for canceling it. This message is returned by future\n DescribeJobs operations on the job. This message is also recorded in the Batch activity\n logs.

", + "smithy.api#documentation": "

A message to attach to the job that explains the reason for canceling it. This message is\n returned by future DescribeJobs operations on the job. This message is also\n recorded in the Batch activity logs.

", "smithy.api#required": {} } } @@ -1649,7 +1649,7 @@ "serviceRole": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The service role that's associated with the compute environment that allows Batch to make\n calls to Amazon Web Services API operations on your behalf. For more information, see Batch service IAM role in\n the Batch User Guide.

" + "smithy.api#documentation": "

The service role that's associated with the compute environment that allows Batch to make\n calls to Amazon Web Services API operations on your behalf. For more information, see Batch service IAM role in the\n Batch User Guide.

" } }, "updatePolicy": { @@ -1708,7 +1708,7 @@ } }, "traits": { - "smithy.api#documentation": "

The order that compute environments are tried in for job placement within a queue. Compute\n environments are tried in ascending order. For example, if two compute environments are\n associated with a job queue, the compute environment with a lower order integer value is tried\n for job placement first. Compute environments must be in the VALID state before you\n can associate them with a job queue. All of the compute environments must be either EC2\n (EC2 or SPOT) or Fargate (FARGATE or\n FARGATE_SPOT); EC2 and Fargate compute environments can't be mixed.

\n \n

All compute environments that are associated with a job queue must share the same\n architecture. Batch doesn't support mixing compute environment architecture types in a single\n job queue.

\n
" + "smithy.api#documentation": "

The order that compute environments are tried in for job placement within a queue. Compute\n environments are tried in ascending order. For example, if two compute environments are\n associated with a job queue, the compute environment with a lower order integer value is tried\n for job placement first. Compute environments must be in the VALID state before you\n can associate them with a job queue. All of the compute environments must be either EC2\n (EC2 or SPOT) or Fargate (FARGATE or\n FARGATE_SPOT); Amazon EC2 and Fargate compute environments can't be mixed.

\n \n

All compute environments that are associated with a job queue must share the same\n architecture. Batch doesn't support mixing compute environment architecture types in a single\n job queue.

\n
" } }, "com.amazonaws.batch#ComputeEnvironmentOrders": { @@ -1731,7 +1731,7 @@ "allocationStrategy": { "target": "com.amazonaws.batch#CRAllocationStrategy", "traits": { - "smithy.api#documentation": "

The allocation strategy to use for the compute resource if not enough instances of the best\n fitting instance type can be allocated. This might be because of availability of the instance\n type in the Region or Amazon EC2 service limits. For more\n information, see Allocation strategies in the Batch User Guide.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.

\n
\n
\n
BEST_FIT (default)
\n
\n

Batch selects an instance type that best fits the needs of the jobs with a preference\n for the lowest-cost instance type. If additional instances of the selected instance type\n aren't available, Batch waits for the additional instances to be available. If there aren't\n enough instances available or the user is reaching Amazon EC2 service limits,\n additional jobs aren't run until the currently running jobs are completed. This allocation\n strategy keeps costs lower but can limit scaling. If you're using Spot Fleets with\n BEST_FIT, the Spot Fleet IAM Role must be specified. Compute resources that use\n a BEST_FIT allocation strategy don't support infrastructure updates and can't\n update some parameters. For more information, see Updating compute environments in\n the Batch User Guide.

\n
\n
BEST_FIT_PROGRESSIVE
\n
\n

Batch selects additional instance types that are large enough to meet the requirements\n of the jobs in the queue. Its preference is for instance types with lower cost vCPUs. If\n additional instances of the previously selected instance types aren't available, Batch\n selects new instance types.

\n
\n
SPOT_CAPACITY_OPTIMIZED
\n
\n

Batch selects one or more instance types that are large enough to meet the requirements\n of the jobs in the queue. Its preference is for instance types that are less likely to be\n interrupted. This allocation strategy is only available for Spot Instance compute\n resources.

\n
\n
SPOT_PRICE_CAPACITY_OPTIMIZED
\n
\n

The price and capacity optimized allocation strategy looks at both price and capacity to\n select the Spot Instance pools that are the least likely to be interrupted and have the lowest\n possible price. This allocation strategy is only available for Spot Instance compute\n resources.

\n
\n
\n

With BEST_FIT_PROGRESSIVE,SPOT_CAPACITY_OPTIMIZED and\n SPOT_PRICE_CAPACITY_OPTIMIZED\n (recommended) strategies using On-Demand or Spot Instances, and the\n BEST_FIT strategy using Spot Instances, Batch might need to exceed\n maxvCpus to meet your capacity requirements. In this event, Batch never exceeds\n maxvCpus by more than a single instance.

" + "smithy.api#documentation": "

The allocation strategy to use for the compute resource if not enough instances of the best\n fitting instance type can be allocated. This might be because of availability of the instance\n type in the Region or Amazon EC2 service limits. For more\n information, see Allocation strategies in the Batch User Guide.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.

\n
\n
\n
BEST_FIT (default)
\n
\n

Batch selects an instance type that best fits the needs of the jobs with a preference\n for the lowest-cost instance type. If additional instances of the selected instance type\n aren't available, Batch waits for the additional instances to be available. If there aren't\n enough instances available or the user is reaching Amazon EC2 service limits,\n additional jobs aren't run until the currently running jobs are completed. This allocation\n strategy keeps costs lower but can limit scaling. If you're using Spot Fleets with\n BEST_FIT, the Spot Fleet IAM Role must be specified. Compute resources that use\n a BEST_FIT allocation strategy don't support infrastructure updates and can't\n update some parameters. For more information, see Updating compute environments in\n the Batch User Guide.

\n
\n
BEST_FIT_PROGRESSIVE
\n
\n

Batch selects additional instance types that are large enough to meet the requirements\n of the jobs in the queue. Its preference is for instance types with lower cost vCPUs. If\n additional instances of the previously selected instance types aren't available, Batch\n selects new instance types.

\n
\n
SPOT_CAPACITY_OPTIMIZED
\n
\n

Batch selects one or more instance types that are large enough to meet the requirements\n of the jobs in the queue. Its preference is for instance types that are less likely to be\n interrupted. This allocation strategy is only available for Spot Instance compute\n resources.

\n
\n
SPOT_PRICE_CAPACITY_OPTIMIZED
\n
\n

The price and capacity optimized allocation strategy looks at both price and capacity to\n select the Spot Instance pools that are the least likely to be interrupted and have the lowest\n possible price. This allocation strategy is only available for Spot Instance compute\n resources.

\n
\n
\n

With BEST_FIT_PROGRESSIVE,SPOT_CAPACITY_OPTIMIZED and\n SPOT_PRICE_CAPACITY_OPTIMIZED\n (recommended) strategies using On-Demand or Spot Instances, and the\n BEST_FIT strategy using Spot Instances, Batch might need to exceed\n maxvCpus to meet your capacity requirements. In this event, Batch never exceeds\n maxvCpus by more than a single instance.

" } }, "minvCpus": { @@ -1744,7 +1744,7 @@ "target": "com.amazonaws.batch#Integer", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

The maximum number of\n vCPUs that a\n compute environment can\n support.

\n \n

With BEST_FIT_PROGRESSIVE,SPOT_CAPACITY_OPTIMIZED and\n SPOT_PRICE_CAPACITY_OPTIMIZED\n (recommended) strategies using On-Demand or Spot Instances, and the\n BEST_FIT strategy using Spot Instances, Batch might need to exceed\n maxvCpus to meet your capacity requirements. In this event, Batch never exceeds\n maxvCpus by more than a single instance.

\n
", + "smithy.api#documentation": "

The maximum number of\n vCPUs that a\n compute environment can\n support.

\n \n

With BEST_FIT_PROGRESSIVE,SPOT_CAPACITY_OPTIMIZED and\n SPOT_PRICE_CAPACITY_OPTIMIZED\n (recommended) strategies using On-Demand or Spot Instances, and the\n BEST_FIT strategy using Spot Instances, Batch might need to exceed\n maxvCpus to meet your capacity requirements. In this event, Batch never exceeds\n maxvCpus by more than a single instance.

\n
", "smithy.api#required": {} } }, @@ -1792,13 +1792,13 @@ "instanceRole": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The Amazon ECS instance profile applied to Amazon EC2 instances in a compute environment. This parameter is required \n for Amazon EC2 instances types. You can specify the short name or full Amazon Resource Name (ARN) of an instance profile. For example,\n \n ecsInstanceRole\n or\n arn:aws:iam:::instance-profile/ecsInstanceRole\n .\n For more information, see Amazon ECS instance role in the Batch User Guide.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.

\n
" + "smithy.api#documentation": "

The Amazon ECS instance profile applied to Amazon EC2 instances in a compute environment. This\n parameter is required for Amazon EC2 instances types. You can specify the short name or full Amazon Resource Name (ARN)\n of an instance profile. For example, \n ecsInstanceRole\n or\n arn:aws:iam:::instance-profile/ecsInstanceRole\n .\n For more information, see Amazon ECS instance role in the Batch User Guide.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.

\n
" } }, "tags": { "target": "com.amazonaws.batch#TagsMap", "traits": { - "smithy.api#documentation": "

Key-value pair tags to be applied to EC2 resources that are launched in the compute\n environment. For Batch, these take the form of \"String1\": \"String2\", where\n String1 is the tag key and String2 is the tag value-for example,\n { \"Name\": \"Batch Instance - C4OnDemand\" }. This is helpful for recognizing your\n Batch instances in the Amazon EC2 console. Updating these tags requires an infrastructure update to\n the compute environment. For more information, see Updating compute environments in the\n Batch User Guide. These tags aren't seen when using the Batch\n ListTagsForResource API operation.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.

\n
" + "smithy.api#documentation": "

Key-value pair tags to be applied to Amazon EC2 resources that are launched in the compute\n environment. For Batch, these take the form of \"String1\": \"String2\", where\n String1 is the tag key and String2 is the tag value-for example,\n { \"Name\": \"Batch Instance - C4OnDemand\" }. This is helpful for recognizing your\n Batch instances in the Amazon EC2 console. Updating these tags requires an infrastructure update to\n the compute environment. For more information, see Updating compute environments in the\n Batch User Guide. These tags aren't seen when using the Batch\n ListTagsForResource API operation.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.

\n
" } }, "placementGroup": { @@ -1822,13 +1822,13 @@ "launchTemplate": { "target": "com.amazonaws.batch#LaunchTemplateSpecification", "traits": { - "smithy.api#documentation": "

The launch template to use for your compute resources. Any other compute resource parameters\n that you specify in a CreateComputeEnvironment API operation override the same\n parameters in the launch template. You must specify either the launch template ID or launch\n template name in the request, but not both. For more information, see Launch template support in the\n Batch User Guide.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.

\n
" + "smithy.api#documentation": "

The launch template to use for your compute resources. Any other compute resource parameters\n that you specify in a CreateComputeEnvironment API operation override the same parameters in the launch\n template. You must specify either the launch template ID or launch template name in the request,\n but not both. For more information, see Launch template support in the\n Batch User Guide.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.

\n
" } }, "ec2Configuration": { "target": "com.amazonaws.batch#Ec2ConfigurationList", "traits": { - "smithy.api#documentation": "

Provides information that's used to select Amazon Machine Images (AMIs) for EC2 instances in\n the compute environment. If Ec2Configuration isn't specified, the default is\n ECS_AL2.

\n

One or two values can be provided.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.

\n
" + "smithy.api#documentation": "

Provides information that's used to select Amazon Machine Images (AMIs) for Amazon EC2 instances\n in the compute environment. If Ec2Configuration isn't specified, the default is\n ECS_AL2.

\n

One or two values can be provided.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.

\n
" } } }, @@ -1848,7 +1848,7 @@ "maxvCpus": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The maximum number of Amazon EC2 vCPUs that an environment can reach.

\n \n

With BEST_FIT_PROGRESSIVE,SPOT_CAPACITY_OPTIMIZED and\n SPOT_PRICE_CAPACITY_OPTIMIZED\n (recommended) strategies using On-Demand or Spot Instances, and the\n BEST_FIT strategy using Spot Instances, Batch might need to exceed\n maxvCpus to meet your capacity requirements. In this event, Batch never exceeds\n maxvCpus by more than a single instance.

\n
" + "smithy.api#documentation": "

The maximum number of Amazon EC2 vCPUs that an environment can reach.

\n \n

With BEST_FIT_PROGRESSIVE,SPOT_CAPACITY_OPTIMIZED and\n SPOT_PRICE_CAPACITY_OPTIMIZED\n (recommended) strategies using On-Demand or Spot Instances, and the\n BEST_FIT strategy using Spot Instances, Batch might need to exceed\n maxvCpus to meet your capacity requirements. In this event, Batch never exceeds\n maxvCpus by more than a single instance.

\n
" } }, "desiredvCpus": { @@ -1860,19 +1860,19 @@ "subnets": { "target": "com.amazonaws.batch#StringList", "traits": { - "smithy.api#documentation": "

The VPC subnets where the compute resources are launched. Fargate compute resources can\n contain up to 16 subnets. For Fargate compute resources, providing an empty list will be\n handled as if this parameter wasn't specified and no change is made. For EC2 compute resources,\n providing an empty list removes the VPC subnets from the compute resource. For more information,\n see VPCs and\n subnets in the Amazon VPC User Guide.

\n

When updating a compute environment, changing the VPC subnets requires an infrastructure\n update of the compute environment. For more information, see Updating compute environments in the\n Batch User Guide.

\n \n

Batch on Amazon EC2 and Batch on Amazon EKS support Local Zones. For more information, see Local\n Zones in the Amazon EC2 User Guide for Linux Instances, Amazon EKS and Amazon Web Services Local\n Zones in the Amazon EKS User Guide and Amazon ECS\n clusters in Local Zones, Wavelength Zones, and Amazon Web Services Outposts in the Amazon ECS\n Developer Guide.

\n

Batch on Fargate doesn't currently support Local Zones.

\n
" + "smithy.api#documentation": "

The VPC subnets where the compute resources are launched. Fargate compute resources can\n contain up to 16 subnets. For Fargate compute resources, providing an empty list will be\n handled as if this parameter wasn't specified and no change is made. For Amazon EC2 compute resources,\n providing an empty list removes the VPC subnets from the compute resource. For more information,\n see VPCs and\n subnets in the Amazon VPC User Guide.

\n

When updating a compute environment, changing the VPC subnets requires an infrastructure\n update of the compute environment. For more information, see Updating compute environments in the\n Batch User Guide.

\n \n

Batch on Amazon EC2 and Batch on Amazon EKS support Local Zones. For more information, see Local\n Zones in the Amazon EC2 User Guide for Linux Instances, Amazon EKS and Amazon Web Services Local\n Zones in the Amazon EKS User Guide and Amazon ECS\n clusters in Local Zones, Wavelength Zones, and Amazon Web Services Outposts in the Amazon ECS\n Developer Guide.

\n

Batch on Fargate doesn't currently support Local Zones.

\n
" } }, "securityGroupIds": { "target": "com.amazonaws.batch#StringList", "traits": { - "smithy.api#documentation": "

The Amazon EC2 security groups that are associated with instances launched in the compute\n environment. This parameter is required for Fargate compute resources, where it can contain up\n to 5 security groups. For Fargate compute resources, providing an empty list is handled as if\n this parameter wasn't specified and no change is made. For EC2 compute resources, providing an\n empty list removes the security groups from the compute resource.

\n

When updating a compute environment, changing the EC2 security groups requires an\n infrastructure update of the compute environment. For more information, see Updating compute\n environments in the Batch User Guide.

" + "smithy.api#documentation": "

The Amazon EC2 security groups that are associated with instances launched in the compute\n environment. This parameter is required for Fargate compute resources, where it can contain up\n to 5 security groups. For Fargate compute resources, providing an empty list is handled as if\n this parameter wasn't specified and no change is made. For Amazon EC2 compute resources, providing an\n empty list removes the security groups from the compute resource.

\n

When updating a compute environment, changing the Amazon EC2 security groups requires an\n infrastructure update of the compute environment. For more information, see Updating compute\n environments in the Batch User Guide.

" } }, "allocationStrategy": { "target": "com.amazonaws.batch#CRUpdateAllocationStrategy", "traits": { - "smithy.api#documentation": "

The allocation strategy to use for the compute resource if there's not enough instances of\n the best fitting instance type that can be allocated. This might be because of availability of\n the instance type in the Region or Amazon EC2 service limits. For more\n information, see Allocation strategies in the Batch User Guide.

\n

When updating a compute environment, changing the allocation strategy requires an\n infrastructure update of the compute environment. For more information, see Updating compute\n environments in the Batch User Guide. BEST_FIT isn't\n supported when updating a compute environment.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.

\n
\n
\n
BEST_FIT_PROGRESSIVE
\n
\n

Batch selects additional instance types that are large enough to meet the requirements\n of the jobs in the queue. Its preference is for instance types with lower cost vCPUs. If\n additional instances of the previously selected instance types aren't available, Batch\n selects new instance types.

\n
\n
SPOT_CAPACITY_OPTIMIZED
\n
\n

Batch selects one or more instance types that are large enough to meet the requirements\n of the jobs in the queue. Its preference is for instance types that are less likely to be\n interrupted. This allocation strategy is only available for Spot Instance compute\n resources.

\n
\n
SPOT_PRICE_CAPACITY_OPTIMIZED
\n
\n

The price and capacity optimized allocation strategy looks at both price and capacity to\n select the Spot Instance pools that are the least likely to be interrupted and have the lowest\n possible price. This allocation strategy is only available for Spot Instance compute\n resources.

\n
\n
\n

With BEST_FIT_PROGRESSIVE,SPOT_CAPACITY_OPTIMIZED and\n SPOT_PRICE_CAPACITY_OPTIMIZED\n (recommended) strategies using On-Demand or Spot Instances, and the\n BEST_FIT strategy using Spot Instances, Batch might need to exceed\n maxvCpus to meet your capacity requirements. In this event, Batch never exceeds\n maxvCpus by more than a single instance.

" + "smithy.api#documentation": "

The allocation strategy to use for the compute resource if there's not enough instances of\n the best fitting instance type that can be allocated. This might be because of availability of\n the instance type in the Region or Amazon EC2 service limits. For more\n information, see Allocation strategies in the Batch User Guide.

\n

When updating a compute environment, changing the allocation strategy requires an\n infrastructure update of the compute environment. For more information, see Updating compute\n environments in the Batch User Guide. BEST_FIT isn't\n supported when updating a compute environment.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.

\n
\n
\n
BEST_FIT_PROGRESSIVE
\n
\n

Batch selects additional instance types that are large enough to meet the requirements\n of the jobs in the queue. Its preference is for instance types with lower cost vCPUs. If\n additional instances of the previously selected instance types aren't available, Batch\n selects new instance types.

\n
\n
SPOT_CAPACITY_OPTIMIZED
\n
\n

Batch selects one or more instance types that are large enough to meet the requirements\n of the jobs in the queue. Its preference is for instance types that are less likely to be\n interrupted. This allocation strategy is only available for Spot Instance compute\n resources.

\n
\n
SPOT_PRICE_CAPACITY_OPTIMIZED
\n
\n

The price and capacity optimized allocation strategy looks at both price and capacity to\n select the Spot Instance pools that are the least likely to be interrupted and have the lowest\n possible price. This allocation strategy is only available for Spot Instance compute\n resources.

\n
\n
\n

With BEST_FIT_PROGRESSIVE,SPOT_CAPACITY_OPTIMIZED and\n SPOT_PRICE_CAPACITY_OPTIMIZED\n (recommended) strategies using On-Demand or Spot Instances, and the\n BEST_FIT strategy using Spot Instances, Batch might need to exceed\n maxvCpus to meet your capacity requirements. In this event, Batch never exceeds\n maxvCpus by more than a single instance.

" } }, "instanceTypes": { @@ -1884,7 +1884,7 @@ "ec2KeyPair": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The Amazon EC2 key pair that's used for instances launched in the compute environment. You can\n use this key pair to log in to your instances with SSH. To remove the Amazon EC2 key pair, set this\n value to an empty string.

\n

When updating a compute environment, changing the EC2 key pair requires an infrastructure\n update of the compute environment. For more information, see Updating compute environments in the\n Batch User Guide.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.

\n
" + "smithy.api#documentation": "

The Amazon EC2 key pair that's used for instances launched in the compute environment. You can\n use this key pair to log in to your instances with SSH. To remove the Amazon EC2 key pair, set this\n value to an empty string.

\n

When updating a compute environment, changing the Amazon EC2 key pair requires an infrastructure\n update of the compute environment. For more information, see Updating compute environments in the\n Batch User Guide.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.

\n
" } }, "instanceRole": { @@ -1896,7 +1896,7 @@ "tags": { "target": "com.amazonaws.batch#TagsMap", "traits": { - "smithy.api#documentation": "

Key-value pair tags to be applied to EC2 resources that are launched in the compute\n environment. For Batch, these take the form of \"String1\": \"String2\", where\n String1 is the tag key and String2 is the tag value-for example,\n { \"Name\": \"Batch Instance - C4OnDemand\" }. This is helpful for recognizing your\n Batch instances in the Amazon EC2 console. These tags aren't seen when using the Batch\n ListTagsForResource API operation.

\n

When updating a compute environment, changing this setting requires an infrastructure update\n of the compute environment. For more information, see Updating compute environments in the\n Batch User Guide.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.

\n
" + "smithy.api#documentation": "

Key-value pair tags to be applied to Amazon EC2 resources that are launched in the compute\n environment. For Batch, these take the form of \"String1\": \"String2\", where\n String1 is the tag key and String2 is the tag value-for example,\n { \"Name\": \"Batch Instance - C4OnDemand\" }. This is helpful for recognizing your\n Batch instances in the Amazon EC2 console. These tags aren't seen when using the Batch\n ListTagsForResource API operation.

\n

When updating a compute environment, changing this setting requires an infrastructure update\n of the compute environment. For more information, see Updating compute environments in the\n Batch User Guide.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.

\n
" } }, "placementGroup": { @@ -1920,7 +1920,7 @@ "ec2Configuration": { "target": "com.amazonaws.batch#Ec2ConfigurationList", "traits": { - "smithy.api#documentation": "

Provides information used to select Amazon Machine Images (AMIs) for EC2 instances in the\n compute environment. If Ec2Configuration isn't specified, the default is\n ECS_AL2.

\n

When updating a compute environment, changing this setting requires an infrastructure update\n of the compute environment. For more information, see Updating compute environments in the\n Batch User Guide. To remove the EC2 configuration and any custom AMI ID\n specified in imageIdOverride, set this value to an empty string.

\n

One or two values can be provided.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.

\n
" + "smithy.api#documentation": "

Provides information used to select Amazon Machine Images (AMIs) for Amazon EC2 instances in the\n compute environment. If Ec2Configuration isn't specified, the default is\n ECS_AL2.

\n

When updating a compute environment, changing this setting requires an infrastructure update\n of the compute environment. For more information, see Updating compute environments in the\n Batch User Guide. To remove the Amazon EC2 configuration and any custom AMI ID\n specified in imageIdOverride, set this value to an empty string.

\n

One or two values can be provided.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.

\n
" } }, "updateToLatestImageVersion": { @@ -1958,13 +1958,13 @@ "vcpus": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The number of vCPUs reserved for the container. For jobs that run on EC2 resources, you can\n specify the vCPU requirement for the job using resourceRequirements, but you can't\n specify the vCPU requirements in both the vcpus and\n resourceRequirements object. This parameter maps to CpuShares in the\n Create a container section of the Docker Remote API and the\n --cpu-shares option to docker run. Each\n vCPU is equivalent to 1,024 CPU shares. You must specify at least one vCPU. This is required but\n can be specified in several places. It must be specified for each node at least once.

\n \n

This parameter isn't applicable to jobs that run on Fargate resources. For jobs that run\n on Fargate resources, you must specify the vCPU requirement for the job using\n resourceRequirements.

\n
" + "smithy.api#documentation": "

The number of vCPUs reserved for the container. For jobs that run on Amazon EC2 resources, you\n can specify the vCPU requirement for the job using resourceRequirements, but you\n can't specify the vCPU requirements in both the vcpus and\n resourceRequirements object. This parameter maps to CpuShares in the\n Create a container section of the Docker Remote API and the\n --cpu-shares option to docker run. Each\n vCPU is equivalent to 1,024 CPU shares. You must specify at least one vCPU. This is required but\n can be specified in several places. It must be specified for each node at least once.

\n \n

This parameter isn't applicable to jobs that run on Fargate resources. For jobs that run\n on Fargate resources, you must specify the vCPU requirement for the job using\n resourceRequirements.

\n
" } }, "memory": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

For jobs running on EC2 resources that didn't specify memory requirements using\n resourceRequirements, the number of MiB of memory reserved for the job. For other\n jobs, including all run on Fargate resources, see resourceRequirements.

" + "smithy.api#documentation": "

For jobs running on Amazon EC2 resources that didn't specify memory requirements using\n resourceRequirements, the number of MiB of memory reserved for the job. For other\n jobs, including all run on Fargate resources, see resourceRequirements.

" } }, "command": { @@ -2030,7 +2030,7 @@ "exitCode": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The exit code to return upon completion.

" + "smithy.api#documentation": "

The exit code returned upon completion.

" } }, "reason": { @@ -2084,7 +2084,7 @@ "logConfiguration": { "target": "com.amazonaws.batch#LogConfiguration", "traits": { - "smithy.api#documentation": "

The log configuration specification for the container.

\n

This parameter maps to LogConfig in the Create a container\n section of the Docker Remote API and the --log-driver option to docker run. By default, containers use the same logging\n driver that the Docker daemon uses. However, the container might use a different logging driver\n than the Docker daemon by specifying a log driver with this parameter in the container\n definition. To use a different logging driver for a container, the log system must be configured\n properly on the container instance. Or, alternatively, it must be configured on a different log\n server for remote logging options. For more information on the options for different supported\n log drivers, see Configure\n logging drivers in the Docker documentation.

\n \n

Batch currently supports a subset of the logging drivers available to the Docker daemon\n (shown in the LogConfiguration data type). Additional log drivers might be\n available in future releases of the Amazon ECS container agent.

\n
\n

This parameter requires version 1.18 of the Docker Remote API or greater on your\n container instance. To check the Docker Remote API version on your container instance, log in to your\n container instance and run the following command: sudo docker version | grep \"Server API version\"\n

\n \n

The Amazon ECS container agent running on a container instance must register the logging drivers\n available on that instance with the ECS_AVAILABLE_LOGGING_DRIVERS environment\n variable before containers placed on that instance can use these log configuration options. For\n more information, see Amazon ECS container agent\n configuration in the Amazon Elastic Container Service Developer Guide.

\n
" + "smithy.api#documentation": "

The log configuration specification for the container.

\n

This parameter maps to LogConfig in the Create a container\n section of the Docker Remote API and the --log-driver option to docker run. By default, containers use the same logging\n driver that the Docker daemon uses. However, the container might use a different logging driver\n than the Docker daemon by specifying a log driver with this parameter in the container\n definition. To use a different logging driver for a container, the log system must be configured\n properly on the container instance. Or, alternatively, it must be configured on a different log\n server for remote logging options. For more information on the options for different supported\n log drivers, see Configure\n logging drivers in the Docker documentation.

\n \n

Batch currently supports a subset of the logging drivers available to the Docker daemon\n (shown in the LogConfiguration data type). Additional log drivers might be available in future\n releases of the Amazon ECS container agent.

\n
\n

This parameter requires version 1.18 of the Docker Remote API or greater on your\n container instance. To check the Docker Remote API version on your container instance, log in to your\n container instance and run the following command: sudo docker version | grep \"Server API version\"\n

\n \n

The Amazon ECS container agent running on a container instance must register the logging drivers\n available on that instance with the ECS_AVAILABLE_LOGGING_DRIVERS environment\n variable before containers placed on that instance can use these log configuration options. For\n more information, see Amazon ECS container agent\n configuration in the Amazon Elastic Container Service Developer Guide.

\n
" } }, "secrets": { @@ -2096,13 +2096,13 @@ "networkConfiguration": { "target": "com.amazonaws.batch#NetworkConfiguration", "traits": { - "smithy.api#documentation": "

The network configuration for jobs that are running on Fargate resources. Jobs that are\n running on EC2 resources must not specify this parameter.

" + "smithy.api#documentation": "

The network configuration for jobs that are running on Fargate resources. Jobs that are\n running on Amazon EC2 resources must not specify this parameter.

" } }, "fargatePlatformConfiguration": { "target": "com.amazonaws.batch#FargatePlatformConfiguration", "traits": { - "smithy.api#documentation": "

The platform configuration for jobs that are running on Fargate resources. Jobs that are\n running on EC2 resources must not specify this parameter.

" + "smithy.api#documentation": "

The platform configuration for jobs that are running on Fargate resources. Jobs that are\n running on Amazon EC2 resources must not specify this parameter.

" } }, "ephemeralStorage": { @@ -2114,7 +2114,7 @@ "runtimePlatform": { "target": "com.amazonaws.batch#RuntimePlatform", "traits": { - "smithy.api#documentation": "

An object that represents the compute environment architecture for Batch jobs on Fargate.

" + "smithy.api#documentation": "

An object that represents the compute environment architecture for Batch jobs on\n Fargate.

" } }, "repositoryCredentials": { @@ -2137,7 +2137,7 @@ "smithy.api#deprecated": { "message": "This field is deprecated, use resourceRequirements instead." }, - "smithy.api#documentation": "

This parameter is deprecated, use resourceRequirements to override the\n vcpus parameter that's set in the job definition. It's not supported for jobs\n running on Fargate resources. For jobs that run on EC2 resources, it overrides the\n vcpus parameter set in the job definition, but doesn't override any vCPU\n requirement specified in the resourceRequirements structure in the job definition.\n To override vCPU requirements that are specified in the resourceRequirements\n structure in the job definition, resourceRequirements must be specified in the\n SubmitJob request, with type set to VCPU and\n value set to the new value. For more information, see Can't override job\n definition resource requirements in the Batch User Guide.

" + "smithy.api#documentation": "

This parameter is deprecated, use resourceRequirements to override the\n vcpus parameter that's set in the job definition. It's not supported for jobs\n running on Fargate resources. For jobs that run on Amazon EC2 resources, it overrides the\n vcpus parameter set in the job definition, but doesn't override any vCPU\n requirement specified in the resourceRequirements structure in the job definition.\n To override vCPU requirements that are specified in the resourceRequirements\n structure in the job definition, resourceRequirements must be specified in the\n SubmitJob request, with type set to VCPU and\n value set to the new value. For more information, see Can't override job\n definition resource requirements in the Batch User Guide.

" } }, "memory": { @@ -2146,7 +2146,7 @@ "smithy.api#deprecated": { "message": "This field is deprecated, use resourceRequirements instead." }, - "smithy.api#documentation": "

This parameter is deprecated, use resourceRequirements to override the memory\n requirements specified in the job definition. It's not supported for jobs running on Fargate\n resources. For jobs that run on EC2 resources, it overrides the memory parameter set\n in the job definition, but doesn't override any memory requirement that's specified in the\n resourceRequirements structure in the job definition. To override memory\n requirements that are specified in the resourceRequirements structure in the job\n definition, resourceRequirements must be specified in the SubmitJob\n request, with type set to MEMORY and value set to the new\n value. For more information, see Can't override job\n definition resource requirements in the Batch User Guide.

" + "smithy.api#documentation": "

This parameter is deprecated, use resourceRequirements to override the memory\n requirements specified in the job definition. It's not supported for jobs running on Fargate\n resources. For jobs that run on Amazon EC2 resources, it overrides the memory parameter\n set in the job definition, but doesn't override any memory requirement that's specified in the\n resourceRequirements structure in the job definition. To override memory\n requirements that are specified in the resourceRequirements structure in the job\n definition, resourceRequirements must be specified in the SubmitJob\n request, with type set to MEMORY and value set to the new\n value. For more information, see Can't override job\n definition resource requirements in the Batch User Guide.

" } }, "command": { @@ -2175,7 +2175,7 @@ } }, "traits": { - "smithy.api#documentation": "

The overrides that should be sent to a container.

\n

For information about using Batch overrides when you connect event sources to targets, see \n BatchContainerOverrides.

" + "smithy.api#documentation": "

The overrides that should be sent to a container.

\n

For information about using Batch overrides when you connect event sources to targets, see\n BatchContainerOverrides.

" } }, "com.amazonaws.batch#ContainerProperties": { @@ -2193,7 +2193,7 @@ "smithy.api#deprecated": { "message": "This field is deprecated, use resourceRequirements instead." }, - "smithy.api#documentation": "

This parameter is deprecated, use resourceRequirements to specify the vCPU\n requirements for the job definition. It's not supported for jobs running on Fargate resources.\n For jobs running on EC2 resources, it specifies the number of vCPUs reserved for the job.

\n

Each vCPU is equivalent to 1,024 CPU shares. This parameter maps to CpuShares\n in the Create a container section of the Docker Remote API and the\n --cpu-shares option to docker run. The\n number of vCPUs must be specified but can be specified in several places. You must specify it at\n least once for each node.

" + "smithy.api#documentation": "

This parameter is deprecated, use resourceRequirements to specify the vCPU\n requirements for the job definition. It's not supported for jobs running on Fargate resources.\n For jobs running on Amazon EC2 resources, it specifies the number of vCPUs reserved for the\n job.

\n

Each vCPU is equivalent to 1,024 CPU shares. This parameter maps to CpuShares\n in the Create a container section of the Docker Remote API and the\n --cpu-shares option to docker run. The\n number of vCPUs must be specified but can be specified in several places. You must specify it at\n least once for each node.

" } }, "memory": { @@ -2202,7 +2202,7 @@ "smithy.api#deprecated": { "message": "This field is deprecated, use resourceRequirements instead." }, - "smithy.api#documentation": "

This parameter is deprecated, use resourceRequirements to specify the memory\n requirements for the job definition. It's not supported for jobs running on Fargate resources.\n For jobs that run on EC2 resources, it specifies the memory hard limit (in MiB) for a container.\n If your container attempts to exceed the specified number, it's terminated. You must specify at\n least 4 MiB of memory for a job using this parameter. The memory hard limit can be specified in\n several places. It must be specified for each node at least once.

" + "smithy.api#documentation": "

This parameter is deprecated, use resourceRequirements to specify the memory\n requirements for the job definition. It's not supported for jobs running on Fargate resources.\n For jobs that run on Amazon EC2 resources, it specifies the memory hard limit (in MiB) for a\n container. If your container attempts to exceed the specified number, it's terminated. You must\n specify at least 4 MiB of memory for a job using this parameter. The memory hard limit can be\n specified in several places. It must be specified for each node at least once.

" } }, "command": { @@ -2286,7 +2286,7 @@ "logConfiguration": { "target": "com.amazonaws.batch#LogConfiguration", "traits": { - "smithy.api#documentation": "

The log configuration specification for the container.

\n

This parameter maps to LogConfig in the Create a container\n section of the Docker Remote API and the --log-driver option to docker run. By default, containers use the same logging\n driver that the Docker daemon uses. However the container might use a different logging driver\n than the Docker daemon by specifying a log driver with this parameter in the container\n definition. To use a different logging driver for a container, the log system must be configured\n properly on the container instance (or on a different log server for remote logging options). For\n more information on the options for different supported log drivers, see Configure logging drivers\n in the Docker documentation.

\n \n

Batch currently supports a subset of the logging drivers available to the Docker daemon\n (shown in the LogConfiguration data type).

\n
\n

This parameter requires version 1.18 of the Docker Remote API or greater on your\n container instance. To check the Docker Remote API version on your container instance, log in to your\n container instance and run the following command: sudo docker version | grep \"Server API version\"\n

\n \n

The Amazon ECS container agent running on a container instance must register the logging drivers\n available on that instance with the ECS_AVAILABLE_LOGGING_DRIVERS environment\n variable before containers placed on that instance can use these log configuration options. For\n more information, see Amazon ECS container agent\n configuration in the Amazon Elastic Container Service Developer Guide.

\n
" + "smithy.api#documentation": "

The log configuration specification for the container.

\n

This parameter maps to LogConfig in the Create a container\n section of the Docker Remote API and the --log-driver option to docker run. By default, containers use the same logging\n driver that the Docker daemon uses. However the container might use a different logging driver\n than the Docker daemon by specifying a log driver with this parameter in the container\n definition. To use a different logging driver for a container, the log system must be configured\n properly on the container instance (or on a different log server for remote logging options). For\n more information on the options for different supported log drivers, see Configure logging drivers\n in the Docker documentation.

\n \n

Batch currently supports a subset of the logging drivers available to the Docker daemon\n (shown in the LogConfiguration data type).

\n
\n

This parameter requires version 1.18 of the Docker Remote API or greater on your\n container instance. To check the Docker Remote API version on your container instance, log in to your\n container instance and run the following command: sudo docker version | grep \"Server API version\"\n

\n \n

The Amazon ECS container agent running on a container instance must register the logging drivers\n available on that instance with the ECS_AVAILABLE_LOGGING_DRIVERS environment\n variable before containers placed on that instance can use these log configuration options. For\n more information, see Amazon ECS container agent\n configuration in the Amazon Elastic Container Service Developer Guide.

\n
" } }, "secrets": { @@ -2298,13 +2298,13 @@ "networkConfiguration": { "target": "com.amazonaws.batch#NetworkConfiguration", "traits": { - "smithy.api#documentation": "

The network configuration for jobs that are running on Fargate resources. Jobs that are\n running on EC2 resources must not specify this parameter.

" + "smithy.api#documentation": "

The network configuration for jobs that are running on Fargate resources. Jobs that are\n running on Amazon EC2 resources must not specify this parameter.

" } }, "fargatePlatformConfiguration": { "target": "com.amazonaws.batch#FargatePlatformConfiguration", "traits": { - "smithy.api#documentation": "

The platform configuration for jobs that are running on Fargate resources. Jobs that are\n running on EC2 resources must not specify this parameter.

" + "smithy.api#documentation": "

The platform configuration for jobs that are running on Fargate resources. Jobs that are\n running on Amazon EC2 resources must not specify this parameter.

" } }, "ephemeralStorage": { @@ -2316,7 +2316,7 @@ "runtimePlatform": { "target": "com.amazonaws.batch#RuntimePlatform", "traits": { - "smithy.api#documentation": "

An object that represents the compute environment architecture for Batch jobs on Fargate.

" + "smithy.api#documentation": "

An object that represents the compute environment architecture for Batch jobs on\n Fargate.

" } }, "repositoryCredentials": { @@ -2367,7 +2367,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates an Batch compute environment. You can create MANAGED or UNMANAGED compute\n environments. MANAGED compute environments can use Amazon EC2 or Fargate resources.\n UNMANAGED compute environments can only use EC2 resources.

\n

In a managed compute environment, Batch manages the capacity and instance types of the compute resources\n within the environment. This is based on the compute resource specification that you define or the launch template that you\n specify when you create the compute environment. Either, you can choose to use EC2 On-Demand Instances and EC2 Spot\n Instances. Or, you can use Fargate and Fargate Spot capacity in your managed compute environment. You can\n optionally set a maximum price so that Spot Instances only launch when the Spot Instance price is less than a\n specified percentage of the On-Demand price.

\n \n

Multi-node parallel jobs aren't supported on Spot Instances.

\n
\n

In an unmanaged compute environment, you can manage your own EC2 compute resources and have flexibility with how\n you configure your compute resources. For example, you can use custom AMIs. However, you must verify that each of\n your AMIs meet the Amazon ECS container instance AMI specification. For more information, see container instance AMIs in the\n Amazon Elastic Container Service Developer Guide. After you created your unmanaged compute environment, you can use the DescribeComputeEnvironments operation to find the Amazon ECS cluster that's associated with it. Then, launch\n your container instances into that Amazon ECS cluster. For more information, see Launching an Amazon ECS container instance in the\n Amazon Elastic Container Service Developer Guide.

\n \n

To create a compute environment that uses EKS resources, the caller must have permissions to call\n eks:DescribeCluster.

\n
\n \n

Batch doesn't automatically upgrade the AMIs in a compute environment after it's created. For example, it\n also doesn't update the AMIs in your compute environment when a newer version of the Amazon ECS optimized AMI is\n available. You're responsible for the management of the guest operating system. This includes any updates and\n security patches. You're also responsible for any additional application software or utilities that you install on\n the compute resources. There are two ways to use a new AMI for your Batch jobs. The original method is to complete\n these steps:

\n
    \n
  1. \n

    Create a new compute environment with the new AMI.

    \n
  2. \n
  3. \n

    Add the compute environment to an existing job queue.

    \n
  4. \n
  5. \n

    Remove the earlier compute environment from your job queue.

    \n
  6. \n
  7. \n

    Delete the earlier compute environment.

    \n
  8. \n
\n

In April 2022, Batch added enhanced support for updating compute environments. For more information, see\n Updating compute\n environments. To use the enhanced updating of compute environments to update AMIs, follow these\n rules:

\n
    \n
  • \n

    Either don't set the service role (serviceRole) parameter or set it to the AWSBatchServiceRole service-linked role.

    \n
  • \n
  • \n

    Set the allocation strategy (allocationStrategy) parameter to BEST_FIT_PROGRESSIVE, \n SPOT_CAPACITY_OPTIMIZED, or SPOT_PRICE_CAPACITY_OPTIMIZED.

    \n
  • \n
  • \n

    Set the update to latest image version (updateToLatestImageVersion)\n parameter to\n true.\n The updateToLatestImageVersion parameter is used when you update a compute\n environment. This parameter is ignored when you create a compute\n environment.

    \n
  • \n
  • \n

    Don't specify an AMI ID in imageId, imageIdOverride (in \n ec2Configuration\n ), or in the launch\n template (launchTemplate). In that case, Batch selects the latest Amazon ECS optimized AMI that's\n supported by Batch at the time the infrastructure update is initiated. Alternatively, you can specify the AMI ID\n in the imageId or imageIdOverride parameters, or the launch template identified by the\n LaunchTemplate properties. Changing any of these properties starts an infrastructure update. If the\n AMI ID is specified in the launch template, it can't be replaced by specifying an AMI ID in either the\n imageId or imageIdOverride parameters. It can only be replaced by specifying a different\n launch template, or if the launch template version is set to $Default or $Latest, by\n setting either a new default version for the launch template (if $Default) or by adding a new version\n to the launch template (if $Latest).

    \n
  • \n
\n

If these rules are followed, any update that starts an infrastructure update causes the AMI ID to be\n re-selected. If the version setting in the launch template (launchTemplate) is set to\n $Latest or $Default, the latest or default version of the launch template is evaluated up\n at the time of the infrastructure update, even if the launchTemplate wasn't updated.

\n
", + "smithy.api#documentation": "

Creates an Batch compute environment. You can create MANAGED or\n UNMANAGED compute environments. MANAGED compute environments can\n use Amazon EC2 or Fargate resources. UNMANAGED compute environments can only use\n EC2 resources.

\n

In a managed compute environment, Batch manages the capacity and instance types of the\n compute resources within the environment. This is based on the compute resource specification\n that you define or the launch template that you\n specify when you create the compute environment. Either, you can choose to use EC2 On-Demand\n Instances and EC2 Spot Instances. Or, you can use Fargate and Fargate Spot capacity in\n your managed compute environment. You can optionally set a maximum price so that Spot\n Instances only launch when the Spot Instance price is less than a specified percentage of the\n On-Demand price.

\n \n

Multi-node parallel jobs aren't supported on Spot Instances.

\n
\n

In an unmanaged compute environment, you can manage your own EC2 compute resources and\n have flexibility with how you configure your compute resources. For example, you can use\n custom AMIs. However, you must verify that each of your AMIs meet the Amazon ECS container instance\n AMI specification. For more information, see container instance AMIs in the\n Amazon Elastic Container Service Developer Guide. After you created your unmanaged compute environment,\n you can use the DescribeComputeEnvironments operation to find the Amazon ECS\n cluster that's associated with it. Then, launch your container instances into that Amazon ECS\n cluster. For more information, see Launching an Amazon ECS container\n instance in the Amazon Elastic Container Service Developer Guide.

\n \n

To create a compute environment that uses EKS resources, the caller must have\n permissions to call eks:DescribeCluster.

\n
\n \n

Batch doesn't automatically upgrade the AMIs in a compute environment after it's\n created. For example, it also doesn't update the AMIs in your compute environment when a\n newer version of the Amazon ECS optimized AMI is available. You're responsible for the management\n of the guest operating system. This includes any updates and security patches. You're also\n responsible for any additional application software or utilities that you install on the\n compute resources. There are two ways to use a new AMI for your Batch jobs. The original\n method is to complete these steps:

\n
    \n
  1. \n

    Create a new compute environment with the new AMI.

    \n
  2. \n
  3. \n

    Add the compute environment to an existing job queue.

    \n
  4. \n
  5. \n

    Remove the earlier compute environment from your job queue.

    \n
  6. \n
  7. \n

    Delete the earlier compute environment.

    \n
  8. \n
\n

In April 2022, Batch added enhanced support for updating compute environments. For\n more information, see Updating compute environments.\n To use the enhanced updating of compute environments to update AMIs, follow these\n rules:

\n
    \n
  • \n

    Either don't set the service role (serviceRole) parameter or set it to\n the AWSBatchServiceRole service-linked role.

    \n
  • \n
  • \n

    Set the allocation strategy (allocationStrategy) parameter to\n BEST_FIT_PROGRESSIVE, SPOT_CAPACITY_OPTIMIZED, or\n SPOT_PRICE_CAPACITY_OPTIMIZED.

    \n
  • \n
  • \n

    Set the update to latest image version (updateToLatestImageVersion)\n parameter to\n true.\n The updateToLatestImageVersion parameter is used when you update a compute\n environment. This parameter is ignored when you create a compute\n environment.

    \n
  • \n
  • \n

    Don't specify an AMI ID in imageId, imageIdOverride (in\n \n ec2Configuration\n ), or in the launch template\n (launchTemplate). In that case, Batch selects the latest Amazon ECS\n optimized AMI that's supported by Batch at the time the infrastructure update is\n initiated. Alternatively, you can specify the AMI ID in the imageId or\n imageIdOverride parameters, or the launch template identified by the\n LaunchTemplate properties. Changing any of these properties starts an\n infrastructure update. If the AMI ID is specified in the launch template, it can't be\n replaced by specifying an AMI ID in either the imageId or\n imageIdOverride parameters. It can only be replaced by specifying a\n different launch template, or if the launch template version is set to\n $Default or $Latest, by setting either a new default version\n for the launch template (if $Default) or by adding a new version to the\n launch template (if $Latest).

    \n
  • \n
\n

If these rules are followed, any update that starts an infrastructure update causes the\n AMI ID to be re-selected. If the version setting in the launch template\n (launchTemplate) is set to $Latest or $Default, the\n latest or default version of the launch template is evaluated up at the time of the\n infrastructure update, even if the launchTemplate wasn't updated.

\n
", "smithy.api#examples": [ { "title": "To create a managed EC2 compute environment", @@ -2450,7 +2450,7 @@ "target": "com.amazonaws.batch#CEType", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

The type of the compute environment: MANAGED or UNMANAGED. For more information, see\n Compute Environments in the\n Batch User Guide.

", + "smithy.api#documentation": "

The type of the compute environment: MANAGED or UNMANAGED. For\n more information, see Compute Environments in the Batch User Guide.

", "smithy.api#required": {} } }, @@ -2463,25 +2463,25 @@ "unmanagedvCpus": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The maximum number of vCPUs for an unmanaged compute environment. This parameter is only used for fair share\n scheduling to reserve vCPU capacity for new share identifiers. If this parameter isn't provided for a fair share job\n queue, no vCPU capacity is reserved.

\n \n

This parameter is only supported when the type parameter is set to UNMANAGED.

\n
" + "smithy.api#documentation": "

The maximum number of vCPUs for an unmanaged compute environment. This parameter is only\n used for fair share scheduling to reserve vCPU capacity for new share identifiers. If this\n parameter isn't provided for a fair share job queue, no vCPU capacity is reserved.

\n \n

This parameter is only supported when the type parameter is set to\n UNMANAGED.

\n
" } }, "computeResources": { "target": "com.amazonaws.batch#ComputeResource", "traits": { - "smithy.api#documentation": "

Details about the compute resources managed by the compute environment. This parameter is required for managed\n compute environments. For more information, see Compute Environments in the Batch User Guide.

" + "smithy.api#documentation": "

Details about the compute resources managed by the compute environment. This parameter is\n required for managed compute environments. For more information, see Compute Environments\n in the Batch User Guide.

" } }, "serviceRole": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The full Amazon Resource Name (ARN) of the IAM role that allows Batch to make calls to other Amazon Web Services services on your behalf. For\n more information, see Batch service IAM\n role in the Batch User Guide.

\n \n

If your account already created the Batch service-linked role, that role is used by default for your compute\n environment unless you specify a different role here. If the Batch service-linked role doesn't exist in your\n account, and no role is specified here, the service attempts to create the Batch service-linked role in your\n account.

\n
\n

If your specified role has a path other than /, then you must specify either the full role ARN\n (recommended) or prefix the role name with the path. For example, if a role with the name bar has a path\n of /foo/, specify /foo/bar as the role name. For more information, see Friendly names\n and paths in the IAM User Guide.

\n \n

Depending on how you created your Batch service role, its ARN might contain the service-role\n path prefix. When you only specify the name of the service role, Batch assumes that your ARN doesn't use the\n service-role path prefix. Because of this, we recommend that you specify the full ARN of your service\n role when you create compute environments.

\n
" + "smithy.api#documentation": "

The full Amazon Resource Name (ARN) of the IAM role that allows Batch to make calls to other Amazon Web Services\n services on your behalf. For more information, see Batch service IAM role in the\n Batch User Guide.

\n \n

If your account already created the Batch service-linked role, that role is used by\n default for your compute environment unless you specify a different role here. If the\n Batch service-linked role doesn't exist in your account, and no role is specified here,\n the service attempts to create the Batch service-linked role in your account.

\n
\n

If your specified role has a path other than /, then you must specify either\n the full role ARN (recommended) or prefix the role name with the path. For example, if a\n role with the name bar has a path of /foo/, specify\n /foo/bar as the role name. For more information, see Friendly\n names and paths in the IAM User Guide.

\n \n

Depending on how you created your Batch service role, its ARN might contain the\n service-role path prefix. When you only specify the name of the service role,\n Batch assumes that your ARN doesn't use the service-role path prefix. Because\n of this, we recommend that you specify the full ARN of your service role when you create\n compute environments.

\n
" } }, "tags": { "target": "com.amazonaws.batch#TagrisTagsMap", "traits": { - "smithy.api#documentation": "

The tags that you apply to the compute environment to help you categorize and organize your resources. Each tag\n consists of a key and an optional value. For more information, see Tagging Amazon Web Services Resources in Amazon Web Services General\n Reference.

\n

These tags can be updated or removed using the TagResource and UntagResource API operations. These tags don't\n propagate to the underlying compute resources.

" + "smithy.api#documentation": "

The tags that you apply to the compute environment to help you categorize and organize\n your resources. Each tag consists of a key and an optional value. For more information, see\n Tagging Amazon Web Services\n Resources in Amazon Web Services General Reference.

\n

These tags can be updated or removed using the TagResource and UntagResource API operations. These tags don't propagate to the underlying compute\n resources.

" } }, "eksConfiguration": { @@ -2533,7 +2533,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates an Batch job queue. When you create a job queue, you associate one or more compute environments to the\n queue and assign an order of preference for the compute environments.

\n

You also set a priority to the job queue that determines the order that the Batch scheduler places jobs onto\n its associated compute environments. For example, if a compute environment is associated with more than one job\n queue, the job queue with a higher priority is given preference for scheduling jobs to that compute\n environment.

", + "smithy.api#documentation": "

Creates an Batch job queue. When you create a job queue, you associate one or more\n compute environments to the queue and assign an order of preference for the compute\n environments.

\n

You also set a priority to the job queue that determines the order that the Batch\n scheduler places jobs onto its associated compute environments. For example, if a compute\n environment is associated with more than one job queue, the job queue with a higher priority\n is given preference for scheduling jobs to that compute environment.

", "smithy.api#examples": [ { "title": "To create a job queue with a single compute environment", @@ -2592,27 +2592,27 @@ "target": "com.amazonaws.batch#String", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

The name of the job queue. It can be up to 128 letters long. It can contain uppercase and lowercase letters,\n numbers, hyphens (-), and underscores (_).

", + "smithy.api#documentation": "

The name of the job queue. It can be up to 128 letters long. It can contain uppercase and\n lowercase letters, numbers, hyphens (-), and underscores (_).

", "smithy.api#required": {} } }, "state": { "target": "com.amazonaws.batch#JQState", "traits": { - "smithy.api#documentation": "

The state of the job queue. If the job queue state is ENABLED, it is able to accept jobs. If the\n job queue state is DISABLED, new jobs can't be added to the queue, but jobs already in the queue can\n finish.

" + "smithy.api#documentation": "

The state of the job queue. If the job queue state is ENABLED, it is able to\n accept jobs. If the job queue state is DISABLED, new jobs can't be added to the\n queue, but jobs already in the queue can finish.

" } }, "schedulingPolicyArn": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the fair share scheduling policy. If this parameter is specified, the job queue uses a fair\n share scheduling policy. If this parameter isn't specified, the job queue uses a first in, first out (FIFO)\n scheduling policy. After a job queue is created, you can replace but can't remove the fair share scheduling policy.\n The format is\n aws:Partition:batch:Region:Account:scheduling-policy/Name\n .\n An example is\n aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the fair share scheduling policy. If this parameter is specified, the job\n queue uses a fair share scheduling policy. If this parameter isn't specified, the job queue\n uses a first in, first out (FIFO) scheduling policy. After a job queue is created, you can\n replace but can't remove the fair share scheduling policy. The format is\n aws:Partition:batch:Region:Account:scheduling-policy/Name\n .\n An example is\n aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

" } }, "priority": { "target": "com.amazonaws.batch#Integer", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

The priority of the job queue. Job queues with a higher priority (or a higher integer value for the\n priority parameter) are evaluated first when associated with the same compute environment. Priority is\n determined in descending order. For example, a job queue with a priority value of 10 is given scheduling\n preference over a job queue with a priority value of 1. All of the compute environments must be either\n EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT); EC2 and\n Fargate compute environments can't be mixed.

", + "smithy.api#documentation": "

The priority of the job queue. Job queues with a higher priority (or a higher integer\n value for the priority parameter) are evaluated first when associated with the\n same compute environment. Priority is determined in descending order. For example, a job queue\n with a priority value of 10 is given scheduling preference over a job queue with\n a priority value of 1. All of the compute environments must be either EC2\n (EC2 or SPOT) or Fargate (FARGATE or\n FARGATE_SPOT); EC2 and Fargate compute environments can't be mixed.

", "smithy.api#required": {} } }, @@ -2620,14 +2620,14 @@ "target": "com.amazonaws.batch#ComputeEnvironmentOrders", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

The set of compute environments mapped to a job queue and their order relative to each other. The job scheduler\n uses this parameter to determine which compute environment runs a specific job. Compute environments must be in\n the VALID state before you can associate them with a job queue. You can associate up to three compute\n environments with a job queue. All of the compute environments must be either EC2 (EC2 or\n SPOT) or Fargate (FARGATE or FARGATE_SPOT); EC2 and Fargate compute\n environments can't be mixed.

\n \n

All compute environments that are associated with a job queue must share the same architecture. Batch doesn't\n support mixing compute environment architecture types in a single job queue.

\n
", + "smithy.api#documentation": "

The set of compute environments mapped to a job queue and their order relative to each\n other. The job scheduler uses this parameter to determine which compute environment runs a\n specific job. Compute environments must be in the VALID state before you can\n associate them with a job queue. You can associate up to three compute environments with a job\n queue. All of the compute environments must be either EC2 (EC2 or\n SPOT) or Fargate (FARGATE or FARGATE_SPOT); EC2 and\n Fargate compute environments can't be mixed.

\n \n

All compute environments that are associated with a job queue must share the same\n architecture. Batch doesn't support mixing compute environment architecture types in a\n single job queue.

\n
", "smithy.api#required": {} } }, "tags": { "target": "com.amazonaws.batch#TagrisTagsMap", "traits": { - "smithy.api#documentation": "

The tags that you apply to the job queue to help you categorize and organize your resources. Each tag consists\n of a key and an optional value. For more information, see Tagging your Batch resources in Batch User Guide.

" + "smithy.api#documentation": "

The tags that you apply to the job queue to help you categorize and organize your\n resources. Each tag consists of a key and an optional value. For more information, see Tagging your Batch resources\n in Batch User Guide.

" } } }, @@ -2692,7 +2692,7 @@ "target": "com.amazonaws.batch#String", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

The name of the scheduling policy. It can be up to 128 letters long. It can contain uppercase and lowercase\n letters, numbers, hyphens (-), and underscores (_).

", + "smithy.api#documentation": "

The name of the scheduling policy. It can be up to 128 letters long. It can contain\n uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).

", "smithy.api#required": {} } }, @@ -2705,7 +2705,7 @@ "tags": { "target": "com.amazonaws.batch#TagrisTagsMap", "traits": { - "smithy.api#documentation": "

The tags that you apply to the scheduling policy to help you categorize and organize your resources. Each tag\n consists of a key and an optional value. For more information, see Tagging Amazon Web Services Resources in Amazon Web Services General\n Reference.

\n

These tags can be updated or removed using the TagResource and UntagResource API operations.

" + "smithy.api#documentation": "

The tags that you apply to the scheduling policy to help you categorize and organize your\n resources. Each tag consists of a key and an optional value. For more information, see Tagging Amazon Web Services\n Resources in Amazon Web Services General Reference.

\n

These tags can be updated or removed using the TagResource and UntagResource API operations.

" } } }, @@ -2729,7 +2729,7 @@ "target": "com.amazonaws.batch#String", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the scheduling policy. The format is\n aws:Partition:batch:Region:Account:scheduling-policy/Name\n .\n For example,\n aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the scheduling policy. The format is\n aws:Partition:batch:Region:Account:scheduling-policy/Name\n .\n For example,\n aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

", "smithy.api#required": {} } } @@ -2755,7 +2755,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes an Batch compute environment.

\n

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. Compute environments that use Fargate resources must terminate all\n active jobs on that compute environment before deleting the compute environment. If this isn't done, the compute\n environment enters an invalid state.

", + "smithy.api#documentation": "

Deletes an Batch compute environment.

\n

Before you can delete a compute environment, you must set its state to\n DISABLED with the UpdateComputeEnvironment API operation and\n disassociate it from any job queues with the UpdateJobQueue API operation.\n Compute environments that use Fargate resources must terminate all active jobs on that\n compute environment before deleting the compute environment. If this isn't done, the compute\n environment enters an invalid state.

", "smithy.api#examples": [ { "title": "To delete a compute environment", @@ -2814,7 +2814,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deletes the specified job queue. You must first disable submissions for a queue with the UpdateJobQueue operation. All jobs in the queue are eventually terminated when you delete a job queue.\n The jobs are terminated at a rate of about 16 jobs each second.

\n

It's not necessary to disassociate compute environments from a queue before submitting a\n DeleteJobQueue request.

", + "smithy.api#documentation": "

Deletes the specified job queue. You must first disable submissions for a queue with the\n UpdateJobQueue operation. All jobs in the queue are eventually terminated\n when you delete a job queue. The jobs are terminated at a rate of about 16 jobs each\n second.

\n

It's not necessary to disassociate compute environments from a queue before submitting a\n DeleteJobQueue request.

", "smithy.api#examples": [ { "title": "To delete a job queue", @@ -2922,7 +2922,7 @@ } ], "traits": { - "smithy.api#documentation": "

Deregisters an Batch job definition. Job definitions are permanently deleted after 180 days.

", + "smithy.api#documentation": "

Deregisters an Batch job definition. Job definitions are permanently deleted after 180\n days.

", "smithy.api#examples": [ { "title": "To deregister a job definition", @@ -2947,7 +2947,7 @@ "target": "com.amazonaws.batch#String", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

The name and revision (name:revision) or full Amazon Resource Name (ARN) of the job definition to deregister.

", + "smithy.api#documentation": "

The name and revision (name:revision) or full Amazon Resource Name (ARN) of the job definition\n to deregister.

", "smithy.api#required": {} } } @@ -2980,7 +2980,7 @@ } ], "traits": { - "smithy.api#documentation": "

Describes one or more of your compute environments.

\n

If you're using an unmanaged compute environment, you can use the DescribeComputeEnvironment\n operation to determine the ecsClusterArn that you launch your Amazon ECS container instances\n into.

", + "smithy.api#documentation": "

Describes one or more of your compute environments.

\n

If you're using an unmanaged compute environment, you can use the\n DescribeComputeEnvironment operation to determine the\n ecsClusterArn that you launch your Amazon ECS container instances into.

", "smithy.api#examples": [ { "title": "To describe a compute environment", @@ -3043,13 +3043,13 @@ "maxResults": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The maximum number of cluster results returned by DescribeComputeEnvironments in paginated output.\n When this parameter is used, DescribeComputeEnvironments only returns maxResults results in\n a single page along with a nextToken response element. The remaining results of the initial request can\n be seen by sending another DescribeComputeEnvironments request with the returned nextToken\n value. This value can be between 1 and 100. If this parameter isn't used, then\n DescribeComputeEnvironments returns up to 100 results and a nextToken\n value if applicable.

" + "smithy.api#documentation": "

The maximum number of cluster results returned by DescribeComputeEnvironments\n in paginated output. When this parameter is used, DescribeComputeEnvironments\n only returns maxResults results in a single page along with a\n nextToken response element. The remaining results of the initial request can be\n seen by sending another DescribeComputeEnvironments request with the returned\n nextToken value. This value can be between 1 and\n 100. If this parameter isn't used, then DescribeComputeEnvironments\n returns up to 100 results and a nextToken value if\n applicable.

" } }, "nextToken": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The nextToken value returned from a previous paginated DescribeComputeEnvironments\n request where maxResults was used and the results exceeded the value of that parameter. Pagination\n continues from the end of the previous results that returned the nextToken value. This value is\n null when there are no more results to return.

\n \n

Treat this token as an opaque identifier that's only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" + "smithy.api#documentation": "

The nextToken value returned from a previous paginated\n DescribeComputeEnvironments request where maxResults was used and\n the results exceeded the value of that parameter. Pagination continues from the end of the\n previous results that returned the nextToken value. This value is\n null when there are no more results to return.

\n \n

Treat this token as an opaque identifier that's only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" } } }, @@ -3070,7 +3070,7 @@ "nextToken": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The nextToken value to include in a future DescribeComputeEnvironments request. When\n the results of a DescribeComputeEnvironments request exceed maxResults, this value can be\n used to retrieve the next page of results. This value is null when there are no more results to\n return.

" + "smithy.api#documentation": "

The nextToken value to include in a future\n DescribeComputeEnvironments request. When the results of a\n DescribeComputeEnvironments request exceed maxResults, this value\n can be used to retrieve the next page of results. This value is null when there\n are no more results to return.

" } } }, @@ -3095,7 +3095,7 @@ } ], "traits": { - "smithy.api#documentation": "

Describes a list of job definitions. You can specify a status (such as ACTIVE) to only\n return job definitions that match that status.

", + "smithy.api#documentation": "

Describes a list of job definitions. You can specify a status (such as\n ACTIVE) to only return job definitions that match that status.

", "smithy.api#examples": [ { "title": "To describe active job definitions", @@ -3153,13 +3153,13 @@ "jobDefinitions": { "target": "com.amazonaws.batch#StringList", "traits": { - "smithy.api#documentation": "

A list of up to 100 job definitions. Each entry in the list can either be an ARN in the\n format\n arn:aws:batch:${Region}:${Account}:job-definition/${JobDefinitionName}:${Revision}\n or a short version using the form ${JobDefinitionName}:${Revision}. This parameter can't be used with other parameters.

" + "smithy.api#documentation": "

A list of up to 100 job definitions. Each entry in the list can either be an ARN in the\n format\n arn:aws:batch:${Region}:${Account}:job-definition/${JobDefinitionName}:${Revision}\n or a short version using the form ${JobDefinitionName}:${Revision}. This\n parameter can't be used with other parameters.

" } }, "maxResults": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The maximum number of results returned by DescribeJobDefinitions in paginated output. When this\n parameter is used, DescribeJobDefinitions only returns maxResults results in a single page\n and a nextToken response element. The remaining results of the initial request can be seen by sending\n another DescribeJobDefinitions request with the returned nextToken value. This value can be\n between 1 and 100. If this parameter isn't used, then\n DescribeJobDefinitions returns up to 100 results and a nextToken value\n if applicable.

" + "smithy.api#documentation": "

The maximum number of results returned by DescribeJobDefinitions in paginated\n output. When this parameter is used, DescribeJobDefinitions only returns\n maxResults results in a single page and a nextToken response\n element. The remaining results of the initial request can be seen by sending another\n DescribeJobDefinitions request with the returned nextToken value.\n This value can be between 1 and 100. If this parameter isn't\n used, then DescribeJobDefinitions returns up to 100 results and\n a nextToken value if applicable.

" } }, "jobDefinitionName": { @@ -3177,7 +3177,7 @@ "nextToken": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The nextToken value returned from a previous paginated DescribeJobDefinitions request\n where maxResults was used and the results exceeded the value of that parameter. Pagination continues\n from the end of the previous results that returned the nextToken value. This value is null\n when there are no more results to return.

\n \n

Treat this token as an opaque identifier that's only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" + "smithy.api#documentation": "

The nextToken value returned from a previous paginated\n DescribeJobDefinitions request where maxResults was used and the\n results exceeded the value of that parameter. Pagination continues from the end of the\n previous results that returned the nextToken value. This value is\n null when there are no more results to return.

\n \n

Treat this token as an opaque identifier that's only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" } } }, @@ -3198,7 +3198,7 @@ "nextToken": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The nextToken value to include in a future DescribeJobDefinitions request. When the\n results of a DescribeJobDefinitions request exceed maxResults, this value can be used to\n retrieve the next page of results. This value is null when there are no more results to return.

" + "smithy.api#documentation": "

The nextToken value to include in a future\n DescribeJobDefinitions request. When the results of a\n DescribeJobDefinitions request exceed maxResults, this value can\n be used to retrieve the next page of results. This value is null when there are\n no more results to return.

" } } }, @@ -3276,13 +3276,13 @@ "maxResults": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The maximum number of results returned by DescribeJobQueues in paginated output. When this\n parameter is used, DescribeJobQueues only returns maxResults results in a single page and a\n nextToken response element. The remaining results of the initial request can be seen by sending another\n DescribeJobQueues request with the returned nextToken value. This value can be between\n 1 and 100. If this parameter isn't used, then DescribeJobQueues returns up\n to 100 results and a nextToken value if applicable.

" + "smithy.api#documentation": "

The maximum number of results returned by DescribeJobQueues in paginated\n output. When this parameter is used, DescribeJobQueues only returns\n maxResults results in a single page and a nextToken response\n element. The remaining results of the initial request can be seen by sending another\n DescribeJobQueues request with the returned nextToken value. This\n value can be between 1 and 100. If this parameter isn't used,\n then DescribeJobQueues returns up to 100 results and a\n nextToken value if applicable.

" } }, "nextToken": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The nextToken value returned from a previous paginated DescribeJobQueues request where\n maxResults was used and the results exceeded the value of that parameter. Pagination continues from the\n end of the previous results that returned the nextToken value. This value is null when\n there are no more results to return.

\n \n

Treat this token as an opaque identifier that's only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" + "smithy.api#documentation": "

The nextToken value returned from a previous paginated\n DescribeJobQueues request where maxResults was used and the\n results exceeded the value of that parameter. Pagination continues from the end of the\n previous results that returned the nextToken value. This value is\n null when there are no more results to return.

\n \n

Treat this token as an opaque identifier that's only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" } } }, @@ -3303,7 +3303,7 @@ "nextToken": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The nextToken value to include in a future DescribeJobQueues request. When the results\n of a DescribeJobQueues request exceed maxResults, this value can be used to retrieve the\n next page of results. This value is null when there are no more results to return.

" + "smithy.api#documentation": "

The nextToken value to include in a future DescribeJobQueues\n request. When the results of a DescribeJobQueues request exceed\n maxResults, this value can be used to retrieve the next page of results. This\n value is null when there are no more results to return.

" } } }, @@ -3651,13 +3651,207 @@ "target": "com.amazonaws.batch#Ec2Configuration" } }, + "com.amazonaws.batch#EcsProperties": { + "type": "structure", + "members": { + "taskProperties": { + "target": "com.amazonaws.batch#ListEcsTaskProperties", + "traits": { + "smithy.api#clientOptional": {}, + "smithy.api#documentation": "

An object that contains the properties for the Amazon ECS task definition of a job.

\n \n

This object is currently limited to one element.

\n
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

An object that contains the properties for the Amazon ECS resources of a job.

" + } + }, + "com.amazonaws.batch#EcsPropertiesDetail": { + "type": "structure", + "members": { + "taskProperties": { + "target": "com.amazonaws.batch#ListEcsTaskDetails", + "traits": { + "smithy.api#documentation": "

The properties for the Amazon ECS task definition of a job.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

An object that contains the details for the Amazon ECS resources of a job.

" + } + }, + "com.amazonaws.batch#EcsPropertiesOverride": { + "type": "structure", + "members": { + "taskProperties": { + "target": "com.amazonaws.batch#ListTaskPropertiesOverride", + "traits": { + "smithy.api#documentation": "

The overrides for the Amazon ECS task definition of a job.

\n \n

This object is currently limited to one element.

\n
" + } + } + }, + "traits": { + "smithy.api#documentation": "

An object that contains overrides for the Amazon ECS task definition of a job.

" + } + }, + "com.amazonaws.batch#EcsTaskDetails": { + "type": "structure", + "members": { + "containers": { + "target": "com.amazonaws.batch#ListTaskContainerDetails", + "traits": { + "smithy.api#documentation": "

A list of containers that are included in the taskProperties\n list.

" + } + }, + "containerInstanceArn": { + "target": "com.amazonaws.batch#String", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the container instance that hosts the task.

" + } + }, + "taskArn": { + "target": "com.amazonaws.batch#String", + "traits": { + "smithy.api#documentation": "

The ARN of the Amazon ECS task.

" + } + }, + "ephemeralStorage": { + "target": "com.amazonaws.batch#EphemeralStorage", + "traits": { + "smithy.api#documentation": "

The amount of ephemeral storage allocated for the task.

" + } + }, + "executionRoleArn": { + "target": "com.amazonaws.batch#String", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the execution role that Batch can assume. For more information, see\n Batch execution IAM\n role in the Batch User Guide.

" + } + }, + "platformVersion": { + "target": "com.amazonaws.batch#String", + "traits": { + "smithy.api#documentation": "

The Fargate platform version where the jobs are running.

" + } + }, + "ipcMode": { + "target": "com.amazonaws.batch#String", + "traits": { + "smithy.api#documentation": "

The IPC resource namespace to use for the containers in the task.

" + } + }, + "taskRoleArn": { + "target": "com.amazonaws.batch#String", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM role that the container can assume for Amazon Web Services permissions. For more\n information, see IAM roles for tasks in the\n Amazon Elastic Container Service Developer Guide.

\n \n

This is object is comparable to ContainerProperties:jobRoleArn.

\n
" + } + }, + "pidMode": { + "target": "com.amazonaws.batch#String", + "traits": { + "smithy.api#documentation": "

The process namespace to use for the containers in the task.

" + } + }, + "networkConfiguration": { + "target": "com.amazonaws.batch#NetworkConfiguration", + "traits": { + "smithy.api#documentation": "

The network configuration for jobs that are running on Fargate resources. Jobs that are\n running on Amazon EC2 resources must not specify this parameter.

" + } + }, + "runtimePlatform": { + "target": "com.amazonaws.batch#RuntimePlatform", + "traits": { + "smithy.api#documentation": "

An object that represents the compute environment architecture for Batch jobs on\n Fargate.

" + } + }, + "volumes": { + "target": "com.amazonaws.batch#Volumes", + "traits": { + "smithy.api#documentation": "

A list of data volumes used in a job.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The details of a task definition that describes the container and volume definitions of an\n Amazon ECS task.

" + } + }, + "com.amazonaws.batch#EcsTaskProperties": { + "type": "structure", + "members": { + "containers": { + "target": "com.amazonaws.batch#ListTaskContainerProperties", + "traits": { + "smithy.api#clientOptional": {}, + "smithy.api#documentation": "

This object is a list of containers.

", + "smithy.api#required": {} + } + }, + "ephemeralStorage": { + "target": "com.amazonaws.batch#EphemeralStorage", + "traits": { + "smithy.api#documentation": "

The amount of ephemeral storage to allocate for the task. This parameter is used to expand\n the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on\n Fargate.

" + } + }, + "executionRoleArn": { + "target": "com.amazonaws.batch#String", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the execution role that Batch can assume. For jobs that run on Fargate\n resources, you must provide an execution role. For more information, see Batch execution IAM role\n in the Batch User Guide.

" + } + }, + "platformVersion": { + "target": "com.amazonaws.batch#String", + "traits": { + "smithy.api#documentation": "

The Fargate platform version where the jobs are running. A platform version is specified\n only for jobs that are running on Fargate resources. If one isn't specified, the\n LATEST platform version is used by default. This uses a recent, approved version of\n the Fargate platform for compute resources. For more information, see Fargate\n platform versions in the Amazon Elastic Container Service Developer Guide.

" + } + }, + "ipcMode": { + "target": "com.amazonaws.batch#String", + "traits": { + "smithy.api#documentation": "

The IPC resource namespace to use for the containers in the task. The valid values are\n host, task, or none.

\n

If host is specified, all containers within the tasks that specified the\n host IPC mode on the same container instance share the same IPC resources with the\n host Amazon EC2 instance.

\n

If task is specified, all containers within the specified task\n share the same IPC resources.

\n

If none is specified, the IPC resources within the containers of a task are\n private, and are not shared with other containers in a task or on the container instance.

\n

If no value is specified, then the IPC resource namespace sharing depends on the Docker\n daemon setting on the container instance. For more information, see IPC settings in\n the Docker run reference.

" + } + }, + "taskRoleArn": { + "target": "com.amazonaws.batch#String", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) that's associated with the Amazon ECS task.

\n \n

This is object is comparable to ContainerProperties:jobRoleArn.

\n
" + } + }, + "pidMode": { + "target": "com.amazonaws.batch#String", + "traits": { + "smithy.api#documentation": "

The process namespace to use for the containers in the task. The valid values are\n host or task. For example, monitoring sidecars might need\n pidMode to access information about other containers running in the same\n task.

\n

If host is specified, all containers within the tasks that specified the\n host PID mode on the same container instance share the process namespace with the\n host Amazon EC2 instance.

\n

If task is specified, all containers within the specified task share the same\n process namespace.

\n

If no value is specified, the default is a private namespace for each container. For more\n information, see PID settings in the Docker run reference.

" + } + }, + "networkConfiguration": { + "target": "com.amazonaws.batch#NetworkConfiguration", + "traits": { + "smithy.api#documentation": "

The network configuration for jobs that are running on Fargate resources. Jobs that are\n running on Amazon EC2 resources must not specify this parameter.

" + } + }, + "runtimePlatform": { + "target": "com.amazonaws.batch#RuntimePlatform", + "traits": { + "smithy.api#documentation": "

An object that represents the compute environment architecture for Batch jobs on\n Fargate.

" + } + }, + "volumes": { + "target": "com.amazonaws.batch#Volumes", + "traits": { + "smithy.api#documentation": "

A list of volumes that are associated with the job.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The properties for a task definition that describes the container and volume definitions of\n an Amazon ECS task. You can specify which Docker images to use, the required resources, and other\n configurations related to launching the task definition through an Amazon ECS service or task.

" + } + }, "com.amazonaws.batch#EksAttemptContainerDetail": { "type": "structure", "members": { "exitCode": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The exit code for the job attempt. A non-zero exit code is considered failed.

" + "smithy.api#documentation": "

The exit code returned for the job attempt. A non-zero exit code is considered failed.

" } }, "reason": { @@ -3686,6 +3880,12 @@ "smithy.api#documentation": "

The details for the final status of the containers for this job attempt.

" } }, + "initContainers": { + "target": "com.amazonaws.batch#EksAttemptContainerDetails", + "traits": { + "smithy.api#documentation": "

The details for the init containers.

" + } + }, "podName": { "target": "com.amazonaws.batch#String", "traits": { @@ -3783,7 +3983,7 @@ "args": { "target": "com.amazonaws.batch#StringList", "traits": { - "smithy.api#documentation": "

An array of arguments to the entrypoint. If this isn't specified, the CMD of\n the container image is used. This corresponds to the args member in the Entrypoint portion of the Pod\n in Kubernetes. Environment variable references are expanded using the container's environment.

\n

If the referenced environment variable doesn't exist, the reference in the command isn't\n changed. For example, if the reference is to \"$(NAME1)\" and the NAME1\n environment variable doesn't exist, the command string will remain \"$(NAME1).\"\n $$ is replaced with $, and the resulting string isn't expanded. For\n example, $$(VAR_NAME) is passed as $(VAR_NAME) whether or not the\n VAR_NAME environment variable exists. For more information, see CMD in the\n Dockerfile reference and Define a command and arguments for a pod in the Kubernetes\n documentation.

" + "smithy.api#documentation": "

An array of arguments to the entrypoint. If this isn't specified, the CMD of\n the container image is used. This corresponds to the args member in the Entrypoint portion of the Pod\n in Kubernetes. Environment variable references are expanded using the container's environment.

\n

If the referenced environment variable doesn't exist, the reference in the command isn't\n changed. For example, if the reference is to \"$(NAME1)\" and the NAME1\n environment variable doesn't exist, the command string will remain \"$(NAME1).\"\n $$ is replaced with $, and the resulting string isn't expanded. For\n example, $$(VAR_NAME) is passed as $(VAR_NAME) whether or not the\n VAR_NAME environment variable exists. For more information, see Dockerfile reference: CMD\n and Define a command and arguments for a pod in the Kubernetes\n documentation.

" } }, "env": { @@ -3845,7 +4045,7 @@ "args": { "target": "com.amazonaws.batch#StringList", "traits": { - "smithy.api#documentation": "

An array of arguments to the entrypoint. If this isn't specified, the CMD of\n the container image is used. This corresponds to the args member in the Entrypoint portion of the Pod\n in Kubernetes. Environment variable references are expanded using the container's environment.

\n

If the referenced environment variable doesn't exist, the reference in the command isn't\n changed. For example, if the reference is to \"$(NAME1)\" and the NAME1\n environment variable doesn't exist, the command string will remain \"$(NAME1)\".\n $$ is replaced with $ and the resulting string isn't expanded. For\n example, $$(VAR_NAME) is passed as $(VAR_NAME) whether or not the\n VAR_NAME environment variable exists. For more information, see CMD in the\n Dockerfile reference and Define a command and arguments for a pod in the Kubernetes\n documentation.

" + "smithy.api#documentation": "

An array of arguments to the entrypoint. If this isn't specified, the CMD of\n the container image is used. This corresponds to the args member in the Entrypoint portion of the Pod\n in Kubernetes. Environment variable references are expanded using the container's environment.

\n

If the referenced environment variable doesn't exist, the reference in the command isn't\n changed. For example, if the reference is to \"$(NAME1)\" and the NAME1\n environment variable doesn't exist, the command string will remain \"$(NAME1)\".\n $$ is replaced with $ and the resulting string isn't expanded. For\n example, $$(VAR_NAME) is passed as $(VAR_NAME) whether or not the\n VAR_NAME environment variable exists. For more information, see Dockerfile reference: CMD\n and Define a command and arguments for a pod in the Kubernetes\n documentation.

" } }, "env": { @@ -3863,7 +4063,7 @@ "exitCode": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The exit code for the job attempt. A non-zero exit code is considered failed.

" + "smithy.api#documentation": "

The exit code returned for the job attempt. A non-zero exit code is considered failed.

" } }, "reason": { @@ -3926,6 +4126,12 @@ "com.amazonaws.batch#EksContainerOverride": { "type": "structure", "members": { + "name": { + "target": "com.amazonaws.batch#String", + "traits": { + "smithy.api#documentation": "

A pointer to the container that you want to override. The name must match a unique container name that you wish to override.

" + } + }, "image": { "target": "com.amazonaws.batch#String", "traits": { @@ -3941,7 +4147,7 @@ "args": { "target": "com.amazonaws.batch#StringList", "traits": { - "smithy.api#documentation": "

The arguments to the entrypoint to send to the container that overrides the default\n arguments from the Docker image or the job definition. For more information, see CMD in the\n Dockerfile reference and Define a command an arguments for a pod in the Kubernetes\n documentation.

" + "smithy.api#documentation": "

The arguments to the entrypoint to send to the container that overrides the default\n arguments from the Docker image or the job definition. For more information, see Dockerfile reference: CMD\n and Define a command an arguments for a pod in the Kubernetes\n documentation.

" } }, "env": { @@ -3958,7 +4164,7 @@ } }, "traits": { - "smithy.api#documentation": "

Object representing any Kubernetes overrides to a job definition that's used in a SubmitJob API operation.

" + "smithy.api#documentation": "

Object representing any Kubernetes overrides to a job definition that's used in a SubmitJob API\n operation.

" } }, "com.amazonaws.batch#EksContainerOverrideList": { @@ -4126,7 +4332,7 @@ } }, "traits": { - "smithy.api#documentation": "

Describes and uniquely identifies Kubernetes resources. For example, the compute environment\n that a pod runs in or the jobID for a job running in the pod. For more information,\n see Understanding Kubernetes Objects in the Kubernetes\n documentation.

" + "smithy.api#documentation": "

Describes and uniquely identifies Kubernetes resources. For example, the compute environment that\n a pod runs in or the jobID for a job running in the pod. For more information, see\n Understanding Kubernetes Objects in the Kubernetes documentation.

" } }, "com.amazonaws.batch#EksPodProperties": { @@ -4156,6 +4362,12 @@ "smithy.api#documentation": "

The properties of the container that's used on the Amazon EKS pod.

" } }, + "initContainers": { + "target": "com.amazonaws.batch#EksContainers", + "traits": { + "smithy.api#documentation": "

These containers run before application containers, always runs to completion, and must complete successfully before the next container starts. These containers are registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store. For more information, see Init\n Containers in the Kubernetes documentation.

\n \n

This object is limited to 10 elements

\n
" + } + }, "volumes": { "target": "com.amazonaws.batch#EksVolumes", "traits": { @@ -4167,6 +4379,12 @@ "traits": { "smithy.api#documentation": "

Metadata about the\n Kubernetes\n pod. For\n more information, see Understanding Kubernetes Objects in the Kubernetes\n documentation.

" } + }, + "shareProcessNamespace": { + "target": "com.amazonaws.batch#Boolean", + "traits": { + "smithy.api#documentation": "

Indicates if the processes in a container are shared, or visible, to other containers in the\n same pod. For more information, see Share\n Process Namespace between Containers in a Pod.

" + } } }, "traits": { @@ -4200,6 +4418,12 @@ "smithy.api#documentation": "

The properties of the container that's used on the Amazon EKS pod.

" } }, + "initContainers": { + "target": "com.amazonaws.batch#EksContainerDetails", + "traits": { + "smithy.api#documentation": "

The container registered with the Amazon EKS Connector agent and persists the registration\n information in the Kubernetes backend data store.

" + } + }, "volumes": { "target": "com.amazonaws.batch#EksVolumes", "traits": { @@ -4221,7 +4445,13 @@ "metadata": { "target": "com.amazonaws.batch#EksMetadata", "traits": { - "smithy.api#documentation": "

Describes and uniquely identifies Kubernetes resources. For example, the compute environment\n that a pod runs in or the jobID for a job running in the pod. For more information,\n see Understanding Kubernetes Objects in the Kubernetes\n documentation.

" + "smithy.api#documentation": "

Describes and uniquely identifies Kubernetes resources. For example, the compute environment that\n a pod runs in or the jobID for a job running in the pod. For more information, see\n Understanding Kubernetes Objects in the Kubernetes documentation.

" + } + }, + "shareProcessNamespace": { + "target": "com.amazonaws.batch#Boolean", + "traits": { + "smithy.api#documentation": "

Indicates if the processes in a container are shared, or visible, to other containers in the\n same pod. For more information, see Share\n Process Namespace between Containers in a Pod.

" } } }, @@ -4238,6 +4468,12 @@ "smithy.api#documentation": "

The overrides for the container that's used on the Amazon EKS pod.

" } }, + "initContainers": { + "target": "com.amazonaws.batch#EksContainerOverrideList", + "traits": { + "smithy.api#documentation": "

The overrides for the conatainers defined in the Amazon EKS pod. These containers run before application containers, always runs to completion, and must complete successfully before the next container starts. These containers are registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store. For more information, see Init\n Containers in the Kubernetes documentation.

\n \n

This object is limited to 10 elements

\n
" + } + }, "metadata": { "target": "com.amazonaws.batch#EksMetadata", "traits": { @@ -4461,7 +4697,7 @@ } }, "traits": { - "smithy.api#documentation": "

The platform configuration for jobs that are running on Fargate resources. Jobs that run\n on EC2 resources must not specify this parameter.

" + "smithy.api#documentation": "

The platform configuration for jobs that are running on Fargate resources. Jobs that run\n on Amazon EC2 resources must not specify this parameter.

" } }, "com.amazonaws.batch#Float": { @@ -4622,7 +4858,7 @@ "containerProperties": { "target": "com.amazonaws.batch#ContainerProperties", "traits": { - "smithy.api#documentation": "

An object with various properties specific to Amazon ECS based jobs. Valid values are\n containerProperties, eksProperties, and nodeProperties.\n Only one can be specified.

" + "smithy.api#documentation": "

An object with properties specific to Amazon ECS-based jobs. When containerProperties is used in the job definition, it can't be used in addition to eksProperties, ecsProperties, or\n nodeProperties.

" } }, "timeout": { @@ -4634,7 +4870,7 @@ "nodeProperties": { "target": "com.amazonaws.batch#NodeProperties", "traits": { - "smithy.api#documentation": "

An object with various properties that are specific to multi-node parallel jobs. Valid\n values are containerProperties, eksProperties, and\n nodeProperties. Only one can be specified.

\n \n

If the job runs on Fargate resources, don't specify nodeProperties. Use\n containerProperties instead.

\n
" + "smithy.api#documentation": "

An object with properties that are specific to multi-node parallel jobs. When nodeProperties is used in the job definition, it can't be used in addition to containerProperties, ecsProperties, or eksProperties.

\n \n

If the job runs on Fargate resources, don't specify nodeProperties. Use\n containerProperties instead.

\n
" } }, "tags": { @@ -4655,10 +4891,16 @@ "smithy.api#documentation": "

The platform capabilities required by the job definition. If no value is specified, it\n defaults to EC2. Jobs run on Fargate resources specify\n FARGATE.

" } }, + "ecsProperties": { + "target": "com.amazonaws.batch#EcsProperties", + "traits": { + "smithy.api#documentation": "

An object that contains the properties for the Amazon ECS resources of a job.When ecsProperties\n is used in the job definition, it can't be used in addition to containerProperties, eksProperties, or nodeProperties.

" + } + }, "eksProperties": { "target": "com.amazonaws.batch#EksProperties", "traits": { - "smithy.api#documentation": "

An object with various properties that are specific to Amazon EKS based jobs. Valid values are\n containerProperties, eksProperties, and nodeProperties.\n Only one can be specified.

" + "smithy.api#documentation": "

An object with properties that are specific to Amazon EKS-based jobs. When eksProperties\n is used in the job definition, it can't be used in addition to containerProperties, ecsProperties, or nodeProperties.

" } }, "containerOrchestrationType": { @@ -4789,7 +5031,7 @@ "createdAt": { "target": "com.amazonaws.batch#Long", "traits": { - "smithy.api#documentation": "

The Unix timestamp (in milliseconds) for when the job was created. For non-array jobs and\n parent array jobs, this is when the job entered the SUBMITTED state. This is\n specifically at the time SubmitJob was called. For array child jobs, this is\n when the child job was spawned by its parent and entered the PENDING state.

" + "smithy.api#documentation": "

The Unix timestamp (in milliseconds) for when the job was created. For non-array jobs and\n parent array jobs, this is when the job entered the SUBMITTED state. This is\n specifically at the time SubmitJob was called. For array child\n jobs, this is when the child job was spawned by its parent and entered the PENDING\n state.

" } }, "retryStrategy": { @@ -4835,7 +5077,7 @@ "container": { "target": "com.amazonaws.batch#ContainerDetail", "traits": { - "smithy.api#documentation": "

An object that represents the details for the container that's associated with the\n job.

" + "smithy.api#documentation": "

An object that represents the details for the container that's associated with the\n job. If the details are for a multiple-container job, this object will be empty.

" } }, "nodeDetails": { @@ -4883,7 +5125,7 @@ "eksProperties": { "target": "com.amazonaws.batch#EksPropertiesDetail", "traits": { - "smithy.api#documentation": "

An object with various properties that are specific to Amazon EKS based jobs. Only one of\n container, eksProperties, or nodeDetails is\n specified.

" + "smithy.api#documentation": "

An object with various properties that are specific to Amazon EKS based jobs.

" } }, "eksAttempts": { @@ -4892,6 +5134,12 @@ "smithy.api#documentation": "

A list of job attempts that are associated with this job.

" } }, + "ecsProperties": { + "target": "com.amazonaws.batch#EcsPropertiesDetail", + "traits": { + "smithy.api#documentation": "

An object with properties that are specific to Amazon ECS-based jobs.

" + } + }, "isCancelled": { "target": "com.amazonaws.batch#Boolean", "traits": { @@ -4973,7 +5221,7 @@ "target": "com.amazonaws.batch#Integer", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

The priority of the job queue. Job queues with a higher priority (or a higher integer value\n for the priority parameter) are evaluated first when associated with the same\n compute environment. Priority is determined in descending order. For example, a job queue with a\n priority value of 10 is given scheduling preference over a job queue with a priority\n value of 1. All of the compute environments must be either EC2 (EC2 or\n SPOT) or Fargate (FARGATE or FARGATE_SPOT). EC2 and\n Fargate compute environments can't be mixed.

", + "smithy.api#documentation": "

The priority of the job queue. Job queues with a higher priority (or a higher integer value\n for the priority parameter) are evaluated first when associated with the same\n compute environment. Priority is determined in descending order. For example, a job queue with a\n priority value of 10 is given scheduling preference over a job queue with a priority\n value of 1. All of the compute environments must be either Amazon EC2 (EC2\n or SPOT) or Fargate (FARGATE or FARGATE_SPOT). Amazon EC2 and\n Fargate compute environments can't be mixed.

", "smithy.api#required": {} } }, @@ -5077,7 +5325,7 @@ "createdAt": { "target": "com.amazonaws.batch#Long", "traits": { - "smithy.api#documentation": "

The Unix timestamp (in milliseconds) for when the job was created. For non-array jobs and\n parent array jobs, this is when the job entered the SUBMITTED state (at the time\n SubmitJob was called). For array child jobs, this is when the child job was\n spawned by its parent and entered the PENDING state.

" + "smithy.api#documentation": "

The Unix timestamp (in milliseconds) for when the job was created. For non-array jobs and\n parent array jobs, this is when the job entered the SUBMITTED state (at the time\n SubmitJob\n was called). For array child jobs, this is when the child job was spawned by its parent and\n entered the PENDING state.

" } }, "status": { @@ -5145,7 +5393,7 @@ "attemptDurationSeconds": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The job timeout time (in seconds) that's measured from the job attempt's\n startedAt timestamp. After this time passes, Batch terminates your jobs if they\n aren't finished. The minimum value for the timeout is 60 seconds.

\n

For array jobs, the timeout applies to the child jobs, not to the parent array job.

\n

For multi-node parallel (MNP) jobs, the timeout applies to the whole job, not to the\n individual nodes.

" + "smithy.api#documentation": "

The job timeout time (in seconds) that's measured from the job attempt's\n startedAt timestamp. After this time passes, Batch terminates your jobs if they\n aren't finished. The minimum value for the timeout is 60 seconds.

\n

For array jobs, the timeout applies to the child jobs, not to the parent array job.

\n

For multi-node parallel (MNP) jobs, the timeout applies to the whole job, not to the\n individual nodes.

" } } }, @@ -5220,7 +5468,7 @@ "version": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The version number of the launch template, $Latest, or\n $Default.

\n

If the value is $Latest, the latest version of the launch template is used. If\n the value is $Default, the default version of the launch template is used.

\n \n

If the AMI ID that's used in a compute environment is from the launch template, the AMI\n isn't changed when the compute environment is updated. It's only changed if the\n updateToLatestImageVersion parameter for the compute environment is set to\n true. During an infrastructure update, if either $Latest or\n $Default is specified, Batch re-evaluates the launch template version, and it\n might use a different version of the launch template. This is the case even if the launch\n template isn't specified in the update. When updating a compute environment, changing the launch\n template requires an infrastructure update of the compute environment. For more information, see\n Updating compute\n environments in the Batch User Guide.

\n
\n

Default: $Default.

" + "smithy.api#documentation": "

The version number of the launch template, $Latest, or\n $Default.

\n

If the value is $Latest, the latest version of the launch template is used. If\n the value is $Default, the default version of the launch template is used.

\n \n

If the AMI ID that's used in a compute environment is from the launch template, the AMI\n isn't changed when the compute environment is updated. It's only changed if the\n updateToLatestImageVersion parameter for the compute environment is set to\n true. During an infrastructure update, if either $Latest or\n $Default is specified, Batch re-evaluates the launch template version, and it\n might use a different version of the launch template. This is the case even if the launch\n template isn't specified in the update. When updating a compute environment, changing the launch\n template requires an infrastructure update of the compute environment. For more information, see\n Updating compute\n environments in the Batch User Guide.

\n
\n

Default: $Default.

" } } }, @@ -5272,6 +5520,18 @@ "smithy.api#documentation": "

Linux-specific modifications that are applied to the container, such as details for device\n mappings.

" } }, + "com.amazonaws.batch#ListEcsTaskDetails": { + "type": "list", + "member": { + "target": "com.amazonaws.batch#EcsTaskDetails" + } + }, + "com.amazonaws.batch#ListEcsTaskProperties": { + "type": "list", + "member": { + "target": "com.amazonaws.batch#EcsTaskProperties" + } + }, "com.amazonaws.batch#ListJobs": { "type": "operation", "input": { @@ -5289,7 +5549,7 @@ } ], "traits": { - "smithy.api#documentation": "

Returns a list of Batch jobs.

\n

You must specify only one of the following items:

\n
    \n
  • \n

    A job queue ID to return a list of jobs in that job queue

    \n
  • \n
  • \n

    A multi-node parallel job ID to return a list of nodes for that job

    \n
  • \n
  • \n

    An array job ID to return a list of the children for that job

    \n
  • \n
\n

You can filter the results by job status with the jobStatus parameter. If you don't specify a\n status, only RUNNING jobs are returned.

", + "smithy.api#documentation": "

Returns a list of Batch jobs.

\n

You must specify only one of the following items:

\n
    \n
  • \n

    A job queue ID to return a list of jobs in that job queue

    \n
  • \n
  • \n

    A multi-node parallel job ID to return a list of nodes for that job

    \n
  • \n
  • \n

    An array job ID to return a list of the children for that job

    \n
  • \n
\n

You can filter the results by job status with the jobStatus parameter. If you\n don't specify a status, only RUNNING jobs are returned.

", "smithy.api#examples": [ { "title": "To list running jobs", @@ -5354,37 +5614,37 @@ "arrayJobId": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The job ID for an array job. Specifying an array job ID with this parameter lists all child jobs from within the\n specified array.

" + "smithy.api#documentation": "

The job ID for an array job. Specifying an array job ID with this parameter lists all\n child jobs from within the specified array.

" } }, "multiNodeJobId": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The job ID for a multi-node parallel job. Specifying a multi-node parallel job ID with this parameter lists all\n nodes that are associated with the specified job.

" + "smithy.api#documentation": "

The job ID for a multi-node parallel job. Specifying a multi-node parallel job ID with\n this parameter lists all nodes that are associated with the specified job.

" } }, "jobStatus": { "target": "com.amazonaws.batch#JobStatus", "traits": { - "smithy.api#documentation": "

The job status used to filter jobs in the specified queue. If the filters parameter is specified,\n the jobStatus parameter is ignored and jobs with any status are returned. If you don't specify a status,\n only RUNNING jobs are returned.

" + "smithy.api#documentation": "

The job status used to filter jobs in the specified queue. If the filters\n parameter is specified, the jobStatus parameter is ignored and jobs with any\n status are returned. If you don't specify a status, only RUNNING jobs are\n returned.

" } }, "maxResults": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The maximum number of results returned by ListJobs in paginated output. When this parameter is\n used, ListJobs only returns maxResults results in a single page and a\n nextToken response element. The remaining results of the initial request can be seen by sending another\n ListJobs request with the returned nextToken value. This value can be between\n 1 and 100. If this parameter isn't used, then ListJobs returns up to\n 100 results and a nextToken value if applicable.

" + "smithy.api#documentation": "

The maximum number of results returned by ListJobs in paginated output. When\n this parameter is used, ListJobs only returns maxResults results in\n a single page and a nextToken response element. The remaining results of the\n initial request can be seen by sending another ListJobs request with the returned\n nextToken value. This value can be between 1 and\n 100. If this parameter isn't used, then ListJobs returns up to\n 100 results and a nextToken value if applicable.

" } }, "nextToken": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The nextToken value returned from a previous paginated ListJobs request where\n maxResults was used and the results exceeded the value of that parameter. Pagination continues from the\n end of the previous results that returned the nextToken value. This value is null when\n there are no more results to return.

\n \n

Treat this token as an opaque identifier that's only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" + "smithy.api#documentation": "

The nextToken value returned from a previous paginated ListJobs\n request where maxResults was used and the results exceeded the value of that\n parameter. Pagination continues from the end of the previous results that returned the\n nextToken value. This value is null when there are no more results\n to return.

\n \n

Treat this token as an opaque identifier that's only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" } }, "filters": { "target": "com.amazonaws.batch#ListJobsFilterList", "traits": { - "smithy.api#documentation": "

The filter to apply to the query. Only one filter can be used at a time. When the filter is used,\n jobStatus is ignored. The filter doesn't apply to child jobs in an array or multi-node parallel (MNP)\n jobs. The results are sorted by the createdAt field, with the most recent jobs being first.

\n
\n
JOB_NAME
\n
\n

The value of the filter is a case-insensitive match for the job name. If the value ends with an asterisk (*),\n the filter matches any job name that begins with the string before the '*'. This corresponds to the\n jobName value. For example, test1 matches both Test1 and\n test1, and test1* matches both test1 and Test10. When the\n JOB_NAME filter is used, the results are grouped by the job name and version.

\n
\n
JOB_DEFINITION
\n
\n

The value for the filter is the name or Amazon Resource Name (ARN) of the job definition. This corresponds to the\n jobDefinition value. The value is case sensitive. When the value for the filter is the job definition\n name, the results include all the jobs that used any revision of that job definition name. If the value ends with\n an asterisk (*), the filter matches any job definition name that begins with the string before the '*'. For\n example, jd1 matches only jd1, and jd1* matches both jd1 and\n jd1A. The version of the job definition that's used doesn't affect the sort order. When the\n JOB_DEFINITION filter is used and the ARN is used (which is in the form\n arn:${Partition}:batch:${Region}:${Account}:job-definition/${JobDefinitionName}:${Revision}), the\n results include jobs that used the specified revision of the job definition. Asterisk (*) isn't supported when the\n ARN is used.

\n
\n
BEFORE_CREATED_AT
\n
\n

The value for the filter is the time that's before the job was created. This corresponds to the\n createdAt value. The value is a string representation of the number of milliseconds since 00:00:00\n UTC (midnight) on January 1, 1970.

\n
\n
AFTER_CREATED_AT
\n
\n

The value for the filter is the time that's after the job was created. This corresponds to the\n createdAt value. The value is a string representation of the number of milliseconds since 00:00:00\n UTC (midnight) on January 1, 1970.

\n
\n
" + "smithy.api#documentation": "

The filter to apply to the query. Only one filter can be used at a time. When the filter\n is used, jobStatus is ignored. The filter doesn't apply to child jobs in an array\n or multi-node parallel (MNP) jobs. The results are sorted by the createdAt field,\n with the most recent jobs being first.

\n
\n
JOB_NAME
\n
\n

The value of the filter is a case-insensitive match for the job name. If the value\n ends with an asterisk (*), the filter matches any job name that begins with the string\n before the '*'. This corresponds to the jobName value. For example,\n test1 matches both Test1 and test1, and\n test1* matches both test1 and Test10. When the\n JOB_NAME filter is used, the results are grouped by the job name and\n version.

\n
\n
JOB_DEFINITION
\n
\n

The value for the filter is the name or Amazon Resource Name (ARN) of the job definition. This\n corresponds to the jobDefinition value. The value is case sensitive. When\n the value for the filter is the job definition name, the results include all the jobs\n that used any revision of that job definition name. If the value ends with an asterisk\n (*), the filter matches any job definition name that begins with the string before the\n '*'. For example, jd1 matches only jd1, and jd1*\n matches both jd1 and jd1A. The version of the job definition\n that's used doesn't affect the sort order. When the JOB_DEFINITION filter\n is used and the ARN is used (which is in the form\n arn:${Partition}:batch:${Region}:${Account}:job-definition/${JobDefinitionName}:${Revision}),\n the results include jobs that used the specified revision of the job definition.\n Asterisk (*) isn't supported when the ARN is used.

\n
\n
BEFORE_CREATED_AT
\n
\n

The value for the filter is the time that's before the job was created. This\n corresponds to the createdAt value. The value is a string representation of\n the number of milliseconds since 00:00:00 UTC (midnight) on January 1, 1970.

\n
\n
AFTER_CREATED_AT
\n
\n

The value for the filter is the time that's after the job was created. This\n corresponds to the createdAt value. The value is a string representation of\n the number of milliseconds since 00:00:00 UTC (midnight) on January 1, 1970.

\n
\n
" } } }, @@ -5407,7 +5667,7 @@ "nextToken": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The nextToken value to include in a future ListJobs request. When the results of a\n ListJobs request exceed maxResults, this value can be used to retrieve the next page of\n results. This value is null when there are no more results to return.

" + "smithy.api#documentation": "

The nextToken value to include in a future ListJobs request.\n When the results of a ListJobs request exceed maxResults, this value\n can be used to retrieve the next page of results. This value is null when there\n are no more results to return.

" } } }, @@ -5452,7 +5712,7 @@ "maxResults": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The maximum number of results that's returned by ListSchedulingPolicies in paginated output. When\n this parameter is used, ListSchedulingPolicies only returns maxResults results in a single\n page and a nextToken response element. You can see the remaining results of the initial request by\n sending another ListSchedulingPolicies request with the returned nextToken value. This\n value can be between 1 and 100. If this parameter isn't used,\n ListSchedulingPolicies returns up to 100 results and a nextToken value\n if applicable.

" + "smithy.api#documentation": "

The maximum number of results that's returned by ListSchedulingPolicies in\n paginated output. When this parameter is used, ListSchedulingPolicies only\n returns maxResults results in a single page and a nextToken response\n element. You can see the remaining results of the initial request by sending another\n ListSchedulingPolicies request with the returned nextToken value.\n This value can be between 1 and 100. If this parameter isn't\n used, ListSchedulingPolicies returns up to 100 results and a\n nextToken value if applicable.

" } }, "nextToken": { @@ -5479,7 +5739,7 @@ "nextToken": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The nextToken value to include in a future ListSchedulingPolicies request. When the\n results of a ListSchedulingPolicies request exceed maxResults, this value can be used to\n retrieve the next page of results. This value is null when there are no more results to return.

" + "smithy.api#documentation": "

The nextToken value to include in a future\n ListSchedulingPolicies request. When the results of a\n ListSchedulingPolicies request exceed maxResults, this value can\n be used to retrieve the next page of results. This value is null when there are\n no more results to return.

" } } }, @@ -5559,6 +5819,30 @@ "smithy.api#output": {} } }, + "com.amazonaws.batch#ListTaskContainerDetails": { + "type": "list", + "member": { + "target": "com.amazonaws.batch#TaskContainerDetails" + } + }, + "com.amazonaws.batch#ListTaskContainerOverrides": { + "type": "list", + "member": { + "target": "com.amazonaws.batch#TaskContainerOverrides" + } + }, + "com.amazonaws.batch#ListTaskContainerProperties": { + "type": "list", + "member": { + "target": "com.amazonaws.batch#TaskContainerProperties" + } + }, + "com.amazonaws.batch#ListTaskPropertiesOverride": { + "type": "list", + "member": { + "target": "com.amazonaws.batch#TaskPropertiesOverride" + } + }, "com.amazonaws.batch#LogConfiguration": { "type": "structure", "members": { @@ -5669,7 +5953,7 @@ } }, "traits": { - "smithy.api#documentation": "

Details for a Docker volume mount point that's used in a job's container properties. This\n parameter maps to Volumes in the Create a container section of the Docker Remote API and the\n --volume option to docker run.

" + "smithy.api#documentation": "

Details for a Docker volume mount point that's used in a job's container properties. This\n parameter maps to Volumes in the Create a\n container section of the Docker Remote API and the\n --volume option to docker run.

" } }, "com.amazonaws.batch#MountPoints": { @@ -5689,7 +5973,7 @@ } }, "traits": { - "smithy.api#documentation": "

The network configuration for jobs that are running on Fargate resources. Jobs that are\n running on EC2 resources must not specify this parameter.

" + "smithy.api#documentation": "

The network configuration for jobs that are running on Fargate resources. Jobs that are\n running on Amazon EC2 resources must not specify this parameter.

" } }, "com.amazonaws.batch#NetworkInterface": { @@ -5761,7 +6045,7 @@ } }, "traits": { - "smithy.api#documentation": "

An object that represents any node overrides to a job definition that's used in a SubmitJob API operation.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources. Don't\n provide it for these jobs. Rather, use containerOverrides instead.

\n
" + "smithy.api#documentation": "

An object that represents any node overrides to a job definition that's used in a SubmitJob API\n operation.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources. Don't\n provide it for these jobs. Rather, use containerOverrides instead.

\n
" } }, "com.amazonaws.batch#NodeProperties": { @@ -5838,10 +6122,22 @@ "traits": { "smithy.api#documentation": "

The overrides that are sent to a node range.

" } + }, + "ecsPropertiesOverride": { + "target": "com.amazonaws.batch#EcsPropertiesOverride", + "traits": { + "smithy.api#documentation": "

An object that contains the properties that you want to replace for the existing Amazon ECS\n resources of a job.

" + } + }, + "instanceTypes": { + "target": "com.amazonaws.batch#StringList", + "traits": { + "smithy.api#documentation": "

An object that contains the instance types that you want to replace for the existing\n resources of a job.

" + } } }, "traits": { - "smithy.api#documentation": "

The object that represents any node overrides to a job definition that's used in a SubmitJob API operation.

" + "smithy.api#documentation": "

The object that represents any node overrides to a job definition that's used in a SubmitJob API\n operation.

" } }, "com.amazonaws.batch#NodePropertyOverrides": { @@ -5872,10 +6168,22 @@ "traits": { "smithy.api#documentation": "

The container details for the node range.

" } + }, + "instanceTypes": { + "target": "com.amazonaws.batch#StringList", + "traits": { + "smithy.api#documentation": "

The instance types of the underlying host infrastructure of a multi-node parallel job.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources.

\n

In addition, this list object is currently limited to one element.

\n
" + } + }, + "ecsProperties": { + "target": "com.amazonaws.batch#EcsProperties", + "traits": { + "smithy.api#documentation": "

This is an object that represents the properties of the node range for a multi-node parallel\n job.

" + } } }, "traits": { - "smithy.api#documentation": "

An object that represents the properties of the node range for a multi-node parallel\n job.

" + "smithy.api#documentation": "

This is an object that represents the properties of the node range for a multi-node parallel\n job.

" } }, "com.amazonaws.batch#OrchestrationType": { @@ -6028,7 +6336,7 @@ "target": "com.amazonaws.batch#String", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

The name of the job definition to register. It can be up to 128 letters long. It can contain uppercase and\n lowercase letters, numbers, hyphens (-), and underscores (_).

", + "smithy.api#documentation": "

The name of the job definition to register. It can be up to 128 letters long. It can\n contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).

", "smithy.api#required": {} } }, @@ -6036,68 +6344,74 @@ "target": "com.amazonaws.batch#JobDefinitionType", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

The type of job definition. For more information about multi-node parallel jobs, see Creating a multi-node parallel job definition in the\n Batch User Guide.

\n \n

If the job is run on Fargate resources, then multinode isn't supported.

\n
", + "smithy.api#documentation": "

The type of job definition. For more information about multi-node parallel jobs, see\n Creating a multi-node\n parallel job definition in the Batch User Guide.

\n
    \n
  • \n

    If the value is container, then one of the following is required: containerProperties, ecsProperties, or eksProperties.

    \n
  • \n
  • \n

    If the value is multinode, then nodeProperties is required.

    \n
  • \n
\n \n

If the job is run on Fargate resources, then multinode isn't supported.

\n
", "smithy.api#required": {} } }, "parameters": { "target": "com.amazonaws.batch#ParametersMap", "traits": { - "smithy.api#documentation": "

Default parameter substitution placeholders to set in the job definition. Parameters are specified as a\n key-value pair mapping. Parameters in a SubmitJob request override any corresponding parameter defaults\n from the job definition.

" + "smithy.api#documentation": "

Default parameter substitution placeholders to set in the job definition. Parameters are\n specified as a key-value pair mapping. Parameters in a SubmitJob request override\n any corresponding parameter defaults from the job definition.

" } }, "schedulingPriority": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The scheduling priority for jobs that are submitted with this job definition. This only affects jobs in job\n queues with a fair share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower\n scheduling priority.

\n

The minimum supported value is 0 and the maximum supported value is 9999.

" + "smithy.api#documentation": "

The scheduling priority for jobs that are submitted with this job definition. This only\n affects jobs in job queues with a fair share policy. Jobs with a higher scheduling priority\n are scheduled before jobs with a lower scheduling priority.

\n

The minimum supported value is 0 and the maximum supported value is 9999.

" } }, "containerProperties": { "target": "com.amazonaws.batch#ContainerProperties", "traits": { - "smithy.api#documentation": "

An object with various properties specific to Amazon ECS based single-node container-based jobs. If the job\n definition's type parameter is container, then you must specify either\n containerProperties or nodeProperties. This must not be specified for Amazon EKS based job\n definitions.

\n \n

If the job runs on Fargate resources, then you must not specify nodeProperties; use only\n containerProperties.

\n
" + "smithy.api#documentation": "

An object with properties specific to Amazon ECS-based single-node container-based jobs. If the\n job definition's type parameter is container, then you must specify\n either containerProperties or nodeProperties. This must not be\n specified for Amazon EKS-based job definitions.

\n \n

If the job runs on Fargate resources, then you must not specify\n nodeProperties; use only containerProperties.

\n
" } }, "nodeProperties": { "target": "com.amazonaws.batch#NodeProperties", "traits": { - "smithy.api#documentation": "

An object with various properties specific to multi-node parallel jobs. If you specify node properties for a\n job, it becomes a multi-node parallel job. For more information, see Multi-node Parallel Jobs in the\n Batch User Guide. If the job definition's type parameter is container,\n then you must specify either containerProperties or nodeProperties.

\n \n

If the job runs on Fargate resources, then you must not specify nodeProperties; use\n containerProperties instead.

\n
\n \n

If the job runs on Amazon EKS resources, then you must not specify nodeProperties.

\n
" + "smithy.api#documentation": "

An object with properties specific to multi-node parallel jobs. If you specify node\n properties for a job, it becomes a multi-node parallel job. For more information, see Multi-node Parallel\n Jobs in the Batch User Guide.

\n \n

If the job runs on Fargate resources, then you must not specify\n nodeProperties; use containerProperties instead.

\n
\n \n

If the job runs on Amazon EKS resources, then you must not specify\n nodeProperties.

\n
" } }, "retryStrategy": { "target": "com.amazonaws.batch#RetryStrategy", "traits": { - "smithy.api#documentation": "

The retry strategy to use for failed jobs that are submitted with this job definition. Any retry strategy that's\n specified during a SubmitJob operation overrides the retry strategy defined here. If a job is\n terminated due to a timeout, it isn't retried.

" + "smithy.api#documentation": "

The retry strategy to use for failed jobs that are submitted with this job definition. Any\n retry strategy that's specified during a SubmitJob operation overrides the\n retry strategy defined here. If a job is terminated due to a timeout, it isn't retried.

" } }, "propagateTags": { "target": "com.amazonaws.batch#Boolean", "traits": { - "smithy.api#documentation": "

Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If no\n value is specified, the tags are not propagated. Tags can only be propagated to the tasks during task creation. For\n tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags\n from the job and job definition is over 50, the job is moved to the FAILED state.

\n \n

If the job runs on Amazon EKS resources, then you must not specify propagateTags.

\n
" + "smithy.api#documentation": "

Specifies whether to propagate the tags from the job or job definition to the\n corresponding Amazon ECS task. If no value is specified, the tags are not propagated. Tags can only\n be propagated to the tasks during task creation. For tags with the same name, job tags are\n given priority over job definitions tags. If the total number of combined tags from the job\n and job definition is over 50, the job is moved to the FAILED state.

\n \n

If the job runs on Amazon EKS resources, then you must not specify\n propagateTags.

\n
" } }, "timeout": { "target": "com.amazonaws.batch#JobTimeout", "traits": { - "smithy.api#documentation": "

The timeout configuration for jobs that are submitted with this job definition, after which Batch terminates\n your jobs if they have not finished. If a job is terminated due to a timeout, it isn't retried. The minimum value for\n the timeout is 60 seconds. Any timeout configuration that's specified during a SubmitJob operation\n overrides the timeout configuration defined here. For more information, see Job Timeouts in the Batch User Guide.

" + "smithy.api#documentation": "

The timeout configuration for jobs that are submitted with this job definition, after\n which Batch terminates your jobs if they have not finished. If a job is terminated due to a\n timeout, it isn't retried. The minimum value for the timeout is 60 seconds. Any timeout\n configuration that's specified during a SubmitJob operation overrides the\n timeout configuration defined here. For more information, see Job Timeouts in the\n Batch User Guide.

" } }, "tags": { "target": "com.amazonaws.batch#TagrisTagsMap", "traits": { - "smithy.api#documentation": "

The tags that you apply to the job definition to help you categorize and organize your resources. Each tag\n consists of a key and an optional value. For more information, see Tagging Amazon Web Services Resources in Batch User Guide.

" + "smithy.api#documentation": "

The tags that you apply to the job definition to help you categorize and organize your\n resources. Each tag consists of a key and an optional value. For more information, see Tagging Amazon Web Services Resources in\n Batch User Guide.

" } }, "platformCapabilities": { "target": "com.amazonaws.batch#PlatformCapabilityList", "traits": { - "smithy.api#documentation": "

The platform capabilities required by the job definition. If no value is specified, it defaults to\n EC2. To run the job on Fargate resources, specify FARGATE.

\n \n

If the job runs on Amazon EKS resources, then you must not specify platformCapabilities.

\n
" + "smithy.api#documentation": "

The platform capabilities required by the job definition. If no value is specified, it\n defaults to EC2. To run the job on Fargate resources, specify\n FARGATE.

\n \n

If the job runs on Amazon EKS resources, then you must not specify\n platformCapabilities.

\n
" } }, "eksProperties": { "target": "com.amazonaws.batch#EksProperties", "traits": { - "smithy.api#documentation": "

An object with various properties that are specific to Amazon EKS based jobs. This must not be specified for Amazon ECS\n based job definitions.

" + "smithy.api#documentation": "

An object with properties that are specific to Amazon EKS-based jobs. This must not be\n specified for Amazon ECS based job definitions.

" + } + }, + "ecsProperties": { + "target": "com.amazonaws.batch#EcsProperties", + "traits": { + "smithy.api#documentation": "

An object with properties that are specific to Amazon ECS-based jobs. This must not be\n specified for Amazon EKS-based job definitions.

" } } }, @@ -6145,7 +6459,7 @@ "target": "com.amazonaws.batch#String", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the secret containing the private repository credentials.

", + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the secret containing the private repository\n credentials.

", "smithy.api#required": {} } } @@ -6161,7 +6475,7 @@ "target": "com.amazonaws.batch#String", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

The quantity of the specified resource to reserve for the container. The values vary based\n on the type specified.

\n
\n
type=\"GPU\"
\n
\n

The number of physical GPUs to reserve for the container. Make sure that the number of\n GPUs reserved for all containers in a job doesn't exceed the number of available GPUs on the\n compute resource that the job is launched on.

\n \n

GPUs aren't available for jobs that are running on Fargate resources.

\n
\n
\n
type=\"MEMORY\"
\n
\n

The memory hard limit (in MiB) present to the container. This parameter is supported for\n jobs that are running on EC2 resources. If your container attempts to exceed the memory\n specified, the container is terminated. This parameter maps to Memory in the\n Create a container section of the Docker Remote API and the\n --memory option to docker run. You\n must specify at least 4 MiB of memory for a job. This is required but can be specified in\n several places for multi-node parallel (MNP) jobs. It must be specified for each node at least\n once. This parameter maps to Memory in the Create a container\n section of the Docker Remote API and the --memory option to docker run.

\n \n

If you're trying to maximize your resource utilization by providing your jobs as much\n memory as possible for a particular instance type, see Memory management in the\n Batch User Guide.

\n
\n

For jobs that are running on Fargate resources, then value is the hard\n limit (in MiB), and must match one of the supported values and the VCPU values\n must be one of the values supported for that memory value.

\n
\n
value = 512
\n
\n

\n VCPU = 0.25

\n
\n
value = 1024
\n
\n

\n VCPU = 0.25 or 0.5

\n
\n
value = 2048
\n
\n

\n VCPU = 0.25, 0.5, or 1

\n
\n
value = 3072
\n
\n

\n VCPU = 0.5, or 1

\n
\n
value = 4096
\n
\n

\n VCPU = 0.5, 1, or 2

\n
\n
value = 5120, 6144, or 7168
\n
\n

\n VCPU = 1 or 2

\n
\n
value = 8192
\n
\n

\n VCPU = 1, 2, or 4

\n
\n
value = 9216, 10240, 11264, 12288, 13312, 14336, or 15360
\n
\n

\n VCPU = 2 or 4

\n
\n
value = 16384
\n
\n

\n VCPU = 2, 4, or 8

\n
\n
value = 17408, 18432, 19456, 21504, 22528, 23552, 25600, 26624, 27648, 29696, or 30720
\n
\n

\n VCPU = 4

\n
\n
value = 20480, 24576, or 28672
\n
\n

\n VCPU = 4 or 8

\n
\n
value = 36864, 45056, 53248, or 61440
\n
\n

\n VCPU = 8

\n
\n
value = 32768, 40960, 49152, or 57344
\n
\n

\n VCPU = 8 or 16

\n
\n
value = 65536, 73728, 81920, 90112, 98304, 106496, 114688, or 122880
\n
\n

\n VCPU = 16

\n
\n
\n
\n
type=\"VCPU\"
\n
\n

The number of vCPUs reserved for the container. This parameter maps to\n CpuShares in the Create a container section of the\n Docker Remote API and the --cpu-shares option to docker run. Each vCPU is equivalent to 1,024 CPU shares.\n For EC2 resources, you must specify at least one vCPU. This is required but can be specified\n in several places; it must be specified for each node at least once.

\n

The default for the Fargate On-Demand vCPU resource count quota is 6 vCPUs. For more\n information about Fargate quotas, see Fargate quotas\n in the Amazon Web Services General Reference.

\n

For jobs that are running on Fargate resources, then value must match one\n of the supported values and the MEMORY values must be one of the values supported\n for that VCPU value. The supported values are 0.25, 0.5, 1, 2, 4, 8, and\n 16

\n
\n
value = 0.25
\n
\n

\n MEMORY = 512, 1024, or 2048

\n
\n
value = 0.5
\n
\n

\n MEMORY = 1024, 2048, 3072, or 4096

\n
\n
value = 1
\n
\n

\n MEMORY = 2048, 3072, 4096, 5120, 6144, 7168, or 8192

\n
\n
value = 2
\n
\n

\n MEMORY = 4096, 5120, 6144, 7168, 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, or 16384

\n
\n
value = 4
\n
\n

\n MEMORY = 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, 16384, 17408, 18432, 19456,\n 20480, 21504, 22528, 23552, 24576, 25600, 26624, 27648, 28672, 29696, or 30720

\n
\n
value = 8
\n
\n

\n MEMORY = 16384, 20480, 24576, 28672, 32768, 36864, 40960, 45056, 49152, 53248, 57344, or 61440\n

\n
\n
value = 16
\n
\n

\n MEMORY = 32768, 40960, 49152, 57344, 65536, 73728, 81920, 90112, 98304, 106496, 114688, or 122880\n

\n
\n
\n
\n
", + "smithy.api#documentation": "

The quantity of the specified resource to reserve for the container. The values vary based\n on the type specified.

\n
\n
type=\"GPU\"
\n
\n

The number of physical GPUs to reserve for the container. Make sure that the number of\n GPUs reserved for all containers in a job doesn't exceed the number of available GPUs on the\n compute resource that the job is launched on.

\n \n

GPUs aren't available for jobs that are running on Fargate resources.

\n
\n
\n
type=\"MEMORY\"
\n
\n

The memory hard limit (in MiB) present to the container. This parameter is supported for\n jobs that are running on Amazon EC2 resources. If your container attempts to exceed the memory\n specified, the container is terminated. This parameter maps to Memory in the\n Create a container section of the Docker Remote API and the\n --memory option to docker run. You\n must specify at least 4 MiB of memory for a job. This is required but can be specified in\n several places for multi-node parallel (MNP) jobs. It must be specified for each node at least\n once. This parameter maps to Memory in the Create a container\n section of the Docker Remote API and the --memory option to docker run.

\n \n

If you're trying to maximize your resource utilization by providing your jobs as much\n memory as possible for a particular instance type, see Memory management in the\n Batch User Guide.

\n
\n

For jobs that are running on Fargate resources, then value is the hard\n limit (in MiB), and must match one of the supported values and the VCPU values\n must be one of the values supported for that memory value.

\n
\n
value = 512
\n
\n

\n VCPU = 0.25

\n
\n
value = 1024
\n
\n

\n VCPU = 0.25 or 0.5

\n
\n
value = 2048
\n
\n

\n VCPU = 0.25, 0.5, or 1

\n
\n
value = 3072
\n
\n

\n VCPU = 0.5, or 1

\n
\n
value = 4096
\n
\n

\n VCPU = 0.5, 1, or 2

\n
\n
value = 5120, 6144, or 7168
\n
\n

\n VCPU = 1 or 2

\n
\n
value = 8192
\n
\n

\n VCPU = 1, 2, or 4

\n
\n
value = 9216, 10240, 11264, 12288, 13312, 14336, or 15360
\n
\n

\n VCPU = 2 or 4

\n
\n
value = 16384
\n
\n

\n VCPU = 2, 4, or 8

\n
\n
value = 17408, 18432, 19456, 21504, 22528, 23552, 25600, 26624, 27648, 29696, or 30720
\n
\n

\n VCPU = 4

\n
\n
value = 20480, 24576, or 28672
\n
\n

\n VCPU = 4 or 8

\n
\n
value = 36864, 45056, 53248, or 61440
\n
\n

\n VCPU = 8

\n
\n
value = 32768, 40960, 49152, or 57344
\n
\n

\n VCPU = 8 or 16

\n
\n
value = 65536, 73728, 81920, 90112, 98304, 106496, 114688, or 122880
\n
\n

\n VCPU = 16

\n
\n
\n
\n
type=\"VCPU\"
\n
\n

The number of vCPUs reserved for the container. This parameter maps to\n CpuShares in the Create a container section of the\n Docker Remote API and the --cpu-shares option to docker run. Each vCPU is equivalent to 1,024 CPU shares.\n For Amazon EC2 resources, you must specify at least one vCPU. This is required but can be specified\n in several places; it must be specified for each node at least once.

\n

The default for the Fargate On-Demand vCPU resource count quota is 6 vCPUs. For more\n information about Fargate quotas, see Fargate quotas\n in the Amazon Web Services General Reference.

\n

For jobs that are running on Fargate resources, then value must match one\n of the supported values and the MEMORY values must be one of the values supported\n for that VCPU value. The supported values are 0.25, 0.5, 1, 2, 4, 8, and\n 16

\n
\n
value = 0.25
\n
\n

\n MEMORY = 512, 1024, or 2048

\n
\n
value = 0.5
\n
\n

\n MEMORY = 1024, 2048, 3072, or 4096

\n
\n
value = 1
\n
\n

\n MEMORY = 2048, 3072, 4096, 5120, 6144, 7168, or 8192

\n
\n
value = 2
\n
\n

\n MEMORY = 4096, 5120, 6144, 7168, 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, or 16384

\n
\n
value = 4
\n
\n

\n MEMORY = 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, 16384, 17408, 18432, 19456,\n 20480, 21504, 22528, 23552, 24576, 25600, 26624, 27648, 28672, 29696, or 30720

\n
\n
value = 8
\n
\n

\n MEMORY = 16384, 20480, 24576, 28672, 32768, 36864, 40960, 45056, 49152, 53248, 57344, or 61440\n

\n
\n
value = 16
\n
\n

\n MEMORY = 32768, 40960, 49152, 57344, 65536, 73728, 81920, 90112, 98304, 106496, 114688, or 122880\n

\n
\n
\n
\n
", "smithy.api#required": {} } }, @@ -6250,18 +6564,18 @@ "operatingSystemFamily": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The operating system for the compute environment.\n Valid values are:\n LINUX (default), WINDOWS_SERVER_2019_CORE,\n WINDOWS_SERVER_2019_FULL, WINDOWS_SERVER_2022_CORE, and\n WINDOWS_SERVER_2022_FULL.

\n \n

The following parameters can’t be set for Windows containers: linuxParameters,\n privileged, user, ulimits,\n readonlyRootFilesystem,\n and efsVolumeConfiguration.

\n
\n \n

The Batch Scheduler checks\n the compute environments\n that are attached to the job queue before registering a task definition with\n Fargate. In this\n scenario, the job queue is where the job is submitted. If the job requires a\n Windows container and the first compute environment is LINUX, the compute\n environment is skipped and the next compute environment is checked until a Windows-based compute\n environment is found.

\n
\n \n

Fargate Spot is not supported for\n ARM64 and\n Windows-based containers on Fargate. A job queue will be blocked if a\n Fargate\n ARM64 or\n Windows job is submitted to a job queue with only Fargate Spot compute environments.\n However, you can attach both FARGATE and\n FARGATE_SPOT compute environments to the same job queue.

\n
" + "smithy.api#documentation": "

The operating system for the compute environment.\n Valid values are:\n LINUX (default), WINDOWS_SERVER_2019_CORE,\n WINDOWS_SERVER_2019_FULL, WINDOWS_SERVER_2022_CORE, and\n WINDOWS_SERVER_2022_FULL.

\n \n

The following parameters can’t be set for Windows containers: linuxParameters,\n privileged, user, ulimits,\n readonlyRootFilesystem,\n and efsVolumeConfiguration.

\n
\n \n

The Batch Scheduler checks\n the compute environments\n that are attached to the job queue before registering a task definition with\n Fargate. In this\n scenario, the job queue is where the job is submitted. If the job requires a\n Windows container and the first compute environment is LINUX, the compute\n environment is skipped and the next compute environment is checked until a Windows-based compute\n environment is found.

\n
\n \n

Fargate Spot is not supported for\n ARM64 and\n Windows-based containers on Fargate. A job queue will be blocked if a\n Fargate\n ARM64 or\n Windows job is submitted to a job queue with only Fargate Spot compute environments.\n However, you can attach both FARGATE and\n FARGATE_SPOT compute environments to the same job queue.

\n
" } }, "cpuArchitecture": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

\n The vCPU architecture. The default value is X86_64. Valid values are\n X86_64 and ARM64.

\n \n

This parameter must be set to\n X86_64\n for Windows containers.

\n
\n \n

Fargate Spot is not supported for ARM64 and Windows-based containers on\n Fargate. A job queue will be blocked if a Fargate ARM64 or Windows job is\n submitted to a job queue with only Fargate Spot compute environments. However, you can attach\n both FARGATE and FARGATE_SPOT compute environments to the same job\n queue.

\n
" + "smithy.api#documentation": "

The vCPU architecture. The default value is X86_64. Valid values are\n X86_64 and ARM64.

\n \n

This parameter must be set to\n X86_64\n for Windows containers.

\n
\n \n

Fargate Spot is not supported for ARM64 and Windows-based containers on\n Fargate. A job queue will be blocked if a Fargate ARM64 or Windows job is\n submitted to a job queue with only Fargate Spot compute environments. However, you can attach\n both FARGATE and FARGATE_SPOT compute environments to the same job\n queue.

\n
" } } }, "traits": { - "smithy.api#documentation": "

\n An object that represents the compute environment architecture for Batch jobs on Fargate.\n

" + "smithy.api#documentation": "

An object that represents the compute environment architecture for Batch jobs on\n Fargate.

" } }, "com.amazonaws.batch#SchedulingPolicyDetail": { @@ -6425,7 +6739,7 @@ } ], "traits": { - "smithy.api#documentation": "

Submits an Batch job from a job definition. Parameters that are specified during SubmitJob\n override parameters defined in the job definition. vCPU and memory requirements that are specified in the\n resourceRequirements objects in the job definition are the exception. They can't be overridden this way\n using the memory and vcpus parameters. Rather, you must specify updates to job definition\n parameters in a resourceRequirements object that's included in the containerOverrides\n parameter.

\n \n

Job queues with a scheduling policy are limited to 500 active fair share identifiers at a time.

\n
\n \n

Jobs that run on Fargate resources can't be guaranteed to run for more than 14 days. This is because, after 14\n days, Fargate resources might become unavailable and job might be terminated.

\n
", + "smithy.api#documentation": "

Submits an Batch job from a job definition. Parameters that are specified during SubmitJob override parameters defined in the job definition. vCPU and memory\n requirements that are specified in the resourceRequirements objects in the job\n definition are the exception. They can't be overridden this way using the memory\n and vcpus parameters. Rather, you must specify updates to job definition\n parameters in a resourceRequirements object that's included in the\n containerOverrides parameter.

\n \n

Job queues with a scheduling policy are limited to 500 active fair share identifiers at\n a time.

\n
\n \n

Jobs that run on Fargate resources can't be guaranteed to run for more than 14 days.\n This is because, after 14 days, Fargate resources might become unavailable and job might be\n terminated.

\n
", "smithy.api#examples": [ { "title": "To submit a job to a queue", @@ -6455,7 +6769,7 @@ "target": "com.amazonaws.batch#String", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

The name of the job. It can be up to 128 letters long. The first character must be alphanumeric, can contain\n uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).

", + "smithy.api#documentation": "

The name of the job. It can be up to 128 letters long. The first character must be\n alphanumeric, can contain uppercase and lowercase letters, numbers, hyphens (-), and\n underscores (_).

", "smithy.api#required": {} } }, @@ -6463,7 +6777,7 @@ "target": "com.amazonaws.batch#String", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

The job queue where the job is submitted. You can specify either the name or the Amazon Resource Name (ARN) of the queue.

", + "smithy.api#documentation": "

The job queue where the job is submitted. You can specify either the name or the Amazon Resource Name (ARN)\n of the queue.

", "smithy.api#required": {} } }, @@ -6476,75 +6790,81 @@ "schedulingPriorityOverride": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The scheduling priority for the job. This only affects jobs in job queues with a fair share\n policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower\n scheduling priority.\n This\n overrides any scheduling priority in the job definition and works only within a single share\n identifier.

\n

The minimum supported value is 0 and the maximum supported value is 9999.

" + "smithy.api#documentation": "

The scheduling priority for the job. This only affects jobs in job queues with a fair\n share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower\n scheduling priority.\n This\n overrides any scheduling priority in the job definition and works only within a single share\n identifier.

\n

The minimum supported value is 0 and the maximum supported value is 9999.

" } }, "arrayProperties": { "target": "com.amazonaws.batch#ArrayProperties", "traits": { - "smithy.api#documentation": "

The array properties for the submitted job, such as the size of the array. The array size can be between 2 and\n 10,000. If you specify array properties for a job, it becomes an array job. For more information, see Array Jobs in the\n Batch User Guide.

" + "smithy.api#documentation": "

The array properties for the submitted job, such as the size of the array. The array size\n can be between 2 and 10,000. If you specify array properties for a job, it becomes an array\n job. For more information, see Array Jobs in the Batch User Guide.

" } }, "dependsOn": { "target": "com.amazonaws.batch#JobDependencyList", "traits": { - "smithy.api#documentation": "

A list of dependencies for the job. A job can depend upon a maximum of 20 jobs. You can specify a\n SEQUENTIAL type dependency without specifying a job ID for array jobs so that each child array job\n completes sequentially, starting at index 0. You can also specify an N_TO_N type dependency with a job\n ID for array jobs. In that case, each index child of this job must wait for the corresponding index child of each\n dependency to complete before it can begin.

" + "smithy.api#documentation": "

A list of dependencies for the job. A job can depend upon a maximum of 20 jobs. You can\n specify a SEQUENTIAL type dependency without specifying a job ID for array jobs\n so that each child array job completes sequentially, starting at index 0. You can also specify\n an N_TO_N type dependency with a job ID for array jobs. In that case, each index\n child of this job must wait for the corresponding index child of each dependency to complete\n before it can begin.

" } }, "jobDefinition": { "target": "com.amazonaws.batch#String", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

The job definition used by this job. This value can be one of definition-name,\n definition-name:revision, or the Amazon Resource Name (ARN) for the job definition, with or without the revision\n (arn:aws:batch:region:account:job-definition/definition-name:revision\n ,\n or\n arn:aws:batch:region:account:job-definition/definition-name\n ).

\n

If the revision is not specified, then the latest active revision is used.

", + "smithy.api#documentation": "

The job definition used by this job. This value can be one of\n definition-name, definition-name:revision, or the Amazon Resource Name (ARN) for the\n job definition, with or without the revision\n (arn:aws:batch:region:account:job-definition/definition-name:revision\n ,\n or\n arn:aws:batch:region:account:job-definition/definition-name\n ).

\n

If the revision is not specified, then the latest active revision is used.

", "smithy.api#required": {} } }, "parameters": { "target": "com.amazonaws.batch#ParametersMap", "traits": { - "smithy.api#documentation": "

Additional parameters passed to the job that replace parameter substitution placeholders that are set in the job\n definition. Parameters are specified as a key and value pair mapping. Parameters in a SubmitJob request\n override any corresponding parameter defaults from the job definition.

" + "smithy.api#documentation": "

Additional parameters passed to the job that replace parameter substitution placeholders\n that are set in the job definition. Parameters are specified as a key and value pair mapping.\n Parameters in a SubmitJob request override any corresponding parameter defaults\n from the job definition.

" } }, "containerOverrides": { "target": "com.amazonaws.batch#ContainerOverrides", "traits": { - "smithy.api#documentation": "

An object with various properties that override the defaults for the job definition that specify the name of a\n container in the specified job definition and the overrides it should receive. You can override the default command\n for a container, which is specified in the job definition or the Docker image, with a command override.\n You can also override existing environment variables on a container or add new environment variables to it with an\n environment override.

" + "smithy.api#documentation": "

An object with properties that override the defaults for the job definition that specify\n the name of a container in the specified job definition and the overrides it should receive.\n You can override the default command for a container, which is specified in the job definition\n or the Docker image, with a command override. You can also override existing\n environment variables on a container or add new environment variables to it with an\n environment override.

" } }, "nodeOverrides": { "target": "com.amazonaws.batch#NodeOverrides", "traits": { - "smithy.api#documentation": "

A list of node overrides in JSON format that specify the node range to target and the container overrides for\n that node range.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources; use\n containerOverrides instead.

\n
" + "smithy.api#documentation": "

A list of node overrides in JSON format that specify the node range to target and the\n container overrides for that node range.

\n \n

This parameter isn't applicable to jobs that are running on Fargate resources; use\n containerOverrides instead.

\n
" } }, "retryStrategy": { "target": "com.amazonaws.batch#RetryStrategy", "traits": { - "smithy.api#documentation": "

The retry strategy to use for failed jobs from this SubmitJob operation. When a retry strategy\n is specified here, it overrides the retry strategy defined in the job definition.

" + "smithy.api#documentation": "

The retry strategy to use for failed jobs from this SubmitJob operation.\n When a retry strategy is specified here, it overrides the retry strategy defined in the job\n definition.

" } }, "propagateTags": { "target": "com.amazonaws.batch#Boolean", "traits": { - "smithy.api#documentation": "

Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If no\n value is specified, the tags aren't propagated. Tags can only be propagated to the tasks during task creation. For\n tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags\n from the job and job definition is over 50, the job is moved to the FAILED state. When specified, this\n overrides the tag propagation setting in the job definition.

" + "smithy.api#documentation": "

Specifies whether to propagate the tags from the job or job definition to the\n corresponding Amazon ECS task. If no value is specified, the tags aren't propagated. Tags can only\n be propagated to the tasks during task creation. For tags with the same name, job tags are\n given priority over job definitions tags. If the total number of combined tags from the job\n and job definition is over 50, the job is moved to the FAILED state. When\n specified, this overrides the tag propagation setting in the job definition.

" } }, "timeout": { "target": "com.amazonaws.batch#JobTimeout", "traits": { - "smithy.api#documentation": "

The timeout configuration for this SubmitJob operation. You can specify a timeout duration\n after which Batch terminates your jobs if they haven't finished. If a job is terminated due to a timeout, it isn't\n retried. The minimum value for the timeout is 60 seconds. This configuration overrides any timeout configuration\n specified in the job definition. For array jobs, child jobs have the same timeout configuration as the parent job.\n For more information, see Job\n Timeouts in the Amazon Elastic Container Service Developer Guide.

" + "smithy.api#documentation": "

The timeout configuration for this SubmitJob operation. You can specify\n a timeout duration after which Batch terminates your jobs if they haven't finished. If a job\n is terminated due to a timeout, it isn't retried. The minimum value for the timeout is 60\n seconds. This configuration overrides any timeout configuration specified in the job\n definition. For array jobs, child jobs have the same timeout configuration as the parent job.\n For more information, see Job Timeouts in the\n Amazon Elastic Container Service Developer Guide.

" } }, "tags": { "target": "com.amazonaws.batch#TagrisTagsMap", "traits": { - "smithy.api#documentation": "

The tags that you apply to the job request to help you categorize and organize your resources. Each tag consists\n of a key and an optional value. For more information, see Tagging Amazon Web Services Resources in Amazon Web Services General\n Reference.

" + "smithy.api#documentation": "

The tags that you apply to the job request to help you categorize and organize your\n resources. Each tag consists of a key and an optional value. For more information, see Tagging Amazon Web Services\n Resources in Amazon Web Services General Reference.

" } }, "eksPropertiesOverride": { "target": "com.amazonaws.batch#EksPropertiesOverride", "traits": { - "smithy.api#documentation": "

An object that can only be specified for jobs that are run on Amazon EKS resources with various properties that\n override defaults for the job definition.

" + "smithy.api#documentation": "

An object, with properties that override defaults for the job definition, can only be specified for jobs that are run on Amazon EKS resources.

" + } + }, + "ecsPropertiesOverride": { + "target": "com.amazonaws.batch#EcsPropertiesOverride", + "traits": { + "smithy.api#documentation": "

An object, with properties that override defaults for the job definition, can only be specified for jobs that are run on Amazon ECS resources.

" } } }, @@ -6621,7 +6941,7 @@ } ], "traits": { - "smithy.api#documentation": "

Associates the specified tags to a resource with the specified resourceArn. If existing tags on a\n resource aren't specified in the request parameters, they aren't changed. When a resource is deleted, the tags that\n are associated with that resource are deleted as well. Batch resources that support tags are compute environments, jobs, job definitions, job queues,\n and scheduling policies. ARNs for child jobs of array and multi-node parallel (MNP) jobs aren't supported.

", + "smithy.api#documentation": "

Associates the specified tags to a resource with the specified resourceArn.\n If existing tags on a resource aren't specified in the request parameters, they aren't\n changed. When a resource is deleted, the tags that are associated with that resource are\n deleted as well. Batch resources that support tags are compute environments, jobs, job definitions, job queues,\n and scheduling policies. ARNs for child jobs of array and multi-node parallel (MNP) jobs aren't supported.

", "smithy.api#examples": [ { "title": "TagResource Example", @@ -6657,7 +6977,7 @@ "target": "com.amazonaws.batch#TagrisTagsMap", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

The tags that you apply to the resource to help you categorize and organize your resources. Each tag consists of\n a key and an optional value. For more information, see Tagging Amazon Web Services Resources in Amazon Web Services General\n Reference.

", + "smithy.api#documentation": "

The tags that you apply to the resource to help you categorize and organize your\n resources. Each tag consists of a key and an optional value. For more information, see Tagging Amazon Web Services\n Resources in Amazon Web Services General Reference.

", "smithy.api#required": {} } } @@ -6707,6 +7027,312 @@ "target": "com.amazonaws.batch#String" } }, + "com.amazonaws.batch#TaskContainerDependency": { + "type": "structure", + "members": { + "containerName": { + "target": "com.amazonaws.batch#String", + "traits": { + "smithy.api#documentation": "

A unique identifier for the container.

" + } + }, + "condition": { + "target": "com.amazonaws.batch#String", + "traits": { + "smithy.api#documentation": "

The dependency condition of the container. The following are the available conditions and\n their behavior:

\n
    \n
  • \n

    \n START - This condition emulates the behavior of links and volumes today. It validates that a dependent container is started before permitting other containers to start.

    \n
  • \n
  • \n

    \n COMPLETE - This condition validates that a dependent container runs to\n completion (exits) before permitting other containers to start. This can be useful for\n nonessential containers that run a script and then exit. This condition can't be set on an\n essential container.

    \n
  • \n
  • \n

    \n SUCCESS - This condition is the same as COMPLETE, but it also\n requires that the container exits with a zero status. This condition can't be set on an\n essential container.

    \n
  • \n
" + } + } + }, + "traits": { + "smithy.api#documentation": "

A list of containers that this task depends on.

" + } + }, + "com.amazonaws.batch#TaskContainerDependencyList": { + "type": "list", + "member": { + "target": "com.amazonaws.batch#TaskContainerDependency" + } + }, + "com.amazonaws.batch#TaskContainerDetails": { + "type": "structure", + "members": { + "command": { + "target": "com.amazonaws.batch#StringList", + "traits": { + "smithy.api#documentation": "

The command that's passed to the container. This parameter maps to Cmd in the\n Create a container section of the Docker Remote API and the COMMAND\n parameter to docker run. For more information, see\n https://docs.docker.com/engine/reference/builder/#cmd.

" + } + }, + "dependsOn": { + "target": "com.amazonaws.batch#TaskContainerDependencyList", + "traits": { + "smithy.api#documentation": "

A list of containers that this container depends on.

" + } + }, + "environment": { + "target": "com.amazonaws.batch#EnvironmentVariables", + "traits": { + "smithy.api#documentation": "

The environment variables to pass to a container. This parameter maps to Env in\n the Create a container section of the Docker Remote API and the\n --env option to docker run.

\n \n

We don't recommend using plaintext environment variables for sensitive information, such as\n credential data.

\n
" + } + }, + "essential": { + "target": "com.amazonaws.batch#Boolean", + "traits": { + "smithy.api#documentation": "

If the essential parameter of a container is marked as true, and that container\n fails or stops for any reason, all other containers that are part of the task are stopped. If the\n essential parameter of a container is marked as false, its failure doesn't affect\n the rest of the containers in a task. If this parameter is omitted, a container is assumed to be\n essential.

\n

All tasks must have at least one essential container. If you have an application that's\n composed of multiple containers, group containers that are used for a common purpose into\n components, and separate the different components into multiple task definitions. For more\n information, see Application\n Architecture in the Amazon Elastic Container Service Developer Guide.

" + } + }, + "image": { + "target": "com.amazonaws.batch#String", + "traits": { + "smithy.api#documentation": "

The image used to start a container. This string is passed directly to the Docker daemon. By\n default, images in the Docker Hub registry are available. Other repositories are specified with\n either repository-url/image:tag or repository-url/image@digest. Up to\n 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward\n slashes, and number signs are allowed. This parameter maps to Image in the Create a\n container section of the Docker\n Remote API and the IMAGE parameter of the \n docker\n run\n .

" + } + }, + "linuxParameters": { + "target": "com.amazonaws.batch#LinuxParameters", + "traits": { + "smithy.api#documentation": "

Linux-specific modifications that are applied to the container, such as Linux kernel\n capabilities. For more information, see KernelCapabilities.

\n \n

This parameter is not supported for Windows containers.

\n
" + } + }, + "logConfiguration": { + "target": "com.amazonaws.batch#LogConfiguration", + "traits": { + "smithy.api#documentation": "

The log configuration specification for the container.

\n

This parameter maps to LogConfig in the Create a\n container section of the Docker\n Remote API and the --log-driver option to docker\n run.

\n

By default, containers use the same logging driver that the Docker daemon uses. However the\n container can use a different logging driver than the Docker daemon by specifying a log driver\n with this parameter in the container definition. To use a different logging driver for a\n container, the log system must be configured properly on the container instance (or on a\n different log server for remote logging options). For more information about the options for\n different supported log drivers, see Configure logging drivers \n in the Docker documentation.

\n \n

Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon\n (shown in the LogConfiguration data type). Additional log drivers may be available\n in future releases of the Amazon ECS container agent.

\n
\n

This parameter requires version 1.18 of the Docker Remote API or greater on your container\n instance. To check the Docker Remote API version on your container instance, log in to your\n container instance and run the following command: sudo docker version --format\n '{{.Server.APIVersion}}'\n

\n \n

The Amazon ECS container agent running on a container instance must register the logging drivers\n available on that instance with the ECS_AVAILABLE_LOGGING_DRIVERS environment\n variable before containers placed on that instance can use these log configuration options. For\n more information, see Amazon ECS container agent\n configuration in the Amazon Elastic Container Service Developer Guide.

\n
" + } + }, + "mountPoints": { + "target": "com.amazonaws.batch#MountPoints", + "traits": { + "smithy.api#documentation": "

The mount points for data volumes in your container.

\n

This parameter maps to Volumes in the Create a\n container section of the Docker\n Remote API and the --volume option to docker\n run.

\n

Windows containers can mount whole directories on the same drive as\n $env:ProgramData. Windows containers can't mount directories on a different drive,\n and mount point can't be across drives.

" + } + }, + "name": { + "target": "com.amazonaws.batch#String", + "traits": { + "smithy.api#documentation": "

The name of a container.

" + } + }, + "privileged": { + "target": "com.amazonaws.batch#Boolean", + "traits": { + "smithy.api#documentation": "

When this parameter is true, the container is given elevated privileges on the\n host container instance (similar to the root user). This parameter maps to\n Privileged in the Create a\n container section of the Docker\n Remote API and the --privileged option to docker\n run.

\n \n

This parameter is not supported for Windows containers or tasks run on Fargate.

\n
" + } + }, + "readonlyRootFilesystem": { + "target": "com.amazonaws.batch#Boolean", + "traits": { + "smithy.api#documentation": "

When this parameter is true, the container is given read-only access to its root file\n system. This parameter maps to ReadonlyRootfs in the Create a\n container section of the Docker\n Remote API and the --read-only option to docker\n run.

\n \n

This parameter is not supported for Windows containers.

\n
" + } + }, + "repositoryCredentials": { + "target": "com.amazonaws.batch#RepositoryCredentials", + "traits": { + "smithy.api#documentation": "

The private repository authentication credentials to use.

" + } + }, + "resourceRequirements": { + "target": "com.amazonaws.batch#ResourceRequirements", + "traits": { + "smithy.api#documentation": "

The type and amount of a resource to assign to a container. The only supported resource is a\n GPU.

" + } + }, + "secrets": { + "target": "com.amazonaws.batch#SecretList", + "traits": { + "smithy.api#documentation": "

The secrets to pass to the container. For more information, see Specifying Sensitive\n Data in the Amazon Elastic Container Service Developer Guide.

" + } + }, + "ulimits": { + "target": "com.amazonaws.batch#Ulimits", + "traits": { + "smithy.api#documentation": "

A list of ulimits to set in the container. If a ulimit value is\n specified in a task definition, it overrides the default values set by Docker. This parameter\n maps to Ulimits in the Create a\n container section of the Docker\n Remote API and the --ulimit option to docker\n run.

\n

Amazon ECS tasks hosted on Fargate use the default resource limit values set by the operating\n system with the exception of the nofile resource limit parameter which Fargate overrides. The\n nofile resource limit sets a restriction on the number of open files that a\n container can use. The default nofile soft limit is 1024 and the\n default hard limit is 65535.

\n

This parameter requires version 1.18 of the Docker Remote API or greater on your container\n instance. To check the Docker Remote API version on your container instance, log in to your\n container instance and run the following command: sudo docker version --format\n '{{.Server.APIVersion}}'\n

\n \n

This parameter is not supported for Windows containers.

\n
" + } + }, + "user": { + "target": "com.amazonaws.batch#String", + "traits": { + "smithy.api#documentation": "

The user to use inside the container. This parameter maps to User in the Create a container\n section of the Docker Remote API and the --user option to docker run.

\n \n

When running tasks using the host network mode, don't run containers using the\n root user (UID 0). We recommend using a non-root user for better security.

\n
\n

You can specify the user using the following formats. If specifying a UID or\n GID, you must specify it as a positive integer.

\n
    \n
  • \n

    \n user\n

    \n
  • \n
  • \n

    \n user:group\n

    \n
  • \n
  • \n

    \n uid\n

    \n
  • \n
  • \n

    \n uid:gid\n

    \n
  • \n
  • \n

    \n user:gi\n

    \n
  • \n
  • \n

    \n uid:group\n

    \n
  • \n
  • \n

    \n \n

    \n
  • \n
\n \n

This parameter is not supported for Windows containers.

\n
" + } + }, + "exitCode": { + "target": "com.amazonaws.batch#Integer", + "traits": { + "smithy.api#documentation": "

The exit code returned upon completion.

" + } + }, + "reason": { + "target": "com.amazonaws.batch#String", + "traits": { + "smithy.api#documentation": "

A short (255 max characters) human-readable string to provide additional details for a\n running or stopped container.

" + } + }, + "logStreamName": { + "target": "com.amazonaws.batch#String", + "traits": { + "smithy.api#documentation": "

The name of the CloudWatch Logs log stream that's associated with the container. The log group for\n Batch jobs is /aws/batch/job. Each container attempt receives a log stream name when they reach\n the RUNNING status.

" + } + }, + "networkInterfaces": { + "target": "com.amazonaws.batch#NetworkInterfaceList", + "traits": { + "smithy.api#documentation": "

The network interfaces that are associated with the job.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The details for the container in this task attempt.

" + } + }, + "com.amazonaws.batch#TaskContainerOverrides": { + "type": "structure", + "members": { + "command": { + "target": "com.amazonaws.batch#StringList", + "traits": { + "smithy.api#documentation": "

The command to send to the container that overrides the default command from the Docker\n image or the job definition.

\n \n

This parameter can't contain an empty string.

\n
" + } + }, + "environment": { + "target": "com.amazonaws.batch#EnvironmentVariables", + "traits": { + "smithy.api#documentation": "

The environment variables to send to the container. You can add new environment variables,\n which are added to the container at launch, or you can override the existing environment\n variables from the Docker image or the job definition.

\n \n

Environment variables cannot start with AWS_BATCH. This naming convention is\n reserved for variables that Batch sets.

\n
" + } + }, + "name": { + "target": "com.amazonaws.batch#String", + "traits": { + "smithy.api#documentation": "

A pointer to the container that you want to override. The container's name provides a unique\n identifier for the container being used.

" + } + }, + "resourceRequirements": { + "target": "com.amazonaws.batch#ResourceRequirements", + "traits": { + "smithy.api#documentation": "

The type and amount of resources to assign to a container. This overrides the settings in\n the job definition. The supported resources include GPU, MEMORY, and\n VCPU.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The overrides that should be sent to a container.

\n

For information about using Batch overrides when you connect event sources to targets, see\n BatchContainerOverrides.

" + } + }, + "com.amazonaws.batch#TaskContainerProperties": { + "type": "structure", + "members": { + "command": { + "target": "com.amazonaws.batch#StringList", + "traits": { + "smithy.api#documentation": "

The command that's passed to the container. This parameter maps to Cmd in the\n Create a\n container section of the Docker\n Remote API and the COMMAND parameter to docker run. For more information,\n see Dockerfile reference:\n CMD.

" + } + }, + "dependsOn": { + "target": "com.amazonaws.batch#TaskContainerDependencyList", + "traits": { + "smithy.api#documentation": "

A list of containers that this container depends on.

" + } + }, + "environment": { + "target": "com.amazonaws.batch#EnvironmentVariables", + "traits": { + "smithy.api#documentation": "

The environment variables to pass to a container. This parameter maps to Env inthe Create a container\n section of the Docker Remote API\n and the --env parameter to docker run.

\n \n

We don't recommend using plaintext environment variables for sensitive information, such as\n credential data.

\n
\n \n

Environment variables cannot start with AWS_BATCH. This naming convention is\n reserved for variables that Batch sets.

\n
" + } + }, + "essential": { + "target": "com.amazonaws.batch#Boolean", + "traits": { + "smithy.api#documentation": "

If the essential parameter of a container is marked as true, and that container\n fails or stops for any reason, all other containers that are part of the task are stopped. If the\n essential parameter of a container is marked as false, its failure doesn't affect\n the rest of the containers in a task. If this parameter is omitted, a container is assumed to be\n essential.

\n

All tasks must have at least one essential container. If you have an application that's\n composed of multiple containers, group containers that are used for a common purpose into\n components, and separate the different components into multiple task definitions. For more\n information, see Application\n Architecture in the Amazon Elastic Container Service Developer Guide.

" + } + }, + "image": { + "target": "com.amazonaws.batch#String", + "traits": { + "smithy.api#clientOptional": {}, + "smithy.api#documentation": "

The image used to start a container. This string is passed directly to the Docker daemon. By\n default, images in the Docker Hub registry are available. Other repositories are specified with\n either repository-url/image:tag or repository-url/image@digest. Up to\n 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward\n slashes, and number signs are allowed. This parameter maps to Image in the Create a\n container section of the Docker\n Remote API and the IMAGE parameter of the \n docker\n run\n .

", + "smithy.api#required": {} + } + }, + "linuxParameters": { + "target": "com.amazonaws.batch#LinuxParameters", + "traits": { + "smithy.api#documentation": "

Linux-specific modifications that are applied to the container, such as Linux kernel\n capabilities. For more information, see KernelCapabilities.

" + } + }, + "logConfiguration": { + "target": "com.amazonaws.batch#LogConfiguration", + "traits": { + "smithy.api#documentation": "

The log configuration specification for the container.

\n

This parameter maps to LogConfig in the Create a\n container section of the Docker\n Remote API and the --log-driver option to docker\n run.

\n

By default, containers use the same logging driver that the Docker daemon uses. However the\n container can use a different logging driver than the Docker daemon by specifying a log driver\n with this parameter in the container definition. To use a different logging driver for a\n container, the log system must be configured properly on the container instance (or on a\n different log server for remote logging options). For more information about the options for\n different supported log drivers, see Configure logging drivers \n in the Docker documentation.

\n \n

Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon\n (shown in the LogConfiguration data type). Additional log drivers may be available\n in future releases of the Amazon ECS container agent.

\n
\n

This parameter requires version 1.18 of the Docker Remote API or greater on your container\n instance. To check the Docker Remote API version on your container instance, log in to your\n container instance and run the following command: sudo docker version --format\n '{{.Server.APIVersion}}'\n

\n \n

The Amazon ECS container agent running on a container instance must register the logging drivers\n available on that instance with the ECS_AVAILABLE_LOGGING_DRIVERS environment\n variable before containers placed on that instance can use these log configuration options. For\n more information, see Amazon ECS container agent\n configuration in the Amazon Elastic Container Service Developer Guide.

\n
" + } + }, + "mountPoints": { + "target": "com.amazonaws.batch#MountPoints", + "traits": { + "smithy.api#documentation": "

The mount points for data volumes in your container.

\n

This parameter maps to Volumes in the Create a\n container section of the Docker\n Remote API and the --volume option to docker\n run.

\n

Windows containers can mount whole directories on the same drive as\n $env:ProgramData. Windows containers can't mount directories on a different drive,\n and mount point can't be across drives.

" + } + }, + "name": { + "target": "com.amazonaws.batch#String", + "traits": { + "smithy.api#documentation": "

The name of a container. The name can be used as a unique identifier to target your dependsOn and Overrides objects.

" + } + }, + "privileged": { + "target": "com.amazonaws.batch#Boolean", + "traits": { + "smithy.api#documentation": "

When this parameter is true, the container is given elevated privileges on the\n host container instance (similar to the root user). This parameter maps to\n Privileged in the Create a\n container section of the Docker\n Remote API and the --privileged option to docker\n run.

\n \n

This parameter is not supported for Windows containers or tasks run on Fargate.

\n
" + } + }, + "readonlyRootFilesystem": { + "target": "com.amazonaws.batch#Boolean", + "traits": { + "smithy.api#documentation": "

When this parameter is true, the container is given read-only access to its root file\n system. This parameter maps to ReadonlyRootfs in the Create a\n container section of the Docker\n Remote API and the --read-only option to docker\n run.

\n \n

This parameter is not supported for Windows containers.

\n
" + } + }, + "repositoryCredentials": { + "target": "com.amazonaws.batch#RepositoryCredentials", + "traits": { + "smithy.api#documentation": "

The private repository authentication credentials to use.

" + } + }, + "resourceRequirements": { + "target": "com.amazonaws.batch#ResourceRequirements", + "traits": { + "smithy.api#documentation": "

The type and amount of a resource to assign to a container. The only supported resource is a\n GPU.

" + } + }, + "secrets": { + "target": "com.amazonaws.batch#SecretList", + "traits": { + "smithy.api#documentation": "

The secrets to pass to the container. For more information, see Specifying Sensitive\n Data in the Amazon Elastic Container Service Developer Guide.

" + } + }, + "ulimits": { + "target": "com.amazonaws.batch#Ulimits", + "traits": { + "smithy.api#documentation": "

A list of ulimits to set in the container. If a ulimit value is\n specified in a task definition, it overrides the default values set by Docker. This parameter\n maps to Ulimits in the Create a\n container section of the Docker\n Remote API and the --ulimit option to docker\n run.

\n

Amazon ECS tasks hosted on Fargate use the default resource limit values set by the operating\n system with the exception of the nofile resource limit parameter which Fargate overrides. The\n nofile resource limit sets a restriction on the number of open files that a\n container can use. The default nofile soft limit is 1024 and the\n default hard limit is 65535.

\n

This parameter requires version 1.18 of the Docker Remote API or greater on your container\n instance. To check the Docker Remote API version on your container instance, log in to your\n container instance and run the following command: sudo docker version --format\n '{{.Server.APIVersion}}'\n

\n \n

This parameter is not supported for Windows containers.

\n
" + } + }, + "user": { + "target": "com.amazonaws.batch#String", + "traits": { + "smithy.api#documentation": "

The user to use inside the container. This parameter maps to User in the Create a container\n section of the Docker Remote API and the --user option to docker run.

\n \n

When running tasks using the host network mode, don't run containers using the\n root user (UID 0). We recommend using a non-root user for better security.

\n
\n

You can specify the user using the following formats. If specifying a UID or\n GID, you must specify it as a positive integer.

\n
    \n
  • \n

    \n user\n

    \n
  • \n
  • \n

    \n user:group\n

    \n
  • \n
  • \n

    \n uid\n

    \n
  • \n
  • \n

    \n uid:gid\n

    \n
  • \n
  • \n

    \n user:gi\n

    \n
  • \n
  • \n

    \n uid:group\n

    \n
  • \n
\n \n

This parameter is not supported for Windows containers.

\n
" + } + } + }, + "traits": { + "smithy.api#documentation": "

Container properties are used for Amazon ECS-based job definitions. These properties to describe\n the container that's launched as part of a job.

" + } + }, + "com.amazonaws.batch#TaskPropertiesOverride": { + "type": "structure", + "members": { + "containers": { + "target": "com.amazonaws.batch#ListTaskContainerOverrides", + "traits": { + "smithy.api#documentation": "

The overrides for the container definition of a job.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

An object that contains overrides for the task definition of a job.

" + } + }, "com.amazonaws.batch#TerminateJob": { "type": "operation", "input": { @@ -6724,7 +7350,7 @@ } ], "traits": { - "smithy.api#documentation": "

Terminates a job in a job queue. Jobs that are in the STARTING or RUNNING state are\n terminated, which causes them to transition to FAILED. Jobs that have not progressed to the\n STARTING state are cancelled.

", + "smithy.api#documentation": "

Terminates a job in a job queue. Jobs that are in the STARTING or\n RUNNING state are terminated, which causes them to transition to\n FAILED. Jobs that have not progressed to the STARTING state are\n cancelled.

", "smithy.api#examples": [ { "title": "To terminate a job", @@ -6758,7 +7384,7 @@ "target": "com.amazonaws.batch#String", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

A message to attach to the job that explains the reason for canceling it. This message is returned by future\n DescribeJobs operations on the job. This message is also recorded in the Batch activity\n logs.

", + "smithy.api#documentation": "

A message to attach to the job that explains the reason for canceling it. This message is\n returned by future DescribeJobs operations on the job. This message is also\n recorded in the Batch activity logs.

", "smithy.api#required": {} } } @@ -6826,7 +7452,7 @@ "target": "com.amazonaws.batch#String", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

The type of the ulimit. Valid values are: core | cpu | \n data | fsize | locks | memlock | msgqueue | \n nice | nofile | nproc | rss | rtprio | \n rttime | sigpending | stack.

", + "smithy.api#documentation": "

The type of the ulimit. Valid values are: core |\n cpu | data | fsize | locks |\n memlock | msgqueue | nice | nofile |\n nproc | rss | rtprio | rttime |\n sigpending | stack.

", "smithy.api#required": {} } }, @@ -6840,7 +7466,7 @@ } }, "traits": { - "smithy.api#documentation": "

The ulimit settings to pass to the container. For more information, see \n Ulimit.

\n \n

This object isn't applicable to jobs that are running on Fargate resources.

\n
" + "smithy.api#documentation": "

The ulimit settings to pass to the container. For more information, see Ulimit.

\n \n

This object isn't applicable to jobs that are running on Fargate resources.

\n
" } }, "com.amazonaws.batch#Ulimits": { @@ -6977,25 +7603,25 @@ "unmanagedvCpus": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The maximum number of vCPUs expected to be used for an unmanaged compute environment. Don't specify this\n parameter for a managed compute environment. This parameter is only used for fair share scheduling to reserve vCPU\n capacity for new share identifiers. If this parameter isn't provided for a fair share job queue, no vCPU capacity is\n reserved.

" + "smithy.api#documentation": "

The maximum number of vCPUs expected to be used for an unmanaged compute environment.\n Don't specify this parameter for a managed compute environment. This parameter is only used\n for fair share scheduling to reserve vCPU capacity for new share identifiers. If this\n parameter isn't provided for a fair share job queue, no vCPU capacity is reserved.

" } }, "computeResources": { "target": "com.amazonaws.batch#ComputeResourceUpdate", "traits": { - "smithy.api#documentation": "

Details of the compute resources managed by the compute environment. Required for a managed compute environment.\n For more information, see Compute\n Environments in the Batch User Guide.

" + "smithy.api#documentation": "

Details of the compute resources managed by the compute environment. Required for a\n managed compute environment. For more information, see Compute Environments in the\n Batch User Guide.

" } }, "serviceRole": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

The full Amazon Resource Name (ARN) of the IAM role that allows Batch to make calls to other Amazon Web Services services on your behalf.\n For more information, see Batch service IAM\n role in the Batch User Guide.

\n \n

If the compute environment has a service-linked role, it can't be changed to use a regular IAM role.\n Likewise, if the compute environment has a regular IAM role, it can't be changed to use a service-linked role. To\n update the parameters for the compute environment that require an infrastructure update to change, the AWSServiceRoleForBatch service-linked role must be used. For more information, see\n Updating compute\n environments in the Batch User Guide.

\n
\n

If your specified role has a path other than /, then you must either specify the full role ARN\n (recommended) or prefix the role name with the path.

\n \n

Depending on how you created your Batch service role, its ARN might contain the service-role\n path prefix. When you only specify the name of the service role, Batch assumes that your ARN doesn't use the\n service-role path prefix. Because of this, we recommend that you specify the full ARN of your service\n role when you create compute environments.

\n
" + "smithy.api#documentation": "

The full Amazon Resource Name (ARN) of the IAM role that allows Batch to make calls to other Amazon Web Services\n services on your behalf. For more information, see Batch service IAM role in the\n Batch User Guide.

\n \n

If the compute environment has a service-linked role, it can't be changed to use a\n regular IAM role. Likewise, if the compute environment has a regular IAM role, it can't\n be changed to use a service-linked role. To update the parameters for the compute\n environment that require an infrastructure update to change, the AWSServiceRoleForBatch service-linked role must be used. For more information,\n see Updating\n compute environments in the Batch User Guide.

\n
\n

If your specified role has a path other than /, then you must either specify\n the full role ARN (recommended) or prefix the role name with the path.

\n \n

Depending on how you created your Batch service role, its ARN might contain the\n service-role path prefix. When you only specify the name of the service role,\n Batch assumes that your ARN doesn't use the service-role path prefix. Because\n of this, we recommend that you specify the full ARN of your service role when you create\n compute environments.

\n
" } }, "updatePolicy": { "target": "com.amazonaws.batch#UpdatePolicy", "traits": { - "smithy.api#documentation": "

Specifies the updated infrastructure update policy for the compute environment. For more information about\n infrastructure updates, see Updating\n compute environments in the Batch User Guide.

" + "smithy.api#documentation": "

Specifies the updated infrastructure update policy for the compute environment. For more\n information about infrastructure updates, see Updating compute environments in\n the Batch User Guide.

" } } }, @@ -7077,25 +7703,25 @@ "state": { "target": "com.amazonaws.batch#JQState", "traits": { - "smithy.api#documentation": "

Describes the queue's ability to accept new jobs. If the job queue state is ENABLED, it can accept\n jobs. If the job queue state is DISABLED, new jobs can't be added to the queue, but jobs already in the\n queue can finish.

" + "smithy.api#documentation": "

Describes the queue's ability to accept new jobs. If the job queue state is\n ENABLED, it can accept jobs. If the job queue state is DISABLED,\n new jobs can't be added to the queue, but jobs already in the queue can finish.

" } }, "schedulingPolicyArn": { "target": "com.amazonaws.batch#String", "traits": { - "smithy.api#documentation": "

Amazon Resource Name (ARN) of the fair share scheduling policy. Once a job queue is created, the fair share scheduling policy can\n be replaced but not removed. The format is\n aws:Partition:batch:Region:Account:scheduling-policy/Name\n .\n For example,\n aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

" + "smithy.api#documentation": "

Amazon Resource Name (ARN) of the fair share scheduling policy. Once a job queue is created, the fair share\n scheduling policy can be replaced but not removed. The format is\n aws:Partition:batch:Region:Account:scheduling-policy/Name\n .\n For example,\n aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

" } }, "priority": { "target": "com.amazonaws.batch#Integer", "traits": { - "smithy.api#documentation": "

The priority of the job queue. Job queues with a higher priority (or a higher integer value for the\n priority parameter) are evaluated first when associated with the same compute environment. Priority is\n determined in descending order. For example, a job queue with a priority value of 10 is given scheduling\n preference over a job queue with a priority value of 1. All of the compute environments must be either\n EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT). EC2 and\n Fargate compute environments can't be mixed.

" + "smithy.api#documentation": "

The priority of the job queue. Job queues with a higher priority (or a higher integer\n value for the priority parameter) are evaluated first when associated with the\n same compute environment. Priority is determined in descending order. For example, a job queue\n with a priority value of 10 is given scheduling preference over a job queue with\n a priority value of 1. All of the compute environments must be either EC2\n (EC2 or SPOT) or Fargate (FARGATE or\n FARGATE_SPOT). EC2 and Fargate compute environments can't be mixed.

" } }, "computeEnvironmentOrder": { "target": "com.amazonaws.batch#ComputeEnvironmentOrders", "traits": { - "smithy.api#documentation": "

Details the set of compute environments mapped to a job queue and their order relative to each other. This is\n one of the parameters used by the job scheduler to determine which compute environment runs a given job. Compute\n environments must be in the VALID state before you can associate them with a job queue. All of\n the compute environments must be either EC2 (EC2 or SPOT) or Fargate\n (FARGATE or FARGATE_SPOT). EC2 and Fargate compute environments can't be mixed.

\n \n

All compute environments that are associated with a job queue must share the same architecture. Batch doesn't\n support mixing compute environment architecture types in a single job queue.

\n
" + "smithy.api#documentation": "

Details the set of compute environments mapped to a job queue and their order relative to\n each other. This is one of the parameters used by the job scheduler to determine which compute\n environment runs a given job. Compute environments must be in the VALID state\n before you can associate them with a job queue. All of the compute environments must be either\n EC2 (EC2 or SPOT) or Fargate (FARGATE or\n FARGATE_SPOT). EC2 and Fargate compute environments can't be mixed.

\n \n

All compute environments that are associated with a job queue must share the same\n architecture. Batch doesn't support mixing compute environment architecture types in a\n single job queue.

\n
" } } },