aws-sdk-batch 1.109.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.
@@ -1327,6 +1327,78 @@ module Aws::Batch
1327
1327
  include Aws::Structure
1328
1328
  end
1329
1329
 
1330
+ # Contains a list of consumable resources required by a job.
1331
+ #
1332
+ # @!attribute [rw] consumable_resource_list
1333
+ # The list of consumable resources required by a job.
1334
+ # @return [Array<Types::ConsumableResourceRequirement>]
1335
+ #
1336
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ConsumableResourceProperties AWS API Documentation
1337
+ #
1338
+ class ConsumableResourceProperties < Struct.new(
1339
+ :consumable_resource_list)
1340
+ SENSITIVE = []
1341
+ include Aws::Structure
1342
+ end
1343
+
1344
+ # Information about a consumable resource required to run a job.
1345
+ #
1346
+ # @!attribute [rw] consumable_resource
1347
+ # The name or ARN of the consumable resource.
1348
+ # @return [String]
1349
+ #
1350
+ # @!attribute [rw] quantity
1351
+ # The quantity of the consumable resource that is needed.
1352
+ # @return [Integer]
1353
+ #
1354
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ConsumableResourceRequirement AWS API Documentation
1355
+ #
1356
+ class ConsumableResourceRequirement < Struct.new(
1357
+ :consumable_resource,
1358
+ :quantity)
1359
+ SENSITIVE = []
1360
+ include Aws::Structure
1361
+ end
1362
+
1363
+ # Current information about a consumable resource.
1364
+ #
1365
+ # @!attribute [rw] consumable_resource_arn
1366
+ # The Amazon Resource Name (ARN) of the consumable resource.
1367
+ # @return [String]
1368
+ #
1369
+ # @!attribute [rw] consumable_resource_name
1370
+ # The name of the consumable resource.
1371
+ # @return [String]
1372
+ #
1373
+ # @!attribute [rw] total_quantity
1374
+ # The total amount of the consumable resource that is available.
1375
+ # @return [Integer]
1376
+ #
1377
+ # @!attribute [rw] in_use_quantity
1378
+ # The amount of the consumable resource that is currently in use.
1379
+ # @return [Integer]
1380
+ #
1381
+ # @!attribute [rw] resource_type
1382
+ # Indicates whether the resource is available to be re-used after a
1383
+ # job completes. Can be one of:
1384
+ #
1385
+ # * `REPLENISHABLE`
1386
+ #
1387
+ # * `NON_REPLENISHABLE`
1388
+ # @return [String]
1389
+ #
1390
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ConsumableResourceSummary AWS API Documentation
1391
+ #
1392
+ class ConsumableResourceSummary < Struct.new(
1393
+ :consumable_resource_arn,
1394
+ :consumable_resource_name,
1395
+ :total_quantity,
1396
+ :in_use_quantity,
1397
+ :resource_type)
1398
+ SENSITIVE = []
1399
+ include Aws::Structure
1400
+ end
1401
+
1330
1402
  # An object that represents the details of a container that's part of a
1331
1403
  # job.
1332
1404
  #
@@ -2258,6 +2330,63 @@ module Aws::Batch
2258
2330
  include Aws::Structure
2259
2331
  end
2260
2332
 
