aws-sdk-batch 1.110.0 → 1.111.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.
data/lib/aws-sdk-batch.rb CHANGED
@@ -54,7 +54,7 @@ module Aws::Batch
54
54
  autoload :EndpointProvider, 'aws-sdk-batch/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-batch/endpoints'
56
56
 
57
- GEM_VERSION = '1.110.0'
57
+ GEM_VERSION = '1.111.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -145,6 +145,20 @@ module Aws
145
145
  ) -> _CreateComputeEnvironmentResponseSuccess
146
146
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateComputeEnvironmentResponseSuccess
147
147
 
148
+ interface _CreateConsumableResourceResponseSuccess
149
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateConsumableResourceResponse]
150
+ def consumable_resource_name: () -> ::String
151
+ def consumable_resource_arn: () -> ::String
152
+ end
153
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#create_consumable_resource-instance_method
154
+ def create_consumable_resource: (
155
+ consumable_resource_name: ::String,
156
+ ?total_quantity: ::Integer,
157
+ ?resource_type: ::String,
158
+ ?tags: Hash[::String, ::String]
159
+ ) -> _CreateConsumableResourceResponseSuccess
160
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateConsumableResourceResponseSuccess
161
+
148
162
  interface _CreateJobQueueResponseSuccess
149
163
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateJobQueueResponse]
150
164
  def job_queue_name: () -> ::String
@@ -205,6 +219,15 @@ module Aws
205
219
  ) -> _DeleteComputeEnvironmentResponseSuccess
206
220
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteComputeEnvironmentResponseSuccess
207
221
 
222
+ interface _DeleteConsumableResourceResponseSuccess
223
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteConsumableResourceResponse]
224
+ end
225
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#delete_consumable_resource-instance_method
226
+ def delete_consumable_resource: (
227
+ consumable_resource: ::String
228
+ ) -> _DeleteConsumableResourceResponseSuccess
229
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteConsumableResourceResponseSuccess
230
+
208
231
  interface _DeleteJobQueueResponseSuccess
209
232
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteJobQueueResponse]
210
233
  end
@@ -245,6 +268,23 @@ module Aws
245
268
  ) -> _DescribeComputeEnvironmentsResponseSuccess
246
269
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeComputeEnvironmentsResponseSuccess
247
270
 
271
+ interface _DescribeConsumableResourceResponseSuccess
272
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeConsumableResourceResponse]
273
+ def consumable_resource_name: () -> ::String
274
+ def consumable_resource_arn: () -> ::String
275
+ def total_quantity: () -> ::Integer
276
+ def in_use_quantity: () -> ::Integer
277
+ def available_quantity: () -> ::Integer
278
+ def resource_type: () -> ::String
279
+ def created_at: () -> ::Integer
280
+ def tags: () -> ::Hash[::String, ::String]
281
+ end
282
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#describe_consumable_resource-instance_method
283
+ def describe_consumable_resource: (
284
+ consumable_resource: ::String
285
+ ) -> _DescribeConsumableResourceResponseSuccess
286
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeConsumableResourceResponseSuccess
287
+
248
288
  interface _DescribeJobDefinitionsResponseSuccess
249
289
  include ::Seahorse::Client::_ResponseSuccess[Types::DescribeJobDefinitionsResponse]
250
290
  def job_definitions: () -> ::Array[Types::JobDefinition]
@@ -303,6 +343,24 @@ module Aws
303
343
  ) -> _GetJobQueueSnapshotResponseSuccess
304
344
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetJobQueueSnapshotResponseSuccess
305
345
 
346
+ interface _ListConsumableResourcesResponseSuccess
347
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListConsumableResourcesResponse]
348
+ def consumable_resources: () -> ::Array[Types::ConsumableResourceSummary]
349
+ def next_token: () -> ::String
350
+ end
351
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#list_consumable_resources-instance_method
352
+ def list_consumable_resources: (
353
+ ?filters: Array[
354
+ {
355
+ name: ::String?,
356
+ values: Array[::String]?
357
+ },
358
+ ],
359
+ ?max_results: ::Integer,
360
+ ?next_token: ::String
361
+ ) -> _ListConsumableResourcesResponseSuccess
362
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListConsumableResourcesResponseSuccess
363
+
306
364
  interface _ListJobsResponseSuccess
307
365
  include ::Seahorse::Client::_ResponseSuccess[Types::ListJobsResponse]
308
366
  def job_summary_list: () -> ::Array[Types::JobSummary]
@@ -325,6 +383,25 @@ module Aws
325
383
  ) -> _ListJobsResponseSuccess
326
384
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListJobsResponseSuccess
327
385
 
