aws-sdk-batch 1.60.0 → 1.61.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 74f025ce6243bbec5b1a397a514ac8e5315bb31b9f21f2c4343754972301e7bd
4
- data.tar.gz: 8b352f31766ff583b1e55a42dadb4bdfc0f79b6c411c9f1f7781fe702ebc1321
3
+ metadata.gz: 7e4c51c8292e04a8fefb257e89ca7461e451cb76d427eef9f04f421920fd6034
4
+ data.tar.gz: 5dd50fb327fa153ce41e5c7e8cf8a9ece78339010708cf54af11758d9c4c6ee1
5
5
  SHA512:
6
- metadata.gz: b31e5cfb0f8870a63782c968b1a55c47f6129e479e6d11565ed7e7dc471be2627ceefa53c1b7e2c84f7df345c6cf6aa111c5f4ee05758eb97fd6d527c282c8b9
7
- data.tar.gz: bc3f6279be87a7ea0d51cb8f17566561a2e6df3c7cddcdbc68d043176f5d79e64e97cee1052a06e4a5757b4eb73db8ec20f1a1911f81f70d10538469855635ea
6
+ metadata.gz: 70daac93441258d0426c7c856f720db519f66ed2c16ba45fde54247502636b0f0c1ee5373c95bcac487c4b678a81b2d3f1c7d20e93420aa0c18ee8835a75bbdb
7
+ data.tar.gz: bcef79db296232a7745d0db73d73bbb9a71bde4811e7fe2c05cc3f60170f57895140f762feea2a7e12e1534d499472018cca2153be7964f879784560a995a12d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.61.0 (2022-04-14)
5
+ ------------------
6
+
7
+ * Feature - Enables configuration updates for compute environments with BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED allocation strategies.
8
+
4
9
  1.60.0 (2022-03-25)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.60.0
1
+ 1.61.0
@@ -749,7 +749,7 @@ module Aws::Batch
749
749
  # @option params [required, Array<Types::ComputeEnvironmentOrder>] :compute_environment_order
750
750
  # The set of compute environments mapped to a job queue and their order
751
751
  # relative to each other. The job scheduler uses this parameter to
752
- # determine which compute environment should run a specific job. Compute
752
+ # determine which compute environment runs a specific job. Compute
753
753
  # environments must be in the `VALID` state before you can associate
754
754
  # them with a job queue. You can associate up to three compute
755
755
  # environments with a job queue. All of the compute environments must be
@@ -1073,8 +1073,8 @@ module Aws::Batch
1073
1073
  #
1074
1074
  # If you're using an unmanaged compute environment, you can use the
1075
1075
  # `DescribeComputeEnvironment` operation to determine the
1076
- # `ecsClusterArn` that you should launch your Amazon ECS container
1077
- # instances into.
1076
+ # `ecsClusterArn` that you launch your Amazon ECS container instances
1077
+ # into.
1078
1078
  #
1079
1079
  # @option params [Array<String>] :compute_environments
1080
1080
  # A list of up to 100 compute environment names or full Amazon Resource
@@ -1207,6 +1207,8 @@ module Aws::Batch
1207
1207
  # resp.compute_environments[0].compute_resources.ec2_configuration[0].image_type #=> String
1208
1208
  # resp.compute_environments[0].compute_resources.ec2_configuration[0].image_id_override #=> String
1209
1209
  # resp.compute_environments[0].service_role #=> String
1210
+ # resp.compute_environments[0].update_policy.terminate_jobs_on_update #=> Boolean
1211
+ # resp.compute_environments[0].update_policy.job_execution_timeout_minutes #=> Integer
1210
1212
  # resp.next_token #=> String
1211
1213
  #
1212
1214
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeComputeEnvironments AWS API Documentation
@@ -2692,8 +2694,8 @@ module Aws::Batch
2692
2694
  # @option params [Types::ContainerOverrides] :container_overrides
2693
2695
  # A list of container overrides in the JSON format that specify the name
2694
2696
  # 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
2697
+ # receives. You can override the default command for a container, which
2698
+ # is specified in the job definition or the Docker image, with a
2697
2699
  # `command` override. You can also override existing environment
2698
2700
  # variables on a container or add new environment variables to it with
2699
2701
  # an `environment` override.
@@ -3045,11 +3047,11 @@ module Aws::Batch
3045
3047
  #
3046
3048
  # @option params [Integer] :unmanagedv_cpus
3047
3049
  # 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.
3050
+ # compute environment. Do not specify this parameter for a managed
3051
+ # compute environment. This parameter is only used for fair share
3052
+ # scheduling to reserve vCPU capacity for new share identifiers. If this
3053
+ # parameter is not provided for a fair share job queue, no vCPU capacity
3054
+ # will be reserved.
3053
3055
  #
3054
3056
  # @option params [Types::ComputeResourceUpdate] :compute_resources
3055
3057
  # Details of the compute resources managed by the compute environment.
@@ -3069,11 +3071,15 @@ module Aws::Batch
3069
3071
  # If the compute environment has a service-linked role, it can't be