2333
+ # @!attribute [rw] consumable_resource_name
2334
+ # The name of the consumable resource. Must be unique.
2335
+ # @return [String]
2336
+ #
2337
+ # @!attribute [rw] total_quantity
2338
+ # The total amount of the consumable resource that is available. Must
2339
+ # be non-negative.
2340
+ # @return [Integer]
2341
+ #
2342
+ # @!attribute [rw] resource_type
2343
+ # Indicates whether the resource is available to be re-used after a
2344
+ # job completes. Can be one of:
2345
+ #
2346
+ # * `REPLENISHABLE` (default)
2347
+ #
2348
+ # * `NON_REPLENISHABLE`
2349
+ # @return [String]
2350
+ #
2351
+ # @!attribute [rw] tags
2352
+ # The tags that you apply to the consumable resource to help you
2353
+ # categorize and organize your resources. Each tag consists of a key
2354
+ # and an optional value. For more information, see [Tagging your Batch
2355
+ # resources][1].
2356
+ #
2357
+ #
2358
+ #
2359
+ # [1]: https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html
2360
+ # @return [Hash<String,String>]
2361
+ #
2362
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateConsumableResourceRequest AWS API Documentation
2363
+ #
2364
+ class CreateConsumableResourceRequest < Struct.new(
2365
+ :consumable_resource_name,
2366
+ :total_quantity,
2367
+ :resource_type,
2368
+ :tags)
2369
+ SENSITIVE = []
2370
+ include Aws::Structure
2371
+ end
2372
+
2373
+ # @!attribute [rw] consumable_resource_name
2374
+ # The name of the consumable resource.
2375
+ # @return [String]
2376
+ #
2377
+ # @!attribute [rw] consumable_resource_arn
2378
+ # The Amazon Resource Name (ARN) of the consumable resource.
2379
+ # @return [String]
2380
+ #
2381
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateConsumableResourceResponse AWS API Documentation
2382
+ #
2383
+ class CreateConsumableResourceResponse < Struct.new(
2384
+ :consumable_resource_name,
2385
+ :consumable_resource_arn)
2386
+ SENSITIVE = []
2387
+ include Aws::Structure
2388
+ end
2389
+
2261
2390
  # Contains the parameters for `CreateJobQueue`.
2262
2391
  #
2263
2392
  # @!attribute [rw] job_queue_name
@@ -2449,6 +2578,22 @@ module Aws::Batch
2449
2578
  #
2450
2579
  class DeleteComputeEnvironmentResponse < Aws::EmptyStructure; end
2451
2580
 
2581
+ # @!attribute [rw] consumable_resource
2582
+ # The name or ARN of the consumable resource that will be deleted.
2583
+ # @return [String]
2584
+ #
2585
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteConsumableResourceRequest AWS API Documentation
2586
+ #
2587
+ class DeleteConsumableResourceRequest < Struct.new(
2588
+ :consumable_resource)
2589
+ SENSITIVE = []
2590
+ include Aws::Structure
2591
+ end
2592
+
2593
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteConsumableResourceResponse AWS API Documentation
2594
+ #
2595
+ class DeleteConsumableResourceResponse < Aws::EmptyStructure; end
2596
+
2452
2597
  # Contains the parameters for `DeleteJobQueue`.
2453
2598
  #
2454
2599
  # @!attribute [rw] job_queue
@@ -2569,6 +2714,80 @@ module Aws::Batch
2569
2714
  include Aws::Structure
2570
2715
  end
2571
2716
 
2717
+ # @!attribute [rw] consumable_resource
2718
+ # The name or ARN of the consumable resource whose description will be
2719
+ # returned.
2720
+ # @return [String]
2721
+ #
2722
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeConsumableResourceRequest AWS API Documentation
2723
+ #
2724
+ class DescribeConsumableResourceRequest < Struct.new(
2725
+ :consumable_resource)
2726
+ SENSITIVE = []
2727
+ include Aws::Structure
2728
+ end
2729
+
2730
+ # @!attribute [rw] consumable_resource_name
2731
+ # The name of the consumable resource.
2732
+ # @return [String]
2733
+ #
2734
+ # @!attribute [rw] consumable_resource_arn
2735
+ # The Amazon Resource Name (ARN) of the consumable resource.
2736
+ # @return [String]
2737
+ #
2738
+ # @!attribute [rw] total_quantity
2739
+ # The total amount of the consumable resource that is available.
2740
+ # @return [Integer]
2741
+ #
2742
+ # @!attribute [rw] in_use_quantity
2743
+ # The amount of the consumable resource that is currently in use.
2744
+ # @return [Integer]
2745
+ #
2746
+ # @!attribute [rw] available_quantity
2747
+ # The amount of the consumable resource that is currently available to
2748
+ # use.
2749
+ # @return [Integer]
2750
+ #
2751
+ # @!attribute [rw] resource_type
2752
+ # Indicates whether the resource is available to be re-used after a
2753
+ # job completes. Can be one of:
2754
+ #
2755
+ # * `REPLENISHABLE`
2756
+ #
2757
+ # * `NON_REPLENISHABLE`
2758
+ # @return [String]
2759
+ #
2760
+ # @!attribute [rw] created_at
2761
+ # The Unix timestamp (in milliseconds) for when the consumable
2762
+ # resource was created.
2763
+ # @return [Integer]
2764
+ #
2765
+ # @!attribute [rw] tags
2766
+ # The tags that you apply to the consumable resource to help you
2767
+ # categorize and organize your resources. Each tag consists of a key
2768
+ # and an optional value. For more information, see [Tagging your Batch
2769
+ # resources][1].
2770
+ #
2771
+ #
2772
+ #
2773
+ # [1]: https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html
2774
+ # @return [Hash<String,String>]
2775
+ #
2776
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeConsumableResourceResponse AWS API Documentation
2777
+ #
2778
+ class DescribeConsumableResourceResponse < Struct.new(
2779
+ :consumable_resource_name,
2780
+ :consumable_resource_arn,
2781
+ :total_quantity,
2782
+ :in_use_quantity,
2783
+ :available_quantity,
2784
+ :resource_type,
2785
+ :created_at,
2786
+ :tags)
2787
+ SENSITIVE = []
2788
+ include Aws::Structure
2789
+ end
2790
+
2572
2791
  # Contains the parameters for `DescribeJobDefinitions`.