386
+ interface _ListJobsByConsumableResourceResponseSuccess
387
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListJobsByConsumableResourceResponse]
388
+ def jobs: () -> ::Array[Types::ListJobsByConsumableResourceSummary]
389
+ def next_token: () -> ::String
390
+ end
391
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#list_jobs_by_consumable_resource-instance_method
392
+ def list_jobs_by_consumable_resource: (
393
+ consumable_resource: ::String,
394
+ ?filters: Array[
395
+ {
396
+ name: ::String?,
397
+ values: Array[::String]?
398
+ },
399
+ ],
400
+ ?max_results: ::Integer,
401
+ ?next_token: ::String
402
+ ) -> _ListJobsByConsumableResourceResponseSuccess
403
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListJobsByConsumableResourceResponseSuccess
404
+
328
405
  interface _ListSchedulingPoliciesResponseSuccess
329
406
  include ::Seahorse::Client::_ResponseSuccess[Types::ListSchedulingPoliciesResponse]
330
407
  def scheduling_policies: () -> ::Array[Types::SchedulingPolicyListingDetail]
@@ -810,6 +887,14 @@ module Aws
810
887
  }?,
811
888
  share_process_namespace: bool?
812
889
  }?
890
+ }?,
891
+ consumable_resource_properties: {
892
+ consumable_resource_list: Array[
893
+ {
894
+ consumable_resource: ::String?,
895
+ quantity: ::Integer?
896
+ },
897
+ ]?
813
898
  }?
814
899
  },
815
900
  ]
@@ -1059,6 +1144,14 @@ module Aws
1059
1144
  ]?
1060
1145
  },
1061
1146
  ]
1147
+ },
1148
+ ?consumable_resource_properties: {
1149
+ consumable_resource_list: Array[
1150
+ {
1151
+ consumable_resource: ::String?,
1152
+ quantity: ::Integer?
1153
+ },
1154
+ ]?
1062
1155
  }
1063
1156
  ) -> _RegisterJobDefinitionResponseSuccess
1064
1157
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RegisterJobDefinitionResponseSuccess
@@ -1196,6 +1289,14 @@ module Aws
1196
1289
  namespace: ::String?
1197
1290
  }?
1198
1291
  }?
1292
+ }?,
1293
+ consumable_resource_properties_override: {
1294
+ consumable_resource_list: Array[
1295
+ {
1296
+ consumable_resource: ::String?,
1297
+ quantity: ::Integer?
1298
+ },
1299
+ ]?
1199
1300
  }?
1200
1301
  },
1201
1302
  ]?
@@ -1284,6 +1385,14 @@ module Aws
1284
1385
  ]?
1285
1386
  },
1286
1387
  ]?
1388
+ },
1389
+ ?consumable_resource_properties_override: {
1390
+ consumable_resource_list: Array[
1391
+ {
1392
+ consumable_resource: ::String?,
1393
+ quantity: ::Integer?
1394
+ },
1395
+ ]?
1287
1396
  }
1288
1397
  ) -> _SubmitJobResponseSuccess
1289
1398
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SubmitJobResponseSuccess
@@ -1374,6 +1483,21 @@ module Aws
1374
1483
  ) -> _UpdateComputeEnvironmentResponseSuccess
1375
1484
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateComputeEnvironmentResponseSuccess
1376
1485
 
1486
+ interface _UpdateConsumableResourceResponseSuccess
1487
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateConsumableResourceResponse]
1488
+ def consumable_resource_name: () -> ::String
1489
+ def consumable_resource_arn: () -> ::String
1490
+ def total_quantity: () -> ::Integer
1491
+ end
1492
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Batch/Client.html#update_consumable_resource-instance_method
1493
+ def update_consumable_resource: (
1494
+ consumable_resource: ::String,
1495
+ ?operation: ::String,
1496
+ ?quantity: ::Integer,
1497
+ ?client_token: ::String
1498
+ ) -> _UpdateConsumableResourceResponseSuccess
1499
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateConsumableResourceResponseSuccess
1500
+
1377
1501
  interface _UpdateJobQueueResponseSuccess
1378
1502
  include ::Seahorse::Client::_ResponseSuccess[Types::UpdateJobQueueResponse]
1379
1503
  def job_queue_name: () -> ::String
data/sig/types.rbs CHANGED
@@ -143,6 +143,26 @@ module Aws::Batch
143
143
  SENSITIVE: []
144
144
  end
145
145
 
