aws-sdk-batch 1.59.0 → 1.62.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 00534c5e35762214491d6e334c620a0e3815bd9520309dffaa958ad187d565b6
4
- data.tar.gz: 293af97ab16cc6c1e023a9687cd16241ba561ae07ac238815d60b716c52697a4
3
+ metadata.gz: 317199b27dc25a34dff4de2ce56e5d3a68d411eb3e374f0b03ec8cda59f0660d
4
+ data.tar.gz: 2bc7a3dc1ce9a033a56e49e67db9eec33169c580af0e09a910ce55e242464d51
5
5
  SHA512:
6
- metadata.gz: 0e1b049e2efc5592fa96e95a3c606c7f497104c3569d55068bc2961de2e57988fa30453141d2dbc74e4677980622a53a75d1cca2b7c8053d1b959cd089725897
7
- data.tar.gz: 52a03e9cd26530a8ea4e054efa8f1f656ea137446e10c4feae2cef3ea6aaf913e4a222e09cf04513ca22a89cdc28d33e624d15cf72d9d24f6e3d632ec8b00848
6
+ metadata.gz: d6513e3677f754fdfe367b561af8ed19f9216e2feff6f54cdb114a1eb2ab3d336f4bfdf81a24b4c5b2ea33b934a826e87586f160b95c06fadd71c046911abccd
7
+ data.tar.gz: 110c21ae8ad99b6ceec6f0e1f0701d5ce045d915180e4d95b4f29e374ff1c72f131e15a12b6d03d4c7b3af681c24f24ebded238463dcddbbb44e71bc41181e9e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.62.0 (2022-05-18)
5
+ ------------------
6
+
7
+ * Feature - Documentation updates for AWS Batch.
8
+
9
+ 1.61.0 (2022-04-14)
10
+ ------------------
11
+
12
+ * Feature - Enables configuration updates for compute environments with BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED allocation strategies.
13
+
14
+ 1.60.0 (2022-03-25)
15
+ ------------------
16
+
17
+ * Feature - Bug Fix: Fixed a bug where shapes were marked as unboxed and were not serialized and sent over the wire, causing an API error from the service.
18
+
4
19
  1.59.0 (2022-02-24)
5
20
  ------------------
6
21
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.59.0
1
+ 1.62.0
@@ -429,13 +429,15 @@ module Aws::Batch
429
429
  # [Launching an Amazon ECS container instance][3] in the *Amazon Elastic
430
430
  # Container Service Developer Guide*.
431
431
  #
432
- # <note markdown="1"> Batch doesn't upgrade the AMIs in a compute environment after the
433
- # environment is created. For example, it doesn't update the AMIs when
434
- # a newer version of the Amazon ECS optimized AMI is available.
435
- # Therefore, you're responsible for managing the guest operating system
436
- # (including its updates and security patches) and any additional
437
- # application software or utilities that you install on the compute
438
- # resources. To use a new AMI for your Batch jobs, complete these steps:
432
+ # <note markdown="1"> Batch doesn't automatically upgrade the AMIs in a compute environment
433
+ # after it's created. For example, it also doesn't update the AMIs in
434
+ # your compute environment when a newer version of the Amazon ECS
435
+ # optimized AMI is available. You're responsible for the management of
436
+ # the guest operating system. This includes any updates and security
437
+ # patches. You're also responsible for any additional application
438
+ # software or utilities that you install on the compute resources. There
439
+ # are two ways to use a new AMI for your Batch jobs. The original method
440
+ # is to complete these steps:
439
441
  #
440
442
  # 1. Create a new compute environment with the new AMI.
441
443
  #
@@ -445,6 +447,43 @@ module Aws::Batch
445
447
  #
446
448
  # 4. Delete the earlier compute environment.
447
449
  #