2573
2792
  #
2574
2793
  # @!attribute [rw] job_definitions
@@ -4999,6 +5218,10 @@ module Aws::Batch
4999
5218
  # are `ECS` (default) or `EKS`.
5000
5219
  # @return [String]
5001
5220
  #
5221
+ # @!attribute [rw] consumable_resource_properties
5222
+ # Contains a list of consumable resources required by the job.
5223
+ # @return [Types::ConsumableResourceProperties]
5224
+ #
5002
5225
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/JobDefinition AWS API Documentation
5003
5226
  #
5004
5227
  class JobDefinition < Struct.new(
@@ -5018,7 +5241,8 @@ module Aws::Batch
5018
5241
  :platform_capabilities,
5019
5242
  :ecs_properties,
5020
5243
  :eks_properties,
5021
- :container_orchestration_type)
5244
+ :container_orchestration_type,
5245
+ :consumable_resource_properties)
5022
5246
  SENSITIVE = []
5023
5247
  include Aws::Structure
5024
5248
  end
@@ -5224,6 +5448,10 @@ module Aws::Batch
5224
5448
  # Indicates whether the job is terminated.
5225
5449
  # @return [Boolean]
5226
5450
  #
5451
+ # @!attribute [rw] consumable_resource_properties
5452
+ # Contains a list of consumable resources required by the job.
5453
+ # @return [Types::ConsumableResourceProperties]
5454
+ #
5227
5455
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/JobDetail AWS API Documentation
5228
5456
  #
5229
5457
  class JobDetail < Struct.new(
@@ -5255,7 +5483,8 @@ module Aws::Batch
5255
5483
  :eks_attempts,
5256
5484
  :ecs_properties,
5257
5485
  :is_cancelled,
5258
- :is_terminated)
5486
+ :is_terminated,
5487
+ :consumable_resource_properties)
5259
5488
  SENSITIVE = []
5260
5489
  include Aws::Structure
5261
5490
  end
@@ -5534,7 +5763,8 @@ module Aws::Batch
5534
5763
  end
5535
5764
 
5536
5765
  # A filter name and value pair that's used to return a more specific
5537
- # list of results from a `ListJobs` API operation.
5766
+ # list of results from a `ListJobs` or `ListJobsByConsumableResource`
5767
+ # API operation.
5538
5768
  #
5539
5769
  # @!attribute [rw] name
5540
5770
  # The name of the filter. Filter names are case sensitive.
@@ -5897,6 +6127,240 @@ module Aws::Batch
5897
6127
  include Aws::Structure
5898
6128
  end
5899
6129
 