146
+ class ConsumableResourceProperties
147
+ attr_accessor consumable_resource_list: ::Array[Types::ConsumableResourceRequirement]
148
+ SENSITIVE: []
149
+ end
150
+
151
+ class ConsumableResourceRequirement
152
+ attr_accessor consumable_resource: ::String
153
+ attr_accessor quantity: ::Integer
154
+ SENSITIVE: []
155
+ end
156
+
157
+ class ConsumableResourceSummary
158
+ attr_accessor consumable_resource_arn: ::String
159
+ attr_accessor consumable_resource_name: ::String
160
+ attr_accessor total_quantity: ::Integer
161
+ attr_accessor in_use_quantity: ::Integer
162
+ attr_accessor resource_type: ::String
163
+ SENSITIVE: []
164
+ end
165
+
146
166
  class ContainerDetail
147
167
  attr_accessor image: ::String
148
168
  attr_accessor vcpus: ::Integer
@@ -238,6 +258,20 @@ module Aws::Batch
238
258
  SENSITIVE: []
239
259
  end
240
260
 
261
+ class CreateConsumableResourceRequest
262
+ attr_accessor consumable_resource_name: ::String
263
+ attr_accessor total_quantity: ::Integer
264
+ attr_accessor resource_type: ::String
265
+ attr_accessor tags: ::Hash[::String, ::String]
266
+ SENSITIVE: []
267
+ end
268
+
269
+ class CreateConsumableResourceResponse
270
+ attr_accessor consumable_resource_name: ::String
271
+ attr_accessor consumable_resource_arn: ::String
272
+ SENSITIVE: []
273
+ end
274
+
241
275
  class CreateJobQueueRequest
242
276
  attr_accessor job_queue_name: ::String
243
277
  attr_accessor state: ("ENABLED" | "DISABLED")
@@ -276,6 +310,14 @@ module Aws::Batch
276
310
  class DeleteComputeEnvironmentResponse < Aws::EmptyStructure
277
311
  end
278
312
 
313
+ class DeleteConsumableResourceRequest
314
+ attr_accessor consumable_resource: ::String
315
+ SENSITIVE: []
316
+ end
317
+
318
+ class DeleteConsumableResourceResponse < Aws::EmptyStructure
319
+ end
320
+
279
321
  class DeleteJobQueueRequest
280
322
  attr_accessor job_queue: ::String
281
323
  SENSITIVE: []
@@ -313,6 +355,23 @@ module Aws::Batch
313
355
  SENSITIVE: []
314
356
  end
315
357
 
358
+ class DescribeConsumableResourceRequest
359
+ attr_accessor consumable_resource: ::String
360
+ SENSITIVE: []
361
+ end
362
+
363
+ class DescribeConsumableResourceResponse
364
+ attr_accessor consumable_resource_name: ::String
365
+ attr_accessor consumable_resource_arn: ::String
366
+ attr_accessor total_quantity: ::Integer
367
+ attr_accessor in_use_quantity: ::Integer
368
+ attr_accessor available_quantity: ::Integer
369
+ attr_accessor resource_type: ::String
370
+ attr_accessor created_at: ::Integer
371
+ attr_accessor tags: ::Hash[::String, ::String]
372
+ SENSITIVE: []
373
+ end
374
+
316
375
  class DescribeJobDefinitionsRequest
317
376
  attr_accessor job_definitions: ::Array[::String]
318
377
  attr_accessor max_results: ::Integer
@@ -694,6 +753,7 @@ module Aws::Batch
694
753
  attr_accessor ecs_properties: Types::EcsProperties
695
754
  attr_accessor eks_properties: Types::EksProperties
696
755
  attr_accessor container_orchestration_type: ("ECS" | "EKS")
756
+ attr_accessor consumable_resource_properties: Types::ConsumableResourceProperties
697
757
  SENSITIVE: []
698
758
  end
699
759
 
@@ -733,6 +793,7 @@ module Aws::Batch
733
793
  attr_accessor ecs_properties: Types::EcsPropertiesDetail
734
794
  attr_accessor is_cancelled: bool
735
795
  attr_accessor is_terminated: bool
796
+ attr_accessor consumable_resource_properties: Types::ConsumableResourceProperties
736
797
  SENSITIVE: []
737
798
  end
738
799
 
@@ -817,6 +878,48 @@ module Aws::Batch
817
878
  SENSITIVE: []
818
879
  end
819
880
 
