aws-sdk-batch 1.82.0 → 1.83.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: 0f349833dbe27c2b4d504cc54aa22f577deccf0f0313403019cf99077d12c57b
4
- data.tar.gz: ac61524af277388a42c549e35774eaccda4e146f11ca1df3644586a9ae66ff74
3
+ metadata.gz: 654afc632bf18f8dedf03e4ff615f316ae0efe3155596716fc222f619d6193cb
4
+ data.tar.gz: 5bf3361f366a51789403aedfb2a18a6ec52f8fac83f87a64b9f238bb54e420b2
5
5
  SHA512:
6
- metadata.gz: b4e32a0ccc4ba9913f31335ebec4c2b3d863eb861e9f03a8fa48782ce7a300200f780be53bde26365e09852031bb62152baf93e98ab7589a1302d9092d163637
7
- data.tar.gz: ad8a0c3c7b423095214d736744a5816dc41df2d034b8e603e8bed31831cde5a6080f1ffe0ba08e35808d3c13b12b649305b43a1d1b4b8f5a3dbbc8868962580f
6
+ metadata.gz: ceae264195f2513c9949279fa79df0b1b713f4113a0f93c73d308901a869eaae07b9dc5e4ba0184018860dace375e139f791340e7b325467fe2220c331844796
7
+ data.tar.gz: dcc23cda6e64b24e5bcb7523afec050aab42a25148738d8190e63a4320be94cdbb6907c9ab3c1e7d3e1de03805209f5304879c91cc6cda4b6c36e2fe6a0a2054
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.83.0 (2024-03-08)
5
+ ------------------
6
+
7
+ * Feature - This release adds JobStateTimeLimitActions setting to the Job Queue API. It allows you to configure an action Batch can take for a blocking job in front of the queue after the defined period of time. The new parameter applies for ECS, EKS, and FARGATE Job Queues.
8
+
4
9
  1.82.0 (2024-02-28)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.82.0
1
+ 1.83.0
@@ -897,6 +897,11 @@ module Aws::Batch
897
897
  #
898
898
  # [1]: https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html
899
899
  #
900
+ # @option params [Array<Types::JobStateTimeLimitAction>] :job_state_time_limit_actions
901
+ # The set of actions that Batch performs on jobs that remain at the head
902
+ # of the job queue in the specified state longer than specified times.
903
+ # Batch will perform each action after `maxTimeSeconds` has passed.
904
+ #
900
905
  # @return [Types::CreateJobQueueResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
901
906
  #
902
907
  # * {Types::CreateJobQueueResponse#job_queue_name #job_queue_name} => String
@@ -968,6 +973,14 @@ module Aws::Batch
968
973
  # tags: {
969
974
  # "TagKey" => "TagValue",
970
975
  # },
976
+ # job_state_time_limit_actions: [
977
+ # {
978
+ # reason: "String", # required
979
+ # state: "RUNNABLE", # required, accepts RUNNABLE
980
+ # max_time_seconds: 1, # required
981
+ # action: "CANCEL", # required, accepts CANCEL
982
+ # },
983
+ # ],
971
984
  # })
972
985
  #
973
986
  # @example Response structure
@@ -1908,6 +1921,11 @@ module Aws::Batch
1908
1921
  # resp.job_queues[0].compute_environment_order[0].compute_environment #=> String
1909
1922
  # resp.job_queues[0].tags #=> Hash
1910
1923
  # resp.job_queues[0].tags["TagKey"] #=> String
1924
+ # resp.job_queues[0].job_state_time_limit_actions #=> Array
1925
+ # resp.job_queues[0].job_state_time_limit_actions[0].reason #=> String
1926
+ # resp.job_queues[0].job_state_time_limit_actions[0].state #=> String, one of "RUNNABLE"
1927
+ # resp.job_queues[0].job_state_time_limit_actions[0].max_time_seconds #=> Integer
1928
+ # resp.job_queues[0].job_state_time_limit_actions[0].action #=> String, one of "CANCEL"
1911
1929
  # resp.next_token #=> String
1912
1930
  #
1913
1931
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobQueues AWS API Documentation
@@ -4336,6 +4354,11 @@ module Aws::Batch
4336
4354
  #
4337
4355
  # </note>
4338
4356
  #