6130
+ # @!attribute [rw] filters
6131
+ # The filters to apply to the consumable resource list query. If used,
6132
+ # only those consumable resources that match the filter are listed.
6133
+ # Filter names and values can be:
6134
+ #
6135
+ # * name: `CONSUMABLE_RESOURCE_NAME `
6136
+ #
6137
+ # values: case-insensitive matches for the consumable resource name.
6138
+ # If a filter value ends with an asterisk (*), it matches any
6139
+ # consumable resource name that begins with the string before the
6140
+ # '*'.
6141
+ # @return [Array<Types::KeyValuesPair>]
6142
+ #
6143
+ # @!attribute [rw] max_results
6144
+ # The maximum number of results returned by `ListConsumableResources`
6145
+ # in paginated output. When this parameter is used,
6146
+ # `ListConsumableResources` only returns `maxResults` results in a
6147
+ # single page and a `nextToken` response element. The remaining
6148
+ # results of the initial request can be seen by sending another
6149
+ # `ListConsumableResources` request with the returned `nextToken`
6150
+ # value. This value can be between 1 and 100. If this parameter isn't
6151
+ # used, then `ListConsumableResources` returns up to 100 results and a
6152
+ # `nextToken` value if applicable.
6153
+ # @return [Integer]
6154
+ #
6155
+ # @!attribute [rw] next_token
6156
+ # The `nextToken` value returned from a previous paginated
6157
+ # `ListConsumableResources` request where `maxResults` was used and
6158
+ # the results exceeded the value of that parameter. Pagination
6159
+ # continues from the end of the previous results that returned the
6160
+ # `nextToken` value. This value is `null` when there are no more
6161
+ # results to return.
6162
+ #
6163
+ # <note markdown="1"> Treat this token as an opaque identifier that's only used to
6164
+ # retrieve the next items in a list and not for other programmatic
6165
+ # purposes.
6166
+ #
6167
+ # </note>
6168
+ # @return [String]
6169
+ #
6170
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListConsumableResourcesRequest AWS API Documentation
6171
+ #
6172
+ class ListConsumableResourcesRequest < Struct.new(
6173
+ :filters,
6174
+ :max_results,
6175
+ :next_token)
6176
+ SENSITIVE = []
6177
+ include Aws::Structure
6178
+ end
6179
+
6180
+ # @!attribute [rw] consumable_resources
6181
+ # A list of consumable resources that match the request.
6182
+ # @return [Array<Types::ConsumableResourceSummary>]
6183
+ #
6184
+ # @!attribute [rw] next_token
6185
+ # The `nextToken` value to include in a future
6186
+ # `ListConsumableResources` request. When the results of a
6187
+ # `ListConsumableResources` request exceed `maxResults`, this value
6188
+ # can be used to retrieve the next page of results. This value is
6189
+ # `null` when there are no more results to return.
6190
+ # @return [String]
6191
+ #
6192
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListConsumableResourcesResponse AWS API Documentation
6193
+ #
6194
+ class ListConsumableResourcesResponse < Struct.new(
6195
+ :consumable_resources,
6196
+ :next_token)
6197
+ SENSITIVE = []
6198
+ include Aws::Structure
6199
+ end
6200
+
6201
+ # @!attribute [rw] consumable_resource
6202
+ # The name or ARN of the consumable resource.
6203
+ # @return [String]
6204
+ #
6205
+ # @!attribute [rw] filters
6206
+ # The filters to apply to the job list query. If used, only those jobs
6207
+ # requiring the specified consumable resource (`consumableResource`)
6208
+ # and that match the value of the filters are listed. The filter names
6209
+ # and values can be:
6210
+ #
6211
+ # * name: `JOB_STATUS`
6212
+ #
6213
+ # values: `SUBMITTED | PENDING | RUNNABLE | STARTING | RUNNING |
6214
+ # SUCCEEDED | FAILED`
6215
+ #
6216
+ # * name: `JOB_NAME `
6217
+ #
6218
+ # The values are case-insensitive matches for the job name. If a
6219
+ # filter value ends with an asterisk (*), it matches any job name
6220
+ # that begins with the string before the '*'.
6221
+ # @return [Array<Types::KeyValuesPair>]
6222
+ #
6223
+ # @!attribute [rw] max_results
6224
+ # The maximum number of results returned by
6225
+ # `ListJobsByConsumableResource` in paginated output. When this
6226
+ # parameter is used, `ListJobsByConsumableResource` only returns
6227
+ # `maxResults` results in a single page and a `nextToken` response
6228
+ # element. The remaining results of the initial request can be seen by
6229
+ # sending another `ListJobsByConsumableResource` request with the
6230
+ # returned `nextToken` value. This value can be between 1 and 100. If
6231
+ # this parameter isn't used, then `ListJobsByConsumableResource`
6232
+ # returns up to 100 results and a `nextToken` value if applicable.
6233
+ # @return [Integer]
6234
+ #
6235
+ # @!attribute [rw] next_token
6236
+ # The `nextToken` value returned from a previous paginated
6237
+ # `ListJobsByConsumableResource` request where `maxResults` was used
6238
+ # and the results exceeded the value of that parameter. Pagination
6239
+ # continues from the end of the previous results that returned the
6240
+ # `nextToken` value. This value is `null` when there are no more
6241
+ # results to return.
6242
+ #
6243
+ # <note markdown="1"> Treat this token as an opaque identifier that's only used to
6244
+ # retrieve the next items in a list and not for other programmatic
6245
+ # purposes.
6246
+ #
6247
+ # </note>
6248
+ # @return [String]
6249
+ #
6250
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListJobsByConsumableResourceRequest AWS API Documentation
6251
+ #
6252
+ class ListJobsByConsumableResourceRequest < Struct.new(
6253
+ :consumable_resource,
6254
+ :filters,
6255
+ :max_results,
6256
+ :next_token)
6257
+ SENSITIVE = []
6258
+ include Aws::Structure
6259
+ end
6260
+
6261
+ # @!attribute [rw] jobs
6262
+ # The list of jobs that require the specified consumable resources.
6263
+ # @return [Array<Types::ListJobsByConsumableResourceSummary>]
6264
+ #
6265
+ # @!attribute [rw] next_token
6266
+ # The `nextToken` value to include in a future
6267
+ # `ListJobsByConsumableResource` request. When the results of a
6268
+ # `ListJobsByConsumableResource` request exceed `maxResults`, this
6269
+ # value can be used to retrieve the next page of results. This value
6270
+ # is `null` when there are no more results to return.
6271
+ # @return [String]
6272
+ #
6273
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListJobsByConsumableResourceResponse AWS API Documentation
6274
+ #
6275
+ class ListJobsByConsumableResourceResponse < Struct.new(
6276
+ :jobs,
6277
+ :next_token)
6278
+ SENSITIVE = []
6279
+ include Aws::Structure
6280
+ end
6281
+
6282
+ # Current information about a consumable resource required by a job.
6283
+ #
6284
+ # @!attribute [rw] job_arn
6285
+ # The Amazon Resource Name (ARN) of the job.
6286
+ # @return [String]
6287
+ #
6288
+ # @!attribute [rw] job_queue_arn
6289
+ # The Amazon Resource Name (ARN) of the job queue.
6290
+ # @return [String]
6291
+ #
6292
+ # @!attribute [rw] job_name
6293
+ # The name of the job.
6294
+ # @return [String]
6295
+ #
6296
+ # @!attribute [rw] job_definition_arn
6297
+ # The Amazon Resource Name (ARN) of the job definition.
6298
+ # @return [String]
6299
+ #
6300
+ # @!attribute [rw] share_identifier
6301
+ # The fair-share scheduling policy identifier for the job.
6302
+ # @return [String]
6303
+ #
6304
+ # @!attribute [rw] job_status
6305
+ # The status of the job. Can be one of:
6306
+ #
6307
+ # * `SUBMITTED`
6308
+ #
6309
+ # * `PENDING`
6310
+ #
6311
+ # * `RUNNABLE`
6312
+ #
6313
+ # * `STARTING`
6314
+ #
6315
+ # * `RUNNING`
6316
+ #
6317
+ # * `SUCCEEDED`
6318
+ #
6319
+ # * `FAILED`
6320
+ # @return [String]
6321
+ #
6322
+ # @!attribute [rw] quantity
6323
+ # The total amount of the consumable resource that is available.
6324
+ # @return [Integer]
6325
+ #
6326
+ # @!attribute [rw] status_reason
6327
+ # A short, human-readable string to provide more details for the
6328
+ # current status of the job.
6329
+ # @return [String]
6330
+ #
6331
+ # @!attribute [rw] started_at
6332
+ # The Unix timestamp for when the job was started. More specifically,
6333
+ # it's when the job transitioned from the `STARTING` state to the
6334
+ # `RUNNING` state.
6335
+ # @return [Integer]
6336
+ #
6337
+ # @!attribute [rw] created_at
6338
+ # The Unix timestamp (in milliseconds) for when the consumable
6339
+ # resource was created.
6340
+ # @return [Integer]
6341
+ #
6342
+ # @!attribute [rw] consumable_resource_properties
6343
+ # Contains a list of consumable resources required by the job.
6344
+ # @return [Types::ConsumableResourceProperties]
6345
+ #
6346
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListJobsByConsumableResourceSummary AWS API Documentation
6347
+ #
6348
+ class ListJobsByConsumableResourceSummary < Struct.new(
6349
+ :job_arn,
6350
+ :job_queue_arn,
6351
+ :job_name,
6352
+ :job_definition_arn,
6353
+ :share_identifier,
6354
+ :job_status,
6355
+ :quantity,
6356
+ :status_reason,
6357
+ :started_at,
6358
+ :created_at,
6359
+ :consumable_resource_properties)
6360
+ SENSITIVE = []
6361
+ include Aws::Structure
6362
+ end
6363
+
5900
6364
  # Contains the parameters for `ListJobs`.
