1{ 2 "version":"2.0", 3 "metadata":{ 4 "apiVersion":"2016-08-10", 5 "endpointPrefix":"batch", 6 "jsonVersion":"1.1", 7 "protocol":"rest-json", 8 "serviceAbbreviation":"AWS Batch", 9 "serviceFullName":"AWS Batch", 10 "serviceId":"Batch", 11 "signatureVersion":"v4", 12 "uid":"batch-2016-08-10" 13 }, 14 "operations":{ 15 "CancelJob":{ 16 "name":"CancelJob", 17 "http":{ 18 "method":"POST", 19 "requestUri":"/v1/canceljob" 20 }, 21 "input":{"shape":"CancelJobRequest"}, 22 "output":{"shape":"CancelJobResponse"}, 23 "errors":[ 24 {"shape":"ClientException"}, 25 {"shape":"ServerException"} 26 ], 27 "documentation":"<p>Cancels a job in an Batch job queue. Jobs that are in the <code>SUBMITTED</code>, <code>PENDING</code>, or <code>RUNNABLE</code> state are canceled. Jobs that have progressed to <code>STARTING</code> or <code>RUNNING</code> aren't canceled, but the API operation still succeeds, even if no job is canceled. These jobs must be terminated with the <a>TerminateJob</a> operation.</p>" 28 }, 29 "CreateComputeEnvironment":{ 30 "name":"CreateComputeEnvironment", 31 "http":{ 32 "method":"POST", 33 "requestUri":"/v1/createcomputeenvironment" 34 }, 35 "input":{"shape":"CreateComputeEnvironmentRequest"}, 36 "output":{"shape":"CreateComputeEnvironmentResponse"}, 37 "errors":[ 38 {"shape":"ClientException"}, 39 {"shape":"ServerException"} 40 ], 41 "documentation":"<p>Creates an Batch compute environment. You can create <code>MANAGED</code> or <code>UNMANAGED</code> compute environments. <code>MANAGED</code> compute environments can use Amazon EC2 or Fargate resources. <code>UNMANAGED</code> compute environments can only use EC2 resources.</p> <p>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 <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html\">launch template</a> 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.</p> <note> <p>Multi-node parallel jobs aren't supported on Spot Instances.</p> </note> <p>In an unmanaged compute environment, you can manage your own EC2 compute resources and have a lot of 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 <a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container_instance_AMIs.html\">container instance AMIs</a> in the <i>Amazon Elastic Container Service Developer Guide</i>. After you created your unmanaged compute environment, you can use the <a>DescribeComputeEnvironments</a> operation to find the Amazon ECS cluster that's associated with it. Then, launch your container instances into that Amazon ECS cluster. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html\">Launching an Amazon ECS container instance</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p> <note> <p>Batch doesn't upgrade the AMIs in a compute environment after the environment is created. For example, it doesn't update the AMIs when a newer version of the Amazon ECS optimized AMI is available. Therefore, you're responsible for managing the guest operating system (including its updates and security patches) and any additional application software or utilities that you install on the compute resources. To use a new AMI for your Batch jobs, complete these steps:</p> <ol> <li> <p>Create a new compute environment with the new AMI.</p> </li> <li> <p>Add the compute environment to an existing job queue.</p> </li> <li> <p>Remove the earlier compute environment from your job queue.</p> </li> <li> <p>Delete the earlier compute environment.</p> </li> </ol> </note>" 42 }, 43 "CreateJobQueue":{ 44 "name":"CreateJobQueue", 45 "http":{ 46 "method":"POST", 47 "requestUri":"/v1/createjobqueue" 48 }, 49 "input":{"shape":"CreateJobQueueRequest"}, 50 "output":{"shape":"CreateJobQueueResponse"}, 51 "errors":[ 52 {"shape":"ClientException"}, 53 {"shape":"ServerException"} 54 ], 55 "documentation":"<p>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.</p> <p>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.</p>" 56 }, 57 "DeleteComputeEnvironment":{ 58 "name":"DeleteComputeEnvironment", 59 "http":{ 60 "method":"POST", 61 "requestUri":"/v1/deletecomputeenvironment" 62 }, 63 "input":{"shape":"DeleteComputeEnvironmentRequest"}, 64 "output":{"shape":"DeleteComputeEnvironmentResponse"}, 65 "errors":[ 66 {"shape":"ClientException"}, 67 {"shape":"ServerException"} 68 ], 69 "documentation":"<p>Deletes an Batch compute environment.</p> <p>Before you can delete a compute environment, you must set its state to <code>DISABLED</code> with the <a>UpdateComputeEnvironment</a> API operation and disassociate it from any job queues with the <a>UpdateJobQueue</a> API operation. Compute environments that use Fargate resources must terminate all active jobs on that compute environment before deleting the compute environment. If this isn't done, the compute environment enters an invalid state.</p>" 70 }, 71 "DeleteJobQueue":{ 72 "name":"DeleteJobQueue", 73 "http":{ 74 "method":"POST", 75 "requestUri":"/v1/deletejobqueue" 76 }, 77 "input":{"shape":"DeleteJobQueueRequest"}, 78 "output":{"shape":"DeleteJobQueueResponse"}, 79 "errors":[ 80 {"shape":"ClientException"}, 81 {"shape":"ServerException"} 82 ], 83 "documentation":"<p>Deletes the specified job queue. You must first disable submissions for a queue with the <a>UpdateJobQueue</a> operation. All jobs in the queue are eventually terminated when you delete a job queue. The jobs are terminated at a rate of about 16 jobs each second.</p> <p>It's not necessary to disassociate compute environments from a queue before submitting a <code>DeleteJobQueue</code> request.</p>" 84 }, 85 "DeregisterJobDefinition":{ 86 "name":"DeregisterJobDefinition", 87 "http":{ 88 "method":"POST", 89 "requestUri":"/v1/deregisterjobdefinition" 90 }, 91 "input":{"shape":"DeregisterJobDefinitionRequest"}, 92 "output":{"shape":"DeregisterJobDefinitionResponse"}, 93 "errors":[ 94 {"shape":"ClientException"}, 95 {"shape":"ServerException"} 96 ], 97 "documentation":"<p>Deregisters an Batch job definition. Job definitions are permanently deleted after 180 days.</p>" 98 }, 99 "DescribeComputeEnvironments":{ 100 "name":"DescribeComputeEnvironments", 101 "http":{ 102 "method":"POST", 103 "requestUri":"/v1/describecomputeenvironments" 104 }, 105 "input":{"shape":"DescribeComputeEnvironmentsRequest"}, 106 "output":{"shape":"DescribeComputeEnvironmentsResponse"}, 107 "errors":[ 108 {"shape":"ClientException"}, 109 {"shape":"ServerException"} 110 ], 111 "documentation":"<p>Describes one or more of your compute environments.</p> <p>If you're using an unmanaged compute environment, you can use the <code>DescribeComputeEnvironment</code> operation to determine the <code>ecsClusterArn</code> that you should launch your Amazon ECS container instances into.</p>" 112 }, 113 "DescribeJobDefinitions":{ 114 "name":"DescribeJobDefinitions", 115 "http":{ 116 "method":"POST", 117 "requestUri":"/v1/describejobdefinitions" 118 }, 119 "input":{"shape":"DescribeJobDefinitionsRequest"}, 120 "output":{"shape":"DescribeJobDefinitionsResponse"}, 121 "errors":[ 122 {"shape":"ClientException"}, 123 {"shape":"ServerException"} 124 ], 125 "documentation":"<p>Describes a list of job definitions. You can specify a <code>status</code> (such as <code>ACTIVE</code>) to only return job definitions that match that status.</p>" 126 }, 127 "DescribeJobQueues":{ 128 "name":"DescribeJobQueues", 129 "http":{ 130 "method":"POST", 131 "requestUri":"/v1/describejobqueues" 132 }, 133 "input":{"shape":"DescribeJobQueuesRequest"}, 134 "output":{"shape":"DescribeJobQueuesResponse"}, 135 "errors":[ 136 {"shape":"ClientException"}, 137 {"shape":"ServerException"} 138 ], 139 "documentation":"<p>Describes one or more of your job queues.</p>" 140 }, 141 "DescribeJobs":{ 142 "name":"DescribeJobs", 143 "http":{ 144 "method":"POST", 145 "requestUri":"/v1/describejobs" 146 }, 147 "input":{"shape":"DescribeJobsRequest"}, 148 "output":{"shape":"DescribeJobsResponse"}, 149 "errors":[ 150 {"shape":"ClientException"}, 151 {"shape":"ServerException"} 152 ], 153 "documentation":"<p>Describes a list of Batch jobs.</p>" 154 }, 155 "ListJobs":{ 156 "name":"ListJobs", 157 "http":{ 158 "method":"POST", 159 "requestUri":"/v1/listjobs" 160 }, 161 "input":{"shape":"ListJobsRequest"}, 162 "output":{"shape":"ListJobsResponse"}, 163 "errors":[ 164 {"shape":"ClientException"}, 165 {"shape":"ServerException"} 166 ], 167 "documentation":"<p>Returns a list of Batch jobs.</p> <p>You must specify only one of the following items:</p> <ul> <li> <p>A job queue ID to return a list of jobs in that job queue</p> </li> <li> <p>A multi-node parallel job ID to return a list of nodes for that job</p> </li> <li> <p>An array job ID to return a list of the children for that job</p> </li> </ul> <p>You can filter the results by job status with the <code>jobStatus</code> parameter. If you don't specify a status, only <code>RUNNING</code> jobs are returned.</p>" 168 }, 169 "ListTagsForResource":{ 170 "name":"ListTagsForResource", 171 "http":{ 172 "method":"GET", 173 "requestUri":"/v1/tags/{resourceArn}" 174 }, 175 "input":{"shape":"ListTagsForResourceRequest"}, 176 "output":{"shape":"ListTagsForResourceResponse"}, 177 "errors":[ 178 {"shape":"ClientException"}, 179 {"shape":"ServerException"} 180 ], 181 "documentation":"<p>Lists the tags for an Batch resource. Batch resources that support tags are compute environments, jobs, job definitions, and job queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.</p>" 182 }, 183 "RegisterJobDefinition":{ 184 "name":"RegisterJobDefinition", 185 "http":{ 186 "method":"POST", 187 "requestUri":"/v1/registerjobdefinition" 188 }, 189 "input":{"shape":"RegisterJobDefinitionRequest"}, 190 "output":{"shape":"RegisterJobDefinitionResponse"}, 191 "errors":[ 192 {"shape":"ClientException"}, 193 {"shape":"ServerException"} 194 ], 195 "documentation":"<p>Registers an Batch job definition.</p>" 196 }, 197 "SubmitJob":{ 198 "name":"SubmitJob", 199 "http":{ 200 "method":"POST", 201 "requestUri":"/v1/submitjob" 202 }, 203 "input":{"shape":"SubmitJobRequest"}, 204 "output":{"shape":"SubmitJobResponse"}, 205 "errors":[ 206 {"shape":"ClientException"}, 207 {"shape":"ServerException"} 208 ], 209 "documentation":"<p>Submits an Batch job from a job definition. Parameters that are specified during <a>SubmitJob</a> override parameters defined in the job definition. vCPU and memory requirements that are specified in the <code>ResourceRequirements</code> objects in the job definition are the exception. They can't be overridden this way using the <code>memory</code> and <code>vcpus</code> parameters. Rather, you must specify updates to job definition parameters in a <code>ResourceRequirements</code> object that's included in the <code>containerOverrides</code> parameter.</p> <important> <p>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.</p> </important>" 210 }, 211 "TagResource":{ 212 "name":"TagResource", 213 "http":{ 214 "method":"POST", 215 "requestUri":"/v1/tags/{resourceArn}" 216 }, 217 "input":{"shape":"TagResourceRequest"}, 218 "output":{"shape":"TagResourceResponse"}, 219 "errors":[ 220 {"shape":"ClientException"}, 221 {"shape":"ServerException"} 222 ], 223 "documentation":"<p>Associates the specified tags to a resource with the specified <code>resourceArn</code>. 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, and job queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.</p>" 224 }, 225 "TerminateJob":{ 226 "name":"TerminateJob", 227 "http":{ 228 "method":"POST", 229 "requestUri":"/v1/terminatejob" 230 }, 231 "input":{"shape":"TerminateJobRequest"}, 232 "output":{"shape":"TerminateJobResponse"}, 233 "errors":[ 234 {"shape":"ClientException"}, 235 {"shape":"ServerException"} 236 ], 237 "documentation":"<p>Terminates a job in a job queue. Jobs that are in the <code>STARTING</code> or <code>RUNNING</code> state are terminated, which causes them to transition to <code>FAILED</code>. Jobs that have not progressed to the <code>STARTING</code> state are cancelled.</p>" 238 }, 239 "UntagResource":{ 240 "name":"UntagResource", 241 "http":{ 242 "method":"DELETE", 243 "requestUri":"/v1/tags/{resourceArn}" 244 }, 245 "input":{"shape":"UntagResourceRequest"}, 246 "output":{"shape":"UntagResourceResponse"}, 247 "errors":[ 248 {"shape":"ClientException"}, 249 {"shape":"ServerException"} 250 ], 251 "documentation":"<p>Deletes specified tags from an Batch resource.</p>" 252 }, 253 "UpdateComputeEnvironment":{ 254 "name":"UpdateComputeEnvironment", 255 "http":{ 256 "method":"POST", 257 "requestUri":"/v1/updatecomputeenvironment" 258 }, 259 "input":{"shape":"UpdateComputeEnvironmentRequest"}, 260 "output":{"shape":"UpdateComputeEnvironmentResponse"}, 261 "errors":[ 262 {"shape":"ClientException"}, 263 {"shape":"ServerException"} 264 ], 265 "documentation":"<p>Updates an Batch compute environment.</p>" 266 }, 267 "UpdateJobQueue":{ 268 "name":"UpdateJobQueue", 269 "http":{ 270 "method":"POST", 271 "requestUri":"/v1/updatejobqueue" 272 }, 273 "input":{"shape":"UpdateJobQueueRequest"}, 274 "output":{"shape":"UpdateJobQueueResponse"}, 275 "errors":[ 276 {"shape":"ClientException"}, 277 {"shape":"ServerException"} 278 ], 279 "documentation":"<p>Updates a job queue.</p>" 280 } 281 }, 282 "shapes":{ 283 "ArrayJobDependency":{ 284 "type":"string", 285 "enum":[ 286 "N_TO_N", 287 "SEQUENTIAL" 288 ] 289 }, 290 "ArrayJobStatusSummary":{ 291 "type":"map", 292 "key":{"shape":"String"}, 293 "value":{"shape":"Integer"} 294 }, 295 "ArrayProperties":{ 296 "type":"structure", 297 "members":{ 298 "size":{ 299 "shape":"Integer", 300 "documentation":"<p>The size of the array job.</p>" 301 } 302 }, 303 "documentation":"<p>An object representing an Batch array job.</p>" 304 }, 305 "ArrayPropertiesDetail":{ 306 "type":"structure", 307 "members":{ 308 "statusSummary":{ 309 "shape":"ArrayJobStatusSummary", 310 "documentation":"<p>A summary of the number of array job children in each available job status. This parameter is returned for parent array jobs.</p>" 311 }, 312 "size":{ 313 "shape":"Integer", 314 "documentation":"<p>The size of the array job. This parameter is returned for parent array jobs.</p>" 315 }, 316 "index":{ 317 "shape":"Integer", 318 "documentation":"<p>The job index within the array that's associated with this job. This parameter is returned for array job children.</p>" 319 } 320 }, 321 "documentation":"<p>An object representing the array properties of a job.</p>" 322 }, 323 "ArrayPropertiesSummary":{ 324 "type":"structure", 325 "members":{ 326 "size":{ 327 "shape":"Integer", 328 "documentation":"<p>The size of the array job. This parameter is returned for parent array jobs.</p>" 329 }, 330 "index":{ 331 "shape":"Integer", 332 "documentation":"<p>The job index within the array that's associated with this job. This parameter is returned for children of array jobs.</p>" 333 } 334 }, 335 "documentation":"<p>An object representing the array properties of a job.</p>" 336 }, 337 "AssignPublicIp":{ 338 "type":"string", 339 "enum":[ 340 "ENABLED", 341 "DISABLED" 342 ] 343 }, 344 "AttemptContainerDetail":{ 345 "type":"structure", 346 "members":{ 347 "containerInstanceArn":{ 348 "shape":"String", 349 "documentation":"<p>The Amazon Resource Name (ARN) of the Amazon ECS container instance that hosts the job attempt.</p>" 350 }, 351 "taskArn":{ 352 "shape":"String", 353 "documentation":"<p>The Amazon Resource Name (ARN) of the Amazon ECS task that's associated with the job attempt. Each container attempt receives a task ARN when they reach the <code>STARTING</code> status.</p>" 354 }, 355 "exitCode":{ 356 "shape":"Integer", 357 "documentation":"<p>The exit code for the job attempt. A non-zero exit code is considered a failure.</p>" 358 }, 359 "reason":{ 360 "shape":"String", 361 "documentation":"<p>A short (255 max characters) human-readable string to provide additional details about a running or stopped container.</p>" 362 }, 363 "logStreamName":{ 364 "shape":"String", 365 "documentation":"<p>The name of the CloudWatch Logs log stream associated with the container. The log group for Batch jobs is <code>/aws/batch/job</code>. Each container attempt receives a log stream name when they reach the <code>RUNNING</code> status.</p>" 366 }, 367 "networkInterfaces":{ 368 "shape":"NetworkInterfaceList", 369 "documentation":"<p>The network interfaces associated with the job attempt.</p>" 370 } 371 }, 372 "documentation":"<p>An object representing the details of a container that's part of a job attempt.</p>" 373 }, 374 "AttemptDetail":{ 375 "type":"structure", 376 "members":{ 377 "container":{ 378 "shape":"AttemptContainerDetail", 379 "documentation":"<p>Details about the container in this job attempt.</p>" 380 }, 381 "startedAt":{ 382 "shape":"Long", 383 "documentation":"<p>The Unix timestamp (in milliseconds) for when the attempt was started (when the attempt transitioned from the <code>STARTING</code> state to the <code>RUNNING</code> state).</p>" 384 }, 385 "stoppedAt":{ 386 "shape":"Long", 387 "documentation":"<p>The Unix timestamp (in milliseconds) for when the attempt was stopped (when the attempt transitioned from the <code>RUNNING</code> state to a terminal state, such as <code>SUCCEEDED</code> or <code>FAILED</code>).</p>" 388 }, 389 "statusReason":{ 390 "shape":"String", 391 "documentation":"<p>A short, human-readable string to provide additional details about the current status of the job attempt.</p>" 392 } 393 }, 394 "documentation":"<p>An object representing a job attempt.</p>" 395 }, 396 "AttemptDetails":{ 397 "type":"list", 398 "member":{"shape":"AttemptDetail"} 399 }, 400 "Boolean":{"type":"boolean"}, 401 "CEState":{ 402 "type":"string", 403 "enum":[ 404 "ENABLED", 405 "DISABLED" 406 ] 407 }, 408 "CEStatus":{ 409 "type":"string", 410 "enum":[ 411 "CREATING", 412 "UPDATING", 413 "DELETING", 414 "DELETED", 415 "VALID", 416 "INVALID" 417 ] 418 }, 419 "CEType":{ 420 "type":"string", 421 "enum":[ 422 "MANAGED", 423 "UNMANAGED" 424 ] 425 }, 426 "CRAllocationStrategy":{ 427 "type":"string", 428 "enum":[ 429 "BEST_FIT", 430 "BEST_FIT_PROGRESSIVE", 431 "SPOT_CAPACITY_OPTIMIZED" 432 ] 433 }, 434 "CRType":{ 435 "type":"string", 436 "enum":[ 437 "EC2", 438 "SPOT", 439 "FARGATE", 440 "FARGATE_SPOT" 441 ] 442 }, 443 "CancelJobRequest":{ 444 "type":"structure", 445 "required":[ 446 "jobId", 447 "reason" 448 ], 449 "members":{ 450 "jobId":{ 451 "shape":"String", 452 "documentation":"<p>The Batch job ID of the job to cancel.</p>" 453 }, 454 "reason":{ 455 "shape":"String", 456 "documentation":"<p>A message to attach to the job that explains the reason for canceling it. This message is returned by future <a>DescribeJobs</a> operations on the job. This message is also recorded in the Batch activity logs.</p>" 457 } 458 }, 459 "documentation":"<p>Contains the parameters for <code>CancelJob</code>.</p>" 460 }, 461 "CancelJobResponse":{ 462 "type":"structure", 463 "members":{ 464 } 465 }, 466 "ClientException":{ 467 "type":"structure", 468 "members":{ 469 "message":{"shape":"String"} 470 }, 471 "documentation":"<p>These errors are usually caused by a client action, such as using an action or resource on behalf of a user that doesn't have permissions to use the action or resource, or specifying an identifier that's not valid.</p>", 472 "error":{"httpStatusCode":400}, 473 "exception":true 474 }, 475 "ComputeEnvironmentDetail":{ 476 "type":"structure", 477 "required":[ 478 "computeEnvironmentName", 479 "computeEnvironmentArn", 480 "ecsClusterArn" 481 ], 482 "members":{ 483 "computeEnvironmentName":{ 484 "shape":"String", 485 "documentation":"<p>The name of the compute environment. Up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.</p>" 486 }, 487 "computeEnvironmentArn":{ 488 "shape":"String", 489 "documentation":"<p>The Amazon Resource Name (ARN) of the compute environment.</p>" 490 }, 491 "ecsClusterArn":{ 492 "shape":"String", 493 "documentation":"<p>The Amazon Resource Name (ARN) of the underlying Amazon ECS cluster used by the compute environment.</p>" 494 }, 495 "tags":{ 496 "shape":"TagrisTagsMap", 497 "documentation":"<p>The tags applied to the compute environment.</p>" 498 }, 499 "type":{ 500 "shape":"CEType", 501 "documentation":"<p>The type of the compute environment: <code>MANAGED</code> or <code>UNMANAGED</code>. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html\">Compute Environments</a> in the <i>Batch User Guide</i>.</p>" 502 }, 503 "state":{ 504 "shape":"CEState", 505 "documentation":"<p>The state of the compute environment. The valid values are <code>ENABLED</code> or <code>DISABLED</code>.</p> <p>If the state is <code>ENABLED</code>, then the Batch scheduler can attempt to place jobs from an associated job queue on the compute resources within the environment. If the compute environment is managed, then it can scale its instances out or in automatically, based on the job queue demand.</p> <p>If the state is <code>DISABLED</code>, then the Batch scheduler doesn't attempt to place jobs within the environment. Jobs in a <code>STARTING</code> or <code>RUNNING</code> state continue to progress normally. Managed compute environments in the <code>DISABLED</code> state don't scale out. However, they scale in to <code>minvCpus</code> value after instances become idle.</p>" 506 }, 507 "status":{ 508 "shape":"CEStatus", 509 "documentation":"<p>The current status of the compute environment (for example, <code>CREATING</code> or <code>VALID</code>).</p>" 510 }, 511 "statusReason":{ 512 "shape":"String", 513 "documentation":"<p>A short, human-readable string to provide additional details about the current status of the compute environment.</p>" 514 }, 515 "computeResources":{ 516 "shape":"ComputeResource", 517 "documentation":"<p>The compute resources defined for the compute environment. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html\">Compute Environments</a> in the <i>Batch User Guide</i>.</p>" 518 }, 519 "serviceRole":{ 520 "shape":"String", 521 "documentation":"<p>The service role associated with the compute environment that allows Batch to make calls to Amazon Web Services API operations on your behalf. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/service_IAM_role.html\">Batch service IAM role</a> in the <i>Batch User Guide</i>.</p>" 522 } 523 }, 524 "documentation":"<p>An object representing an Batch compute environment.</p>" 525 }, 526 "ComputeEnvironmentDetailList":{ 527 "type":"list", 528 "member":{"shape":"ComputeEnvironmentDetail"} 529 }, 530 "ComputeEnvironmentOrder":{ 531 "type":"structure", 532 "required":[ 533 "order", 534 "computeEnvironment" 535 ], 536 "members":{ 537 "order":{ 538 "shape":"Integer", 539 "documentation":"<p>The order of the compute environment. Compute environments are tried in ascending order. For example, if two compute environments are associated with a job queue, the compute environment with a lower <code>order</code> integer value is tried for job placement first.</p>" 540 }, 541 "computeEnvironment":{ 542 "shape":"String", 543 "documentation":"<p>The Amazon Resource Name (ARN) of the compute environment.</p>" 544 } 545 }, 546 "documentation":"<p>The order in which compute environments are tried for job placement within a queue. Compute environments are tried in ascending order. For example, if two compute environments are associated with a job queue, the compute environment with a lower order integer value is tried for job placement first. Compute environments must be in the <code>VALID</code> state before you can associate them with a job queue. All of the compute environments must be either EC2 (<code>EC2</code> or <code>SPOT</code>) or Fargate (<code>FARGATE</code> or <code>FARGATE_SPOT</code>); EC2 and Fargate compute environments can't be mixed.</p> <note> <p>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.</p> </note>" 547 }, 548 "ComputeEnvironmentOrders":{ 549 "type":"list", 550 "member":{"shape":"ComputeEnvironmentOrder"} 551 }, 552 "ComputeResource":{ 553 "type":"structure", 554 "required":[ 555 "type", 556 "maxvCpus", 557 "subnets" 558 ], 559 "members":{ 560 "type":{ 561 "shape":"CRType", 562 "documentation":"<p>The type of compute environment: <code>EC2</code>, <code>SPOT</code>, <code>FARGATE</code>, or <code>FARGATE_SPOT</code>. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html\">Compute Environments</a> in the <i>Batch User Guide</i>.</p> <p> If you choose <code>SPOT</code>, you must also specify an Amazon EC2 Spot Fleet role with the <code>spotIamFleetRole</code> parameter. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/spot_fleet_IAM_role.html\">Amazon EC2 Spot Fleet role</a> in the <i>Batch User Guide</i>.</p>" 563 }, 564 "allocationStrategy":{ 565 "shape":"CRAllocationStrategy", 566 "documentation":"<p>The allocation strategy to use for the compute resource if not enough instances of the best fitting instance type can be allocated. This might be because of availability of the instance type in the Region or <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html\">Amazon EC2 service limits</a>. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/allocation-strategies.html\">Allocation Strategies</a> in the <i>Batch User Guide</i>.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be specified.</p> </note> <dl> <dt>BEST_FIT (default)</dt> <dd> <p>Batch selects an instance type that best fits the needs of the jobs with a preference for the lowest-cost instance type. If additional instances of the selected instance type aren't available, Batch waits for the additional instances to be available. If there aren't enough instances available, or if the user is reaching <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html\">Amazon EC2 service limits</a> then additional jobs aren't run until the currently running jobs have completed. This allocation strategy keeps costs lower but can limit scaling. If you are using Spot Fleets with <code>BEST_FIT</code> then the Spot Fleet IAM Role must be specified.</p> </dd> <dt>BEST_FIT_PROGRESSIVE</dt> <dd> <p>Batch will select additional instance types that are large enough to meet the requirements of the jobs in the queue, with a preference for instance types with a lower cost per unit vCPU. If additional instances of the previously selected instance types aren't available, Batch will select new instance types.</p> </dd> <dt>SPOT_CAPACITY_OPTIMIZED</dt> <dd> <p>Batch will select one or more instance types that are large enough to meet the requirements of the jobs in the queue, with a preference for instance types that are less likely to be interrupted. This allocation strategy is only available for Spot Instance compute resources.</p> </dd> </dl> <p>With both <code>BEST_FIT_PROGRESSIVE</code> and <code>SPOT_CAPACITY_OPTIMIZED</code> strategies, Batch might need to go above <code>maxvCpus</code> to meet your capacity requirements. In this event, Batch never exceeds <code>maxvCpus</code> by more than a single instance.</p>" 567 }, 568 "minvCpus":{ 569 "shape":"Integer", 570 "documentation":"<p>The minimum number of Amazon EC2 vCPUs that an environment should maintain (even if the compute environment is <code>DISABLED</code>).</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be specified.</p> </note>" 571 }, 572 "maxvCpus":{ 573 "shape":"Integer", 574 "documentation":"<p>The maximum number of Amazon EC2 vCPUs that a compute environment can reach.</p> <note> <p>With both <code>BEST_FIT_PROGRESSIVE</code> and <code>SPOT_CAPACITY_OPTIMIZED</code> allocation strategies, Batch might need to exceed <code>maxvCpus</code> to meet your capacity requirements. In this event, Batch never exceeds <code>maxvCpus</code> by more than a single instance. For example, no more than a single instance from among those specified in your compute environment is allocated.</p> </note>" 575 }, 576 "desiredvCpus":{ 577 "shape":"Integer", 578 "documentation":"<p>The desired number of Amazon EC2 vCPUS in the compute environment. Batch modifies this value between the minimum and maximum values, based on job queue demand.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be specified.</p> </note>" 579 }, 580 "instanceTypes":{ 581 "shape":"StringList", 582 "documentation":"<p>The instances types that can be launched. You can specify instance families to launch any instance type within those families (for example, <code>c5</code> or <code>p3</code>), or you can specify specific sizes within a family (such as <code>c5.8xlarge</code>). You can also choose <code>optimal</code> to select instance types (from the C4, M4, and R4 instance families) that match the demand of your job queues.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be specified.</p> </note> <note> <p>When you create a compute environment, the instance types that you select for the compute environment must share the same architecture. For example, you can't mix x86 and ARM instances in the same compute environment.</p> </note> <note> <p>Currently, <code>optimal</code> uses instance types from the C4, M4, and R4 instance families. In Regions that don't have instance types from those instance families, instance types from the C5, M5. and R5 instance families are used.</p> </note>" 583 }, 584 "imageId":{ 585 "shape":"String", 586 "documentation":"<p>The Amazon Machine Image (AMI) ID used for instances launched in the compute environment. This parameter is overridden by the <code>imageIdOverride</code> member of the <code>Ec2Configuration</code> structure.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be specified.</p> </note> <note> <p>The AMI that you choose for a compute environment must match the architecture of the instance types that you intend to use for that compute environment. For example, if your compute environment uses A1 instance types, the compute resource AMI that you choose must support ARM instances. Amazon ECS vends both x86 and ARM versions of the Amazon ECS-optimized Amazon Linux 2 AMI. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#ecs-optimized-ami-linux-variants.html\">Amazon ECS-optimized Amazon Linux 2 AMI</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p> </note>", 587 "deprecated":true, 588 "deprecatedMessage":"This field is deprecated, use ec2Configuration[].imageIdOverride instead." 589 }, 590 "subnets":{ 591 "shape":"StringList", 592 "documentation":"<p>The VPC subnets where the compute resources are launched. These subnets must be within the same VPC. Fargate compute resources can contain up to 16 subnets. For more information, see <a href=\"https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html\">VPCs and Subnets</a> in the <i>Amazon VPC User Guide</i>.</p>" 593 }, 594 "securityGroupIds":{ 595 "shape":"StringList", 596 "documentation":"<p>The Amazon EC2 security groups associated with instances launched in the compute environment. One or more security groups must be specified, either in <code>securityGroupIds</code> or using a launch template referenced in <code>launchTemplate</code>. This parameter is required for jobs that are running on Fargate resources and must contain at least one security group. Fargate doesn't support launch templates. If security groups are specified using both <code>securityGroupIds</code> and <code>launchTemplate</code>, the values in <code>securityGroupIds</code> are used.</p>" 597 }, 598 "ec2KeyPair":{ 599 "shape":"String", 600 "documentation":"<p>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.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be specified.</p> </note>" 601 }, 602 "instanceRole":{ 603 "shape":"String", 604 "documentation":"<p>The Amazon ECS instance profile applied to Amazon EC2 instances in a compute environment. You can specify the short name or full Amazon Resource Name (ARN) of an instance profile. For example, <code> <i>ecsInstanceRole</i> </code> or <code>arn:aws:iam::<i><aws_account_id></i>:instance-profile/<i>ecsInstanceRole</i> </code>. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/instance_IAM_role.html\">Amazon ECS Instance Role</a> in the <i>Batch User Guide</i>.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be specified.</p> </note>" 605 }, 606 "tags":{ 607 "shape":"TagsMap", 608 "documentation":"<p>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, <code>{ \"Name\": \"Batch Instance - C4OnDemand\" }</code>. This is helpful for recognizing your Batch instances in the Amazon EC2 console. These tags can't be updated or removed after the compute environment is created.Aany changes to these tags require that you create a new compute environment and remove the old compute environment. These tags aren't seen when using the Batch <code>ListTagsForResource</code> API operation.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be specified.</p> </note>" 609 }, 610 "placementGroup":{ 611 "shape":"String", 612 "documentation":"<p>The Amazon EC2 placement group to associate with your compute resources. If you intend to submit multi-node parallel jobs to your compute environment, you should consider creating a cluster placement group and associate it with your compute resources. This keeps your multi-node parallel job on a logical grouping of instances within a single Availability Zone with high network flow potential. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html\">Placement Groups</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be specified.</p> </note>" 613 }, 614 "bidPercentage":{ 615 "shape":"Integer", 616 "documentation":"<p>The maximum percentage that a Spot Instance price can be when compared with the On-Demand price for that instance type before instances are launched. For example, if your maximum percentage is 20%, then the Spot price must be less than 20% of the current On-Demand price for that Amazon EC2 instance. You always pay the lowest (market) price and never more than your maximum percentage. If you leave this field empty, the default value is 100% of the On-Demand price.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be specified.</p> </note>" 617 }, 618 "spotIamFleetRole":{ 619 "shape":"String", 620 "documentation":"<p>The Amazon Resource Name (ARN) of the Amazon EC2 Spot Fleet IAM role applied to a <code>SPOT</code> compute environment. This role is required if the allocation strategy set to <code>BEST_FIT</code> or if the allocation strategy isn't specified. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/spot_fleet_IAM_role.html\">Amazon EC2 Spot Fleet Role</a> in the <i>Batch User Guide</i>.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be specified.</p> </note> <important> <p>To tag your Spot Instances on creation, the Spot Fleet IAM role specified here must use the newer <b>AmazonEC2SpotFleetTaggingRole</b> managed policy. The previously recommended <b>AmazonEC2SpotFleetRole</b> managed policy doesn't have the required permissions to tag Spot Instances. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/troubleshooting.html#spot-instance-no-tag\">Spot Instances not tagged on creation</a> in the <i>Batch User Guide</i>.</p> </important>" 621 }, 622 "launchTemplate":{ 623 "shape":"LaunchTemplateSpecification", 624 "documentation":"<p>The launch template to use for your compute resources. Any other compute resource parameters that you specify in a <a>CreateComputeEnvironment</a> 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 <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/launch-templates.html\">Launch Template Support</a> in the <i>Batch User Guide</i>.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be specified.</p> </note>" 625 }, 626 "ec2Configuration":{ 627 "shape":"Ec2ConfigurationList", 628 "documentation":"<p>Provides information used to select Amazon Machine Images (AMIs) for EC2 instances in the compute environment. If <code>Ec2Configuration</code> isn't specified, the default is <code>ECS_AL1</code>.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be specified.</p> </note>" 629 } 630 }, 631 "documentation":"<p>An object representing an Batch compute resource. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html\">Compute Environments</a> in the <i>Batch User Guide</i>.</p>" 632 }, 633 "ComputeResourceUpdate":{ 634 "type":"structure", 635 "members":{ 636 "minvCpus":{ 637 "shape":"Integer", 638 "documentation":"<p>The minimum number of Amazon EC2 vCPUs that an environment should maintain.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be specified.</p> </note>" 639 }, 640 "maxvCpus":{ 641 "shape":"Integer", 642 "documentation":"<p>The maximum number of Amazon EC2 vCPUs that an environment can reach.</p> <note> <p>With both <code>BEST_FIT_PROGRESSIVE</code> and <code>SPOT_CAPACITY_OPTIMIZED</code> allocation strategies, Batch might need to exceed <code>maxvCpus</code> to meet your capacity requirements. In this event, Batch never exceeds <code>maxvCpus</code> by more than a single instance. That is, no more than a single instance from among those specified in your compute environment.</p> </note>" 643 }, 644 "desiredvCpus":{ 645 "shape":"Integer", 646 "documentation":"<p>The desired number of Amazon EC2 vCPUS in the compute environment.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be specified.</p> </note>" 647 }, 648 "subnets":{ 649 "shape":"StringList", 650 "documentation":"<p>The VPC subnets where the compute resources are launched. Fargate compute resources can contain up to 16 subnets. Providing an empty list will be handled as if this parameter wasn't specified and no change is made. This can't be specified for EC2 compute resources. For more information, see <a href=\"https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html\">VPCs and Subnets</a> in the <i>Amazon VPC User Guide</i>.</p>" 651 }, 652 "securityGroupIds":{ 653 "shape":"StringList", 654 "documentation":"<p>The Amazon EC2 security groups 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. This can't be specified for EC2 compute resources. Providing an empty list is handled as if this parameter wasn't specified and no change is made.</p>" 655 } 656 }, 657 "documentation":"<p>An object representing the attributes of a compute environment that can be updated. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html\">Compute Environments</a> in the <i>Batch User Guide</i>.</p>" 658 }, 659 "ContainerDetail":{ 660 "type":"structure", 661 "members":{ 662 "image":{ 663 "shape":"String", 664 "documentation":"<p>The image used to start the container.</p>" 665 }, 666 "vcpus":{ 667 "shape":"Integer", 668 "documentation":"<p>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 <code>resourceRequirements</code>, but you can't specify the vCPU requirements in both the <code>vcpus</code> and <code>resourceRequirement</code> object. This parameter maps to <code>CpuShares</code> in the <a href=\"https://docs.docker.com/engine/api/v1.23/#create-a-container\">Create a container</a> section of the <a href=\"https://docs.docker.com/engine/api/v1.23/\">Docker Remote API</a> and the <code>--cpu-shares</code> option to <a href=\"https://docs.docker.com/engine/reference/run/\">docker run</a>. 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.</p> <note> <p>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 <code>resourceRequirements</code>.</p> </note>" 669 }, 670 "memory":{ 671 "shape":"Integer", 672 "documentation":"<p>For jobs run on EC2 resources that didn't specify memory requirements using <code>ResourceRequirement</code>, the number of MiB of memory reserved for the job. For other jobs, including all run on Fargate resources, see <code>resourceRequirements</code>.</p>" 673 }, 674 "command":{ 675 "shape":"StringList", 676 "documentation":"<p>The command that's passed to the container.</p>" 677 }, 678 "jobRoleArn":{ 679 "shape":"String", 680 "documentation":"<p>The Amazon Resource Name (ARN) associated with the job upon execution.</p>" 681 }, 682 "executionRoleArn":{ 683 "shape":"String", 684 "documentation":"<p>The Amazon Resource Name (ARN) of the execution role that Batch can assume. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/execution-IAM-role.html\">Batch execution IAM role</a> in the <i>Batch User Guide</i>.</p>" 685 }, 686 "volumes":{ 687 "shape":"Volumes", 688 "documentation":"<p>A list of volumes associated with the job.</p>" 689 }, 690 "environment":{ 691 "shape":"EnvironmentVariables", 692 "documentation":"<p>The environment variables to pass to a container.</p> <note> <p>Environment variables must not start with <code>AWS_BATCH</code>; this naming convention is reserved for variables that are set by the Batch service.</p> </note>" 693 }, 694 "mountPoints":{ 695 "shape":"MountPoints", 696 "documentation":"<p>The mount points for data volumes in your container.</p>" 697 }, 698 "readonlyRootFilesystem":{ 699 "shape":"Boolean", 700 "documentation":"<p>When this parameter is true, the container is given read-only access to its root file system. This parameter maps to <code>ReadonlyRootfs</code> in the <a href=\"https://docs.docker.com/engine/api/v1.23/#create-a-container\">Create a container</a> section of the <a href=\"https://docs.docker.com/engine/api/v1.23/\">Docker Remote API</a> and the <code>--read-only</code> option to <a href=\"https://docs.docker.com/engine/reference/commandline/run/\"> <code>docker run</code> </a>.</p>" 701 }, 702 "ulimits":{ 703 "shape":"Ulimits", 704 "documentation":"<p>A list of <code>ulimit</code> values to set in the container. This parameter maps to <code>Ulimits</code> in the <a href=\"https://docs.docker.com/engine/api/v1.23/#create-a-container\">Create a container</a> section of the <a href=\"https://docs.docker.com/engine/api/v1.23/\">Docker Remote API</a> and the <code>--ulimit</code> option to <a href=\"https://docs.docker.com/engine/reference/run/\">docker run</a>.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources.</p> </note>" 705 }, 706 "privileged":{ 707 "shape":"Boolean", 708 "documentation":"<p>When this parameter is true, the container is given elevated permissions on the host container instance (similar to the <code>root</code> user). The default value is false.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided, or specified as false.</p> </note>" 709 }, 710 "user":{ 711 "shape":"String", 712 "documentation":"<p>The user name to use inside the container. This parameter maps to <code>User</code> in the <a href=\"https://docs.docker.com/engine/api/v1.23/#create-a-container\">Create a container</a> section of the <a href=\"https://docs.docker.com/engine/api/v1.23/\">Docker Remote API</a> and the <code>--user</code> option to <a href=\"https://docs.docker.com/engine/reference/run/\">docker run</a>.</p>" 713 }, 714 "exitCode":{ 715 "shape":"Integer", 716 "documentation":"<p>The exit code to return upon completion.</p>" 717 }, 718 "reason":{ 719 "shape":"String", 720 "documentation":"<p>A short (255 max characters) human-readable string to provide additional details about a running or stopped container.</p>" 721 }, 722 "containerInstanceArn":{ 723 "shape":"String", 724 "documentation":"<p>The Amazon Resource Name (ARN) of the container instance that the container is running on.</p>" 725 }, 726 "taskArn":{ 727 "shape":"String", 728 "documentation":"<p>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 <code>STARTING</code> status.</p>" 729 }, 730 "logStreamName":{ 731 "shape":"String", 732 "documentation":"<p>The name of the CloudWatch Logs log stream associated with the container. The log group for Batch jobs is <code>/aws/batch/job</code>. Each container attempt receives a log stream name when they reach the <code>RUNNING</code> status.</p>" 733 }, 734 "instanceType":{ 735 "shape":"String", 736 "documentation":"<p>The instance type of the underlying host infrastructure of a multi-node parallel job.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources.</p> </note>" 737 }, 738 "networkInterfaces":{ 739 "shape":"NetworkInterfaceList", 740 "documentation":"<p>The network interfaces associated with the job.</p>" 741 }, 742 "resourceRequirements":{ 743 "shape":"ResourceRequirements", 744 "documentation":"<p>The type and amount of resources to assign to a container. The supported resources include <code>GPU</code>, <code>MEMORY</code>, and <code>VCPU</code>.</p>" 745 }, 746 "linuxParameters":{ 747 "shape":"LinuxParameters", 748 "documentation":"<p>Linux-specific modifications that are applied to the container, such as details for device mappings.</p>" 749 }, 750 "logConfiguration":{ 751 "shape":"LogConfiguration", 752 "documentation":"<p>The log configuration specification for the container.</p> <p>This parameter maps to <code>LogConfig</code> in the <a href=\"https://docs.docker.com/engine/api/v1.23/#create-a-container\">Create a container</a> section of the <a href=\"https://docs.docker.com/engine/api/v1.23/\">Docker Remote API</a> and the <code>--log-driver</code> option to <a href=\"https://docs.docker.com/engine/reference/run/\">docker run</a>. 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 <a href=\"https://docs.docker.com/engine/admin/logging/overview/\">Configure logging drivers</a> in the Docker documentation.</p> <note> <p>Batch currently supports a subset of the logging drivers available to the Docker daemon (shown in the <a>LogConfiguration</a> data type). Additional log drivers might be available in future releases of the Amazon ECS container agent.</p> </note> <p>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 into your container instance and run the following command: <code>sudo docker version | grep \"Server API version\"</code> </p> <note> <p>The Amazon ECS container agent running on a container instance must register the logging drivers available on that instance with the <code>ECS_AVAILABLE_LOGGING_DRIVERS</code> environment variable before containers placed on that instance can use these log configuration options. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html\">Amazon ECS Container Agent Configuration</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p> </note>" 753 }, 754 "secrets":{ 755 "shape":"SecretList", 756 "documentation":"<p>The secrets to pass to the container. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html\">Specifying sensitive data</a> in the <i>Batch User Guide</i>.</p>" 757 }, 758 "networkConfiguration":{ 759 "shape":"NetworkConfiguration", 760 "documentation":"<p>The network configuration for jobs that are running on Fargate resources. Jobs that are running on EC2 resources must not specify this parameter.</p>" 761 }, 762 "fargatePlatformConfiguration":{ 763 "shape":"FargatePlatformConfiguration", 764 "documentation":"<p>The platform configuration for jobs that are running on Fargate resources. Jobs that are running on EC2 resources must not specify this parameter.</p>" 765 } 766 }, 767 "documentation":"<p>An object representing the details of a container that's part of a job.</p>" 768 }, 769 "ContainerOverrides":{ 770 "type":"structure", 771 "members":{ 772 "vcpus":{ 773 "shape":"Integer", 774 "documentation":"<p>This parameter indicates the number of vCPUs reserved for the container.It overrides the <code>vcpus</code> parameter that's set in the job definition, but doesn't override any vCPU requirement specified in the <code>resourceRequirement</code> structure in the job definition. To override vCPU requirements that are specified in the <code>ResourceRequirement</code> structure in the job definition, <code>ResourceRequirement</code> must be specified in the <code>SubmitJob</code> request, with <code>type</code> set to <code>VCPU</code> and <code>value</code> set to the new value.</p> <p>This parameter maps to <code>CpuShares</code> in the <a href=\"https://docs.docker.com/engine/api/v1.23/#create-a-container\">Create a container</a> section of the <a href=\"https://docs.docker.com/engine/api/v1.23/\">Docker Remote API</a> and the <code>--cpu-shares</code> option to <a href=\"https://docs.docker.com/engine/reference/run/\">docker run</a>. Each vCPU is equivalent to 1,024 CPU shares. You must specify at least one vCPU.</p> <note> <p>This parameter is supported for jobs that run on EC2 resources, but isn't supported for jobs that run on Fargate resources. For Fargate resources, you can only use <code>resourceRequirement</code>. For EC2 resources, you can use either this parameter or <code>resourceRequirement</code> but not both.</p> </note>", 775 "deprecated":true, 776 "deprecatedMessage":"This field is deprecated, use resourceRequirements instead." 777 }, 778 "memory":{ 779 "shape":"Integer", 780 "documentation":"<p>This parameter indicates the amount of memory (in MiB) that's reserved for the job. It overrides the <code>memory</code> parameter set in the job definition, but doesn't override any memory requirement specified in the <code>ResourceRequirement</code> structure in the job definition. To override memory requirements that are specified in the <code>ResourceRequirement</code> structure in the job definition, <code>ResourceRequirement</code> must be specified in the <code>SubmitJob</code> request, with <code>type</code> set to <code>MEMORY</code> and <code>value</code> set to the new value.</p> <p>This parameter is supported for jobs that run on EC2 resources, but isn't supported for jobs that run on Fargate resources. For these resources, use <code>resourceRequirement</code> instead.</p>", 781 "deprecated":true, 782 "deprecatedMessage":"This field is deprecated, use resourceRequirements instead." 783 }, 784 "command":{ 785 "shape":"StringList", 786 "documentation":"<p>The command to send to the container that overrides the default command from the Docker image or the job definition.</p>" 787 }, 788 "instanceType":{ 789 "shape":"String", 790 "documentation":"<p>The instance type to use for a multi-node parallel job.</p> <note> <p>This parameter isn't applicable to single-node container jobs or jobs that run on Fargate resources, and shouldn't be provided.</p> </note>" 791 }, 792 "environment":{ 793 "shape":"EnvironmentVariables", 794 "documentation":"<p>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.</p> <note> <p>Environment variables must not start with <code>AWS_BATCH</code>; this naming convention is reserved for variables that are set by the Batch service.</p> </note>" 795 }, 796 "resourceRequirements":{ 797 "shape":"ResourceRequirements", 798 "documentation":"<p>The type and amount of resources to assign to a container. This overrides the settings in the job definition. The supported resources include <code>GPU</code>, <code>MEMORY</code>, and <code>VCPU</code>.</p>" 799 } 800 }, 801 "documentation":"<p>The overrides that should be sent to a container.</p>" 802 }, 803 "ContainerProperties":{ 804 "type":"structure", 805 "members":{ 806 "image":{ 807 "shape":"String", 808 "documentation":"<p>The image used to start a container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with <code> <i>repository-url</i>/<i>image</i>:<i>tag</i> </code>. Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to <code>Image</code> in the <a href=\"https://docs.docker.com/engine/api/v1.23/#create-a-container\">Create a container</a> section of the <a href=\"https://docs.docker.com/engine/api/v1.23/\">Docker Remote API</a> and the <code>IMAGE</code> parameter of <a href=\"https://docs.docker.com/engine/reference/run/\">docker run</a>.</p> <note> <p>Docker image architecture must match the processor architecture of the compute resources that they're scheduled on. For example, ARM-based Docker images can only run on ARM-based compute resources.</p> </note> <ul> <li> <p>Images in Amazon ECR repositories use the full registry and repository URI (for example, <code>012345678910.dkr.ecr.<region-name>.amazonaws.com/<repository-name></code>).</p> </li> <li> <p>Images in official repositories on Docker Hub use a single name (for example, <code>ubuntu</code> or <code>mongo</code>).</p> </li> <li> <p>Images in other repositories on Docker Hub are qualified with an organization name (for example, <code>amazon/amazon-ecs-agent</code>).</p> </li> <li> <p>Images in other online repositories are qualified further by a domain name (for example, <code>quay.io/assemblyline/ubuntu</code>).</p> </li> </ul>" 809 }, 810 "vcpus":{ 811 "shape":"Integer", 812 "documentation":"<p>The number of vCPUs reserved for the job. Each vCPU is equivalent to 1,024 CPU shares. This parameter maps to <code>CpuShares</code> in the <a href=\"https://docs.docker.com/engine/api/v1.23/#create-a-container\">Create a container</a> section of the <a href=\"https://docs.docker.com/engine/api/v1.23/\">Docker Remote API</a> and the <code>--cpu-shares</code> option to <a href=\"https://docs.docker.com/engine/reference/run/\">docker run</a>. The number of vCPUs must be specified but can be specified in several places. You must specify it at least once for each node.</p> <p>This parameter is supported on EC2 resources but isn't supported for jobs that run on Fargate resources. For these resources, use <code>resourceRequirement</code> instead. You can use this parameter or <code>resourceRequirements</code> structure but not both.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided. For jobs that run on Fargate resources, you must specify the vCPU requirement for the job using <code>resourceRequirements</code>.</p> </note>", 813 "deprecated":true, 814 "deprecatedMessage":"This field is deprecated, use resourceRequirements instead." 815 }, 816 "memory":{ 817 "shape":"Integer", 818 "documentation":"<p>This parameter indicates 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.</p> <p>This parameter maps to <code>Memory</code> in the <a href=\"https://docs.docker.com/engine/api/v1.23/#create-a-container\">Create a container</a> section of the <a href=\"https://docs.docker.com/engine/api/v1.23/\">Docker Remote API</a> and the <code>--memory</code> option to <a href=\"https://docs.docker.com/engine/reference/run/\">docker run</a>.</p> <p>This parameter is supported on EC2 resources but isn't supported on Fargate resources. For Fargate resources, you should specify the memory requirement using <code>resourceRequirement</code>. You can also do this for EC2 resources.</p> <note> <p>If you're trying to maximize your resource utilization by providing your jobs as much memory as possible for a particular instance type, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/memory-management.html\">Memory Management</a> in the <i>Batch User Guide</i>.</p> </note>", 819 "deprecated":true, 820 "deprecatedMessage":"This field is deprecated, use resourceRequirements instead." 821 }, 822 "command":{ 823 "shape":"StringList", 824 "documentation":"<p>The command that's passed to the container. This parameter maps to <code>Cmd</code> in the <a href=\"https://docs.docker.com/engine/api/v1.23/#create-a-container\">Create a container</a> section of the <a href=\"https://docs.docker.com/engine/api/v1.23/\">Docker Remote API</a> and the <code>COMMAND</code> parameter to <a href=\"https://docs.docker.com/engine/reference/run/\">docker run</a>. For more information, see <a href=\"https://docs.docker.com/engine/reference/builder/#cmd\">https://docs.docker.com/engine/reference/builder/#cmd</a>.</p>" 825 }, 826 "jobRoleArn":{ 827 "shape":"String", 828 "documentation":"<p>The Amazon Resource Name (ARN) of the IAM role that the container can assume for Amazon Web Services permissions. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html\">IAM Roles for Tasks</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>" 829 }, 830 "executionRoleArn":{ 831 "shape":"String", 832 "documentation":"<p>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 <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/execution-IAM-role.html\">Batch execution IAM role</a> in the <i>Batch User Guide</i>.</p>" 833 }, 834 "volumes":{ 835 "shape":"Volumes", 836 "documentation":"<p>A list of data volumes used in a job.</p>" 837 }, 838 "environment":{ 839 "shape":"EnvironmentVariables", 840 "documentation":"<p>The environment variables to pass to a container. This parameter maps to <code>Env</code> in the <a href=\"https://docs.docker.com/engine/api/v1.23/#create-a-container\">Create a container</a> section of the <a href=\"https://docs.docker.com/engine/api/v1.23/\">Docker Remote API</a> and the <code>--env</code> option to <a href=\"https://docs.docker.com/engine/reference/run/\">docker run</a>.</p> <important> <p>We don't recommend using plaintext environment variables for sensitive information, such as credential data.</p> </important> <note> <p>Environment variables must not start with <code>AWS_BATCH</code>; this naming convention is reserved for variables that are set by the Batch service.</p> </note>" 841 }, 842 "mountPoints":{ 843 "shape":"MountPoints", 844 "documentation":"<p>The mount points for data volumes in your container. This parameter maps to <code>Volumes</code> in the <a href=\"https://docs.docker.com/engine/api/v1.23/#create-a-container\">Create a container</a> section of the <a href=\"https://docs.docker.com/engine/api/v1.23/\">Docker Remote API</a> and the <code>--volume</code> option to <a href=\"https://docs.docker.com/engine/reference/run/\">docker run</a>.</p>" 845 }, 846 "readonlyRootFilesystem":{ 847 "shape":"Boolean", 848 "documentation":"<p>When this parameter is true, the container is given read-only access to its root file system. This parameter maps to <code>ReadonlyRootfs</code> in the <a href=\"https://docs.docker.com/engine/api/v1.23/#create-a-container\">Create a container</a> section of the <a href=\"https://docs.docker.com/engine/api/v1.23/\">Docker Remote API</a> and the <code>--read-only</code> option to <code>docker run</code>.</p>" 849 }, 850 "privileged":{ 851 "shape":"Boolean", 852 "documentation":"<p>When this parameter is true, the container is given elevated permissions on the host container instance (similar to the <code>root</code> user). This parameter maps to <code>Privileged</code> in the <a href=\"https://docs.docker.com/engine/api/v1.23/#create-a-container\">Create a container</a> section of the <a href=\"https://docs.docker.com/engine/api/v1.23/\">Docker Remote API</a> and the <code>--privileged</code> option to <a href=\"https://docs.docker.com/engine/reference/run/\">docker run</a>. The default value is false.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided, or specified as false.</p> </note>" 853 }, 854 "ulimits":{ 855 "shape":"Ulimits", 856 "documentation":"<p>A list of <code>ulimits</code> to set in the container. This parameter maps to <code>Ulimits</code> in the <a href=\"https://docs.docker.com/engine/api/v1.23/#create-a-container\">Create a container</a> section of the <a href=\"https://docs.docker.com/engine/api/v1.23/\">Docker Remote API</a> and the <code>--ulimit</code> option to <a href=\"https://docs.docker.com/engine/reference/run/\">docker run</a>.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.</p> </note>" 857 }, 858 "user":{ 859 "shape":"String", 860 "documentation":"<p>The user name to use inside the container. This parameter maps to <code>User</code> in the <a href=\"https://docs.docker.com/engine/api/v1.23/#create-a-container\">Create a container</a> section of the <a href=\"https://docs.docker.com/engine/api/v1.23/\">Docker Remote API</a> and the <code>--user</code> option to <a href=\"https://docs.docker.com/engine/reference/run/\">docker run</a>.</p>" 861 }, 862 "instanceType":{ 863 "shape":"String", 864 "documentation":"<p>The instance type to use for a multi-node parallel job. All node groups in a multi-node parallel job must use the same instance type.</p> <note> <p>This parameter isn't applicable to single-node container jobs or jobs that run on Fargate resources, and shouldn't be provided.</p> </note>" 865 }, 866 "resourceRequirements":{ 867 "shape":"ResourceRequirements", 868 "documentation":"<p>The type and amount of resources to assign to a container. The supported resources include <code>GPU</code>, <code>MEMORY</code>, and <code>VCPU</code>.</p>" 869 }, 870 "linuxParameters":{ 871 "shape":"LinuxParameters", 872 "documentation":"<p>Linux-specific modifications that are applied to the container, such as details for device mappings.</p>" 873 }, 874 "logConfiguration":{ 875 "shape":"LogConfiguration", 876 "documentation":"<p>The log configuration specification for the container.</p> <p>This parameter maps to <code>LogConfig</code> in the <a href=\"https://docs.docker.com/engine/api/v1.23/#create-a-container\">Create a container</a> section of the <a href=\"https://docs.docker.com/engine/api/v1.23/\">Docker Remote API</a> and the <code>--log-driver</code> option to <a href=\"https://docs.docker.com/engine/reference/run/\">docker run</a>. 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 on a different log server for remote logging options). For more information on the options for different supported log drivers, see <a href=\"https://docs.docker.com/engine/admin/logging/overview/\">Configure logging drivers</a> in the Docker documentation.</p> <note> <p>Batch currently supports a subset of the logging drivers available to the Docker daemon (shown in the <a>LogConfiguration</a> data type).</p> </note> <p>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 into your container instance and run the following command: <code>sudo docker version | grep \"Server API version\"</code> </p> <note> <p>The Amazon ECS container agent running on a container instance must register the logging drivers available on that instance with the <code>ECS_AVAILABLE_LOGGING_DRIVERS</code> environment variable before containers placed on that instance can use these log configuration options. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html\">Amazon ECS Container Agent Configuration</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p> </note>" 877 }, 878 "secrets":{ 879 "shape":"SecretList", 880 "documentation":"<p>The secrets for the container. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html\">Specifying sensitive data</a> in the <i>Batch User Guide</i>.</p>" 881 }, 882 "networkConfiguration":{ 883 "shape":"NetworkConfiguration", 884 "documentation":"<p>The network configuration for jobs that are running on Fargate resources. Jobs that are running on EC2 resources must not specify this parameter.</p>" 885 }, 886 "fargatePlatformConfiguration":{ 887 "shape":"FargatePlatformConfiguration", 888 "documentation":"<p>The platform configuration for jobs that are running on Fargate resources. Jobs that are running on EC2 resources must not specify this parameter.</p>" 889 } 890 }, 891 "documentation":"<p>Container properties are used in job definitions to describe the container that's launched as part of a job.</p>" 892 }, 893 "ContainerSummary":{ 894 "type":"structure", 895 "members":{ 896 "exitCode":{ 897 "shape":"Integer", 898 "documentation":"<p>The exit code to return upon completion.</p>" 899 }, 900 "reason":{ 901 "shape":"String", 902 "documentation":"<p>A short (255 max characters) human-readable string to provide additional details about a running or stopped container.</p>" 903 } 904 }, 905 "documentation":"<p>An object representing summary details of a container within a job.</p>" 906 }, 907 "CreateComputeEnvironmentRequest":{ 908 "type":"structure", 909 "required":[ 910 "computeEnvironmentName", 911 "type" 912 ], 913 "members":{ 914 "computeEnvironmentName":{ 915 "shape":"String", 916 "documentation":"<p>The name for your compute environment. Up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.</p>" 917 }, 918 "type":{ 919 "shape":"CEType", 920 "documentation":"<p>The type of the compute environment: <code>MANAGED</code> or <code>UNMANAGED</code>. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html\">Compute Environments</a> in the <i>Batch User Guide</i>.</p>" 921 }, 922 "state":{ 923 "shape":"CEState", 924 "documentation":"<p>The state of the compute environment. If the state is <code>ENABLED</code>, then the compute environment accepts jobs from a queue and can scale out automatically based on queues.</p> <p>If the state is <code>ENABLED</code>, then the Batch scheduler can attempt to place jobs from an associated job queue on the compute resources within the environment. If the compute environment is managed, then it can scale its instances out or in automatically, based on the job queue demand.</p> <p>If the state is <code>DISABLED</code>, then the Batch scheduler doesn't attempt to place jobs within the environment. Jobs in a <code>STARTING</code> or <code>RUNNING</code> state continue to progress normally. Managed compute environments in the <code>DISABLED</code> state don't scale out. However, they scale in to <code>minvCpus</code> value after instances become idle.</p>" 925 }, 926 "computeResources":{ 927 "shape":"ComputeResource", 928 "documentation":"<p>Details about the compute resources managed by the compute environment. This parameter is required for managed compute environments. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html\">Compute Environments</a> in the <i>Batch User Guide</i>.</p>" 929 }, 930 "serviceRole":{ 931 "shape":"String", 932 "documentation":"<p>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 <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/service_IAM_role.html\">Batch service IAM role</a> in the <i>Batch User Guide</i>.</p> <important> <p>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.</p> </important> <p>If your specified role has a path other than <code>/</code>, 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 <code>bar</code> has a path of <code>/foo/</code> then you would specify <code>/foo/bar</code> as the role name. For more information, see <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-friendly-names\">Friendly names and paths</a> in the <i>IAM User Guide</i>.</p> <note> <p>Depending on how you created your Batch service role, its ARN might contain the <code>service-role</code> path prefix. When you only specify the name of the service role, Batch assumes that your ARN doesn't use the <code>service-role</code> path prefix. Because of this, we recommend that you specify the full ARN of your service role when you create compute environments.</p> </note>" 933 }, 934 "tags":{ 935 "shape":"TagrisTagsMap", 936 "documentation":"<p>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 <a href=\"https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html\">Tagging Amazon Web Services Resources</a> in <i>Amazon Web Services General Reference</i>.</p> <p>These tags can be updated or removed using the <a href=\"https://docs.aws.amazon.com/batch/latest/APIReference/API_TagResource.html\">TagResource</a> and <a href=\"https://docs.aws.amazon.com/batch/latest/APIReference/API_UntagResource.html\">UntagResource</a> API operations. These tags don't propagate to the underlying compute resources.</p>" 937 } 938 }, 939 "documentation":"<p>Contains the parameters for <code>CreateComputeEnvironment</code>.</p>" 940 }, 941 "CreateComputeEnvironmentResponse":{ 942 "type":"structure", 943 "members":{ 944 "computeEnvironmentName":{ 945 "shape":"String", 946 "documentation":"<p>The name of the compute environment. Up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.</p>" 947 }, 948 "computeEnvironmentArn":{ 949 "shape":"String", 950 "documentation":"<p>The Amazon Resource Name (ARN) of the compute environment.</p>" 951 } 952 } 953 }, 954 "CreateJobQueueRequest":{ 955 "type":"structure", 956 "required":[ 957 "jobQueueName", 958 "priority", 959 "computeEnvironmentOrder" 960 ], 961 "members":{ 962 "jobQueueName":{ 963 "shape":"String", 964 "documentation":"<p>The name of the job queue. Up to 128 letters (uppercase and lowercase), numbers, and underscores are allowed.</p>" 965 }, 966 "state":{ 967 "shape":"JQState", 968 "documentation":"<p>The state of the job queue. If the job queue state is <code>ENABLED</code>, it is able to accept jobs. If the job queue state is <code>DISABLED</code>, new jobs can't be added to the queue, but jobs already in the queue can finish.</p>" 969 }, 970 "priority":{ 971 "shape":"Integer", 972 "documentation":"<p>The priority of the job queue. Job queues with a higher priority (or a higher integer value for the <code>priority</code> 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 <code>10</code> is given scheduling preference over a job queue with a priority value of <code>1</code>. All of the compute environments must be either EC2 (<code>EC2</code> or <code>SPOT</code>) or Fargate (<code>FARGATE</code> or <code>FARGATE_SPOT</code>); EC2 and Fargate compute environments can't be mixed.</p>" 973 }, 974 "computeEnvironmentOrder":{ 975 "shape":"ComputeEnvironmentOrders", 976 "documentation":"<p>The set of compute environments mapped to a job queue and their order relative to each other. The job scheduler uses this parameter to determine which compute environment should run a specific job. Compute environments must be in the <code>VALID</code> 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 (<code>EC2</code> or <code>SPOT</code>) or Fargate (<code>FARGATE</code> or <code>FARGATE_SPOT</code>); EC2 and Fargate compute environments can't be mixed.</p> <note> <p>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.</p> </note>" 977 }, 978 "tags":{ 979 "shape":"TagrisTagsMap", 980 "documentation":"<p>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 <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html\">Tagging your Batch resources</a> in <i>Batch User Guide</i>.</p>" 981 } 982 }, 983 "documentation":"<p>Contains the parameters for <code>CreateJobQueue</code>.</p>" 984 }, 985 "CreateJobQueueResponse":{ 986 "type":"structure", 987 "required":[ 988 "jobQueueName", 989 "jobQueueArn" 990 ], 991 "members":{ 992 "jobQueueName":{ 993 "shape":"String", 994 "documentation":"<p>The name of the job queue.</p>" 995 }, 996 "jobQueueArn":{ 997 "shape":"String", 998 "documentation":"<p>The Amazon Resource Name (ARN) of the job queue.</p>" 999 } 1000 } 1001 }, 1002 "DeleteComputeEnvironmentRequest":{ 1003 "type":"structure", 1004 "required":["computeEnvironment"], 1005 "members":{ 1006 "computeEnvironment":{ 1007 "shape":"String", 1008 "documentation":"<p>The name or Amazon Resource Name (ARN) of the compute environment to delete.</p>" 1009 } 1010 }, 1011 "documentation":"<p>Contains the parameters for <code>DeleteComputeEnvironment</code>.</p>" 1012 }, 1013 "DeleteComputeEnvironmentResponse":{ 1014 "type":"structure", 1015 "members":{ 1016 } 1017 }, 1018 "DeleteJobQueueRequest":{ 1019 "type":"structure", 1020 "required":["jobQueue"], 1021 "members":{ 1022 "jobQueue":{ 1023 "shape":"String", 1024 "documentation":"<p>The short name or full Amazon Resource Name (ARN) of the queue to delete.</p>" 1025 } 1026 }, 1027 "documentation":"<p>Contains the parameters for <code>DeleteJobQueue</code>.</p>" 1028 }, 1029 "DeleteJobQueueResponse":{ 1030 "type":"structure", 1031 "members":{ 1032 } 1033 }, 1034 "DeregisterJobDefinitionRequest":{ 1035 "type":"structure", 1036 "required":["jobDefinition"], 1037 "members":{ 1038 "jobDefinition":{ 1039 "shape":"String", 1040 "documentation":"<p>The name and revision (<code>name:revision</code>) or full Amazon Resource Name (ARN) of the job definition to deregister.</p>" 1041 } 1042 } 1043 }, 1044 "DeregisterJobDefinitionResponse":{ 1045 "type":"structure", 1046 "members":{ 1047 } 1048 }, 1049 "DescribeComputeEnvironmentsRequest":{ 1050 "type":"structure", 1051 "members":{ 1052 "computeEnvironments":{ 1053 "shape":"StringList", 1054 "documentation":"<p>A list of up to 100 compute environment names or full Amazon Resource Name (ARN) entries.</p>" 1055 }, 1056 "maxResults":{ 1057 "shape":"Integer", 1058 "documentation":"<p>The maximum number of cluster results returned by <code>DescribeComputeEnvironments</code> in paginated output. When this parameter is used, <code>DescribeComputeEnvironments</code> only returns <code>maxResults</code> results in a single page along with a <code>nextToken</code> response element. The remaining results of the initial request can be seen by sending another <code>DescribeComputeEnvironments</code> request with the returned <code>nextToken</code> value. This value can be between 1 and 100. If this parameter isn't used, then <code>DescribeComputeEnvironments</code> returns up to 100 results and a <code>nextToken</code> value if applicable.</p>" 1059 }, 1060 "nextToken":{ 1061 "shape":"String", 1062 "documentation":"<p>The <code>nextToken</code> value returned from a previous paginated <code>DescribeComputeEnvironments</code> request where <code>maxResults</code> was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the <code>nextToken</code> value. This value is <code>null</code> when there are no more results to return.</p> <note> <p>This token should be treated as an opaque identifier that's only used to retrieve the next items in a list and not for other programmatic purposes.</p> </note>" 1063 } 1064 }, 1065 "documentation":"<p>Contains the parameters for <code>DescribeComputeEnvironments</code>.</p>" 1066 }, 1067 "DescribeComputeEnvironmentsResponse":{ 1068 "type":"structure", 1069 "members":{ 1070 "computeEnvironments":{ 1071 "shape":"ComputeEnvironmentDetailList", 1072 "documentation":"<p>The list of compute environments.</p>" 1073 }, 1074 "nextToken":{ 1075 "shape":"String", 1076 "documentation":"<p>The <code>nextToken</code> value to include in a future <code>DescribeComputeEnvironments</code> request. When the results of a <code>DescribeJobDefinitions</code> request exceed <code>maxResults</code>, this value can be used to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>" 1077 } 1078 } 1079 }, 1080 "DescribeJobDefinitionsRequest":{ 1081 "type":"structure", 1082 "members":{ 1083 "jobDefinitions":{ 1084 "shape":"StringList", 1085 "documentation":"<p>A list of up to 100 job definitions. Each entry in the list can either be an ARN of the form <code>arn:aws:batch:${Region}:${Account}:job-definition/${JobDefinitionName}:${Revision}</code> or a short version using the form <code>${JobDefinitionName}:${Revision}</code>.</p>" 1086 }, 1087 "maxResults":{ 1088 "shape":"Integer", 1089 "documentation":"<p>The maximum number of results returned by <code>DescribeJobDefinitions</code> in paginated output. When this parameter is used, <code>DescribeJobDefinitions</code> only returns <code>maxResults</code> results in a single page and a <code>nextToken</code> response element. The remaining results of the initial request can be seen by sending another <code>DescribeJobDefinitions</code> request with the returned <code>nextToken</code> value. This value can be between 1 and 100. If this parameter isn't used, then <code>DescribeJobDefinitions</code> returns up to 100 results and a <code>nextToken</code> value if applicable.</p>" 1090 }, 1091 "jobDefinitionName":{ 1092 "shape":"String", 1093 "documentation":"<p>The name of the job definition to describe.</p>" 1094 }, 1095 "status":{ 1096 "shape":"String", 1097 "documentation":"<p>The status used to filter job definitions.</p>" 1098 }, 1099 "nextToken":{ 1100 "shape":"String", 1101 "documentation":"<p>The <code>nextToken</code> value returned from a previous paginated <code>DescribeJobDefinitions</code> request where <code>maxResults</code> was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the <code>nextToken</code> value. This value is <code>null</code> when there are no more results to return.</p> <note> <p>This token should be treated as an opaque identifier that's only used to retrieve the next items in a list and not for other programmatic purposes.</p> </note>" 1102 } 1103 }, 1104 "documentation":"<p>Contains the parameters for <code>DescribeJobDefinitions</code>.</p>" 1105 }, 1106 "DescribeJobDefinitionsResponse":{ 1107 "type":"structure", 1108 "members":{ 1109 "jobDefinitions":{ 1110 "shape":"JobDefinitionList", 1111 "documentation":"<p>The list of job definitions.</p>" 1112 }, 1113 "nextToken":{ 1114 "shape":"String", 1115 "documentation":"<p>The <code>nextToken</code> value to include in a future <code>DescribeJobDefinitions</code> request. When the results of a <code>DescribeJobDefinitions</code> request exceed <code>maxResults</code>, this value can be used to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>" 1116 } 1117 } 1118 }, 1119 "DescribeJobQueuesRequest":{ 1120 "type":"structure", 1121 "members":{ 1122 "jobQueues":{ 1123 "shape":"StringList", 1124 "documentation":"<p>A list of up to 100 queue names or full queue Amazon Resource Name (ARN) entries.</p>" 1125 }, 1126 "maxResults":{ 1127 "shape":"Integer", 1128 "documentation":"<p>The maximum number of results returned by <code>DescribeJobQueues</code> in paginated output. When this parameter is used, <code>DescribeJobQueues</code> only returns <code>maxResults</code> results in a single page and a <code>nextToken</code> response element. The remaining results of the initial request can be seen by sending another <code>DescribeJobQueues</code> request with the returned <code>nextToken</code> value. This value can be between 1 and 100. If this parameter isn't used, then <code>DescribeJobQueues</code> returns up to 100 results and a <code>nextToken</code> value if applicable.</p>" 1129 }, 1130 "nextToken":{ 1131 "shape":"String", 1132 "documentation":"<p>The <code>nextToken</code> value returned from a previous paginated <code>DescribeJobQueues</code> request where <code>maxResults</code> was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the <code>nextToken</code> value. This value is <code>null</code> when there are no more results to return.</p> <note> <p>This token should be treated as an opaque identifier that's only used to retrieve the next items in a list and not for other programmatic purposes.</p> </note>" 1133 } 1134 }, 1135 "documentation":"<p>Contains the parameters for <code>DescribeJobQueues</code>.</p>" 1136 }, 1137 "DescribeJobQueuesResponse":{ 1138 "type":"structure", 1139 "members":{ 1140 "jobQueues":{ 1141 "shape":"JobQueueDetailList", 1142 "documentation":"<p>The list of job queues.</p>" 1143 }, 1144 "nextToken":{ 1145 "shape":"String", 1146 "documentation":"<p>The <code>nextToken</code> value to include in a future <code>DescribeJobQueues</code> request. When the results of a <code>DescribeJobQueues</code> request exceed <code>maxResults</code>, this value can be used to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>" 1147 } 1148 } 1149 }, 1150 "DescribeJobsRequest":{ 1151 "type":"structure", 1152 "required":["jobs"], 1153 "members":{ 1154 "jobs":{ 1155 "shape":"StringList", 1156 "documentation":"<p>A list of up to 100 job IDs.</p>" 1157 } 1158 }, 1159 "documentation":"<p>Contains the parameters for <code>DescribeJobs</code>.</p>" 1160 }, 1161 "DescribeJobsResponse":{ 1162 "type":"structure", 1163 "members":{ 1164 "jobs":{ 1165 "shape":"JobDetailList", 1166 "documentation":"<p>The list of jobs.</p>" 1167 } 1168 } 1169 }, 1170 "Device":{ 1171 "type":"structure", 1172 "required":["hostPath"], 1173 "members":{ 1174 "hostPath":{ 1175 "shape":"String", 1176 "documentation":"<p>The path for the device on the host container instance.</p>" 1177 }, 1178 "containerPath":{ 1179 "shape":"String", 1180 "documentation":"<p>The path inside the container that's used to expose the host device. By default, the <code>hostPath</code> value is used.</p>" 1181 }, 1182 "permissions":{ 1183 "shape":"DeviceCgroupPermissions", 1184 "documentation":"<p>The explicit permissions to provide to the container for the device. By default, the container has permissions for <code>read</code>, <code>write</code>, and <code>mknod</code> for the device.</p>" 1185 } 1186 }, 1187 "documentation":"<p>An object representing a container instance host device.</p> <note> <p>This object isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.</p> </note>" 1188 }, 1189 "DeviceCgroupPermission":{ 1190 "type":"string", 1191 "enum":[ 1192 "READ", 1193 "WRITE", 1194 "MKNOD" 1195 ] 1196 }, 1197 "DeviceCgroupPermissions":{ 1198 "type":"list", 1199 "member":{"shape":"DeviceCgroupPermission"} 1200 }, 1201 "DevicesList":{ 1202 "type":"list", 1203 "member":{"shape":"Device"} 1204 }, 1205 "EFSAuthorizationConfig":{ 1206 "type":"structure", 1207 "members":{ 1208 "accessPointId":{ 1209 "shape":"String", 1210 "documentation":"<p>The Amazon EFS access point ID to use. If an access point is specified, the root directory value specified in the <code>EFSVolumeConfiguration</code> must either be omitted or set to <code>/</code> which will enforce the path set on the EFS access point. If an access point is used, transit encryption must be enabled in the <code>EFSVolumeConfiguration</code>. For more information, see <a href=\"https://docs.aws.amazon.com/efs/latest/ug/efs-access-points.html\">Working with Amazon EFS Access Points</a> in the <i>Amazon Elastic File System User Guide</i>.</p>" 1211 }, 1212 "iam":{ 1213 "shape":"EFSAuthorizationConfigIAM", 1214 "documentation":"<p>Whether or not to use the Batch job IAM role defined in a job definition when mounting the Amazon EFS file system. If enabled, transit encryption must be enabled in the <code>EFSVolumeConfiguration</code>. If this parameter is omitted, the default value of <code>DISABLED</code> is used. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/efs-volumes.html#efs-volume-accesspoints\">Using Amazon EFS Access Points</a> in the <i>Batch User Guide</i>. EFS IAM authorization requires that <code>TransitEncryption</code> be <code>ENABLED</code> and that a <code>JobRoleArn</code> is specified.</p>" 1215 } 1216 }, 1217 "documentation":"<p>The authorization configuration details for the Amazon EFS file system.</p>" 1218 }, 1219 "EFSAuthorizationConfigIAM":{ 1220 "type":"string", 1221 "enum":[ 1222 "ENABLED", 1223 "DISABLED" 1224 ] 1225 }, 1226 "EFSTransitEncryption":{ 1227 "type":"string", 1228 "enum":[ 1229 "ENABLED", 1230 "DISABLED" 1231 ] 1232 }, 1233 "EFSVolumeConfiguration":{ 1234 "type":"structure", 1235 "required":["fileSystemId"], 1236 "members":{ 1237 "fileSystemId":{ 1238 "shape":"String", 1239 "documentation":"<p>The Amazon EFS file system ID to use.</p>" 1240 }, 1241 "rootDirectory":{ 1242 "shape":"String", 1243 "documentation":"<p>The directory within the Amazon EFS file system to mount as the root directory inside the host. If this parameter is omitted, the root of the Amazon EFS volume is used instead. Specifying <code>/</code> has the same effect as omitting this parameter. The maximum length is 4,096 characters.</p> <important> <p>If an EFS access point is specified in the <code>authorizationConfig</code>, the root directory parameter must either be omitted or set to <code>/</code>, which enforces the path set on the Amazon EFS access point.</p> </important>" 1244 }, 1245 "transitEncryption":{ 1246 "shape":"EFSTransitEncryption", 1247 "documentation":"<p>Determines whether to enable encryption for Amazon EFS data in transit between the Amazon ECS host and the Amazon EFS server. Transit encryption must be enabled if Amazon EFS IAM authorization is used. If this parameter is omitted, the default value of <code>DISABLED</code> is used. For more information, see <a href=\"https://docs.aws.amazon.com/efs/latest/ug/encryption-in-transit.html\">Encrypting data in transit</a> in the <i>Amazon Elastic File System User Guide</i>.</p>" 1248 }, 1249 "transitEncryptionPort":{ 1250 "shape":"Integer", 1251 "documentation":"<p>The port to use when sending encrypted data between the Amazon ECS host and the Amazon EFS server. If you don't specify a transit encryption port, it uses the port selection strategy that the Amazon EFS mount helper uses. The value must be between 0 and 65,535. For more information, see <a href=\"https://docs.aws.amazon.com/efs/latest/ug/efs-mount-helper.html\">EFS Mount Helper</a> in the <i>Amazon Elastic File System User Guide</i>.</p>" 1252 }, 1253 "authorizationConfig":{ 1254 "shape":"EFSAuthorizationConfig", 1255 "documentation":"<p>The authorization configuration details for the Amazon EFS file system.</p>" 1256 } 1257 }, 1258 "documentation":"<p>This is used when you're using an Amazon Elastic File System file system for job storage. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/efs-volumes.html\">Amazon EFS Volumes</a> in the <i>Batch User Guide</i>.</p>" 1259 }, 1260 "Ec2Configuration":{ 1261 "type":"structure", 1262 "required":["imageType"], 1263 "members":{ 1264 "imageType":{ 1265 "shape":"ImageType", 1266 "documentation":"<p>The image type to match with the instance type to select an AMI. If the <code>imageIdOverride</code> parameter isn't specified, then a recent <a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html\">Amazon ECS-optimized AMI</a> (<code>ECS_AL1</code>) is used. Starting on March 31, 2021, this default will be changing to <code>ECS_AL2</code> (<a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami\">Amazon Linux 2</a>).</p> <dl> <dt>ECS_AL2</dt> <dd> <p> <a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami\">Amazon Linux 2</a>− Default for all Amazon Web Services Graviton-based instance families (for example, <code>C6g</code>, <code>M6g</code>, <code>R6g</code>, and <code>T4g</code>) and can be used for all non-GPU instance types.</p> </dd> <dt>ECS_AL2_NVIDIA</dt> <dd> <p> <a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#gpuami\">Amazon Linux 2 (GPU)</a>−Default for all GPU instance families (for example <code>P4</code> and <code>G4</code>) and can be used for all non Amazon Web Services Graviton-based instance types.</p> </dd> <dt>ECS_AL1</dt> <dd> <p> <a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#alami\">Amazon Linux</a>−Default for all non-GPU, non Amazon Web Services Graviton instance families. Amazon Linux is reaching the end-of-life of standard support. For more information, see <a href=\"http://aws.amazon.com/amazon-linux-ami/\">Amazon Linux AMI</a>.</p> </dd> </dl>" 1267 }, 1268 "imageIdOverride":{ 1269 "shape":"ImageIdOverride", 1270 "documentation":"<p>The AMI ID used for instances launched in the compute environment that match the image type. This setting overrides the <code>imageId</code> set in the <code>computeResource</code> object.</p>" 1271 } 1272 }, 1273 "documentation":"<p>Provides information used to select Amazon Machine Images (AMIs) for instances in the compute environment. If <code>Ec2Configuration</code> isn't specified, the default is currently <code>ECS_AL1</code> (<a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#alami\">Amazon Linux</a>) for non-GPU, non AWSGraviton instances. Starting on March 31, 2021, this default will be changing to <code>ECS_AL2</code> (<a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#al2ami\">Amazon Linux 2</a>).</p> <note> <p>This object isn't applicable to jobs that are running on Fargate resources.</p> </note>" 1274 }, 1275 "Ec2ConfigurationList":{ 1276 "type":"list", 1277 "member":{"shape":"Ec2Configuration"} 1278 }, 1279 "EnvironmentVariables":{ 1280 "type":"list", 1281 "member":{"shape":"KeyValuePair"} 1282 }, 1283 "EvaluateOnExit":{ 1284 "type":"structure", 1285 "required":["action"], 1286 "members":{ 1287 "onStatusReason":{ 1288 "shape":"String", 1289 "documentation":"<p>Contains a glob pattern to match against the <code>StatusReason</code> returned for a job. The pattern can be up to 512 characters in length. It can contain letters, numbers, periods (.), colons (:), and white space (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.</p>" 1290 }, 1291 "onReason":{ 1292 "shape":"String", 1293 "documentation":"<p>Contains a glob pattern to match against the <code>Reason</code> returned for a job. The pattern can be up to 512 characters in length. 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.</p>" 1294 }, 1295 "onExitCode":{ 1296 "shape":"String", 1297 "documentation":"<p>Contains a glob pattern to match against the decimal representation of the <code>ExitCode</code> returned for a job. The pattern can be up to 512 characters in length. It can contain only numbers, and can optionally end with an asterisk (*) so that only the start of the string needs to be an exact match.</p>" 1298 }, 1299 "action":{ 1300 "shape":"RetryAction", 1301 "documentation":"<p>Specifies the action to take if all of the specified conditions (<code>onStatusReason</code>, <code>onReason</code>, and <code>onExitCode</code>) are met. The values aren't case sensitive.</p>" 1302 } 1303 }, 1304 "documentation":"<p>Specifies a set of conditions to be met, and an action to take (<code>RETRY</code> or <code>EXIT</code>) if all conditions are met.</p>" 1305 }, 1306 "EvaluateOnExitList":{ 1307 "type":"list", 1308 "member":{"shape":"EvaluateOnExit"} 1309 }, 1310 "FargatePlatformConfiguration":{ 1311 "type":"structure", 1312 "members":{ 1313 "platformVersion":{ 1314 "shape":"String", 1315 "documentation":"<p>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 <code>LATEST</code> platform version is used by default. This uses a recent, approved version of the Fargate platform for compute resources. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html\">Fargate platform versions</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>" 1316 } 1317 }, 1318 "documentation":"<p>The platform configuration for jobs that are running on Fargate resources. Jobs that run on EC2 resources must not specify this parameter.</p>" 1319 }, 1320 "Host":{ 1321 "type":"structure", 1322 "members":{ 1323 "sourcePath":{ 1324 "shape":"String", 1325 "documentation":"<p>The path on the host container instance that's presented to the container. If this parameter is empty, then the Docker daemon has assigned a host path for you. If this parameter contains a file location, then the data volume persists at the specified location on the host container instance until you delete it manually. If the source path location doesn't exist on the host container instance, the Docker daemon creates it. If the location does exist, the contents of the source path folder are exported.</p> <note> <p>This parameter isn't applicable to jobs that run on Fargate resources and shouldn't be provided.</p> </note>" 1326 } 1327 }, 1328 "documentation":"<p>Determine whether your data volume persists on the host container instance and where it is stored. If this parameter is empty, then the Docker daemon assigns a host path for your data volume, but the data isn't guaranteed to persist after the containers associated with it stop running.</p>" 1329 }, 1330 "ImageIdOverride":{ 1331 "type":"string", 1332 "max":256, 1333 "min":1 1334 }, 1335 "ImageType":{ 1336 "type":"string", 1337 "max":256, 1338 "min":1 1339 }, 1340 "Integer":{"type":"integer"}, 1341 "JQState":{ 1342 "type":"string", 1343 "enum":[ 1344 "ENABLED", 1345 "DISABLED" 1346 ] 1347 }, 1348 "JQStatus":{ 1349 "type":"string", 1350 "enum":[ 1351 "CREATING", 1352 "UPDATING", 1353 "DELETING", 1354 "DELETED", 1355 "VALID", 1356 "INVALID" 1357 ] 1358 }, 1359 "JobDefinition":{ 1360 "type":"structure", 1361 "required":[ 1362 "jobDefinitionName", 1363 "jobDefinitionArn", 1364 "revision", 1365 "type" 1366 ], 1367 "members":{ 1368 "jobDefinitionName":{ 1369 "shape":"String", 1370 "documentation":"<p>The name of the job definition.</p>" 1371 }, 1372 "jobDefinitionArn":{ 1373 "shape":"String", 1374 "documentation":"<p>The Amazon Resource Name (ARN) for the job definition.</p>" 1375 }, 1376 "revision":{ 1377 "shape":"Integer", 1378 "documentation":"<p>The revision of the job definition.</p>" 1379 }, 1380 "status":{ 1381 "shape":"String", 1382 "documentation":"<p>The status of the job definition.</p>" 1383 }, 1384 "type":{ 1385 "shape":"String", 1386 "documentation":"<p>The type of job definition. If the job is run on Fargate resources, then <code>multinode</code> isn't supported. For more information about multi-node parallel jobs, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/multi-node-job-def.html\">Creating a multi-node parallel job definition</a> in the <i>Batch User Guide</i>.</p>" 1387 }, 1388 "parameters":{ 1389 "shape":"ParametersMap", 1390 "documentation":"<p>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 <code>SubmitJob</code> request override any corresponding parameter defaults from the job definition. For more information about specifying parameters, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/job_definition_parameters.html\">Job Definition Parameters</a> in the <i>Batch User Guide</i>.</p>" 1391 }, 1392 "retryStrategy":{ 1393 "shape":"RetryStrategy", 1394 "documentation":"<p>The retry strategy to use for failed jobs that are submitted with this job definition.</p>" 1395 }, 1396 "containerProperties":{ 1397 "shape":"ContainerProperties", 1398 "documentation":"<p>An object with various properties specific to container-based jobs.</p>" 1399 }, 1400 "timeout":{ 1401 "shape":"JobTimeout", 1402 "documentation":"<p>The timeout configuration for jobs that are submitted with this job definition. You can specify a timeout duration after which Batch terminates your jobs if they haven't finished.</p>" 1403 }, 1404 "nodeProperties":{ 1405 "shape":"NodeProperties", 1406 "documentation":"<p>An object with various properties specific to multi-node parallel jobs.</p> <note> <p>If the job runs on Fargate resources, then you must not specify <code>nodeProperties</code>; use <code>containerProperties</code> instead.</p> </note>" 1407 }, 1408 "tags":{ 1409 "shape":"TagrisTagsMap", 1410 "documentation":"<p>The tags applied to the job definition.</p>" 1411 }, 1412 "propagateTags":{ 1413 "shape":"Boolean", 1414 "documentation":"<p>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 <code>FAILED</code> state.</p>" 1415 }, 1416 "platformCapabilities":{ 1417 "shape":"PlatformCapabilityList", 1418 "documentation":"<p>The platform capabilities required by the job definition. If no value is specified, it defaults to <code>EC2</code>. Jobs run on Fargate resources specify <code>FARGATE</code>.</p>" 1419 } 1420 }, 1421 "documentation":"<p>An object representing an Batch job definition.</p>" 1422 }, 1423 "JobDefinitionList":{ 1424 "type":"list", 1425 "member":{"shape":"JobDefinition"} 1426 }, 1427 "JobDefinitionType":{ 1428 "type":"string", 1429 "enum":[ 1430 "container", 1431 "multinode" 1432 ] 1433 }, 1434 "JobDependency":{ 1435 "type":"structure", 1436 "members":{ 1437 "jobId":{ 1438 "shape":"String", 1439 "documentation":"<p>The job ID of the Batch job associated with this dependency.</p>" 1440 }, 1441 "type":{ 1442 "shape":"ArrayJobDependency", 1443 "documentation":"<p>The type of the job dependency.</p>" 1444 } 1445 }, 1446 "documentation":"<p>An object representing an Batch job dependency.</p>" 1447 }, 1448 "JobDependencyList":{ 1449 "type":"list", 1450 "member":{"shape":"JobDependency"} 1451 }, 1452 "JobDetail":{ 1453 "type":"structure", 1454 "required":[ 1455 "jobName", 1456 "jobId", 1457 "jobQueue", 1458 "status", 1459 "startedAt", 1460 "jobDefinition" 1461 ], 1462 "members":{ 1463 "jobArn":{ 1464 "shape":"String", 1465 "documentation":"<p>The Amazon Resource Name (ARN) of the job.</p>" 1466 }, 1467 "jobName":{ 1468 "shape":"String", 1469 "documentation":"<p>The name of the job.</p>" 1470 }, 1471 "jobId":{ 1472 "shape":"String", 1473 "documentation":"<p>The ID for the job.</p>" 1474 }, 1475 "jobQueue":{ 1476 "shape":"String", 1477 "documentation":"<p>The Amazon Resource Name (ARN) of the job queue that the job is associated with.</p>" 1478 }, 1479 "status":{ 1480 "shape":"JobStatus", 1481 "documentation":"<p>The current status for the job.</p> <note> <p>If your jobs don't progress to <code>STARTING</code>, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/troubleshooting.html#job_stuck_in_runnable\">Jobs Stuck in RUNNABLE Status</a> in the troubleshooting section of the <i>Batch User Guide</i>.</p> </note>" 1482 }, 1483 "attempts":{ 1484 "shape":"AttemptDetails", 1485 "documentation":"<p>A list of job attempts associated with this job.</p>" 1486 }, 1487 "statusReason":{ 1488 "shape":"String", 1489 "documentation":"<p>A short, human-readable string to provide additional details about the current status of the job.</p>" 1490 }, 1491 "createdAt":{ 1492 "shape":"Long", 1493 "documentation":"<p>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 <code>SUBMITTED</code> state (at the time <a>SubmitJob</a> was called). For array child jobs, this is when the child job was spawned by its parent and entered the <code>PENDING</code> state.</p>" 1494 }, 1495 "retryStrategy":{ 1496 "shape":"RetryStrategy", 1497 "documentation":"<p>The retry strategy to use for this job if an attempt fails.</p>" 1498 }, 1499 "startedAt":{ 1500 "shape":"Long", 1501 "documentation":"<p>The Unix timestamp (in milliseconds) for when the job was started (when the job transitioned from the <code>STARTING</code> state to the <code>RUNNING</code> state). This parameter isn't provided for child jobs of array jobs or multi-node parallel jobs.</p>" 1502 }, 1503 "stoppedAt":{ 1504 "shape":"Long", 1505 "documentation":"<p>The Unix timestamp (in milliseconds) for when the job was stopped (when the job transitioned from the <code>RUNNING</code> state to a terminal state, such as <code>SUCCEEDED</code> or <code>FAILED</code>).</p>" 1506 }, 1507 "dependsOn":{ 1508 "shape":"JobDependencyList", 1509 "documentation":"<p>A list of job IDs that this job depends on.</p>" 1510 }, 1511 "jobDefinition":{ 1512 "shape":"String", 1513 "documentation":"<p>The job definition that's used by this job.</p>" 1514 }, 1515 "parameters":{ 1516 "shape":"ParametersMap", 1517 "documentation":"<p>Additional parameters passed to the job that replace parameter substitution placeholders or override any corresponding parameter defaults from the job definition.</p>" 1518 }, 1519 "container":{ 1520 "shape":"ContainerDetail", 1521 "documentation":"<p>An object representing the details of the container that's associated with the job.</p>" 1522 }, 1523 "nodeDetails":{ 1524 "shape":"NodeDetails", 1525 "documentation":"<p>An object representing the details of a node that's associated with a multi-node parallel job.</p>" 1526 }, 1527 "nodeProperties":{ 1528 "shape":"NodeProperties", 1529 "documentation":"<p>An object representing the node properties of a multi-node parallel job.</p> <note> <p>This isn't applicable to jobs that are running on Fargate resources.</p> </note>" 1530 }, 1531 "arrayProperties":{ 1532 "shape":"ArrayPropertiesDetail", 1533 "documentation":"<p>The array properties of the job, if it is an array job.</p>" 1534 }, 1535 "timeout":{ 1536 "shape":"JobTimeout", 1537 "documentation":"<p>The timeout configuration for the job.</p>" 1538 }, 1539 "tags":{ 1540 "shape":"TagrisTagsMap", 1541 "documentation":"<p>The tags applied to the job.</p>" 1542 }, 1543 "propagateTags":{ 1544 "shape":"Boolean", 1545 "documentation":"<p>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 <code>FAILED</code> state.</p>" 1546 }, 1547 "platformCapabilities":{ 1548 "shape":"PlatformCapabilityList", 1549 "documentation":"<p>The platform capabilities required by the job definition. If no value is specified, it defaults to <code>EC2</code>. Jobs run on Fargate resources specify <code>FARGATE</code>.</p>" 1550 } 1551 }, 1552 "documentation":"<p>An object representing an Batch job.</p>" 1553 }, 1554 "JobDetailList":{ 1555 "type":"list", 1556 "member":{"shape":"JobDetail"} 1557 }, 1558 "JobQueueDetail":{ 1559 "type":"structure", 1560 "required":[ 1561 "jobQueueName", 1562 "jobQueueArn", 1563 "state", 1564 "priority", 1565 "computeEnvironmentOrder" 1566 ], 1567 "members":{ 1568 "jobQueueName":{ 1569 "shape":"String", 1570 "documentation":"<p>The name of the job queue.</p>" 1571 }, 1572 "jobQueueArn":{ 1573 "shape":"String", 1574 "documentation":"<p>The Amazon Resource Name (ARN) of the job queue.</p>" 1575 }, 1576 "state":{ 1577 "shape":"JQState", 1578 "documentation":"<p>Describes the ability of the queue to accept new jobs. If the job queue state is <code>ENABLED</code>, it's able to accept jobs. If the job queue state is <code>DISABLED</code>, new jobs can't be added to the queue, but jobs already in the queue can finish.</p>" 1579 }, 1580 "status":{ 1581 "shape":"JQStatus", 1582 "documentation":"<p>The status of the job queue (for example, <code>CREATING</code> or <code>VALID</code>).</p>" 1583 }, 1584 "statusReason":{ 1585 "shape":"String", 1586 "documentation":"<p>A short, human-readable string to provide additional details about the current status of the job queue.</p>" 1587 }, 1588 "priority":{ 1589 "shape":"Integer", 1590 "documentation":"<p>The priority of the job queue. Job queues with a higher priority (or a higher integer value for the <code>priority</code> 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 <code>10</code> is given scheduling preference over a job queue with a priority value of <code>1</code>. All of the compute environments must be either EC2 (<code>EC2</code> or <code>SPOT</code>) or Fargate (<code>FARGATE</code> or <code>FARGATE_SPOT</code>); EC2 and Fargate compute environments can't be mixed.</p>" 1591 }, 1592 "computeEnvironmentOrder":{ 1593 "shape":"ComputeEnvironmentOrders", 1594 "documentation":"<p>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.</p>" 1595 }, 1596 "tags":{ 1597 "shape":"TagrisTagsMap", 1598 "documentation":"<p>The tags applied to the job queue. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html\">Tagging your Batch resources</a> in <i>Batch User Guide</i>.</p>" 1599 } 1600 }, 1601 "documentation":"<p>An object representing the details of an Batch job queue.</p>" 1602 }, 1603 "JobQueueDetailList":{ 1604 "type":"list", 1605 "member":{"shape":"JobQueueDetail"} 1606 }, 1607 "JobStatus":{ 1608 "type":"string", 1609 "enum":[ 1610 "SUBMITTED", 1611 "PENDING", 1612 "RUNNABLE", 1613 "STARTING", 1614 "RUNNING", 1615 "SUCCEEDED", 1616 "FAILED" 1617 ] 1618 }, 1619 "JobSummary":{ 1620 "type":"structure", 1621 "required":[ 1622 "jobId", 1623 "jobName" 1624 ], 1625 "members":{ 1626 "jobArn":{ 1627 "shape":"String", 1628 "documentation":"<p>The Amazon Resource Name (ARN) of the job.</p>" 1629 }, 1630 "jobId":{ 1631 "shape":"String", 1632 "documentation":"<p>The ID of the job.</p>" 1633 }, 1634 "jobName":{ 1635 "shape":"String", 1636 "documentation":"<p>The name of the job.</p>" 1637 }, 1638 "createdAt":{ 1639 "shape":"Long", 1640 "documentation":"<p>The Unix timestamp for when the job was created. For non-array jobs and parent array jobs, this is when the job entered the <code>SUBMITTED</code> state (at the time <a>SubmitJob</a> was called). For array child jobs, this is when the child job was spawned by its parent and entered the <code>PENDING</code> state.</p>" 1641 }, 1642 "status":{ 1643 "shape":"JobStatus", 1644 "documentation":"<p>The current status for the job.</p>" 1645 }, 1646 "statusReason":{ 1647 "shape":"String", 1648 "documentation":"<p>A short, human-readable string to provide additional details about the current status of the job.</p>" 1649 }, 1650 "startedAt":{ 1651 "shape":"Long", 1652 "documentation":"<p>The Unix timestamp for when the job was started (when the job transitioned from the <code>STARTING</code> state to the <code>RUNNING</code> state).</p>" 1653 }, 1654 "stoppedAt":{ 1655 "shape":"Long", 1656 "documentation":"<p>The Unix timestamp for when the job was stopped (when the job transitioned from the <code>RUNNING</code> state to a terminal state, such as <code>SUCCEEDED</code> or <code>FAILED</code>).</p>" 1657 }, 1658 "container":{ 1659 "shape":"ContainerSummary", 1660 "documentation":"<p>An object representing the details of the container that's associated with the job.</p>" 1661 }, 1662 "arrayProperties":{ 1663 "shape":"ArrayPropertiesSummary", 1664 "documentation":"<p>The array properties of the job, if it is an array job.</p>" 1665 }, 1666 "nodeProperties":{ 1667 "shape":"NodePropertiesSummary", 1668 "documentation":"<p>The node properties for a single node in a job summary list.</p> <note> <p>This isn't applicable to jobs that are running on Fargate resources.</p> </note>" 1669 }, 1670 "jobDefinition":{ 1671 "shape":"String", 1672 "documentation":"<p>The Amazon Resource Name (ARN) of the job definition.</p>" 1673 } 1674 }, 1675 "documentation":"<p>An object representing summary details of a job.</p>" 1676 }, 1677 "JobSummaryList":{ 1678 "type":"list", 1679 "member":{"shape":"JobSummary"} 1680 }, 1681 "JobTimeout":{ 1682 "type":"structure", 1683 "members":{ 1684 "attemptDurationSeconds":{ 1685 "shape":"Integer", 1686 "documentation":"<p>The time duration in seconds (measured from the job attempt's <code>startedAt</code> timestamp) after which Batch terminates your jobs if they have not finished. The minimum value for the timeout is 60 seconds.</p>" 1687 } 1688 }, 1689 "documentation":"<p>An object representing a job timeout configuration.</p>" 1690 }, 1691 "KeyValuePair":{ 1692 "type":"structure", 1693 "members":{ 1694 "name":{ 1695 "shape":"String", 1696 "documentation":"<p>The name of the key-value pair. For environment variables, this is the name of the environment variable.</p>" 1697 }, 1698 "value":{ 1699 "shape":"String", 1700 "documentation":"<p>The value of the key-value pair. For environment variables, this is the value of the environment variable.</p>" 1701 } 1702 }, 1703 "documentation":"<p>A key-value pair object.</p>" 1704 }, 1705 "KeyValuesPair":{ 1706 "type":"structure", 1707 "members":{ 1708 "name":{ 1709 "shape":"String", 1710 "documentation":"<p>The name of the filter. Filter names are case sensitive.</p>" 1711 }, 1712 "values":{ 1713 "shape":"StringList", 1714 "documentation":"<p>The filter values.</p>" 1715 } 1716 }, 1717 "documentation":"<p>A filter name and value pair that's used to return a more specific list of results from a <code>ListJobs</code> API operation.</p>" 1718 }, 1719 "LaunchTemplateSpecification":{ 1720 "type":"structure", 1721 "members":{ 1722 "launchTemplateId":{ 1723 "shape":"String", 1724 "documentation":"<p>The ID of the launch template.</p>" 1725 }, 1726 "launchTemplateName":{ 1727 "shape":"String", 1728 "documentation":"<p>The name of the launch template.</p>" 1729 }, 1730 "version":{ 1731 "shape":"String", 1732 "documentation":"<p>The version number of the launch template, <code>$Latest</code>, or <code>$Default</code>.</p> <p>If the value is <code>$Latest</code>, the latest version of the launch template is used. If the value is <code>$Default</code>, the default version of the launch template is used.</p> <important> <p>After the compute environment is created, the launch template version that's used isn't changed, even if the <code>$Default</code> or <code>$Latest</code> version for the launch template is updated. To use a new launch template version, create a new compute environment, add the new compute environment to the existing job queue, remove the old compute environment from the job queue, and delete the old compute environment.</p> </important> <p>Default: <code>$Default</code>.</p>" 1733 } 1734 }, 1735 "documentation":"<p>An object representing a launch template associated with a compute resource. You must specify either the launch template ID or launch template name in the request, but not both.</p> <p>If security groups are specified using both the <code>securityGroupIds</code> parameter of <code>CreateComputeEnvironment</code> and the launch template, the values in the <code>securityGroupIds</code> parameter of <code>CreateComputeEnvironment</code> will be used.</p> <note> <p>This object isn't applicable to jobs that are running on Fargate resources.</p> </note>" 1736 }, 1737 "LinuxParameters":{ 1738 "type":"structure", 1739 "members":{ 1740 "devices":{ 1741 "shape":"DevicesList", 1742 "documentation":"<p>Any host devices to expose to the container. This parameter maps to <code>Devices</code> in the <a href=\"https://docs.docker.com/engine/api/v1.23/#create-a-container\">Create a container</a> section of the <a href=\"https://docs.docker.com/engine/api/v1.23/\">Docker Remote API</a> and the <code>--device</code> option to <a href=\"https://docs.docker.com/engine/reference/run/\">docker run</a>.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.</p> </note>" 1743 }, 1744 "initProcessEnabled":{ 1745 "shape":"Boolean", 1746 "documentation":"<p>If true, run an <code>init</code> process inside the container that forwards signals and reaps processes. This parameter maps to the <code>--init</code> option to <a href=\"https://docs.docker.com/engine/reference/run/\">docker run</a>. This parameter requires version 1.25 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log into your container instance and run the following command: <code>sudo docker version | grep \"Server API version\"</code> </p>" 1747 }, 1748 "sharedMemorySize":{ 1749 "shape":"Integer", 1750 "documentation":"<p>The value for the size (in MiB) of the <code>/dev/shm</code> volume. This parameter maps to the <code>--shm-size</code> option to <a href=\"https://docs.docker.com/engine/reference/run/\">docker run</a>.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.</p> </note>" 1751 }, 1752 "tmpfs":{ 1753 "shape":"TmpfsList", 1754 "documentation":"<p>The container path, mount options, and size (in MiB) of the tmpfs mount. This parameter maps to the <code>--tmpfs</code> option to <a href=\"https://docs.docker.com/engine/reference/run/\">docker run</a>.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.</p> </note>" 1755 }, 1756 "maxSwap":{ 1757 "shape":"Integer", 1758 "documentation":"<p>The total amount of swap memory (in MiB) a container can use. This parameter is translated to the <code>--memory-swap</code> option to <a href=\"https://docs.docker.com/engine/reference/run/\">docker run</a> where the value is the sum of the container memory plus the <code>maxSwap</code> value. For more information, see <a href=\"https://docs.docker.com/config/containers/resource_constraints/#--memory-swap-details\"> <code>--memory-swap</code> details</a> in the Docker documentation.</p> <p>If a <code>maxSwap</code> value of <code>0</code> is specified, the container doesn't use swap. Accepted values are <code>0</code> or any positive integer. If the <code>maxSwap</code> parameter is omitted, the container doesn't use the swap configuration for the container instance it is running on. A <code>maxSwap</code> value must be set for the <code>swappiness</code> parameter to be used.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.</p> </note>" 1759 }, 1760 "swappiness":{ 1761 "shape":"Integer", 1762 "documentation":"<p>This allows you to tune a container's memory swappiness behavior. A <code>swappiness</code> value of <code>0</code> causes swapping not to happen unless absolutely necessary. A <code>swappiness</code> value of <code>100</code> causes pages to be swapped very aggressively. Accepted values are whole numbers between <code>0</code> and <code>100</code>. If the <code>swappiness</code> parameter isn't specified, a default value of <code>60</code> is used. If a value isn't specified for <code>maxSwap</code>, then this parameter is ignored. If <code>maxSwap</code> is set to 0, the container doesn't use swap. This parameter maps to the <code>--memory-swappiness</code> option to <a href=\"https://docs.docker.com/engine/reference/run/\">docker run</a>.</p> <p>Consider the following when you use a per-container swap configuration.</p> <ul> <li> <p>Swap space must be enabled and allocated on the container instance for the containers to use.</p> <note> <p>The Amazon ECS optimized AMIs don't have swap enabled by default. You must enable swap on the instance to use this feature. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-store-swap-volumes.html\">Instance Store Swap Volumes</a> in the <i>Amazon EC2 User Guide for Linux Instances</i> or <a href=\"http://aws.amazon.com/premiumsupport/knowledge-center/ec2-memory-swap-file/\">How do I allocate memory to work as swap space in an Amazon EC2 instance by using a swap file?</a> </p> </note> </li> <li> <p>The swap space parameters are only supported for job definitions using EC2 resources.</p> </li> <li> <p>If the <code>maxSwap</code> and <code>swappiness</code> parameters are omitted from a job definition, each container will have a default <code>swappiness</code> value of 60, and the total swap usage will be limited to two times the memory reservation of the container.</p> </li> </ul> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.</p> </note>" 1763 } 1764 }, 1765 "documentation":"<p>Linux-specific modifications that are applied to the container, such as details for device mappings.</p>" 1766 }, 1767 "ListJobsFilterList":{ 1768 "type":"list", 1769 "member":{"shape":"KeyValuesPair"} 1770 }, 1771 "ListJobsRequest":{ 1772 "type":"structure", 1773 "members":{ 1774 "jobQueue":{ 1775 "shape":"String", 1776 "documentation":"<p>The name or full Amazon Resource Name (ARN) of the job queue used to list jobs.</p>" 1777 }, 1778 "arrayJobId":{ 1779 "shape":"String", 1780 "documentation":"<p>The job ID for an array job. Specifying an array job ID with this parameter lists all child jobs from within the specified array.</p>" 1781 }, 1782 "multiNodeJobId":{ 1783 "shape":"String", 1784 "documentation":"<p>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.</p>" 1785 }, 1786 "jobStatus":{ 1787 "shape":"JobStatus", 1788 "documentation":"<p>The job status used to filter jobs in the specified queue. If the <code>filters</code> parameter is specified, the <code>jobStatus</code> parameter is ignored and jobs with any status are returned. If you don't specify a status, only <code>RUNNING</code> jobs are returned.</p>" 1789 }, 1790 "maxResults":{ 1791 "shape":"Integer", 1792 "documentation":"<p>The maximum number of results returned by <code>ListJobs</code> in paginated output. When this parameter is used, <code>ListJobs</code> only returns <code>maxResults</code> results in a single page and a <code>nextToken</code> response element. The remaining results of the initial request can be seen by sending another <code>ListJobs</code> request with the returned <code>nextToken</code> value. This value can be between 1 and 100. If this parameter isn't used, then <code>ListJobs</code> returns up to 100 results and a <code>nextToken</code> value if applicable.</p>" 1793 }, 1794 "nextToken":{ 1795 "shape":"String", 1796 "documentation":"<p>The <code>nextToken</code> value returned from a previous paginated <code>ListJobs</code> request where <code>maxResults</code> was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the <code>nextToken</code> value. This value is <code>null</code> when there are no more results to return.</p> <note> <p>This token should be treated as an opaque identifier that's only used to retrieve the next items in a list and not for other programmatic purposes.</p> </note>" 1797 }, 1798 "filters":{ 1799 "shape":"ListJobsFilterList", 1800 "documentation":"<p>The filter to apply to the query. Only one filter can be used at a time. When the filter is used, <code>jobStatus</code> 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 <code>createdAt</code> field, with the most recent jobs being first.</p> <dl> <dt>JOB_NAME</dt> <dd> <p>The value of the filter is a case-insensitive match for the job name. If the value ends with an asterisk (*), the filter will match any job name that begins with the string before the '*'. This corresponds to the <code>jobName</code> value. For example, <code>test1</code> matches both <code>Test1</code> and <code>test1</code>, and <code>test1*</code> matches both <code>test1</code> and <code>Test10</code>. When the <code>JOB_NAME</code> filter is used, the results are grouped by the job name and version.</p> </dd> <dt>JOB_DEFINITION</dt> <dd> <p>The value for the filter is the name or Amazon Resource Name (ARN) of the job definition. This corresponds to the <code>jobDefinition</code> 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 will match any job definition name that begins with the string before the '*'. For example, <code>jd1</code> matches only <code>jd1</code>, and <code>jd1*</code> matches both <code>jd1</code> and <code>jd1A</code>. The version of the job definition that's used doesn't affect the sort order. When the <code>JOB_DEFINITION</code> filter is used and the ARN is used (which is in the form <code>arn:${Partition}:batch:${Region}:${Account}:job-definition/${JobDefinitionName}:${Revision}</code>), the results include jobs that used the specified revision of the job definition. Asterisk (*) is not supported when the ARN is used.</p> </dd> <dt>BEFORE_CREATED_AT</dt> <dd> <p>The value for the filter is the time that's before the job was created. This corresponds to the <code>createdAt</code> value. The value is a string representation of the number of seconds since 00:00:00 UTC (midnight) on January 1, 1970.</p> </dd> <dt>AFTER_CREATED_AT</dt> <dd> <p>The value for the filter is the time that's after the job was created. This corresponds to the <code>createdAt</code> value. The value is a string representation of the number of seconds since 00:00:00 UTC (midnight) on January 1, 1970.</p> </dd> </dl>" 1801 } 1802 }, 1803 "documentation":"<p>Contains the parameters for <code>ListJobs</code>.</p>" 1804 }, 1805 "ListJobsResponse":{ 1806 "type":"structure", 1807 "required":["jobSummaryList"], 1808 "members":{ 1809 "jobSummaryList":{ 1810 "shape":"JobSummaryList", 1811 "documentation":"<p>A list of job summaries that match the request.</p>" 1812 }, 1813 "nextToken":{ 1814 "shape":"String", 1815 "documentation":"<p>The <code>nextToken</code> value to include in a future <code>ListJobs</code> request. When the results of a <code>ListJobs</code> request exceed <code>maxResults</code>, this value can be used to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>" 1816 } 1817 } 1818 }, 1819 "ListTagsForResourceRequest":{ 1820 "type":"structure", 1821 "required":["resourceArn"], 1822 "members":{ 1823 "resourceArn":{ 1824 "shape":"String", 1825 "documentation":"<p>The Amazon Resource Name (ARN) that identifies the resource that tags are listed for. Batch resources that support tags are compute environments, jobs, job definitions, and job queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.</p>", 1826 "location":"uri", 1827 "locationName":"resourceArn" 1828 } 1829 } 1830 }, 1831 "ListTagsForResourceResponse":{ 1832 "type":"structure", 1833 "members":{ 1834 "tags":{ 1835 "shape":"TagrisTagsMap", 1836 "documentation":"<p>The tags for the resource.</p>" 1837 } 1838 } 1839 }, 1840 "LogConfiguration":{ 1841 "type":"structure", 1842 "required":["logDriver"], 1843 "members":{ 1844 "logDriver":{ 1845 "shape":"LogDriver", 1846 "documentation":"<p>The log driver to use for the container. The valid values listed for this parameter are log drivers that the Amazon ECS container agent can communicate with by default.</p> <p>The supported log drivers are <code>awslogs</code>, <code>fluentd</code>, <code>gelf</code>, <code>json-file</code>, <code>journald</code>, <code>logentries</code>, <code>syslog</code>, and <code>splunk</code>.</p> <note> <p>Jobs that are running on Fargate resources are restricted to the <code>awslogs</code> and <code>splunk</code> log drivers.</p> </note> <dl> <dt>awslogs</dt> <dd> <p>Specifies the Amazon CloudWatch Logs logging driver. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/using_awslogs.html\">Using the awslogs Log Driver</a> in the <i>Batch User Guide</i> and <a href=\"https://docs.docker.com/config/containers/logging/awslogs/\">Amazon CloudWatch Logs logging driver</a> in the Docker documentation.</p> </dd> <dt>fluentd</dt> <dd> <p>Specifies the Fluentd logging driver. For more information, including usage and options, see <a href=\"https://docs.docker.com/config/containers/logging/fluentd/\">Fluentd logging driver</a> in the Docker documentation.</p> </dd> <dt>gelf</dt> <dd> <p>Specifies the Graylog Extended Format (GELF) logging driver. For more information, including usage and options, see <a href=\"https://docs.docker.com/config/containers/logging/gelf/\">Graylog Extended Format logging driver</a> in the Docker documentation.</p> </dd> <dt>journald</dt> <dd> <p>Specifies the journald logging driver. For more information, including usage and options, see <a href=\"https://docs.docker.com/config/containers/logging/journald/\">Journald logging driver</a> in the Docker documentation.</p> </dd> <dt>json-file</dt> <dd> <p>Specifies the JSON file logging driver. For more information, including usage and options, see <a href=\"https://docs.docker.com/config/containers/logging/json-file/\">JSON File logging driver</a> in the Docker documentation.</p> </dd> <dt>splunk</dt> <dd> <p>Specifies the Splunk logging driver. For more information, including usage and options, see <a href=\"https://docs.docker.com/config/containers/logging/splunk/\">Splunk logging driver</a> in the Docker documentation.</p> </dd> <dt>syslog</dt> <dd> <p>Specifies the syslog logging driver. For more information, including usage and options, see <a href=\"https://docs.docker.com/config/containers/logging/syslog/\">Syslog logging driver</a> in the Docker documentation.</p> </dd> </dl> <note> <p>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 <a href=\"https://github.com/aws/amazon-ecs-agent\">available on GitHub</a> 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.</p> </note> <p>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 into your container instance and run the following command: <code>sudo docker version | grep \"Server API version\"</code> </p>" 1847 }, 1848 "options":{ 1849 "shape":"LogConfigurationOptionsMap", 1850 "documentation":"<p>The configuration options to send to the log driver. This parameter requires version 1.19 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log into your container instance and run the following command: <code>sudo docker version | grep \"Server API version\"</code> </p>" 1851 }, 1852 "secretOptions":{ 1853 "shape":"SecretList", 1854 "documentation":"<p>The secrets to pass to the log configuration. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html\">Specifying Sensitive Data</a> in the <i>Batch User Guide</i>.</p>" 1855 } 1856 }, 1857 "documentation":"<p>Log configuration options to send to a custom log driver for the container.</p>" 1858 }, 1859 "LogConfigurationOptionsMap":{ 1860 "type":"map", 1861 "key":{"shape":"String"}, 1862 "value":{"shape":"String"} 1863 }, 1864 "LogDriver":{ 1865 "type":"string", 1866 "enum":[ 1867 "json-file", 1868 "syslog", 1869 "journald", 1870 "gelf", 1871 "fluentd", 1872 "awslogs", 1873 "splunk" 1874 ] 1875 }, 1876 "Long":{"type":"long"}, 1877 "MountPoint":{ 1878 "type":"structure", 1879 "members":{ 1880 "containerPath":{ 1881 "shape":"String", 1882 "documentation":"<p>The path on the container where the host volume is mounted.</p>" 1883 }, 1884 "readOnly":{ 1885 "shape":"Boolean", 1886 "documentation":"<p>If this value is <code>true</code>, the container has read-only access to the volume. Otherwise, the container can write to the volume. The default value is <code>false</code>.</p>" 1887 }, 1888 "sourceVolume":{ 1889 "shape":"String", 1890 "documentation":"<p>The name of the volume to mount.</p>" 1891 } 1892 }, 1893 "documentation":"<p>Details on a Docker volume mount point that's used in a job's container properties. This parameter maps to <code>Volumes</code> in the <a href=\"https://docs.docker.com/engine/reference/api/docker_remote_api_v1.19/#create-a-container\">Create a container</a> section of the Docker Remote API and the <code>--volume</code> option to docker run.</p>" 1894 }, 1895 "MountPoints":{ 1896 "type":"list", 1897 "member":{"shape":"MountPoint"} 1898 }, 1899 "NetworkConfiguration":{ 1900 "type":"structure", 1901 "members":{ 1902 "assignPublicIp":{ 1903 "shape":"AssignPublicIp", 1904 "documentation":"<p>Indicates whether the job should have a public IP address. For a job that is running on Fargate resources in a private subnet to send outbound traffic to the internet (for example, to pull container images), the private subnet requires a NAT gateway be attached to route requests to the internet. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html\">Amazon ECS task networking</a>. The default value is \"DISABLED\".</p>" 1905 } 1906 }, 1907 "documentation":"<p>The network configuration for jobs that are running on Fargate resources. Jobs that are running on EC2 resources must not specify this parameter.</p>" 1908 }, 1909 "NetworkInterface":{ 1910 "type":"structure", 1911 "members":{ 1912 "attachmentId":{ 1913 "shape":"String", 1914 "documentation":"<p>The attachment ID for the network interface.</p>" 1915 }, 1916 "ipv6Address":{ 1917 "shape":"String", 1918 "documentation":"<p>The private IPv6 address for the network interface.</p>" 1919 }, 1920 "privateIpv4Address":{ 1921 "shape":"String", 1922 "documentation":"<p>The private IPv4 address for the network interface.</p>" 1923 } 1924 }, 1925 "documentation":"<p>An object representing the elastic network interface for a multi-node parallel job node.</p>" 1926 }, 1927 "NetworkInterfaceList":{ 1928 "type":"list", 1929 "member":{"shape":"NetworkInterface"} 1930 }, 1931 "NodeDetails":{ 1932 "type":"structure", 1933 "members":{ 1934 "nodeIndex":{ 1935 "shape":"Integer", 1936 "documentation":"<p>The node index for the node. Node index numbering begins at zero. This index is also available on the node with the <code>AWS_BATCH_JOB_NODE_INDEX</code> environment variable.</p>" 1937 }, 1938 "isMainNode":{ 1939 "shape":"Boolean", 1940 "documentation":"<p>Specifies whether the current node is the main node for a multi-node parallel job.</p>" 1941 } 1942 }, 1943 "documentation":"<p>An object representing the details of a multi-node parallel job node.</p>" 1944 }, 1945 "NodeOverrides":{ 1946 "type":"structure", 1947 "members":{ 1948 "numNodes":{ 1949 "shape":"Integer", 1950 "documentation":"<p>The number of nodes to use with a multi-node parallel job. This value overrides the number of nodes that are specified in the job definition. To use this override:</p> <ul> <li> <p>There must be at least one node range in your job definition that has an open upper boundary (such as <code>:</code> or <code>n:</code>).</p> </li> <li> <p>The lower boundary of the node range specified in the job definition must be fewer than the number of nodes specified in the override.</p> </li> <li> <p>The main node index specified in the job definition must be fewer than the number of nodes specified in the override.</p> </li> </ul>" 1951 }, 1952 "nodePropertyOverrides":{ 1953 "shape":"NodePropertyOverrides", 1954 "documentation":"<p>The node property overrides for the job.</p>" 1955 } 1956 }, 1957 "documentation":"<p>Object representing any node overrides to a job definition that's used in a <a>SubmitJob</a> API operation.</p> <note> <p>This isn't applicable to jobs that are running on Fargate resources and shouldn't be provided; use <code>containerOverrides</code> instead.</p> </note>" 1958 }, 1959 "NodeProperties":{ 1960 "type":"structure", 1961 "required":[ 1962 "numNodes", 1963 "mainNode", 1964 "nodeRangeProperties" 1965 ], 1966 "members":{ 1967 "numNodes":{ 1968 "shape":"Integer", 1969 "documentation":"<p>The number of nodes associated with a multi-node parallel job.</p>" 1970 }, 1971 "mainNode":{ 1972 "shape":"Integer", 1973 "documentation":"<p>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.</p>" 1974 }, 1975 "nodeRangeProperties":{ 1976 "shape":"NodeRangeProperties", 1977 "documentation":"<p>A list of node ranges and their properties associated with a multi-node parallel job.</p>" 1978 } 1979 }, 1980 "documentation":"<p>An object representing the node properties of a multi-node parallel job.</p>" 1981 }, 1982 "NodePropertiesSummary":{ 1983 "type":"structure", 1984 "members":{ 1985 "isMainNode":{ 1986 "shape":"Boolean", 1987 "documentation":"<p>Specifies whether the current node is the main node for a multi-node parallel job.</p>" 1988 }, 1989 "numNodes":{ 1990 "shape":"Integer", 1991 "documentation":"<p>The number of nodes associated with a multi-node parallel job.</p>" 1992 }, 1993 "nodeIndex":{ 1994 "shape":"Integer", 1995 "documentation":"<p>The node index for the node. Node index numbering begins at zero. This index is also available on the node with the <code>AWS_BATCH_JOB_NODE_INDEX</code> environment variable.</p>" 1996 } 1997 }, 1998 "documentation":"<p>An object representing the properties of a node that's associated with a multi-node parallel job.</p>" 1999 }, 2000 "NodePropertyOverride":{ 2001 "type":"structure", 2002 "required":["targetNodes"], 2003 "members":{ 2004 "targetNodes":{ 2005 "shape":"String", 2006 "documentation":"<p>The range of nodes, using node index values, that's used to override. A range of <code>0:3</code> indicates nodes with index values of <code>0</code> through <code>3</code>. If the starting range value is omitted (<code>:n</code>), then <code>0</code> is used to start the range. If the ending range value is omitted (<code>n:</code>), then the highest possible node index is used to end the range.</p>" 2007 }, 2008 "containerOverrides":{ 2009 "shape":"ContainerOverrides", 2010 "documentation":"<p>The overrides that should be sent to a node range.</p>" 2011 } 2012 }, 2013 "documentation":"<p>Object representing any node overrides to a job definition that's used in a <a>SubmitJob</a> API operation.</p>" 2014 }, 2015 "NodePropertyOverrides":{ 2016 "type":"list", 2017 "member":{"shape":"NodePropertyOverride"} 2018 }, 2019 "NodeRangeProperties":{ 2020 "type":"list", 2021 "member":{"shape":"NodeRangeProperty"} 2022 }, 2023 "NodeRangeProperty":{ 2024 "type":"structure", 2025 "required":["targetNodes"], 2026 "members":{ 2027 "targetNodes":{ 2028 "shape":"String", 2029 "documentation":"<p>The range of nodes, using node index values. A range of <code>0:3</code> indicates nodes with index values of <code>0</code> through <code>3</code>. If the starting range value is omitted (<code>:n</code>), then <code>0</code> is used to start the range. If the ending range value is omitted (<code>n:</code>), then the highest possible node index is used to end the range. Your accumulative node ranges must account for all nodes (<code>0:n</code>). You can nest node ranges, for example <code>0:10</code> and <code>4:5</code>, in which case the <code>4:5</code> range properties override the <code>0:10</code> properties.</p>" 2030 }, 2031 "container":{ 2032 "shape":"ContainerProperties", 2033 "documentation":"<p>The container details for the node range.</p>" 2034 } 2035 }, 2036 "documentation":"<p>An object representing the properties of the node range for a multi-node parallel job.</p>" 2037 }, 2038 "ParametersMap":{ 2039 "type":"map", 2040 "key":{"shape":"String"}, 2041 "value":{"shape":"String"} 2042 }, 2043 "PlatformCapability":{ 2044 "type":"string", 2045 "enum":[ 2046 "EC2", 2047 "FARGATE" 2048 ] 2049 }, 2050 "PlatformCapabilityList":{ 2051 "type":"list", 2052 "member":{"shape":"PlatformCapability"} 2053 }, 2054 "RegisterJobDefinitionRequest":{ 2055 "type":"structure", 2056 "required":[ 2057 "jobDefinitionName", 2058 "type" 2059 ], 2060 "members":{ 2061 "jobDefinitionName":{ 2062 "shape":"String", 2063 "documentation":"<p>The name of the job definition to register. Up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.</p>" 2064 }, 2065 "type":{ 2066 "shape":"JobDefinitionType", 2067 "documentation":"<p>The type of job definition. For more information about multi-node parallel jobs, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/multi-node-job-def.html\">Creating a multi-node parallel job definition</a> in the <i>Batch User Guide</i>.</p> <note> <p>If the job is run on Fargate resources, then <code>multinode</code> isn't supported.</p> </note>" 2068 }, 2069 "parameters":{ 2070 "shape":"ParametersMap", 2071 "documentation":"<p>Default parameter substitution placeholders to set in the job definition. Parameters are specified as a key-value pair mapping. Parameters in a <code>SubmitJob</code> request override any corresponding parameter defaults from the job definition.</p>" 2072 }, 2073 "containerProperties":{ 2074 "shape":"ContainerProperties", 2075 "documentation":"<p>An object with various properties specific to single-node container-based jobs. If the job definition's <code>type</code> parameter is <code>container</code>, then you must specify either <code>containerProperties</code> or <code>nodeProperties</code>.</p> <note> <p>If the job runs on Fargate resources, then you must not specify <code>nodeProperties</code>; use only <code>containerProperties</code>.</p> </note>" 2076 }, 2077 "nodeProperties":{ 2078 "shape":"NodeProperties", 2079 "documentation":"<p>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 <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/multi-node-parallel-jobs.html\">Multi-node Parallel Jobs</a> in the <i>Batch User Guide</i>. If the job definition's <code>type</code> parameter is <code>container</code>, then you must specify either <code>containerProperties</code> or <code>nodeProperties</code>.</p> <note> <p>If the job runs on Fargate resources, then you must not specify <code>nodeProperties</code>; use <code>containerProperties</code> instead.</p> </note>" 2080 }, 2081 "retryStrategy":{ 2082 "shape":"RetryStrategy", 2083 "documentation":"<p>The retry strategy to use for failed jobs that are submitted with this job definition. Any retry strategy that's specified during a <a>SubmitJob</a> operation overrides the retry strategy defined here. If a job is terminated due to a timeout, it isn't retried.</p>" 2084 }, 2085 "propagateTags":{ 2086 "shape":"Boolean", 2087 "documentation":"<p>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 <code>FAILED</code> state.</p>" 2088 }, 2089 "timeout":{ 2090 "shape":"JobTimeout", 2091 "documentation":"<p>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 <a>SubmitJob</a> operation overrides the timeout configuration defined here. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/job_timeouts.html\">Job Timeouts</a> in the <i>Batch User Guide</i>.</p>" 2092 }, 2093 "tags":{ 2094 "shape":"TagrisTagsMap", 2095 "documentation":"<p>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 <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html\">Tagging Amazon Web Services Resources</a> in <i>Batch User Guide</i>.</p>" 2096 }, 2097 "platformCapabilities":{ 2098 "shape":"PlatformCapabilityList", 2099 "documentation":"<p>The platform capabilities required by the job definition. If no value is specified, it defaults to <code>EC2</code>. To run the job on Fargate resources, specify <code>FARGATE</code>.</p>" 2100 } 2101 }, 2102 "documentation":"<p>Contains the parameters for <code>RegisterJobDefinition</code>.</p>" 2103 }, 2104 "RegisterJobDefinitionResponse":{ 2105 "type":"structure", 2106 "required":[ 2107 "jobDefinitionName", 2108 "jobDefinitionArn", 2109 "revision" 2110 ], 2111 "members":{ 2112 "jobDefinitionName":{ 2113 "shape":"String", 2114 "documentation":"<p>The name of the job definition.</p>" 2115 }, 2116 "jobDefinitionArn":{ 2117 "shape":"String", 2118 "documentation":"<p>The Amazon Resource Name (ARN) of the job definition.</p>" 2119 }, 2120 "revision":{ 2121 "shape":"Integer", 2122 "documentation":"<p>The revision of the job definition.</p>" 2123 } 2124 } 2125 }, 2126 "ResourceRequirement":{ 2127 "type":"structure", 2128 "required":[ 2129 "value", 2130 "type" 2131 ], 2132 "members":{ 2133 "value":{ 2134 "shape":"String", 2135 "documentation":"<p>The quantity of the specified resource to reserve for the container. The values vary based on the <code>type</code> specified.</p> <dl> <dt>type=\"GPU\"</dt> <dd> <p>The number of physical GPUs to reserve for the container. The number of GPUs reserved for all containers in a job shouldn't exceed the number of available GPUs on the compute resource that the job is launched on.</p> <note> <p>GPUs are not available for jobs that are running on Fargate resources.</p> </note> </dd> <dt>type=\"MEMORY\"</dt> <dd> <p>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 <code>Memory</code> in the <a href=\"https://docs.docker.com/engine/api/v1.23/#create-a-container\">Create a container</a> section of the <a href=\"https://docs.docker.com/engine/api/v1.23/\">Docker Remote API</a> and the <code>--memory</code> option to <a href=\"https://docs.docker.com/engine/reference/run/\">docker run</a>. 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 <code>Memory</code> in the <a href=\"https://docs.docker.com/engine/api/v1.23/#create-a-container\">Create a container</a> section of the <a href=\"https://docs.docker.com/engine/api/v1.23/\">Docker Remote API</a> and the <code>--memory</code> option to <a href=\"https://docs.docker.com/engine/reference/run/\">docker run</a>.</p> <note> <p>If you're trying to maximize your resource utilization by providing your jobs as much memory as possible for a particular instance type, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/memory-management.html\">Memory Management</a> in the <i>Batch User Guide</i>.</p> </note> <p>For jobs that are running on Fargate resources, then <code>value</code> is the hard limit (in MiB), and must match one of the supported values and the <code>VCPU</code> values must be one of the values supported for that memory value.</p> <dl> <dt>value = 512</dt> <dd> <p> <code>VCPU</code> = 0.25</p> </dd> <dt>value = 1024</dt> <dd> <p> <code>VCPU</code> = 0.25 or 0.5</p> </dd> <dt>value = 2048</dt> <dd> <p> <code>VCPU</code> = 0.25, 0.5, or 1</p> </dd> <dt>value = 3072</dt> <dd> <p> <code>VCPU</code> = 0.5, or 1</p> </dd> <dt>value = 4096</dt> <dd> <p> <code>VCPU</code> = 0.5, 1, or 2</p> </dd> <dt>value = 5120, 6144, or 7168</dt> <dd> <p> <code>VCPU</code> = 1 or 2</p> </dd> <dt>value = 8192</dt> <dd> <p> <code>VCPU</code> = 1, 2, or 4</p> </dd> <dt>value = 9216, 10240, 11264, 12288, 13312, 14336, 15360, or 16384</dt> <dd> <p> <code>VCPU</code> = 2 or 4</p> </dd> <dt>value = 17408, 18432, 19456, 20480, 21504, 22528, 23552, 24576, 25600, 26624, 27648, 28672, 29696, or 30720</dt> <dd> <p> <code>VCPU</code> = 4</p> </dd> </dl> </dd> <dt>type=\"VCPU\"</dt> <dd> <p>The number of vCPUs reserved for the container. This parameter maps to <code>CpuShares</code> in the <a href=\"https://docs.docker.com/engine/api/v1.23/#create-a-container\">Create a container</a> section of the <a href=\"https://docs.docker.com/engine/api/v1.23/\">Docker Remote API</a> and the <code>--cpu-shares</code> option to <a href=\"https://docs.docker.com/engine/reference/run/\">docker run</a>. 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.</p> <p>For jobs that are running on Fargate resources, then <code>value</code> must match one of the supported values and the <code>MEMORY</code> values must be one of the values supported for that VCPU value. The supported values are 0.25, 0.5, 1, 2, and 4</p> <dl> <dt>value = 0.25</dt> <dd> <p> <code>MEMORY</code> = 512, 1024, or 2048</p> </dd> <dt>value = 0.5</dt> <dd> <p> <code>MEMORY</code> = 1024, 2048, 3072, or 4096</p> </dd> <dt>value = 1</dt> <dd> <p> <code>MEMORY</code> = 2048, 3072, 4096, 5120, 6144, 7168, or 8192</p> </dd> <dt>value = 2</dt> <dd> <p> <code>MEMORY</code> = 4096, 5120, 6144, 7168, 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, or 16384</p> </dd> <dt>value = 4</dt> <dd> <p> <code>MEMORY</code> = 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, 16384, 17408, 18432, 19456, 20480, 21504, 22528, 23552, 24576, 25600, 26624, 27648, 28672, 29696, or 30720</p> </dd> </dl> </dd> </dl>" 2136 }, 2137 "type":{ 2138 "shape":"ResourceType", 2139 "documentation":"<p>The type of resource to assign to a container. The supported resources include <code>GPU</code>, <code>MEMORY</code>, and <code>VCPU</code>.</p>" 2140 } 2141 }, 2142 "documentation":"<p>The type and amount of a resource to assign to a container. The supported resources include <code>GPU</code>, <code>MEMORY</code>, and <code>VCPU</code>.</p>" 2143 }, 2144 "ResourceRequirements":{ 2145 "type":"list", 2146 "member":{"shape":"ResourceRequirement"} 2147 }, 2148 "ResourceType":{ 2149 "type":"string", 2150 "enum":[ 2151 "GPU", 2152 "VCPU", 2153 "MEMORY" 2154 ] 2155 }, 2156 "RetryAction":{ 2157 "type":"string", 2158 "enum":[ 2159 "RETRY", 2160 "EXIT" 2161 ] 2162 }, 2163 "RetryStrategy":{ 2164 "type":"structure", 2165 "members":{ 2166 "attempts":{ 2167 "shape":"Integer", 2168 "documentation":"<p>The number of times to move a job to the <code>RUNNABLE</code> status. You can specify between 1 and 10 attempts. If the value of <code>attempts</code> is greater than one, the job is retried on failure the same number of attempts as the value.</p>" 2169 }, 2170 "evaluateOnExit":{ 2171 "shape":"EvaluateOnExitList", 2172 "documentation":"<p>Array of up to 5 objects that specify conditions under which the job should be retried or failed. If this parameter is specified, then the <code>attempts</code> parameter must also be specified.</p>" 2173 } 2174 }, 2175 "documentation":"<p>The retry strategy associated with a job. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/job_retries.html\">Automated job retries</a> in the <i>Batch User Guide</i>.</p>" 2176 }, 2177 "Secret":{ 2178 "type":"structure", 2179 "required":[ 2180 "name", 2181 "valueFrom" 2182 ], 2183 "members":{ 2184 "name":{ 2185 "shape":"String", 2186 "documentation":"<p>The name of the secret.</p>" 2187 }, 2188 "valueFrom":{ 2189 "shape":"String", 2190 "documentation":"<p>The secret to expose to the container. The supported values are either the full ARN of the Secrets Manager secret or the full ARN of the parameter in the Amazon Web Services Systems Manager Parameter Store.</p> <note> <p>If the Amazon Web Services Systems Manager Parameter Store parameter exists in the same Region as the job you're launching, then you can use either the full ARN or name of the parameter. If the parameter exists in a different Region, then the full ARN must be specified.</p> </note>" 2191 } 2192 }, 2193 "documentation":"<p>An object representing the secret to expose to your container. Secrets can be exposed to a container in the following ways:</p> <ul> <li> <p>To inject sensitive data into your containers as environment variables, use the <code>secrets</code> container definition parameter.</p> </li> <li> <p>To reference sensitive information in the log configuration of a container, use the <code>secretOptions</code> container definition parameter.</p> </li> </ul> <p>For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html\">Specifying sensitive data</a> in the <i>Batch User Guide</i>.</p>" 2194 }, 2195 "SecretList":{ 2196 "type":"list", 2197 "member":{"shape":"Secret"} 2198 }, 2199 "ServerException":{ 2200 "type":"structure", 2201 "members":{ 2202 "message":{"shape":"String"} 2203 }, 2204 "documentation":"<p>These errors are usually caused by a server issue.</p>", 2205 "error":{"httpStatusCode":500}, 2206 "exception":true, 2207 "fault":true 2208 }, 2209 "String":{"type":"string"}, 2210 "StringList":{ 2211 "type":"list", 2212 "member":{"shape":"String"} 2213 }, 2214 "SubmitJobRequest":{ 2215 "type":"structure", 2216 "required":[ 2217 "jobName", 2218 "jobQueue", 2219 "jobDefinition" 2220 ], 2221 "members":{ 2222 "jobName":{ 2223 "shape":"String", 2224 "documentation":"<p>The name of the job. The first character must be alphanumeric, and up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.</p>" 2225 }, 2226 "jobQueue":{ 2227 "shape":"String", 2228 "documentation":"<p>The job queue where the job is submitted. You can specify either the name or the Amazon Resource Name (ARN) of the queue.</p>" 2229 }, 2230 "arrayProperties":{ 2231 "shape":"ArrayProperties", 2232 "documentation":"<p>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 <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/array_jobs.html\">Array Jobs</a> in the <i>Batch User Guide</i>.</p>" 2233 }, 2234 "dependsOn":{ 2235 "shape":"JobDependencyList", 2236 "documentation":"<p>A list of dependencies for the job. A job can depend upon a maximum of 20 jobs. You can specify a <code>SEQUENTIAL</code> 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 <code>N_TO_N</code> 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.</p>" 2237 }, 2238 "jobDefinition":{ 2239 "shape":"String", 2240 "documentation":"<p>The job definition used by this job. This value can be one of <code>name</code>, <code>name:revision</code>, or the Amazon Resource Name (ARN) for the job definition. If <code>name</code> is specified without a revision then the latest active revision is used.</p>" 2241 }, 2242 "parameters":{ 2243 "shape":"ParametersMap", 2244 "documentation":"<p>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 <code>SubmitJob</code> request override any corresponding parameter defaults from the job definition.</p>" 2245 }, 2246 "containerOverrides":{ 2247 "shape":"ContainerOverrides", 2248 "documentation":"<p>A list of container overrides in the JSON format that specify the name of a container in the specified job definition and the overrides it should receive. You can override the default command for a container, which is specified in the job definition or the Docker image, with a <code>command</code> override. You can also override existing environment variables on a container or add new environment variables to it with an <code>environment</code> override.</p>" 2249 }, 2250 "nodeOverrides":{ 2251 "shape":"NodeOverrides", 2252 "documentation":"<p>A list of node overrides in JSON format that specify the node range to target and the container overrides for that node range.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources; use <code>containerOverrides</code> instead.</p> </note>" 2253 }, 2254 "retryStrategy":{ 2255 "shape":"RetryStrategy", 2256 "documentation":"<p>The retry strategy to use for failed jobs from this <a>SubmitJob</a> operation. When a retry strategy is specified here, it overrides the retry strategy defined in the job definition.</p>" 2257 }, 2258 "propagateTags":{ 2259 "shape":"Boolean", 2260 "documentation":"<p>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 <code>FAILED</code> state. When specified, this overrides the tag propagation setting in the job definition.</p>" 2261 }, 2262 "timeout":{ 2263 "shape":"JobTimeout", 2264 "documentation":"<p>The timeout configuration for this <a>SubmitJob</a> 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 <a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/job_timeouts.html\">Job Timeouts</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>" 2265 }, 2266 "tags":{ 2267 "shape":"TagrisTagsMap", 2268 "documentation":"<p>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 <a href=\"https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html\">Tagging Amazon Web Services Resources</a> in <i>Amazon Web Services General Reference</i>.</p>" 2269 } 2270 }, 2271 "documentation":"<p>Contains the parameters for <code>SubmitJob</code>.</p>" 2272 }, 2273 "SubmitJobResponse":{ 2274 "type":"structure", 2275 "required":[ 2276 "jobName", 2277 "jobId" 2278 ], 2279 "members":{ 2280 "jobArn":{ 2281 "shape":"String", 2282 "documentation":"<p>The Amazon Resource Name (ARN) for the job.</p>" 2283 }, 2284 "jobName":{ 2285 "shape":"String", 2286 "documentation":"<p>The name of the job.</p>" 2287 }, 2288 "jobId":{ 2289 "shape":"String", 2290 "documentation":"<p>The unique identifier for the job.</p>" 2291 } 2292 } 2293 }, 2294 "TagKey":{ 2295 "type":"string", 2296 "max":128, 2297 "min":1 2298 }, 2299 "TagKeysList":{ 2300 "type":"list", 2301 "member":{"shape":"TagKey"}, 2302 "max":50, 2303 "min":1 2304 }, 2305 "TagResourceRequest":{ 2306 "type":"structure", 2307 "required":[ 2308 "resourceArn", 2309 "tags" 2310 ], 2311 "members":{ 2312 "resourceArn":{ 2313 "shape":"String", 2314 "documentation":"<p>The Amazon Resource Name (ARN) of the resource that tags are added to. Batch resources that support tags are compute environments, jobs, job definitions, and job queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.</p>", 2315 "location":"uri", 2316 "locationName":"resourceArn" 2317 }, 2318 "tags":{ 2319 "shape":"TagrisTagsMap", 2320 "documentation":"<p>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 <a href=\"https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html\">Tagging Amazon Web Services Resources</a> in <i>Amazon Web Services General Reference</i>.</p>" 2321 } 2322 } 2323 }, 2324 "TagResourceResponse":{ 2325 "type":"structure", 2326 "members":{ 2327 } 2328 }, 2329 "TagValue":{ 2330 "type":"string", 2331 "max":256 2332 }, 2333 "TagrisTagsMap":{ 2334 "type":"map", 2335 "key":{"shape":"TagKey"}, 2336 "value":{"shape":"TagValue"}, 2337 "max":50, 2338 "min":1 2339 }, 2340 "TagsMap":{ 2341 "type":"map", 2342 "key":{"shape":"String"}, 2343 "value":{"shape":"String"} 2344 }, 2345 "TerminateJobRequest":{ 2346 "type":"structure", 2347 "required":[ 2348 "jobId", 2349 "reason" 2350 ], 2351 "members":{ 2352 "jobId":{ 2353 "shape":"String", 2354 "documentation":"<p>The Batch job ID of the job to terminate.</p>" 2355 }, 2356 "reason":{ 2357 "shape":"String", 2358 "documentation":"<p>A message to attach to the job that explains the reason for canceling it. This message is returned by future <a>DescribeJobs</a> operations on the job. This message is also recorded in the Batch activity logs.</p>" 2359 } 2360 }, 2361 "documentation":"<p>Contains the parameters for <code>TerminateJob</code>.</p>" 2362 }, 2363 "TerminateJobResponse":{ 2364 "type":"structure", 2365 "members":{ 2366 } 2367 }, 2368 "Tmpfs":{ 2369 "type":"structure", 2370 "required":[ 2371 "containerPath", 2372 "size" 2373 ], 2374 "members":{ 2375 "containerPath":{ 2376 "shape":"String", 2377 "documentation":"<p>The absolute file path in the container where the tmpfs volume is mounted.</p>" 2378 }, 2379 "size":{ 2380 "shape":"Integer", 2381 "documentation":"<p>The size (in MiB) of the tmpfs volume.</p>" 2382 }, 2383 "mountOptions":{ 2384 "shape":"StringList", 2385 "documentation":"<p>The list of tmpfs volume mount options.</p> <p>Valid values: \"<code>defaults</code>\" | \"<code>ro</code>\" | \"<code>rw</code>\" | \"<code>suid</code>\" | \"<code>nosuid</code>\" | \"<code>dev</code>\" | \"<code>nodev</code>\" | \"<code>exec</code>\" | \"<code>noexec</code>\" | \"<code>sync</code>\" | \"<code>async</code>\" | \"<code>dirsync</code>\" | \"<code>remount</code>\" | \"<code>mand</code>\" | \"<code>nomand</code>\" | \"<code>atime</code>\" | \"<code>noatime</code>\" | \"<code>diratime</code>\" | \"<code>nodiratime</code>\" | \"<code>bind</code>\" | \"<code>rbind\" | \"unbindable\" | \"runbindable\" | \"private\" | \"rprivate\" | \"shared\" | \"rshared\" | \"slave\" | \"rslave\" | \"relatime</code>\" | \"<code>norelatime</code>\" | \"<code>strictatime</code>\" | \"<code>nostrictatime</code>\" | \"<code>mode</code>\" | \"<code>uid</code>\" | \"<code>gid</code>\" | \"<code>nr_inodes</code>\" | \"<code>nr_blocks</code>\" | \"<code>mpol</code>\"</p>" 2386 } 2387 }, 2388 "documentation":"<p>The container path, mount options, and size of the tmpfs mount.</p> <note> <p>This object isn't applicable to jobs that are running on Fargate resources.</p> </note>" 2389 }, 2390 "TmpfsList":{ 2391 "type":"list", 2392 "member":{"shape":"Tmpfs"} 2393 }, 2394 "Ulimit":{ 2395 "type":"structure", 2396 "required":[ 2397 "hardLimit", 2398 "name", 2399 "softLimit" 2400 ], 2401 "members":{ 2402 "hardLimit":{ 2403 "shape":"Integer", 2404 "documentation":"<p>The hard limit for the <code>ulimit</code> type.</p>" 2405 }, 2406 "name":{ 2407 "shape":"String", 2408 "documentation":"<p>The <code>type</code> of the <code>ulimit</code>.</p>" 2409 }, 2410 "softLimit":{ 2411 "shape":"Integer", 2412 "documentation":"<p>The soft limit for the <code>ulimit</code> type.</p>" 2413 } 2414 }, 2415 "documentation":"<p>The <code>ulimit</code> settings to pass to the container.</p> <note> <p>This object isn't applicable to jobs that are running on Fargate resources.</p> </note>" 2416 }, 2417 "Ulimits":{ 2418 "type":"list", 2419 "member":{"shape":"Ulimit"} 2420 }, 2421 "UntagResourceRequest":{ 2422 "type":"structure", 2423 "required":[ 2424 "resourceArn", 2425 "tagKeys" 2426 ], 2427 "members":{ 2428 "resourceArn":{ 2429 "shape":"String", 2430 "documentation":"<p>The Amazon Resource Name (ARN) of the resource from which to delete tags. Batch resources that support tags are compute environments, jobs, job definitions, and job queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.</p>", 2431 "location":"uri", 2432 "locationName":"resourceArn" 2433 }, 2434 "tagKeys":{ 2435 "shape":"TagKeysList", 2436 "documentation":"<p>The keys of the tags to be removed.</p>", 2437 "location":"querystring", 2438 "locationName":"tagKeys" 2439 } 2440 } 2441 }, 2442 "UntagResourceResponse":{ 2443 "type":"structure", 2444 "members":{ 2445 } 2446 }, 2447 "UpdateComputeEnvironmentRequest":{ 2448 "type":"structure", 2449 "required":["computeEnvironment"], 2450 "members":{ 2451 "computeEnvironment":{ 2452 "shape":"String", 2453 "documentation":"<p>The name or full Amazon Resource Name (ARN) of the compute environment to update.</p>" 2454 }, 2455 "state":{ 2456 "shape":"CEState", 2457 "documentation":"<p>The state of the compute environment. Compute environments in the <code>ENABLED</code> state can accept jobs from a queue and scale in or out automatically based on the workload demand of its associated queues.</p> <p>If the state is <code>ENABLED</code>, then the Batch scheduler can attempt to place jobs from an associated job queue on the compute resources within the environment. If the compute environment is managed, then it can scale its instances out or in automatically, based on the job queue demand.</p> <p>If the state is <code>DISABLED</code>, then the Batch scheduler doesn't attempt to place jobs within the environment. Jobs in a <code>STARTING</code> or <code>RUNNING</code> state continue to progress normally. Managed compute environments in the <code>DISABLED</code> state don't scale out. However, they scale in to <code>minvCpus</code> value after instances become idle.</p>" 2458 }, 2459 "computeResources":{ 2460 "shape":"ComputeResourceUpdate", 2461 "documentation":"<p>Details of the compute resources managed by the compute environment. Required for a managed compute environment. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html\">Compute Environments</a> in the <i>Batch User Guide</i>.</p>" 2462 }, 2463 "serviceRole":{ 2464 "shape":"String", 2465 "documentation":"<p>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 <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/service_IAM_role.html\">Batch service IAM role</a> in the <i>Batch User Guide</i>.</p> <important> <p>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.</p> </important> <p>If your specified role has a path other than <code>/</code>, then you must either specify the full role ARN (this is recommended) or prefix the role name with the path.</p> <note> <p>Depending on how you created your Batch service role, its ARN might contain the <code>service-role</code> path prefix. When you only specify the name of the service role, Batch assumes that your ARN doesn't use the <code>service-role</code> path prefix. Because of this, we recommend that you specify the full ARN of your service role when you create compute environments.</p> </note>" 2466 } 2467 }, 2468 "documentation":"<p>Contains the parameters for <code>UpdateComputeEnvironment</code>.</p>" 2469 }, 2470 "UpdateComputeEnvironmentResponse":{ 2471 "type":"structure", 2472 "members":{ 2473 "computeEnvironmentName":{ 2474 "shape":"String", 2475 "documentation":"<p>The name of the compute environment. Up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.</p>" 2476 }, 2477 "computeEnvironmentArn":{ 2478 "shape":"String", 2479 "documentation":"<p>The Amazon Resource Name (ARN) of the compute environment.</p>" 2480 } 2481 } 2482 }, 2483 "UpdateJobQueueRequest":{ 2484 "type":"structure", 2485 "required":["jobQueue"], 2486 "members":{ 2487 "jobQueue":{ 2488 "shape":"String", 2489 "documentation":"<p>The name or the Amazon Resource Name (ARN) of the job queue.</p>" 2490 }, 2491 "state":{ 2492 "shape":"JQState", 2493 "documentation":"<p>Describes the queue's ability to accept new jobs. If the job queue state is <code>ENABLED</code>, it can accept jobs. If the job queue state is <code>DISABLED</code>, new jobs can't be added to the queue, but jobs already in the queue can finish.</p>" 2494 }, 2495 "priority":{ 2496 "shape":"Integer", 2497 "documentation":"<p>The priority of the job queue. Job queues with a higher priority (or a higher integer value for the <code>priority</code> 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 <code>10</code> is given scheduling preference over a job queue with a priority value of <code>1</code>. All of the compute environments must be either EC2 (<code>EC2</code> or <code>SPOT</code>) or Fargate (<code>FARGATE</code> or <code>FARGATE_SPOT</code>). EC2 and Fargate compute environments can't be mixed.</p>" 2498 }, 2499 "computeEnvironmentOrder":{ 2500 "shape":"ComputeEnvironmentOrders", 2501 "documentation":"<p>Details the set of compute environments mapped to a job queue and their order relative to each other. This is one of the parameters used by the job scheduler to determine which compute environment should run a given job. Compute environments must be in the <code>VALID</code> state before you can associate them with a job queue. All of the compute environments must be either EC2 (<code>EC2</code> or <code>SPOT</code>) or Fargate (<code>FARGATE</code> or <code>FARGATE_SPOT</code>). EC2 and Fargate compute environments can't be mixed.</p> <note> <p>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.</p> </note>" 2502 } 2503 }, 2504 "documentation":"<p>Contains the parameters for <code>UpdateJobQueue</code>.</p>" 2505 }, 2506 "UpdateJobQueueResponse":{ 2507 "type":"structure", 2508 "members":{ 2509 "jobQueueName":{ 2510 "shape":"String", 2511 "documentation":"<p>The name of the job queue.</p>" 2512 }, 2513 "jobQueueArn":{ 2514 "shape":"String", 2515 "documentation":"<p>The Amazon Resource Name (ARN) of the job queue.</p>" 2516 } 2517 } 2518 }, 2519 "Volume":{ 2520 "type":"structure", 2521 "members":{ 2522 "host":{ 2523 "shape":"Host", 2524 "documentation":"<p>The contents of the <code>host</code> parameter determine whether your data volume persists on the host container instance and where it is stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume. However, the data isn't guaranteed to persist after the containers associated with it stop running.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.</p> </note>" 2525 }, 2526 "name":{ 2527 "shape":"String", 2528 "documentation":"<p>The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. This name is referenced in the <code>sourceVolume</code> parameter of container definition <code>mountPoints</code>.</p>" 2529 }, 2530 "efsVolumeConfiguration":{ 2531 "shape":"EFSVolumeConfiguration", 2532 "documentation":"<p>This parameter is specified when you are using an Amazon Elastic File System file system for job storage. Jobs that are running on Fargate resources must specify a <code>platformVersion</code> of at least <code>1.4.0</code>.</p>" 2533 } 2534 }, 2535 "documentation":"<p>A data volume used in a job's container properties.</p>" 2536 }, 2537 "Volumes":{ 2538 "type":"list", 2539 "member":{"shape":"Volume"} 2540 } 2541 }, 2542 "documentation":"<fullname>Batch</fullname> <p>Using Batch, you can run batch computing workloads on the Cloud. Batch computing is a common means for developers, scientists, and engineers to access large amounts of compute resources. Batch uses the advantages of this computing workload to remove the undifferentiated heavy lifting of configuring and managing required infrastructure. At the same time, it also adopts a familiar batch computing software approach. Given these advantages, Batch can help you to efficiently provision resources in response to jobs submitted, thus effectively helping you to eliminate capacity constraints, reduce compute costs, and deliver your results more quickly.</p> <p>As a fully managed service, Batch can run batch computing workloads of any scale. Batch automatically provisions compute resources and optimizes workload distribution based on the quantity and scale of your specific workloads. With Batch, there's no need to install or manage batch computing software. This means that you can focus your time and energy on analyzing results and solving your specific problems. </p>" 2543} 2544