450
+ # In April 2022, Batch added enhanced support for updating compute
451
+ # environments. For more information, see [Updating compute
452
+ # environments][4]. To use the enhanced updating of compute environments
453
+ # to update AMIs, follow these rules:
454
+ #
455
+ # * Either do not set the service role (`serviceRole`) parameter or set
456
+ # it to the **AWSBatchServiceRole** service-linked role.
457
+ #
458
+ # * Set the allocation strategy (`allocationStrategy`) parameter to
459
+ # `BEST_FIT_PROGRESSIVE` or `SPOT_CAPACITY_OPTIMIZED`.
460
+ #
461
+ # * Set the update to latest image version
462
+ # (`updateToLatestImageVersion`) parameter to `true`.
463
+ #
464
+ # * Do not specify an AMI ID in `imageId`, `imageIdOverride` (in [
465
+ # `ec2Configuration` ][5]), or in the launch template
466
+ # (`launchTemplate`). In that case Batch will select the latest Amazon
467
+ # ECS optimized AMI supported by Batch at the time the infrastructure
468
+ # update is initiated. Alternatively you can specify the AMI ID in the
469
+ # `imageId` or `imageIdOverride` parameters, or the launch template
470
+ # identified by the `LaunchTemplate` properties. Changing any of these
471
+ # properties will trigger an infrastructure update. If the AMI ID is
472
+ # specified in the launch template, it can not be replaced by
473
+ # specifying an AMI ID in either the `imageId` or `imageIdOverride`
474
+ # parameters. It can only be replaced by specifying a different launch
475
+ # template, or if the launch template version is set to `$Default` or
476
+ # `$Latest`, by setting either a new default version for the launch
477
+ # template (if `$Default`)or by adding a new version to the launch
478
+ # template (if `$Latest`).
479
+ #
480
+ # If these rules are followed, any update that triggers an
481
+ # infrastructure update will cause the AMI ID to be re-selected. If the
482
+ # `version` setting in the launch template (`launchTemplate`) is set to
483
+ # `$Latest` or `$Default`, the latest or default version of the launch
484
+ # template will be evaluated up at the time of the infrastructure
485
+ # update, even if the `launchTemplate` was not updated.
486
+ #
448
487
  # </note>
449
488
  #
450
489
  #
@@ -452,6 +491,8 @@ module Aws::Batch
452
491
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html
453
492
  # [2]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container_instance_AMIs.html
454
493
  # [3]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html
494
+ # [4]: https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html
495
+ # [5]: https://docs.aws.amazon.com/batch/latest/APIReference/API_Ec2Configuration.html
455
496
  #
456
497
  # @option params [required, String] :compute_environment_name
457
498
  # The name for your compute environment. It can be up to 128 letters
@@ -491,7 +532,7 @@ module Aws::Batch
491
532
  # for a fair share job queue, no vCPU capacity is reserved.
492
533
  #
493
534
  # <note markdown="1"> This parameter is only supported when the `type` parameter is set to
494
- # `UNMANAGED`/
535
+ # `UNMANAGED`.
495
536
  #
496
537
  # </note>
497
538
  #
@@ -749,7 +790,7 @@ module Aws::Batch
749
790
  # @option params [required, Array<Types::ComputeEnvironmentOrder>] :compute_environment_order
750
791
  # The set of compute environments mapped to a job queue and their order
751
792
  # relative to each other. The job scheduler uses this parameter to
752
- # determine which compute environment should run a specific job. Compute
793
+ # determine which compute environment runs a specific job. Compute
753
794
  # environments must be in the `VALID` state before you can associate
754
795
  # them with a job queue. You can associate up to three compute
755
796
  # environments with a job queue. All of the compute environments must be
@@ -1073,8 +1114,8 @@ module Aws::Batch
1073
1114
  #
1074
1115
  # If you're using an unmanaged compute environment, you can use the
1075
1116
  # `DescribeComputeEnvironment` operation to determine the
1076
- # `ecsClusterArn` that you should launch your Amazon ECS container
1077
- # instances into.
1117
+ # `ecsClusterArn` that you launch your Amazon ECS container instances
1118
+ # into.
1078
1119
  #
1079
1120
  # @option params [Array<String>] :compute_environments
1080
1121
  # A list of up to 100 compute environment names or full Amazon Resource
@@ -1207,6 +1248,8 @@ module Aws::Batch
1207
1248
  # resp.compute_environments[0].compute_resources.ec2_configuration[0].image_type #=> String
1208
1249
  # resp.compute_environments[0].compute_resources.ec2_configuration[0].image_id_override #=> String
1209
1250
  # resp.compute_environments[0].service_role #=> String
1251
+ # resp.compute_environments[0].update_policy.terminate_jobs_on_update #=> Boolean
1252
+ # resp.compute_environments[0].update_policy.job_execution_timeout_minutes #=> Integer
1210
1253
  # resp.next_token #=> String
1211
1254
  #
1212
1255
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeComputeEnvironments AWS API Documentation
@@ -2623,7 +2666,7 @@ module Aws::Batch
2623
2666
  # `resourceRequirements` objects in the job definition are the