4357
+ # @option params [Array<Types::JobStateTimeLimitAction>] :job_state_time_limit_actions
4358
+ # The set of actions that Batch perform on jobs that remain at the head
4359
+ # of the job queue in the specified state longer than specified times.
4360
+ # Batch will perform each action after `maxTimeSeconds` has passed.
4361
+ #
4339
4362
  # @return [Types::UpdateJobQueueResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4340
4363
  #
4341
4364
  # * {Types::UpdateJobQueueResponse#job_queue_name #job_queue_name} => String
@@ -4370,6 +4393,14 @@ module Aws::Batch
4370
4393
  # compute_environment: "String", # required
4371
4394
  # },
4372
4395
  # ],
4396
+ # job_state_time_limit_actions: [
4397
+ # {
4398
+ # reason: "String", # required
4399
+ # state: "RUNNABLE", # required, accepts RUNNABLE
4400
+ # max_time_seconds: 1, # required
4401
+ # action: "CANCEL", # required, accepts CANCEL
4402
+ # },
4403
+ # ],
4373
4404
  # })
4374
4405
  #
4375
4406
  # @example Response structure
@@ -4434,7 +4465,7 @@ module Aws::Batch
4434
4465
  params: params,
4435
4466
  config: config)
4436
4467
  context[:gem_name] = 'aws-sdk-batch'
4437
- context[:gem_version] = '1.82.0'
4468
+ context[:gem_version] = '1.83.0'
4438
4469
  Seahorse::Client::Request.new(handlers, context)
4439
4470
  end
4440
4471
 
@@ -136,6 +136,10 @@ module Aws::Batch
136
136
  JobExecutionTimeoutMinutes = Shapes::IntegerShape.new(name: 'JobExecutionTimeoutMinutes')
137
137
  JobQueueDetail = Shapes::StructureShape.new(name: 'JobQueueDetail')
138
138
  JobQueueDetailList = Shapes::ListShape.new(name: 'JobQueueDetailList')
139
+ JobStateTimeLimitAction = Shapes::StructureShape.new(name: 'JobStateTimeLimitAction')
140
+ JobStateTimeLimitActions = Shapes::ListShape.new(name: 'JobStateTimeLimitActions')
141
+ JobStateTimeLimitActionsAction = Shapes::StringShape.new(name: 'JobStateTimeLimitActionsAction')
142
+ JobStateTimeLimitActionsState = Shapes::StringShape.new(name: 'JobStateTimeLimitActionsState')
139
143
  JobStatus = Shapes::StringShape.new(name: 'JobStatus')
140
144
  JobSummary = Shapes::StructureShape.new(name: 'JobSummary')
141
145
  JobSummaryList = Shapes::ListShape.new(name: 'JobSummaryList')
@@ -424,6 +428,7 @@ module Aws::Batch
424
428
  CreateJobQueueRequest.add_member(:priority, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "priority"))
425
429
  CreateJobQueueRequest.add_member(:compute_environment_order, Shapes::ShapeRef.new(shape: ComputeEnvironmentOrders, required: true, location_name: "computeEnvironmentOrder"))
426
430
  CreateJobQueueRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagrisTagsMap, location_name: "tags"))
431
+ CreateJobQueueRequest.add_member(:job_state_time_limit_actions, Shapes::ShapeRef.new(shape: JobStateTimeLimitActions, location_name: "jobStateTimeLimitActions"))
427
432
  CreateJobQueueRequest.struct_class = Types::CreateJobQueueRequest
428
433
 
429
434
  CreateJobQueueResponse.add_member(:job_queue_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "jobQueueName"))
@@ -805,10 +810,19 @@ module Aws::Batch
805
810
  JobQueueDetail.add_member(:priority, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "priority"))
806
811
  JobQueueDetail.add_member(:compute_environment_order, Shapes::ShapeRef.new(shape: ComputeEnvironmentOrders, required: true, location_name: "computeEnvironmentOrder"))
807
812
  JobQueueDetail.add_member(:tags, Shapes::ShapeRef.new(shape: TagrisTagsMap, location_name: "tags"))
813
+ JobQueueDetail.add_member(:job_state_time_limit_actions, Shapes::ShapeRef.new(shape: JobStateTimeLimitActions, location_name: "jobStateTimeLimitActions"))
808
814
  JobQueueDetail.struct_class = Types::JobQueueDetail