5901
6365
  #
5902
6366
  # @!attribute [rw] job_queue
@@ -6492,6 +6956,11 @@ module Aws::Batch
6492
6956
  # the existing Amazon EKS resources of a job.
6493
6957
  # @return [Types::EksPropertiesOverride]
6494
6958
  #
6959
+ # @!attribute [rw] consumable_resource_properties_override
6960
+ # An object that contains overrides for the consumable resources of a
6961
+ # job.
6962
+ # @return [Types::ConsumableResourceProperties]
6963
+ #
6495
6964
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/NodePropertyOverride AWS API Documentation
6496
6965
  #
6497
6966
  class NodePropertyOverride < Struct.new(
@@ -6499,7 +6968,8 @@ module Aws::Batch
6499
6968
  :container_overrides,
6500
6969
  :ecs_properties_override,
6501
6970
  :instance_types,
6502
- :eks_properties_override)
6971
+ :eks_properties_override,
6972
+ :consumable_resource_properties_override)
6503
6973
  SENSITIVE = []
6504
6974
  include Aws::Structure
6505
6975
  end
@@ -6544,6 +7014,10 @@ module Aws::Batch
6544
7014
  # for a multi-node parallel job.
6545
7015
  # @return [Types::EksProperties]
6546
7016
  #
7017
+ # @!attribute [rw] consumable_resource_properties
7018
+ # Contains a list of consumable resources required by a job.
7019
+ # @return [Types::ConsumableResourceProperties]
7020
+ #
6547
7021
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/NodeRangeProperty AWS API Documentation
6548
7022
  #