2624
2667
  # exception. They can't be overridden this way using the `memory` and
2625
2668
  # `vcpus` parameters. Rather, you must specify updates to job definition
2626
- # parameters in a `ResourceRequirements` object that's included in the
2669
+ # parameters in a `resourceRequirements` object that's included in the
2627
2670
  # `containerOverrides` parameter.
2628
2671
  #
2629
2672
  # <note markdown="1"> Job queues with a scheduling policy are limited to 500 active fair
@@ -2645,7 +2688,10 @@ module Aws::Batch
2645
2688
  # name or the Amazon Resource Name (ARN) of the queue.
2646
2689
  #
2647
2690
  # @option params [String] :share_identifier
2648
- # The share identifier for the job.
2691
+ # The share identifier for the job. If the job queue does not have a
2692
+ # scheduling policy, then this parameter must not be specified. If the
2693
+ # job queue has a scheduling policy, then this parameter must be
2694
+ # specified.
2649
2695
  #
2650
2696
  # @option params [Integer] :scheduling_priority_override
2651
2697
  # The scheduling priority for the job. This will only affect jobs in job
@@ -2692,8 +2738,8 @@ module Aws::Batch
2692
2738
  # @option params [Types::ContainerOverrides] :container_overrides
2693
2739
  # A list of container overrides in the JSON format that specify the name
2694
2740
  # of a container in the specified job definition and the overrides it
2695
- # should receive. You can override the default command for a container,
2696
- # which is specified in the job definition or the Docker image, with a
2741
+ # receives. You can override the default command for a container, which
2742
+ # is specified in the job definition or the Docker image, with a
2697
2743
  # `command` override. You can also override existing environment
2698
2744
  # variables on a container or add new environment variables to it with
2699
2745
  # an `environment` override.
@@ -3045,11 +3091,11 @@ module Aws::Batch
3045
3091
  #
3046
3092
  # @option params [Integer] :unmanagedv_cpus
3047
3093
  # The maximum number of vCPUs expected to be used for an unmanaged
3048
- # compute environment. This parameter should not be specified for a
3049
- # managed compute environment. This parameter is only used for fair
3050
- # share scheduling to reserve vCPU capacity for new share identifiers.
3051
- # If this parameter is not provided for a fair share job queue, no vCPU
3052
- # capacity will be reserved.
3094
+ # compute environment. Do not specify this parameter for a managed
3095
+ # compute environment. This parameter is only used for fair share
3096
+ # scheduling to reserve vCPU capacity for new share identifiers. If this
3097
+ # parameter is not provided for a fair share job queue, no vCPU capacity
3098
+ # will be reserved.
3053
3099
  #
3054
3100
  # @option params [Types::ComputeResourceUpdate] :compute_resources
3055
3101
  # Details of the compute resources managed by the compute environment.
@@ -3069,11 +3115,15 @@ module Aws::Batch
3069
3115
  # If the compute environment has a service-linked role, it can't be
3070
3116
  # changed to use a regular IAM role. Likewise, if the compute
3071
3117
  # environment has a regular IAM role, it can't be changed to use a
3072
- # service-linked role.
3118
+ # service-linked role. To update the parameters for the compute
3119
+ # environment that require an infrastructure update to change, the
3120
+ # **AWSServiceRoleForBatch** service-linked role must be used. For more
3121
+ # information, see [Updating compute environments][2] in the *Batch User
3122
+ # Guide*.
3073
3123
  #
3074
3124
  # If your specified role has a path other than `/`, then you must either
3075
- # specify the full role ARN (this is recommended) or prefix the role
3076
- # name with the path.
3125
+ # specify the full role ARN (recommended) or prefix the role name with
3126
+ # the path.
3077
3127
  #
3078
3128
  # <note markdown="1"> Depending on how you created your Batch service role, its ARN might
3079
3129
  # contain the `service-role` path prefix. When you only specify the name
@@ -3087,6 +3137,16 @@ module Aws::Batch
3087
3137
  #
3088
3138
  #
3089
3139
  # [1]: https://docs.aws.amazon.com/batch/latest/userguide/service_IAM_role.html
3140
+ # [2]: https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html
3141
+ #
3142
+ # @option params [Types::UpdatePolicy] :update_policy
3143
+ # Specifies the updated infrastructure update policy for the compute
3144
+ # environment. For more information about infrastructure updates, see
3145
+ # [Updating compute environments][1] in the *Batch User Guide*.
3146
+ #
3147
+ #
3148
+ #
3149
+ # [1]: https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html
3090
3150
  #