809
815
 
810
816
  JobQueueDetailList.member = Shapes::ShapeRef.new(shape: JobQueueDetail)
811
817
 
818
+ JobStateTimeLimitAction.add_member(:reason, Shapes::ShapeRef.new(shape: String, required: true, location_name: "reason"))
819
+ JobStateTimeLimitAction.add_member(:state, Shapes::ShapeRef.new(shape: JobStateTimeLimitActionsState, required: true, location_name: "state"))
820
+ JobStateTimeLimitAction.add_member(:max_time_seconds, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "maxTimeSeconds"))
821
+ JobStateTimeLimitAction.add_member(:action, Shapes::ShapeRef.new(shape: JobStateTimeLimitActionsAction, required: true, location_name: "action"))
822
+ JobStateTimeLimitAction.struct_class = Types::JobStateTimeLimitAction
823
+
824
+ JobStateTimeLimitActions.member = Shapes::ShapeRef.new(shape: JobStateTimeLimitAction)
825
+
812
826
  JobSummary.add_member(:job_arn, Shapes::ShapeRef.new(shape: String, location_name: "jobArn"))
813
827
  JobSummary.add_member(:job_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "jobId"))
814
828
  JobSummary.add_member(:job_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "jobName"))
@@ -1156,6 +1170,7 @@ module Aws::Batch
1156
1170
  UpdateJobQueueRequest.add_member(:scheduling_policy_arn, Shapes::ShapeRef.new(shape: String, location_name: "schedulingPolicyArn"))
1157
1171
  UpdateJobQueueRequest.add_member(:priority, Shapes::ShapeRef.new(shape: Integer, location_name: "priority"))
1158
1172
  UpdateJobQueueRequest.add_member(:compute_environment_order, Shapes::ShapeRef.new(shape: ComputeEnvironmentOrders, location_name: "computeEnvironmentOrder"))
1173
+ UpdateJobQueueRequest.add_member(:job_state_time_limit_actions, Shapes::ShapeRef.new(shape: JobStateTimeLimitActions, location_name: "jobStateTimeLimitActions"))
1159
1174
  UpdateJobQueueRequest.struct_class = Types::UpdateJobQueueRequest
1160
1175
 
1161
1176
  UpdateJobQueueResponse.add_member(:job_queue_name, Shapes::ShapeRef.new(shape: String, location_name: "jobQueueName"))
@@ -2243,6 +2243,13 @@ module Aws::Batch
2243
2243
  # [1]: https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html
2244
2244
  # @return [Hash<String,String>]
2245
2245
  #
2246
+ # @!attribute [rw] job_state_time_limit_actions
2247
+ # The set of actions that Batch performs on jobs that remain at the
2248
+ # head of the job queue in the specified state longer than specified
2249
+ # times. Batch will perform each action after `maxTimeSeconds` has
2250
+ # passed.
2251
+ # @return [Array<Types::JobStateTimeLimitAction>]
2252
+ #
2246
2253
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateJobQueueRequest AWS API Documentation
2247
2254
  #
2248
2255
  class CreateJobQueueRequest < Struct.new(
@@ -2251,7 +2258,8 @@ module Aws::Batch
2251
2258
  :scheduling_policy_arn,
2252
2259
  :priority,
2253
2260
  :compute_environment_order,
2254
- :tags)
2261
+ :tags,
2262
+ :job_state_time_limit_actions)
2255
2263
  SENSITIVE = []
2256
2264
  include Aws::Structure
2257
2265
  end
@@ -4745,6 +4753,20 @@ module Aws::Batch
4745
4753
  # @!attribute [rw] status_reason
4746
4754
  # A short, human-readable string to provide more details for the
4747
4755
  # current status of the job.
4756
+ #
4757
+ # * `CAPACITY:INSUFFICIENT_INSTANCE_CAPACITY` - All compute
4758
+ # environments have insufficient capacity to service the job.
4759
+ #
4760
+ # * `MISCONFIGURATION:COMPUTE_ENVIRONMENT_MAX_RESOURCE` - All compute
4761
+ # environments have a `maxVcpu` setting that is smaller than the job
4762
+ # requirements.
4763
+ #
4764
+ # * `MISCONFIGURATION:JOB_RESOURCE_REQUIREMENT` - All compute
4765
+ # environments have no connected instances that meet the job
4766
+ # requirements.
4767
+ #
4768
+ # * `MISCONFIGURATION:SERVICE_ROLE_PERMISSIONS` - All compute
4769
+ # environments have problems with the service role permissions.
4748
4770
  # @return [String]