3070
3072
  # changed to use a regular IAM role. Likewise, if the compute
3071
3073
  # environment has a regular IAM role, it can't be changed to use a
3072
- # service-linked role.
3074
+ # service-linked role. To update the parameters for the compute
3075
+ # environment that require an infrastructure update to change, the
3076
+ # **AWSServiceRoleForBatch** service-linked role must be used. For more
3077
+ # information, see [Updating compute environments][2] in the *Batch User
3078
+ # Guide*.
3073
3079
  #
3074
3080
  # 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.
3081
+ # specify the full role ARN (recommended) or prefix the role name with
3082
+ # the path.
3077
3083
  #
3078
3084
  # <note markdown="1"> Depending on how you created your Batch service role, its ARN might
3079
3085
  # contain the `service-role` path prefix. When you only specify the name
@@ -3087,6 +3093,16 @@ module Aws::Batch
3087
3093
  #
3088
3094
  #
3089
3095
  # [1]: https://docs.aws.amazon.com/batch/latest/userguide/service_IAM_role.html
3096
+ # [2]: https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html
3097
+ #
3098
+ # @option params [Types::UpdatePolicy] :update_policy
3099
+ # Specifies the updated infrastructure update policy for the compute
3100
+ # environment. For more information about infrastructure updates, see
3101
+ # [Updating compute environments][1] in the *Batch User Guide*.
3102
+ #
3103
+ #
3104
+ #
3105
+ # [1]: https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html
3090
3106
  #
3091
3107
  # @return [Types::UpdateComputeEnvironmentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3092
3108
  #
@@ -3121,8 +3137,35 @@ module Aws::Batch
3121
3137
  # desiredv_cpus: 1,
3122
3138
  # subnets: ["String"],
3123
3139
  # security_group_ids: ["String"],
3140
+ # allocation_strategy: "BEST_FIT_PROGRESSIVE", # accepts BEST_FIT_PROGRESSIVE, SPOT_CAPACITY_OPTIMIZED
3141
+ # instance_types: ["String"],
3142
+ # ec2_key_pair: "String",
3143
+ # instance_role: "String",
3144
+ # tags: {
3145
+ # "String" => "String",
3146
+ # },
3147
+ # placement_group: "String",
3148
+ # bid_percentage: 1,
3149
+ # launch_template: {
3150
+ # launch_template_id: "String",
3151
+ # launch_template_name: "String",
3152
+ # version: "String",
3153
+ # },
3154
+ # ec2_configuration: [
3155
+ # {
3156
+ # image_type: "ImageType", # required
3157
+ # image_id_override: "ImageIdOverride",
3158
+ # },
3159
+ # ],
3160
+ # update_to_latest_image_version: false,
3161
+ # type: "EC2", # accepts EC2, SPOT, FARGATE, FARGATE_SPOT
3162
+ # image_id: "String",
3124
3163
  # },
3125
3164
  # service_role: "String",
3165
+ # update_policy: {
3166
+ # terminate_jobs_on_update: false,
3167
+ # job_execution_timeout_minutes: 1,
3168
+ # },
3126
3169
  # })
3127
3170
  #
3128
3171
  # @example Response structure
@@ -3162,7 +3205,7 @@ module Aws::Batch
3162
3205
  # The priority of the job queue. Job queues with a higher priority (or a
3163
3206
  # higher integer value for the `priority` parameter) are evaluated first
3164
3207
  # when associated with the same compute environment. Priority is
3165
- # determined in descending order, for example, a job queue with a
3208
+ # determined in descending order. For example, a job queue with a
3166
3209
  # priority value of `10` is given scheduling preference over a job queue
3167
3210
  # with a priority value of `1`. All of the compute environments must be
3168
3211
  # either EC2 (`EC2` or `SPOT`) or Fargate (`FARGATE` or `FARGATE_SPOT`).
@@ -3171,8 +3214,8 @@ module Aws::Batch
3171
3214
  # @option params [Array<Types::ComputeEnvironmentOrder>] :compute_environment_order
3172
3215
  # Details the set of compute environments mapped to a job queue and
3173
3216
  # 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
3217
+ # by the job scheduler to determine which compute environment runs a
3218
+ # given job. Compute environments must be in the `VALID` state before
3176
3219
  # you can associate them with a job queue. All of the compute
3177
3220
  # environments must be either EC2 (`EC2` or `SPOT`) or Fargate
3178
3221
  # (`FARGATE` or `FARGATE_SPOT`). EC2 and Fargate compute environments
@@ -3282,7 +3325,7 @@ module Aws::Batch
3282
3325
  params: params,
3283
3326
  config: config)
3284
3327
  context[:gem_name] = 'aws-sdk-batch'
3285
- context[:gem_version] = '1.60.0'
3328
+ context[:gem_version] = '1.61.0'
3286
3329
  Seahorse::Client::Request.new(handlers, context)
3287
3330
  end
3288
3331
 
@@ -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