aws-sdk-batch 1.58.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: 850247c871cbe33e17074767399ecb566d97358180a73524e2ad88320444832e
4
- data.tar.gz: db7d3cd58051d807b6d0c746c935e54879eb24f914b512076d3361d18cea1d99
3
+ metadata.gz: 7e4c51c8292e04a8fefb257e89ca7461e451cb76d427eef9f04f421920fd6034
4
+ data.tar.gz: 5dd50fb327fa153ce41e5c7e8cf8a9ece78339010708cf54af11758d9c4c6ee1
5
5
  SHA512:
6
- metadata.gz: b89c26e132df5d89fd93f06d22a6fe8965f55691388dddf653518969d58060aa70ec8a852aaf424660884483d19fbc0b5a13dc081b8eb0b0b47a9200834bcf62
7
- data.tar.gz: 5b498135a4e03d7c153932d569e75f4fb88f049f645671ee6f3ba1abdd53f44cbdd6c8552af73c41a9c7b1c137d5c554201150014131c4261a671d8e65bad1aa
6
+ metadata.gz: 70daac93441258d0426c7c856f720db519f66ed2c16ba45fde54247502636b0f0c1ee5373c95bcac487c4b678a81b2d3f1c7d20e93420aa0c18ee8835a75bbdb
7
+ data.tar.gz: bcef79db296232a7745d0db73d73bbb9a71bde4811e7fe2c05cc3f60170f57895140f762feea2a7e12e1534d499472018cca2153be7964f879784560a995a12d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
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
+
9
+ 1.60.0 (2022-03-25)
10
+ ------------------
11
+
12
+ * 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.
13
+
14
+ 1.59.0 (2022-02-24)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
4
19
  1.58.0 (2022-02-03)
5
20
  ------------------
6
21
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.58.0
1
+ 1.61.0
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
+ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
30
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
31
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
32
33
  require 'aws-sdk-core/plugins/signature_v4.rb'
@@ -75,6 +76,7 @@ module Aws::Batch
75
76
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
76
77
  add_plugin(Aws::Plugins::TransferEncoding)
77
78
  add_plugin(Aws::Plugins::HttpChecksum)
79
+ add_plugin(Aws::Plugins::ChecksumAlgorithm)
78
80
  add_plugin(Aws::Plugins::DefaultsMode)
79
81
  add_plugin(Aws::Plugins::RecursionDetection)
80
82
  add_plugin(Aws::Plugins::SignatureV4)
@@ -489,7 +491,7 @@ module Aws::Batch
489
491
  # for a fair share job queue, no vCPU capacity is reserved.
490
492
  #
491
493
  # <note markdown="1"> This parameter is only supported when the `type` parameter is set to
492
- # `UNMANAGED`/
494
+ # `UNMANAGED`.
493
495
  #
494
496
  # </note>
495
497
  #
@@ -747,7 +749,7 @@ module Aws::Batch
747
749
  # @option params [required, Array<Types::ComputeEnvironmentOrder>] :compute_environment_order
748
750
  # The set of compute environments mapped to a job queue and their order
749
751
  # relative to each other. The job scheduler uses this parameter to
750
- # determine which compute environment should run a specific job. Compute
752
+ # determine which compute environment runs a specific job. Compute
751
753
  # environments must be in the `VALID` state before you can associate
752
754
  # them with a job queue. You can associate up to three compute
753
755
  # environments with a job queue. All of the compute environments must be
@@ -1071,8 +1073,8 @@ module Aws::Batch
1071
1073
  #
1072
1074
  # If you're using an unmanaged compute environment, you can use the
1073
1075
  # `DescribeComputeEnvironment` operation to determine the
1074
- # `ecsClusterArn` that you should launch your Amazon ECS container
1075
- # instances into.
1076
+ # `ecsClusterArn` that you launch your Amazon ECS container instances
1077
+ # into.
1076
1078
  #
1077
1079
  # @option params [Array<String>] :compute_environments
1078
1080
  # A list of up to 100 compute environment names or full Amazon Resource
@@ -1205,6 +1207,8 @@ module Aws::Batch
1205
1207
  # resp.compute_environments[0].compute_resources.ec2_configuration[0].image_type #=> String
1206
1208
  # resp.compute_environments[0].compute_resources.ec2_configuration[0].image_id_override #=> String
1207
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
1208
1212
  # resp.next_token #=> String
1209
1213
  #
1210
1214
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeComputeEnvironments AWS API Documentation
@@ -2621,7 +2625,7 @@ module Aws::Batch
2621
2625
  # `resourceRequirements` objects in the job definition are the
2622
2626
  # exception. They can't be overridden this way using the `memory` and
2623
2627
  # `vcpus` parameters. Rather, you must specify updates to job definition