4749
4771
  #
4750
4772
  # @!attribute [rw] created_at
@@ -4958,6 +4980,13 @@ module Aws::Batch
4958
4980
  # [1]: https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html
4959
4981
  # @return [Hash<String,String>]
4960
4982
  #
4983
+ # @!attribute [rw] job_state_time_limit_actions
4984
+ # The set of actions that Batch perform on jobs that remain at the
4985
+ # head of the job queue in the specified state longer than specified
4986
+ # times. Batch will perform each action after `maxTimeSeconds` has
4987
+ # passed.
4988
+ # @return [Array<Types::JobStateTimeLimitAction>]
4989
+ #
4961
4990
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/JobQueueDetail AWS API Documentation
4962
4991
  #
4963
4992
  class JobQueueDetail < Struct.new(
@@ -4969,7 +4998,45 @@ module Aws::Batch
4969
4998
  :status_reason,
4970
4999
  :priority,
4971
5000
  :compute_environment_order,
4972
- :tags)
5001
+ :tags,
5002
+ :job_state_time_limit_actions)
5003
+ SENSITIVE = []
5004
+ include Aws::Structure
5005
+ end
5006
+
5007
+ # Specifies an action that Batch will take after the job has remained at
5008
+ # the head of the queue in the specified state for longer than the
5009
+ # specified time.
5010
+ #
5011
+ # @!attribute [rw] reason
5012
+ # The reason to log for the action being taken.
5013
+ # @return [String]
5014
+ #
5015
+ # @!attribute [rw] state
5016
+ # The state of the job needed to trigger the action. The only
5017
+ # supported value is "`RUNNABLE`".
5018
+ # @return [String]
5019
+ #
5020
+ # @!attribute [rw] max_time_seconds
5021
+ # The approximate amount of time, in seconds, that must pass with the
5022
+ # job in the specified state before the action is taken. The minimum
5023
+ # value is 600 (10 minutes) and the maximum value is 86,400 (24
5024
+ # hours).
5025
+ # @return [Integer]
5026
+ #
5027
+ # @!attribute [rw] action
5028
+ # The action to take when a job is at the head of the job queue in the
5029
+ # specified state for the specified period of time. The only supported
5030
+ # value is "`CANCEL`", which will cancel the job.
5031
+ # @return [String]
5032
+ #
5033
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/JobStateTimeLimitAction AWS API Documentation
5034
+ #
5035
+ class JobStateTimeLimitAction < Struct.new(
5036
+ :reason,
5037
+ :state,
5038
+ :max_time_seconds,
5039
+ :action)
4973
5040
  SENSITIVE = []
4974
5041
  include Aws::Structure
4975
5042
  end
@@ -6903,7 +6970,7 @@ module Aws::Batch
6903
6970
  # rest of the containers in a task. If this parameter is omitted, a
6904
6971
  # container is assumed to be essential.
6905
6972
  #
6906
- # All tasks must have at least one essential container. If you have an
6973
+ # All jobs must have at least one essential container. If you have an
6907
6974
  # application that's composed of multiple containers, group
6908
6975
  # containers that are used for a common purpose into components, and
6909
6976
  # separate the different components into multiple task definitions.
@@ -7287,7 +7354,7 @@ module Aws::Batch
7287
7354
  # rest of the containers in a task. If this parameter is omitted, a
7288
7355
  # container is assumed to be essential.
7289
7356
  #
7290
- # All tasks must have at least one essential container. If you have an
7357
+ # All jobs must have at least one essential container. If you have an
7291
7358
  # application that's composed of multiple containers, group
7292
7359
  # containers that are used for a common purpose into components, and
7293
7360
  # separate the different components into multiple task definitions.
@@ -7871,6 +7938,13 @@ module Aws::Batch
7871
7938
  # </note>
7872
7939
  # @return [Array<Types::ComputeEnvironmentOrder>]
7873
7940
  #