6549
7023
  class NodeRangeProperty < Struct.new(
@@ -6551,7 +7025,8 @@ module Aws::Batch
6551
7025
  :container,
6552
7026
  :instance_types,
6553
7027
  :ecs_properties,
6554
- :eks_properties)
7028
+ :eks_properties,
7029
+ :consumable_resource_properties)
6555
7030
  SENSITIVE = []
6556
7031
  include Aws::Structure
6557
7032
  end
@@ -6706,6 +7181,10 @@ module Aws::Batch
6706
7181
  # definitions.
6707
7182
  # @return [Types::EcsProperties]
6708
7183
  #
7184
+ # @!attribute [rw] consumable_resource_properties
7185
+ # Contains a list of consumable resources required by the job.
7186
+ # @return [Types::ConsumableResourceProperties]
7187
+ #
6709
7188
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/RegisterJobDefinitionRequest AWS API Documentation
6710
7189
  #
6711
7190
  class RegisterJobDefinitionRequest < Struct.new(
@@ -6721,7 +7200,8 @@ module Aws::Batch
6721
7200
  :tags,
6722
7201
  :platform_capabilities,
6723
7202
  :eks_properties,
6724
- :ecs_properties)
7203
+ :ecs_properties,
7204
+ :consumable_resource_properties)
6725
7205
  SENSITIVE = []
6726
7206
  include Aws::Structure
6727
7207
  end
@@ -7332,6 +7812,11 @@ module Aws::Batch
7332
7812
  # ECS resources.
7333
7813
  # @return [Types::EcsPropertiesOverride]