3091
3151
  # @return [Types::UpdateComputeEnvironmentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3092
3152
  #
@@ -3121,8 +3181,35 @@ module Aws::Batch
3121
3181
  # desiredv_cpus: 1,
3122
3182
  # subnets: ["String"],
3123
3183
  # security_group_ids: ["String"],
3184
+ # allocation_strategy: "BEST_FIT_PROGRESSIVE", # accepts BEST_FIT_PROGRESSIVE, SPOT_CAPACITY_OPTIMIZED
3185
+ # instance_types: ["String"],
3186
+ # ec2_key_pair: "String",
3187
+ # instance_role: "String",
3188
+ # tags: {
3189
+ # "String" => "String",
3190
+ # },
3191
+ # placement_group: "String",
3192
+ # bid_percentage: 1,
3193
+ # launch_template: {
3194
+ # launch_template_id: "String",
3195
+ # launch_template_name: "String",
3196
+ # version: "String",
3197
+ # },
3198
+ # ec2_configuration: [
3199
+ # {
3200
+ # image_type: "ImageType", # required
3201
+ # image_id_override: "ImageIdOverride",
3202
+ # },
3203
+ # ],
3204
+ # update_to_latest_image_version: false,
3205
+ # type: "EC2", # accepts EC2, SPOT, FARGATE, FARGATE_SPOT
3206
+ # image_id: "String",
3124
3207
  # },
3125
3208
  # service_role: "String",
3209
+ # update_policy: {
3210
+ # terminate_jobs_on_update: false,
3211
+ # job_execution_timeout_minutes: 1,
3212
+ # },
3126
3213
  # })
3127
3214
  #
3128
3215
  # @example Response structure
@@ -3162,7 +3249,7 @@ module Aws::Batch
3162
3249
  # The priority of the job queue. Job queues with a higher priority (or a
3163
3250
  # higher integer value for the `priority` parameter) are evaluated first
3164
3251
  # when associated with the same compute environment. Priority is
3165
- # determined in descending order, for example, a job queue with a
3252
+ # determined in descending order. For example, a job queue with a
3166
3253
  # priority value of `10` is given scheduling preference over a job queue
3167
3254
  # with a priority value of `1`. All of the compute environments must be
3168
3255
  # either EC2 (`EC2` or `SPOT`) or Fargate (`FARGATE` or `FARGATE_SPOT`).
@@ -3171,8 +3258,8 @@ module Aws::Batch
3171
3258
  # @option params [Array<Types::ComputeEnvironmentOrder>] :compute_environment_order
3172
3259
  # Details the set of compute environments mapped to a job queue and
3173
3260
  # their order relative to each other. This is one of the parameters used
3174
- # by the job scheduler to determine which compute environment should run
3175
- # a given job. Compute environments must be in the `VALID` state before
3261
+ # by the job scheduler to determine which compute environment runs a
3262
+ # given job. Compute environments must be in the `VALID` state before
3176
3263
  # you can associate them with a job queue. All of the compute
3177
3264
  # environments must be either EC2 (`EC2` or `SPOT`) or Fargate
3178
3265
  # (`FARGATE` or `FARGATE_SPOT`). EC2 and Fargate compute environments
@@ -3282,7 +3369,7 @@ module Aws::Batch
3282
3369
  params: params,
3283
3370
  config: config)
3284
3371
  context[:gem_name] = 'aws-sdk-batch'
3285
- context[:gem_version] = '1.59.0'
3372
+ context[:gem_version] = '1.62.0'
3286
3373
  Seahorse::Client::Request.new(handlers, context)
3287
3374
  end
3288
3375
 
@@ -28,6 +28,7 @@ module Aws::Batch
28
28
  CEType = Shapes::StringShape.new(name: 'CEType')
29
29
  CRAllocationStrategy = Shapes::StringShape.new(name: 'CRAllocationStrategy')
30
30
  CRType = Shapes::StringShape.new(name: 'CRType')
31
+ CRUpdateAllocationStrategy = Shapes::StringShape.new(name: 'CRUpdateAllocationStrategy')
31
32
  CancelJobRequest = Shapes::StructureShape.new(name: 'CancelJobRequest')