2624
- # parameters in a `ResourceRequirements` object that's included in the
2628
+ # parameters in a `resourceRequirements` object that's included in the
2625
2629
  # `containerOverrides` parameter.
2626
2630
  #
2627
2631
  # <note markdown="1"> Job queues with a scheduling policy are limited to 500 active fair
@@ -2690,8 +2694,8 @@ module Aws::Batch
2690
2694
  # @option params [Types::ContainerOverrides] :container_overrides
2691
2695
  # A list of container overrides in the JSON format that specify the name
2692
2696
  # of a container in the specified job definition and the overrides it
2693
- # should receive. You can override the default command for a container,
2694
- # 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
2695
2699
  # `command` override. You can also override existing environment
2696
2700
  # variables on a container or add new environment variables to it with
2697
2701
  # an `environment` override.
@@ -3043,11 +3047,11 @@ module Aws::Batch
3043
3047
  #
3044
3048
  # @option params [Integer] :unmanagedv_cpus
3045
3049
  # The maximum number of vCPUs expected to be used for an unmanaged
3046
- # compute environment. This parameter should not be specified for a
3047
- # managed compute environment. This parameter is only used for fair
3048
- # share scheduling to reserve vCPU capacity for new share identifiers.
3049
- # If this parameter is not provided for a fair share job queue, no vCPU
3050
- # 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.
3051
3055
  #
3052
3056
  # @option params [Types::ComputeResourceUpdate] :compute_resources
3053
3057
  # Details of the compute resources managed by the compute environment.
@@ -3067,11 +3071,15 @@ module Aws::Batch
3067
3071
  # If the compute environment has a service-linked role, it can't be
3068
3072
  # changed to use a regular IAM role. Likewise, if the compute
3069
3073
  # environment has a regular IAM role, it can't be changed to use a
3070
- # 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*.
3071
3079
  #
3072
3080
  # If your specified role has a path other than `/`, then you must either
3073
- # specify the full role ARN (this is recommended) or prefix the role
3074
- # name with the path.
3081
+ # specify the full role ARN (recommended) or prefix the role name with
3082
+ # the path.
3075
3083
  #
3076
3084
  # <note markdown="1"> Depending on how you created your Batch service role, its ARN might
3077
3085
  # contain the `service-role` path prefix. When you only specify the name
@@ -3085,6 +3093,16 @@ module Aws::Batch
3085
3093
  #
3086
3094
  #
3087
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
3088
3106
  #
3089
3107
  # @return [Types::UpdateComputeEnvironmentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3090
3108
  #
@@ -3119,8 +3137,35 @@ module Aws::Batch
3119
3137
  # desiredv_cpus: 1,
3120
3138
  # subnets: ["String"],
3121
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",
3122
3163
  # },
3123
3164
  # service_role: "String",
3165
+ # update_policy: {
3166
+ # terminate_jobs_on_update: false,
3167
+ # job_execution_timeout_minutes: 1,
3168
+ # },
3124
3169
  # })
3125
3170
  #
3126
3171
  # @example Response structure
@@ -3160,7 +3205,7 @@ module Aws::Batch
3160
3205
  # The priority of the job queue. Job queues with a higher priority (or a
3161
3206
  # higher integer value for the `priority` parameter) are evaluated first
3162
3207
  # when associated with the same compute environment. Priority is
3163
- # determined in descending order, for example, a job queue with a
3208
+ # determined in descending order. For example, a job queue with a
3164
3209
  # priority value of `10` is given scheduling preference over a job queue
3165
3210
  # with a priority value of `1`. All of the compute environments must be
3166
3211
  # either EC2 (`EC2` or `SPOT`) or Fargate (`FARGATE` or `FARGATE_SPOT`).
@@ -3169,8 +3214,8 @@ module Aws::Batch
3169
3214
  # @option params [Array<Types::ComputeEnvironmentOrder>] :compute_environment_order
3170
3215
  # Details the set of compute environments mapped to a job queue and
3171
3216
  # their order relative to each other. This is one of the parameters used
3172
- # by the job scheduler to determine which compute environment should run
3173
- # 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
3174
3219
  # you can associate them with a job queue. All of the compute
3175
3220
  # environments must be either EC2 (`EC2` or `SPOT`) or Fargate
3176
3221
  # (`FARGATE` or `FARGATE_SPOT`). EC2 and Fargate compute environments
@@ -3280,7 +3325,7 @@ module Aws::Batch
3280
3325
  params: params,
3281
3326
  config: config)
3282
3327
  context[:gem_name] = 'aws-sdk-batch'
3283
- context[:gem_version] = '1.58.0'
3328
+ context[:gem_version] = '1.61.0'
3284
3329
  Seahorse::Client::Request.new(handlers, context)
3285
3330
  end
3286
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