7941
+ # @!attribute [rw] job_state_time_limit_actions
7942
+ # The set of actions that Batch perform on jobs that remain at the
7943
+ # head of the job queue in the specified state longer than specified
7944
+ # times. Batch will perform each action after `maxTimeSeconds` has
7945
+ # passed.
7946
+ # @return [Array<Types::JobStateTimeLimitAction>]
7947
+ #
7874
7948
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateJobQueueRequest AWS API Documentation
7875
7949
  #
7876
7950
  class UpdateJobQueueRequest < Struct.new(
@@ -7878,7 +7952,8 @@ module Aws::Batch
7878
7952
  :state,
7879
7953
  :scheduling_policy_arn,
7880
7954
  :priority,
7881
- :compute_environment_order)
7955
+ :compute_environment_order,
7956
+ :job_state_time_limit_actions)
7882
7957
  SENSITIVE = []
7883
7958
  include Aws::Structure
7884
7959
  end
data/lib/aws-sdk-batch.rb CHANGED
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-batch/customizations'
52
52
  # @!group service
53
53
  module Aws::Batch
54
54
 
55
- GEM_VERSION = '1.82.0'
55
+ GEM_VERSION = '1.83.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -148,7 +148,15 @@ module Aws
148
148
  compute_environment: ::String
149
149
  },
150
150
  ],
151
- ?tags: Hash[::String, ::String]
151
+ ?tags: Hash[::String, ::String],
152
+ ?job_state_time_limit_actions: Array[
153
+ {
154
+ reason: ::String,
155
+ state: ("RUNNABLE"),
156
+ max_time_seconds: ::Integer,
157
+ action: ("CANCEL")
158
+ },
159
+ ]
152
160
  ) -> _CreateJobQueueResponseSuccess
153
161
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateJobQueueResponseSuccess
154
162
 
@@ -1179,6 +1187,14 @@ module Aws
1179
1187
  order: ::Integer,
1180
1188
  compute_environment: ::String
1181
1189
  },
1190
+ ],
1191
+ ?job_state_time_limit_actions: Array[
1192
+ {
1193
+ reason: ::String,
1194
+ state: ("RUNNABLE"),
1195
+ max_time_seconds: ::Integer,
1196
+ action: ("CANCEL")
1197
+ },
1182
1198
  ]
1183
1199
  ) -> _UpdateJobQueueResponseSuccess
1184
1200
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateJobQueueResponseSuccess
data/sig/types.rbs CHANGED
@@ -226,6 +226,7 @@ module Aws::Batch
226
226
  attr_accessor priority: ::Integer
227
227
  attr_accessor compute_environment_order: ::Array[Types::ComputeEnvironmentOrder]
228
228
  attr_accessor tags: ::Hash[::String, ::String]
229
+ attr_accessor job_state_time_limit_actions: ::Array[Types::JobStateTimeLimitAction]
229
230
  SENSITIVE: []
230
231
  end
231
232
 
@@ -682,6 +683,15 @@ module Aws::Batch
682
683
  attr_accessor priority: ::Integer
683
684
  attr_accessor compute_environment_order: ::Array[Types::ComputeEnvironmentOrder]
684
685
  attr_accessor tags: ::Hash[::String, ::String]
686
+ attr_accessor job_state_time_limit_actions: ::Array[Types::JobStateTimeLimitAction]
687
+ SENSITIVE: []
688
+ end
689
+
690
+ class JobStateTimeLimitAction
691
+ attr_accessor reason: ::String
692
+ attr_accessor state: ("RUNNABLE")
693
+ attr_accessor max_time_seconds: ::Integer
694
+ attr_accessor action: ("CANCEL")
685
695
  SENSITIVE: []
686
696
  end
687
697
 
@@ -1072,6 +1082,7 @@ module Aws::Batch
1072
1082
  attr_accessor scheduling_policy_arn: ::String
1073
1083
  attr_accessor priority: ::Integer
1074
1084
  attr_accessor compute_environment_order: ::Array[Types::ComputeEnvironmentOrder]
1085
+ attr_accessor job_state_time_limit_actions: ::Array[Types::JobStateTimeLimitAction]
1075
1086
  SENSITIVE: []
1076
1087
  end
1077
1088
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-batch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.82.0
4
+ version: 1.83.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-28 00:00:00.000000000 Z
11
+ date: 2024-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core