32
33
  CancelJobResponse = Shapes::StructureShape.new(name: 'CancelJobResponse')
33
34
  ClientException = Shapes::StructureShape.new(name: 'ClientException')
@@ -94,6 +95,7 @@ module Aws::Batch
94
95
  JobDependencyList = Shapes::ListShape.new(name: 'JobDependencyList')
95
96
  JobDetail = Shapes::StructureShape.new(name: 'JobDetail')
96
97
  JobDetailList = Shapes::ListShape.new(name: 'JobDetailList')
98
+ JobExecutionTimeoutMinutes = Shapes::IntegerShape.new(name: 'JobExecutionTimeoutMinutes')
97
99
  JobQueueDetail = Shapes::StructureShape.new(name: 'JobQueueDetail')
98
100
  JobQueueDetailList = Shapes::ListShape.new(name: 'JobQueueDetailList')
99
101
  JobStatus = Shapes::StringShape.new(name: 'JobStatus')
@@ -170,6 +172,7 @@ module Aws::Batch
170
172
  UpdateComputeEnvironmentResponse = Shapes::StructureShape.new(name: 'UpdateComputeEnvironmentResponse')
171
173
  UpdateJobQueueRequest = Shapes::StructureShape.new(name: 'UpdateJobQueueRequest')
172
174
  UpdateJobQueueResponse = Shapes::StructureShape.new(name: 'UpdateJobQueueResponse')
175
+ UpdatePolicy = Shapes::StructureShape.new(name: 'UpdatePolicy')
173
176
  UpdateSchedulingPolicyRequest = Shapes::StructureShape.new(name: 'UpdateSchedulingPolicyRequest')
174
177
  UpdateSchedulingPolicyResponse = Shapes::StructureShape.new(name: 'UpdateSchedulingPolicyResponse')
175
178
  Volume = Shapes::StructureShape.new(name: 'Volume')
@@ -218,7 +221,7 @@ module Aws::Batch
218
221
  ComputeEnvironmentDetail.add_member(:compute_environment_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "computeEnvironmentName"))
219
222
  ComputeEnvironmentDetail.add_member(:compute_environment_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "computeEnvironmentArn"))
220
223
  ComputeEnvironmentDetail.add_member(:unmanagedv_cpus, Shapes::ShapeRef.new(shape: Integer, location_name: "unmanagedvCpus"))
221
- ComputeEnvironmentDetail.add_member(:ecs_cluster_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ecsClusterArn"))
224
+ ComputeEnvironmentDetail.add_member(:ecs_cluster_arn, Shapes::ShapeRef.new(shape: String, location_name: "ecsClusterArn"))
222
225
  ComputeEnvironmentDetail.add_member(:tags, Shapes::ShapeRef.new(shape: TagrisTagsMap, location_name: "tags"))
223
226
  ComputeEnvironmentDetail.add_member(:type, Shapes::ShapeRef.new(shape: CEType, location_name: "type"))
224
227
  ComputeEnvironmentDetail.add_member(:state, Shapes::ShapeRef.new(shape: CEState, location_name: "state"))
@@ -226,6 +229,7 @@ module Aws::Batch
226
229
  ComputeEnvironmentDetail.add_member(:status_reason, Shapes::ShapeRef.new(shape: String, location_name: "statusReason"))
227
230
  ComputeEnvironmentDetail.add_member(:compute_resources, Shapes::ShapeRef.new(shape: ComputeResource, location_name: "computeResources"))
228
231
  ComputeEnvironmentDetail.add_member(:service_role, Shapes::ShapeRef.new(shape: String, location_name: "serviceRole"))
232
+ ComputeEnvironmentDetail.add_member(:update_policy, Shapes::ShapeRef.new(shape: UpdatePolicy, location_name: "updatePolicy"))
229
233
  ComputeEnvironmentDetail.struct_class = Types::ComputeEnvironmentDetail
230
234
 
231
235
  ComputeEnvironmentDetailList.member = Shapes::ShapeRef.new(shape: ComputeEnvironmentDetail)
@@ -260,6 +264,18 @@ module Aws::Batch
260
264
  ComputeResourceUpdate.add_member(:desiredv_cpus, Shapes::ShapeRef.new(shape: Integer, location_name: "desiredvCpus"))
261
265
  ComputeResourceUpdate.add_member(:subnets, Shapes::ShapeRef.new(shape: StringList, location_name: "subnets"))
262
266
  ComputeResourceUpdate.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: StringList, location_name: "securityGroupIds"))
