cdk-lambda-subminute 2.0.389 → 2.0.390

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -422,7 +422,7 @@ declare namespace Batch {
422
422
  */
423
423
  instanceRole?: String;
424
424
  /**
425
- * Key-value pair tags to be applied to 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 ListTagsForResource API operation. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
425
+ * 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 ListTagsForResource API operation. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
426
426
  */
427
427
  tags?: TagsMap;
428
428
  /**
@@ -442,7 +442,7 @@ declare namespace Batch {
442
442
  */
443
443
  launchTemplate?: LaunchTemplateSpecification;
444
444
  /**
445
- * 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 ECS_AL2. One or two values can be provided. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
445
+ * 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. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
446
446
  */
447
447
  ec2Configuration?: Ec2ConfigurationList;
448
448
  }
@@ -460,11 +460,11 @@ declare namespace Batch {
460
460
  */
461
461
  desiredvCpus?: Integer;
462
462
  /**
463
- * 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, 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. When updating a compute environment, changing the VPC subnets requires an infrastructure update of the compute environment. For more information, see Updating compute environments in the Batch User Guide. Batch on Amazon EC2 and Batch on Amazon EKS support Local Zones. For more information, see Local Zones in the Amazon EC2 User Guide for Linux Instances, Amazon EKS and Amazon Web Services Local Zones in the Amazon EKS User Guide and Amazon ECS clusters in Local Zones, Wavelength Zones, and Amazon Web Services Outposts in the Amazon ECS Developer Guide. Batch on Fargate doesn't currently support Local Zones.
463
+ * 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 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. When updating a compute environment, changing the VPC subnets requires an infrastructure update of the compute environment. For more information, see Updating compute environments in the Batch User Guide. Batch on Amazon EC2 and Batch on Amazon EKS support Local Zones. For more information, see Local Zones in the Amazon EC2 User Guide for Linux Instances, Amazon EKS and Amazon Web Services Local Zones in the Amazon EKS User Guide and Amazon ECS clusters in Local Zones, Wavelength Zones, and Amazon Web Services Outposts in the Amazon ECS Developer Guide. Batch on Fargate doesn't currently support Local Zones.
464
464
  */
465
465
  subnets?: StringList;
466
466
  /**
467
- * 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 empty list removes the security groups from the compute resource. When updating a compute environment, changing the EC2 security groups requires an infrastructure update of the compute environment. For more information, see Updating compute environments in the Batch User Guide.
467
+ * 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 Amazon EC2 compute resources, providing an empty list removes the security groups from the compute resource. 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.
468
468
  */
469
469
  securityGroupIds?: StringList;
470
470
  /**
@@ -476,7 +476,7 @@ declare namespace Batch {
476
476
  */
477
477
  instanceTypes?: StringList;
478
478
  /**
479
- * 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 update of the compute environment. For more information, see Updating compute environments in the Batch User Guide. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
479
+ * 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 Amazon EC2 key pair requires an infrastructure update of the compute environment. For more information, see Updating compute environments in the Batch User Guide. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
480
480
  */
481
481
  ec2KeyPair?: String;
482
482
  /**
@@ -484,7 +484,7 @@ declare namespace Batch {
484
484
  */
485
485
  instanceRole?: String;
486
486
  /**
487
- * Key-value pair tags to be applied to 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. These tags aren't seen when using the Batch ListTagsForResource API operation. 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. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
487
+ * 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. These tags aren't seen when using the Batch ListTagsForResource API operation. 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. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
488
488
  */
489
489
  tags?: TagsMap;
490
490
  /**
@@ -500,7 +500,7 @@ declare namespace Batch {
500
500
  */
501
501
  launchTemplate?: LaunchTemplateSpecification;
502
502
  /**
503
- * Provides information used to select Amazon Machine Images (AMIs) for 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 specified in imageIdOverride, set this value to an empty string. One or two values can be provided. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
503
+ * 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 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. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
504
504
  */
505
505
  ec2Configuration?: Ec2ConfigurationList;
506
506
  /**
@@ -522,11 +522,11 @@ declare namespace Batch {
522
522
  */
523
523
  image?: String;
524
524
  /**
525
- * 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.
525
+ * 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.
526
526
  */
527
527
  vcpus?: Integer;
528
528
  /**
529
- * 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.
529
+ * 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.
530
530
  */
531
531
  memory?: Integer;
532
532
  /**
@@ -570,7 +570,7 @@ declare namespace Batch {
570
570
  */
571
571
  user?: String;
572
572
  /**
573
- * The exit code to return upon completion.
573
+ * The exit code returned upon completion.
574
574
  */
575
575
  exitCode?: Integer;
576
576
  /**
@@ -614,11 +614,11 @@ declare namespace Batch {
614
614
  */
615
615
  secrets?: SecretList;
616
616
  /**
617
- * The network configuration for jobs that are running on Fargate resources. Jobs that are running on EC2 resources must not specify this parameter.
617
+ * The network configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter.
618
618
  */
619
619
  networkConfiguration?: NetworkConfiguration;
620
620
  /**
621
- * The platform configuration for jobs that are running on Fargate resources. Jobs that are running on EC2 resources must not specify this parameter.
621
+ * The platform configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter.
622
622
  */
623
623
  fargatePlatformConfiguration?: FargatePlatformConfiguration;
624
624
  /**
@@ -636,11 +636,11 @@ declare namespace Batch {
636
636
  }
637
637
  export interface ContainerOverrides {
638
638
  /**
639
- * 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 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 structure in the job definition, resourceRequirements must be specified in the SubmitJob request, with type set to VCPU and value set to the new value. For more information, see Can't override job definition resource requirements in the Batch User Guide.
639
+ * 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 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 structure in the job definition, resourceRequirements must be specified in the SubmitJob request, with type set to VCPU and value set to the new value. For more information, see Can't override job definition resource requirements in the Batch User Guide.
640
640
  */
641
641
  vcpus?: Integer;
642
642
  /**
643
- * 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 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 request, with type set to MEMORY and value set to the new value. For more information, see Can't override job definition resource requirements in the Batch User Guide.
643
+ * 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 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 request, with type set to MEMORY and value set to the new value. For more information, see Can't override job definition resource requirements in the Batch User Guide.
644
644
  */
645
645
  memory?: Integer;
646
646
  /**
@@ -666,11 +666,11 @@ declare namespace Batch {
666
666
  */
667
667
  image?: String;
668
668
  /**
669
- * 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. 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 number of vCPUs must be specified but can be specified in several places. You must specify it at least once for each node.
669
+ * 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 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 number of vCPUs must be specified but can be specified in several places. You must specify it at least once for each node.
670
670
  */
671
671
  vcpus?: Integer;
672
672
  /**
673
- * 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.
673
+ * 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 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.
674
674
  */
675
675
  memory?: Integer;
676
676
  /**
@@ -734,11 +734,11 @@ declare namespace Batch {
734
734
  */
735
735
  secrets?: SecretList;
736
736
  /**
737
- * The network configuration for jobs that are running on Fargate resources. Jobs that are running on EC2 resources must not specify this parameter.
737
+ * The network configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter.
738
738
  */
739
739
  networkConfiguration?: NetworkConfiguration;
740
740
  /**
741
- * The platform configuration for jobs that are running on Fargate resources. Jobs that are running on EC2 resources must not specify this parameter.
741
+ * The platform configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter.
742
742
  */
743
743
  fargatePlatformConfiguration?: FargatePlatformConfiguration;
744
744
  /**
@@ -1070,9 +1070,119 @@ declare namespace Batch {
1070
1070
  imageKubernetesVersion?: KubernetesVersion;
1071
1071
  }
1072
1072
  export type Ec2ConfigurationList = Ec2Configuration[];
1073
+ export interface EcsProperties {
1074
+ /**
1075
+ * An object that contains the properties for the Amazon ECS task definition of a job. This object is currently limited to one element.
1076
+ */
1077
+ taskProperties: ListEcsTaskProperties;
1078
+ }
1079
+ export interface EcsPropertiesDetail {
1080
+ /**
1081
+ * The properties for the Amazon ECS task definition of a job.
1082
+ */
1083
+ taskProperties?: ListEcsTaskDetails;
1084
+ }
1085
+ export interface EcsPropertiesOverride {
1086
+ /**
1087
+ * The overrides for the Amazon ECS task definition of a job. This object is currently limited to one element.
1088
+ */
1089
+ taskProperties?: ListTaskPropertiesOverride;
1090
+ }
1091
+ export interface EcsTaskDetails {
1092
+ /**
1093
+ * A list of containers that are included in the taskProperties list.
1094
+ */
1095
+ containers?: ListTaskContainerDetails;
1096
+ /**
1097
+ * The Amazon Resource Name (ARN) of the container instance that hosts the task.
1098
+ */
1099
+ containerInstanceArn?: String;
1100
+ /**
1101
+ * The ARN of the Amazon ECS task.
1102
+ */
1103
+ taskArn?: String;
1104
+ /**
1105
+ * The amount of ephemeral storage allocated for the task.
1106
+ */
1107
+ ephemeralStorage?: EphemeralStorage;
1108
+ /**
1109
+ * 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.
1110
+ */
1111
+ executionRoleArn?: String;
1112
+ /**
1113
+ * The Fargate platform version where the jobs are running.
1114
+ */
1115
+ platformVersion?: String;
1116
+ /**
1117
+ * The IPC resource namespace to use for the containers in the task.
1118
+ */
1119
+ ipcMode?: String;
1120
+ /**
1121
+ * 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.
1122
+ */
1123
+ taskRoleArn?: String;
1124
+ /**
1125
+ * The process namespace to use for the containers in the task.
1126
+ */
1127
+ pidMode?: String;
1128
+ /**
1129
+ * The network configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter.
1130
+ */
1131
+ networkConfiguration?: NetworkConfiguration;
1132
+ /**
1133
+ * An object that represents the compute environment architecture for Batch jobs on Fargate.
1134
+ */
1135
+ runtimePlatform?: RuntimePlatform;
1136
+ /**
1137
+ * A list of data volumes used in a job.
1138
+ */
1139
+ volumes?: Volumes;
1140
+ }
1141
+ export interface EcsTaskProperties {
1142
+ /**
1143
+ * This object is a list of containers.
1144
+ */
1145
+ containers: ListTaskContainerProperties;
1146
+ /**
1147
+ * 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.
1148
+ */
1149
+ ephemeralStorage?: EphemeralStorage;
1150
+ /**
1151
+ * 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.
1152
+ */
1153
+ executionRoleArn?: String;
1154
+ /**
1155
+ * 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.
1156
+ */
1157
+ platformVersion?: String;
1158
+ /**
1159
+ * 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.
1160
+ */
1161
+ ipcMode?: String;
1162
+ /**
1163
+ * The Amazon Resource Name (ARN) that's associated with the Amazon ECS task. This is object is comparable to ContainerProperties:jobRoleArn.
1164
+ */
1165
+ taskRoleArn?: String;
1166
+ /**
1167
+ * 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.
1168
+ */
1169
+ pidMode?: String;
1170
+ /**
1171
+ * The network configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources must not specify this parameter.
1172
+ */
1173
+ networkConfiguration?: NetworkConfiguration;
1174
+ /**
1175
+ * An object that represents the compute environment architecture for Batch jobs on Fargate.
1176
+ */
1177
+ runtimePlatform?: RuntimePlatform;
1178
+ /**
1179
+ * A list of volumes that are associated with the job.
1180
+ */
1181
+ volumes?: Volumes;
1182
+ }
1073
1183
  export interface EksAttemptContainerDetail {
1074
1184
  /**
1075
- * The exit code for the job attempt. A non-zero exit code is considered failed.
1185
+ * The exit code returned for the job attempt. A non-zero exit code is considered failed.
1076
1186
  */
1077
1187
  exitCode?: Integer;
1078
1188
  /**
@@ -1086,6 +1196,10 @@ declare namespace Batch {
1086
1196
  * The details for the final status of the containers for this job attempt.
1087
1197
  */
1088
1198
  containers?: EksAttemptContainerDetails;
1199
+ /**
1200
+ * The details for the init containers.
1201
+ */
1202
+ initContainers?: EksAttemptContainerDetails;
1089
1203
  /**
1090
1204
  * The name of the pod for this job attempt.
1091
1205
  */
@@ -1136,7 +1250,7 @@ declare namespace Batch {
1136
1250
  */
1137
1251
  command?: StringList;
1138
1252
  /**
1139
- * 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 documentation.
1253
+ * 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 Dockerfile reference: CMD and Define a command and arguments for a pod in the Kubernetes documentation.
1140
1254
  */
1141
1255
  args?: StringList;
1142
1256
  /**
@@ -1174,7 +1288,7 @@ declare namespace Batch {
1174
1288
  */
1175
1289
  command?: StringList;
1176
1290
  /**
1177
- * 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 documentation.
1291
+ * 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 Dockerfile reference: CMD and Define a command and arguments for a pod in the Kubernetes documentation.
1178
1292
  */
1179
1293
  args?: StringList;
1180
1294
  /**
@@ -1186,7 +1300,7 @@ declare namespace Batch {
1186
1300
  */
1187
1301
  resources?: EksContainerResourceRequirements;
1188
1302
  /**
1189
- * The exit code for the job attempt. A non-zero exit code is considered failed.
1303
+ * The exit code returned for the job attempt. A non-zero exit code is considered failed.
1190
1304
  */
1191
1305
  exitCode?: Integer;
1192
1306
  /**
@@ -1215,6 +1329,10 @@ declare namespace Batch {
1215
1329
  }
1216
1330
  export type EksContainerEnvironmentVariables = EksContainerEnvironmentVariable[];
1217
1331
  export interface EksContainerOverride {
1332
+ /**
1333
+ * A pointer to the container that you want to override. The name must match a unique container name that you wish to override.
1334
+ */
1335
+ name?: String;
1218
1336
  /**
1219
1337
  * The override of the Docker image that's used to start the container.
1220
1338
  */
@@ -1224,7 +1342,7 @@ declare namespace Batch {
1224
1342
  */
1225
1343
  command?: StringList;
1226
1344
  /**
1227
- * 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 documentation.
1345
+ * 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 Dockerfile reference: CMD and Define a command an arguments for a pod in the Kubernetes documentation.
1228
1346
  */
1229
1347
  args?: StringList;
1230
1348
  /**
@@ -1326,6 +1444,10 @@ declare namespace Batch {
1326
1444
  * The properties of the container that's used on the Amazon EKS pod.
1327
1445
  */
1328
1446
  containers?: EksContainers;
1447
+ /**
1448
+ * 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
1449
+ */
1450
+ initContainers?: EksContainers;
1329
1451
  /**
1330
1452
  * Specifies the volumes for a job definition that uses Amazon EKS resources.
1331
1453
  */
@@ -1334,6 +1456,10 @@ declare namespace Batch {
1334
1456
  * Metadata about the Kubernetes pod. For more information, see Understanding Kubernetes Objects in the Kubernetes documentation.
1335
1457
  */
1336
1458
  metadata?: EksMetadata;
1459
+ /**
1460
+ * 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.
1461
+ */
1462
+ shareProcessNamespace?: Boolean;
1337
1463
  }
1338
1464
  export interface EksPodPropertiesDetail {
1339
1465
  /**
@@ -1352,6 +1478,10 @@ declare namespace Batch {
1352
1478
  * The properties of the container that's used on the Amazon EKS pod.
1353
1479
  */
1354
1480
  containers?: EksContainerDetails;
1481
+ /**
1482
+ * The container registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store.
1483
+ */
1484
+ initContainers?: EksContainerDetails;
1355
1485
  /**
1356
1486
  * Specifies the volumes for a job definition using Amazon EKS resources.
1357
1487
  */
@@ -1368,12 +1498,20 @@ declare namespace Batch {
1368
1498
  * 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.
1369
1499
  */
1370
1500
  metadata?: EksMetadata;
1501
+ /**
1502
+ * 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.
1503
+ */
1504
+ shareProcessNamespace?: Boolean;
1371
1505
  }
1372
1506
  export interface EksPodPropertiesOverride {
1373
1507
  /**
1374
1508
  * The overrides for the container that's used on the Amazon EKS pod.
1375
1509
  */
1376
1510
  containers?: EksContainerOverrideList;
1511
+ /**
1512
+ * 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
1513
+ */
1514
+ initContainers?: EksContainerOverrideList;
1377
1515
  /**
1378
1516
  * Metadata about the overrides for the container that's used on the Amazon EKS pod.
1379
1517
  */
@@ -1519,7 +1657,7 @@ declare namespace Batch {
1519
1657
  */
1520
1658
  retryStrategy?: RetryStrategy;
1521
1659
  /**
1522
- * An object with various properties specific to Amazon ECS based jobs. Valid values are containerProperties, eksProperties, and nodeProperties. Only one can be specified.
1660
+ * 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.
1523
1661
  */
1524
1662
  containerProperties?: ContainerProperties;
1525
1663
  /**
@@ -1527,7 +1665,7 @@ declare namespace Batch {
1527
1665
  */
1528
1666
  timeout?: JobTimeout;
1529
1667
  /**
1530
- * 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. If the job runs on Fargate resources, don't specify nodeProperties. Use containerProperties instead.
1668
+ * 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.
1531
1669
  */
1532
1670
  nodeProperties?: NodeProperties;
1533
1671
  /**
@@ -1543,7 +1681,11 @@ declare namespace Batch {
1543
1681
  */
1544
1682
  platformCapabilities?: PlatformCapabilityList;
1545
1683
  /**
1546
- * 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.
1684
+ * 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.
1685
+ */
1686
+ ecsProperties?: EcsProperties;
1687
+ /**
1688
+ * 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.
1547
1689
  */
1548
1690
  eksProperties?: EksProperties;
1549
1691
  /**
@@ -1630,7 +1772,7 @@ declare namespace Batch {
1630
1772
  */
1631
1773
  parameters?: ParametersMap;
1632
1774
  /**
1633
- * An object that represents the details for the container that's associated with the job.
1775
+ * An object that represents the details for the container that's associated with the job. If the details are for a multiple-container job, this object will be empty.
1634
1776
  */
1635
1777
  container?: ContainerDetail;
1636
1778
  /**
@@ -1662,13 +1804,17 @@ declare namespace Batch {
1662
1804
  */
1663
1805
  platformCapabilities?: PlatformCapabilityList;
1664
1806
  /**
1665
- * An object with various properties that are specific to Amazon EKS based jobs. Only one of container, eksProperties, or nodeDetails is specified.
1807
+ * An object with various properties that are specific to Amazon EKS based jobs.
1666
1808
  */
1667
1809
  eksProperties?: EksPropertiesDetail;
1668
1810
  /**
1669
1811
  * A list of job attempts that are associated with this job.
1670
1812
  */
1671
1813
  eksAttempts?: EksAttemptDetails;
1814
+ /**
1815
+ * An object with properties that are specific to Amazon ECS-based jobs.
1816
+ */
1817
+ ecsProperties?: EcsPropertiesDetail;
1672
1818
  /**
1673
1819
  * Indicates whether the job is canceled.
1674
1820
  */
@@ -1706,7 +1852,7 @@ declare namespace Batch {
1706
1852
  */
1707
1853
  statusReason?: String;
1708
1854
  /**
1709
- * 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.
1855
+ * 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.
1710
1856
  */
1711
1857
  priority: Integer;
1712
1858
  /**
@@ -1838,6 +1984,8 @@ declare namespace Batch {
1838
1984
  */
1839
1985
  swappiness?: Integer;
1840
1986
  }
1987
+ export type ListEcsTaskDetails = EcsTaskDetails[];
1988
+ export type ListEcsTaskProperties = EcsTaskProperties[];
1841
1989
  export type ListJobsFilterList = KeyValuesPair[];
1842
1990
  export interface ListJobsRequest {
1843
1991
  /**
@@ -1911,6 +2059,10 @@ declare namespace Batch {
1911
2059
  */
1912
2060
  tags?: TagrisTagsMap;
1913
2061
  }
2062
+ export type ListTaskContainerDetails = TaskContainerDetails[];
2063
+ export type ListTaskContainerOverrides = TaskContainerOverrides[];
2064
+ export type ListTaskContainerProperties = TaskContainerProperties[];
2065
+ export type ListTaskPropertiesOverride = TaskPropertiesOverride[];
1914
2066
  export interface LogConfiguration {
1915
2067
  /**
1916
2068
  * The log driver to use for the container. The valid values that are listed for this parameter are log drivers that the Amazon ECS container agent can communicate with by default. The supported log drivers are awslogs, fluentd, gelf, json-file, journald, logentries, syslog, and splunk. Jobs that are running on Fargate resources are restricted to the awslogs and splunk log drivers. awslogs Specifies the Amazon CloudWatch Logs logging driver. For more information, see Using the awslogs log driver in the Batch User Guide and Amazon CloudWatch Logs logging driver in the Docker documentation. fluentd Specifies the Fluentd logging driver. For more information including usage and options, see Fluentd logging driver in the Docker documentation. gelf Specifies the Graylog Extended Format (GELF) logging driver. For more information including usage and options, see Graylog Extended Format logging driver in the Docker documentation. journald Specifies the journald logging driver. For more information including usage and options, see Journald logging driver in the Docker documentation. json-file Specifies the JSON file logging driver. For more information including usage and options, see JSON File logging driver in the Docker documentation. splunk Specifies the Splunk logging driver. For more information including usage and options, see Splunk logging driver in the Docker documentation. syslog Specifies the syslog logging driver. For more information including usage and options, see Syslog logging driver in the Docker documentation. If you have a custom driver that's not listed earlier that you want to work with the Amazon ECS container agent, you can fork the Amazon ECS container agent project that's available on GitHub and customize it to work with that driver. We encourage you to submit pull requests for changes that you want to have included. However, Amazon Web Services doesn't currently support running modified copies of this software. 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"
@@ -2021,6 +2173,14 @@ declare namespace Batch {
2021
2173
  * The overrides that are sent to a node range.
2022
2174
  */
2023
2175
  containerOverrides?: ContainerOverrides;
2176
+ /**
2177
+ * An object that contains the properties that you want to replace for the existing Amazon ECS resources of a job.
2178
+ */
2179
+ ecsPropertiesOverride?: EcsPropertiesOverride;
2180
+ /**
2181
+ * An object that contains the instance types that you want to replace for the existing resources of a job.
2182
+ */
2183
+ instanceTypes?: StringList;
2024
2184
  }
2025
2185
  export type NodePropertyOverrides = NodePropertyOverride[];
2026
2186
  export type NodeRangeProperties = NodeRangeProperty[];
@@ -2033,6 +2193,14 @@ declare namespace Batch {
2033
2193
  * The container details for the node range.
2034
2194
  */
2035
2195
  container?: ContainerProperties;
2196
+ /**
2197
+ * 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.
2198
+ */
2199
+ instanceTypes?: StringList;
2200
+ /**
2201
+ * This is an object that represents the properties of the node range for a multi-node parallel job.
2202
+ */
2203
+ ecsProperties?: EcsProperties;
2036
2204
  }
2037
2205
  export type OrchestrationType = "ECS"|"EKS"|string;
2038
2206
  export type ParametersMap = {[key: string]: String};
@@ -2045,7 +2213,7 @@ declare namespace Batch {
2045
2213
  */
2046
2214
  jobDefinitionName: String;
2047
2215
  /**
2048
- * 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 job is run on Fargate resources, then multinode isn't supported.
2216
+ * 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.
2049
2217
  */
2050
2218
  type: JobDefinitionType;
2051
2219
  /**
@@ -2057,11 +2225,11 @@ declare namespace Batch {
2057
2225
  */
2058
2226
  schedulingPriority?: Integer;
2059
2227
  /**
2060
- * 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. If the job runs on Fargate resources, then you must not specify nodeProperties; use only containerProperties.
2228
+ * 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.
2061
2229
  */
2062
2230
  containerProperties?: ContainerProperties;
2063
2231
  /**
2064
- * 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. 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.
2232
+ * 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 Amazon EKS resources, then you must not specify nodeProperties.
2065
2233
  */
2066
2234
  nodeProperties?: NodeProperties;
2067
2235
  /**
@@ -2085,9 +2253,13 @@ declare namespace Batch {
2085
2253
  */
2086
2254
  platformCapabilities?: PlatformCapabilityList;
2087
2255
  /**
2088
- * An object with various properties that are specific to Amazon EKS based jobs. This must not be specified for Amazon ECS based job definitions.
2256
+ * An object with properties that are specific to Amazon EKS-based jobs. This must not be specified for Amazon ECS based job definitions.
2089
2257
  */
2090
2258
  eksProperties?: EksProperties;
2259
+ /**
2260
+ * An object with properties that are specific to Amazon ECS-based jobs. This must not be specified for Amazon EKS-based job definitions.
2261
+ */
2262
+ ecsProperties?: EcsProperties;
2091
2263
  }
2092
2264
  export interface RegisterJobDefinitionResponse {
2093
2265
  /**
@@ -2111,7 +2283,7 @@ declare namespace Batch {
2111
2283
  }
2112
2284
  export interface ResourceRequirement {
2113
2285
  /**
2114
- * The quantity of the specified resource to reserve for the container. The values vary based on the type specified. type="GPU" The number of physical GPUs to reserve for the container. Make sure that the number of GPUs reserved for all containers in a job doesn't exceed the number of available GPUs on the compute resource that the job is launched on. GPUs aren't available for jobs that are running on Fargate resources. 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 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 must specify at least 4 MiB of memory for a job. This is required but can be specified in several places for multi-node parallel (MNP) jobs. It must be specified for each node at least once. This parameter maps to Memory in the Create a container section of the Docker Remote API and the --memory option to docker run. 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. For jobs that are running on Fargate resources, then value is the hard limit (in MiB), and must match one of the supported values and the VCPU values must be one of the values supported for that memory value. value = 512 VCPU = 0.25 value = 1024 VCPU = 0.25 or 0.5 value = 2048 VCPU = 0.25, 0.5, or 1 value = 3072 VCPU = 0.5, or 1 value = 4096 VCPU = 0.5, 1, or 2 value = 5120, 6144, or 7168 VCPU = 1 or 2 value = 8192 VCPU = 1, 2, or 4 value = 9216, 10240, 11264, 12288, 13312, 14336, or 15360 VCPU = 2 or 4 value = 16384 VCPU = 2, 4, or 8 value = 17408, 18432, 19456, 21504, 22528, 23552, 25600, 26624, 27648, 29696, or 30720 VCPU = 4 value = 20480, 24576, or 28672 VCPU = 4 or 8 value = 36864, 45056, 53248, or 61440 VCPU = 8 value = 32768, 40960, 49152, or 57344 VCPU = 8 or 16 value = 65536, 73728, 81920, 90112, 98304, 106496, 114688, or 122880 VCPU = 16 type="VCPU" 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 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 in the Amazon Web Services General Reference. For jobs that are running on Fargate resources, then value must match one of the supported values and the MEMORY values must be one of the values supported for that VCPU value. The supported values are 0.25, 0.5, 1, 2, 4, 8, and 16 value = 0.25 MEMORY = 512, 1024, or 2048 value = 0.5 MEMORY = 1024, 2048, 3072, or 4096 value = 1 MEMORY = 2048, 3072, 4096, 5120, 6144, 7168, or 8192 value = 2 MEMORY = 4096, 5120, 6144, 7168, 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, or 16384 value = 4 MEMORY = 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, 16384, 17408, 18432, 19456, 20480, 21504, 22528, 23552, 24576, 25600, 26624, 27648, 28672, 29696, or 30720 value = 8 MEMORY = 16384, 20480, 24576, 28672, 32768, 36864, 40960, 45056, 49152, 53248, 57344, or 61440 value = 16 MEMORY = 32768, 40960, 49152, 57344, 65536, 73728, 81920, 90112, 98304, 106496, 114688, or 122880
2286
+ * The quantity of the specified resource to reserve for the container. The values vary based on the type specified. type="GPU" The number of physical GPUs to reserve for the container. Make sure that the number of GPUs reserved for all containers in a job doesn't exceed the number of available GPUs on the compute resource that the job is launched on. GPUs aren't available for jobs that are running on Fargate resources. type="MEMORY" The memory hard limit (in MiB) present to the container. This parameter is supported for 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 must specify at least 4 MiB of memory for a job. This is required but can be specified in several places for multi-node parallel (MNP) jobs. It must be specified for each node at least once. This parameter maps to Memory in the Create a container section of the Docker Remote API and the --memory option to docker run. 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. For jobs that are running on Fargate resources, then value is the hard limit (in MiB), and must match one of the supported values and the VCPU values must be one of the values supported for that memory value. value = 512 VCPU = 0.25 value = 1024 VCPU = 0.25 or 0.5 value = 2048 VCPU = 0.25, 0.5, or 1 value = 3072 VCPU = 0.5, or 1 value = 4096 VCPU = 0.5, 1, or 2 value = 5120, 6144, or 7168 VCPU = 1 or 2 value = 8192 VCPU = 1, 2, or 4 value = 9216, 10240, 11264, 12288, 13312, 14336, or 15360 VCPU = 2 or 4 value = 16384 VCPU = 2, 4, or 8 value = 17408, 18432, 19456, 21504, 22528, 23552, 25600, 26624, 27648, 29696, or 30720 VCPU = 4 value = 20480, 24576, or 28672 VCPU = 4 or 8 value = 36864, 45056, 53248, or 61440 VCPU = 8 value = 32768, 40960, 49152, or 57344 VCPU = 8 or 16 value = 65536, 73728, 81920, 90112, 98304, 106496, 114688, or 122880 VCPU = 16 type="VCPU" 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 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 in the Amazon Web Services General Reference. For jobs that are running on Fargate resources, then value must match one of the supported values and the MEMORY values must be one of the values supported for that VCPU value. The supported values are 0.25, 0.5, 1, 2, 4, 8, and 16 value = 0.25 MEMORY = 512, 1024, or 2048 value = 0.5 MEMORY = 1024, 2048, 3072, or 4096 value = 1 MEMORY = 2048, 3072, 4096, 5120, 6144, 7168, or 8192 value = 2 MEMORY = 4096, 5120, 6144, 7168, 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, or 16384 value = 4 MEMORY = 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, 16384, 17408, 18432, 19456, 20480, 21504, 22528, 23552, 24576, 25600, 26624, 27648, 28672, 29696, or 30720 value = 8 MEMORY = 16384, 20480, 24576, 28672, 32768, 36864, 40960, 45056, 49152, 53248, 57344, or 61440 value = 16 MEMORY = 32768, 40960, 49152, 57344, 65536, 73728, 81920, 90112, 98304, 106496, 114688, or 122880
2115
2287
  */
2116
2288
  value: String;
2117
2289
  /**
@@ -2226,7 +2398,7 @@ declare namespace Batch {
2226
2398
  */
2227
2399
  parameters?: ParametersMap;
2228
2400
  /**
2229
- * 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.
2401
+ * 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.
2230
2402
  */
2231
2403
  containerOverrides?: ContainerOverrides;
2232
2404
  /**
@@ -2250,9 +2422,13 @@ declare namespace Batch {
2250
2422
  */
2251
2423
  tags?: TagrisTagsMap;
2252
2424
  /**
2253
- * 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.
2425
+ * An object, with properties that override defaults for the job definition, can only be specified for jobs that are run on Amazon EKS resources.
2254
2426
  */
2255
2427
  eksPropertiesOverride?: EksPropertiesOverride;
2428
+ /**
2429
+ * An object, with properties that override defaults for the job definition, can only be specified for jobs that are run on Amazon ECS resources.
2430
+ */
2431
+ ecsPropertiesOverride?: EcsPropertiesOverride;
2256
2432
  }
2257
2433
  export interface SubmitJobResponse {
2258
2434
  /**
@@ -2285,6 +2461,189 @@ declare namespace Batch {
2285
2461
  export type TagValue = string;
2286
2462
  export type TagrisTagsMap = {[key: string]: TagValue};
2287
2463
  export type TagsMap = {[key: string]: String};
2464
+ export interface TaskContainerDependency {
2465
+ /**
2466
+ * A unique identifier for the container.
2467
+ */
2468
+ containerName?: String;
2469
+ /**
2470
+ * 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.
2471
+ */
2472
+ condition?: String;
2473
+ }
2474
+ export type TaskContainerDependencyList = TaskContainerDependency[];
2475
+ export interface TaskContainerDetails {
2476
+ /**
2477
+ * 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.
2478
+ */
2479
+ command?: StringList;
2480
+ /**
2481
+ * A list of containers that this container depends on.
2482
+ */
2483
+ dependsOn?: TaskContainerDependencyList;
2484
+ /**
2485
+ * 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.
2486
+ */
2487
+ environment?: EnvironmentVariables;
2488
+ /**
2489
+ * 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.
2490
+ */
2491
+ essential?: Boolean;
2492
+ /**
2493
+ * 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 .
2494
+ */
2495
+ image?: String;
2496
+ /**
2497
+ * 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.
2498
+ */
2499
+ linuxParameters?: LinuxParameters;
2500
+ /**
2501
+ * 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.
2502
+ */
2503
+ logConfiguration?: LogConfiguration;
2504
+ /**
2505
+ * 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.
2506
+ */
2507
+ mountPoints?: MountPoints;
2508
+ /**
2509
+ * The name of a container.
2510
+ */
2511
+ name?: String;
2512
+ /**
2513
+ * 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.
2514
+ */
2515
+ privileged?: Boolean;
2516
+ /**
2517
+ * 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.
2518
+ */
2519
+ readonlyRootFilesystem?: Boolean;
2520
+ /**
2521
+ * The private repository authentication credentials to use.
2522
+ */
2523
+ repositoryCredentials?: RepositoryCredentials;
2524
+ /**
2525
+ * The type and amount of a resource to assign to a container. The only supported resource is a GPU.
2526
+ */
2527
+ resourceRequirements?: ResourceRequirements;
2528
+ /**
2529
+ * The secrets to pass to the container. For more information, see Specifying Sensitive Data in the Amazon Elastic Container Service Developer Guide.
2530
+ */
2531
+ secrets?: SecretList;
2532
+ /**
2533
+ * 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.
2534
+ */
2535
+ ulimits?: Ulimits;
2536
+ /**
2537
+ * 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.
2538
+ */
2539
+ user?: String;
2540
+ /**
2541
+ * The exit code returned upon completion.
2542
+ */
2543
+ exitCode?: Integer;
2544
+ /**
2545
+ * A short (255 max characters) human-readable string to provide additional details for a running or stopped container.
2546
+ */
2547
+ reason?: String;
2548
+ /**
2549
+ * 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.
2550
+ */
2551
+ logStreamName?: String;
2552
+ /**
2553
+ * The network interfaces that are associated with the job.
2554
+ */
2555
+ networkInterfaces?: NetworkInterfaceList;
2556
+ }
2557
+ export interface TaskContainerOverrides {
2558
+ /**
2559
+ * 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.
2560
+ */
2561
+ command?: StringList;
2562
+ /**
2563
+ * 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.
2564
+ */
2565
+ environment?: EnvironmentVariables;
2566
+ /**
2567
+ * A pointer to the container that you want to override. The container's name provides a unique identifier for the container being used.
2568
+ */
2569
+ name?: String;
2570
+ /**
2571
+ * 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.
2572
+ */
2573
+ resourceRequirements?: ResourceRequirements;
2574
+ }
2575
+ export interface TaskContainerProperties {
2576
+ /**
2577
+ * 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.
2578
+ */
2579
+ command?: StringList;
2580
+ /**
2581
+ * A list of containers that this container depends on.
2582
+ */
2583
+ dependsOn?: TaskContainerDependencyList;
2584
+ /**
2585
+ * 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.
2586
+ */
2587
+ environment?: EnvironmentVariables;
2588
+ /**
2589
+ * 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.
2590
+ */
2591
+ essential?: Boolean;
2592
+ /**
2593
+ * 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 .
2594
+ */
2595
+ image: String;
2596
+ /**
2597
+ * Linux-specific modifications that are applied to the container, such as Linux kernel capabilities. For more information, see KernelCapabilities.
2598
+ */
2599
+ linuxParameters?: LinuxParameters;
2600
+ /**
2601
+ * 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.
2602
+ */
2603
+ logConfiguration?: LogConfiguration;
2604
+ /**
2605
+ * 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.
2606
+ */
2607
+ mountPoints?: MountPoints;
2608
+ /**
2609
+ * The name of a container. The name can be used as a unique identifier to target your dependsOn and Overrides objects.
2610
+ */
2611
+ name?: String;
2612
+ /**
2613
+ * 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.
2614
+ */
2615
+ privileged?: Boolean;
2616
+ /**
2617
+ * 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.
2618
+ */
2619
+ readonlyRootFilesystem?: Boolean;
2620
+ /**
2621
+ * The private repository authentication credentials to use.
2622
+ */
2623
+ repositoryCredentials?: RepositoryCredentials;
2624
+ /**
2625
+ * The type and amount of a resource to assign to a container. The only supported resource is a GPU.
2626
+ */
2627
+ resourceRequirements?: ResourceRequirements;
2628
+ /**
2629
+ * The secrets to pass to the container. For more information, see Specifying Sensitive Data in the Amazon Elastic Container Service Developer Guide.
2630
+ */
2631
+ secrets?: SecretList;
2632
+ /**
2633
+ * 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.
2634
+ */
2635
+ ulimits?: Ulimits;
2636
+ /**
2637
+ * 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.
2638
+ */
2639
+ user?: String;
2640
+ }
2641
+ export interface TaskPropertiesOverride {
2642
+ /**
2643
+ * The overrides for the container definition of a job.
2644
+ */
2645
+ containers?: ListTaskContainerOverrides;
2646
+ }
2288
2647
  export interface TerminateJobRequest {
2289
2648
  /**
2290
2649
  * The Batch job ID of the job to terminate.