7334
7814
  #
7815
+ # @!attribute [rw] consumable_resource_properties_override
7816
+ # An object that contains overrides for the consumable resources of a
7817
+ # job.
7818
+ # @return [Types::ConsumableResourceProperties]
7819
+ #
7335
7820
  # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/SubmitJobRequest AWS API Documentation
7336
7821
  #
7337
7822
  class SubmitJobRequest < Struct.new(
@@ -7350,7 +7835,8 @@ module Aws::Batch
7350
7835
  :timeout,
7351
7836
  :tags,
7352
7837
  :eks_properties_override,
7353
- :ecs_properties_override)
7838
+ :ecs_properties_override,
7839
+ :consumable_resource_properties_override)
7354
7840
  SENSITIVE = []
7355
7841
  include Aws::Structure
7356
7842
  end
@@ -8413,6 +8899,81 @@ module Aws::Batch
8413
8899
  include Aws::Structure
8414
8900
  end
8415
8901
 
8902
+ # @!attribute [rw] consumable_resource
8903
+ # The name or ARN of the consumable resource to be updated.
8904
+ # @return [String]
8905
+ #
8906
+ # @!attribute [rw] operation
8907
+ # Indicates how the quantity of the consumable resource will be
8908
+ # updated. Must be one of:
8909
+ #
8910
+ # * `SET`
8911
+ #
8912
+ # Sets the quantity of the resource to the value specified by the
8913
+ # `quantity` parameter.
8914
+ #
8915
+ # * `ADD`
8916
+ #
8917
+ # Increases the quantity of the resource by the value specified by
8918
+ # the `quantity` parameter.
8919
+ #
8920
+ # * `REMOVE`
8921
+ #
8922
+ # Reduces the quantity of the resource by the value specified by the
8923
+ # `quantity` parameter.
8924
+ # @return [String]
8925
+ #
8926
+ # @!attribute [rw] quantity
8927
+ # The change in the total quantity of the consumable resource. The
8928
+ # `operation` parameter determines whether the value specified here
8929
+ # will be the new total quantity, or the amount by which the total
8930
+ # quantity will be increased or reduced. Must be a non-negative value.
8931
+ # @return [Integer]
8932
+ #
8933
+ # @!attribute [rw] client_token
8934
+ # If this parameter is specified and two update requests with
8935
+ # identical payloads and `clientToken`s are received, these requests
8936
+ # are considered the same request and the second request is rejected.
8937
+ # A `clientToken` is valid for 8 hours or until one hour after the
8938
+ # consumable resource is deleted, whichever is less.
8939
+ #
8940
+ # **A suitable default value is auto-generated.** You should normally
8941
+ # not need to pass this option.
8942
+ # @return [String]
8943
+ #
8944
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateConsumableResourceRequest AWS API Documentation
8945
+ #
8946
+ class UpdateConsumableResourceRequest < Struct.new(
8947
+ :consumable_resource,
8948
+ :operation,
8949
+ :quantity,
8950
+ :client_token)
8951
+ SENSITIVE = []
8952
+ include Aws::Structure
8953
+ end
8954
+
8955
+ # @!attribute [rw] consumable_resource_name
8956
+ # The name of the consumable resource to be updated.
8957
+ # @return [String]
8958
+ #
8959
+ # @!attribute [rw] consumable_resource_arn
8960
+ # The Amazon Resource Name (ARN) of the consumable resource.
8961
+ # @return [String]
8962
+ #
8963
+ # @!attribute [rw] total_quantity
8964
+ # The total amount of the consumable resource that is available.
8965
+ # @return [Integer]
8966
+ #
8967
+ # @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateConsumableResourceResponse AWS API Documentation
8968
+ #
8969
+ class UpdateConsumableResourceResponse < Struct.new(
8970
+ :consumable_resource_name,
8971
+ :consumable_resource_arn,
8972
+ :total_quantity)
8973
+ SENSITIVE = []
8974
+ include Aws::Structure
8975
+ end
8976
+
8416
8977
  # Contains the parameters for `UpdateJobQueue`.
8417
8978
  #
8418
8979
  # @!attribute [rw] job_queue
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.109.0'
57
+ GEM_VERSION = '1.111.0'
58
58
 
59
59
  end
60
60