881
+ class ListConsumableResourcesRequest
882
+ attr_accessor filters: ::Array[Types::KeyValuesPair]
883
+ attr_accessor max_results: ::Integer
884
+ attr_accessor next_token: ::String
885
+ SENSITIVE: []
886
+ end
887
+
888
+ class ListConsumableResourcesResponse
889
+ attr_accessor consumable_resources: ::Array[Types::ConsumableResourceSummary]
890
+ attr_accessor next_token: ::String
891
+ SENSITIVE: []
892
+ end
893
+
894
+ class ListJobsByConsumableResourceRequest
895
+ attr_accessor consumable_resource: ::String
896
+ attr_accessor filters: ::Array[Types::KeyValuesPair]
897
+ attr_accessor max_results: ::Integer
898
+ attr_accessor next_token: ::String
899
+ SENSITIVE: []
900
+ end
901
+
902
+ class ListJobsByConsumableResourceResponse
903
+ attr_accessor jobs: ::Array[Types::ListJobsByConsumableResourceSummary]
904
+ attr_accessor next_token: ::String
905
+ SENSITIVE: []
906
+ end
907
+
908
+ class ListJobsByConsumableResourceSummary
909
+ attr_accessor job_arn: ::String
910
+ attr_accessor job_queue_arn: ::String
911
+ attr_accessor job_name: ::String
912
+ attr_accessor job_definition_arn: ::String
913
+ attr_accessor share_identifier: ::String
914
+ attr_accessor job_status: ::String
915
+ attr_accessor quantity: ::Integer
916
+ attr_accessor status_reason: ::String
917
+ attr_accessor started_at: ::Integer
918
+ attr_accessor created_at: ::Integer
919
+ attr_accessor consumable_resource_properties: Types::ConsumableResourceProperties
920
+ SENSITIVE: []
921
+ end
922
+
820
923
  class ListJobsRequest
821
924
  attr_accessor job_queue: ::String
822
925
  attr_accessor array_job_id: ::String
@@ -914,6 +1017,7 @@ module Aws::Batch
914
1017
  attr_accessor ecs_properties_override: Types::EcsPropertiesOverride
915
1018
  attr_accessor instance_types: ::Array[::String]
916
1019
  attr_accessor eks_properties_override: Types::EksPropertiesOverride
1020
+ attr_accessor consumable_resource_properties_override: Types::ConsumableResourceProperties
917
1021
  SENSITIVE: []
918
1022
  end
919
1023
 
@@ -923,6 +1027,7 @@ module Aws::Batch
923
1027
  attr_accessor instance_types: ::Array[::String]
924
1028
  attr_accessor ecs_properties: Types::EcsProperties
925
1029
  attr_accessor eks_properties: Types::EksProperties
1030
+ attr_accessor consumable_resource_properties: Types::ConsumableResourceProperties
926
1031
  SENSITIVE: []
927
1032
  end
928
1033
 
@@ -940,6 +1045,7 @@ module Aws::Batch
940
1045
  attr_accessor platform_capabilities: ::Array[("EC2" | "FARGATE")]
941
1046
  attr_accessor eks_properties: Types::EksProperties
942
1047
  attr_accessor ecs_properties: Types::EcsProperties
1048
+ attr_accessor consumable_resource_properties: Types::ConsumableResourceProperties
943
1049
  SENSITIVE: []
944
1050
  end
945
1051
 
@@ -1020,6 +1126,7 @@ module Aws::Batch
1020
1126
  attr_accessor tags: ::Hash[::String, ::String]
1021
1127
  attr_accessor eks_properties_override: Types::EksPropertiesOverride
1022
1128
  attr_accessor ecs_properties_override: Types::EcsPropertiesOverride
1129
+ attr_accessor consumable_resource_properties_override: Types::ConsumableResourceProperties
1023
1130
  SENSITIVE: []
1024
1131
  end
1025
1132
 
@@ -1151,6 +1258,21 @@ module Aws::Batch
1151
1258
  SENSITIVE: []
1152
1259
  end
1153
1260
 
1261
+ class UpdateConsumableResourceRequest
1262
+ attr_accessor consumable_resource: ::String
1263
+ attr_accessor operation: ::String
1264
+ attr_accessor quantity: ::Integer
1265
+ attr_accessor client_token: ::String
1266
+ SENSITIVE: []
1267
+ end
1268
+
1269
+ class UpdateConsumableResourceResponse
1270
+ attr_accessor consumable_resource_name: ::String
1271
+ attr_accessor consumable_resource_arn: ::String
1272
+ attr_accessor total_quantity: ::Integer
1273
+ SENSITIVE: []
1274
+ end
1275
+
1154
1276
  class UpdateJobQueueRequest
1155
1277
  attr_accessor job_queue: ::String
1156
1278
  attr_accessor state: ("ENABLED" | "DISABLED")
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.110.0
4
+ version: 1.111.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: 2025-02-18 00:00:00.000000000 Z
11
+ date: 2025-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core