267
+ ComputeResourceUpdate.add_member(:allocation_strategy, Shapes::ShapeRef.new(shape: CRUpdateAllocationStrategy, location_name: "allocationStrategy"))
268
+ ComputeResourceUpdate.add_member(:instance_types, Shapes::ShapeRef.new(shape: StringList, location_name: "instanceTypes"))
269
+ ComputeResourceUpdate.add_member(:ec2_key_pair, Shapes::ShapeRef.new(shape: String, location_name: "ec2KeyPair"))
270
+ ComputeResourceUpdate.add_member(:instance_role, Shapes::ShapeRef.new(shape: String, location_name: "instanceRole"))
271
+ ComputeResourceUpdate.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
272
+ ComputeResourceUpdate.add_member(:placement_group, Shapes::ShapeRef.new(shape: String, location_name: "placementGroup"))
273
+ ComputeResourceUpdate.add_member(:bid_percentage, Shapes::ShapeRef.new(shape: Integer, location_name: "bidPercentage"))
274
+ ComputeResourceUpdate.add_member(:launch_template, Shapes::ShapeRef.new(shape: LaunchTemplateSpecification, location_name: "launchTemplate"))
275
+ ComputeResourceUpdate.add_member(:ec2_configuration, Shapes::ShapeRef.new(shape: Ec2ConfigurationList, location_name: "ec2Configuration"))
276
+ ComputeResourceUpdate.add_member(:update_to_latest_image_version, Shapes::ShapeRef.new(shape: Boolean, location_name: "updateToLatestImageVersion"))
277
+ ComputeResourceUpdate.add_member(:type, Shapes::ShapeRef.new(shape: CRType, location_name: "type"))
278
+ ComputeResourceUpdate.add_member(:image_id, Shapes::ShapeRef.new(shape: String, location_name: "imageId"))
263
279
  ComputeResourceUpdate.struct_class = Types::ComputeResourceUpdate
264
280
 
265
281
  ContainerDetail.add_member(:image, Shapes::ShapeRef.new(shape: String, location_name: "image"))
@@ -784,6 +800,7 @@ module Aws::Batch
784
800
  UpdateComputeEnvironmentRequest.add_member(:unmanagedv_cpus, Shapes::ShapeRef.new(shape: Integer, location_name: "unmanagedvCpus"))
785
801
  UpdateComputeEnvironmentRequest.add_member(:compute_resources, Shapes::ShapeRef.new(shape: ComputeResourceUpdate, location_name: "computeResources"))
786
802
  UpdateComputeEnvironmentRequest.add_member(:service_role, Shapes::ShapeRef.new(shape: String, location_name: "serviceRole"))
803
+ UpdateComputeEnvironmentRequest.add_member(:update_policy, Shapes::ShapeRef.new(shape: UpdatePolicy, location_name: "updatePolicy"))
787
804
  UpdateComputeEnvironmentRequest.struct_class = Types::UpdateComputeEnvironmentRequest
788
805
 
789
806
  UpdateComputeEnvironmentResponse.add_member(:compute_environment_name, Shapes::ShapeRef.new(shape: String, location_name: "computeEnvironmentName"))
@@ -801,6 +818,10 @@ module Aws::Batch
801
818
  UpdateJobQueueResponse.add_member(:job_queue_arn, Shapes::ShapeRef.new(shape: String, location_name: "jobQueueArn"))
802
819
  UpdateJobQueueResponse.struct_class = Types::UpdateJobQueueResponse
803
820
 
821
+ UpdatePolicy.add_member(:terminate_jobs_on_update, Shapes::ShapeRef.new(shape: Boolean, location_name: "terminateJobsOnUpdate"))
822
+ UpdatePolicy.add_member(:job_execution_timeout_minutes, Shapes::ShapeRef.new(shape: JobExecutionTimeoutMinutes, location_name: "jobExecutionTimeoutMinutes"))
823
+ UpdatePolicy.struct_class = Types::UpdatePolicy
824
+
804
825
  UpdateSchedulingPolicyRequest.add_member(:arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "arn"))
805
826
  UpdateSchedulingPolicyRequest.add_member(:fairshare_policy, Shapes::ShapeRef.new(shape: FairsharePolicy, location_name: "fairsharePolicy"))
806
827
  UpdateSchedulingPolicyRequest.struct_class = Types::UpdateSchedulingPolicyRequest