@aws-sdk/client-batch 3.750.0 → 3.757.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.
Files changed (47) hide show
  1. package/README.md +48 -0
  2. package/dist-cjs/index.js +318 -0
  3. package/dist-es/Batch.js +12 -0
  4. package/dist-es/commands/CreateConsumableResourceCommand.js +22 -0
  5. package/dist-es/commands/DeleteConsumableResourceCommand.js +22 -0
  6. package/dist-es/commands/DescribeConsumableResourceCommand.js +22 -0
  7. package/dist-es/commands/ListConsumableResourcesCommand.js +22 -0
  8. package/dist-es/commands/ListJobsByConsumableResourceCommand.js +22 -0
  9. package/dist-es/commands/UpdateConsumableResourceCommand.js +22 -0
  10. package/dist-es/commands/index.js +6 -0
  11. package/dist-es/pagination/ListConsumableResourcesPaginator.js +4 -0
  12. package/dist-es/pagination/ListJobsByConsumableResourcePaginator.js +4 -0
  13. package/dist-es/pagination/index.js +2 -0
  14. package/dist-es/protocols/Aws_restJson1.js +186 -0
  15. package/dist-types/Batch.d.ts +43 -0
  16. package/dist-types/BatchClient.d.ts +8 -2
  17. package/dist-types/commands/CreateConsumableResourceCommand.d.ts +85 -0
  18. package/dist-types/commands/DeleteConsumableResourceCommand.d.ts +77 -0
  19. package/dist-types/commands/DescribeConsumableResourceCommand.d.ts +88 -0
  20. package/dist-types/commands/DescribeJobDefinitionsCommand.d.ts +16 -0
  21. package/dist-types/commands/DescribeJobsCommand.d.ts +16 -0
  22. package/dist-types/commands/ListConsumableResourcesCommand.d.ts +97 -0
  23. package/dist-types/commands/ListJobsByConsumableResourceCommand.d.ts +111 -0
  24. package/dist-types/commands/RegisterJobDefinitionCommand.d.ts +16 -0
  25. package/dist-types/commands/SubmitJobCommand.d.ts +16 -0
  26. package/dist-types/commands/UpdateConsumableResourceCommand.d.ts +84 -0
  27. package/dist-types/commands/index.d.ts +6 -0
  28. package/dist-types/models/models_0.d.ts +550 -1
  29. package/dist-types/pagination/ListConsumableResourcesPaginator.d.ts +7 -0
  30. package/dist-types/pagination/ListJobsByConsumableResourcePaginator.d.ts +7 -0
  31. package/dist-types/pagination/index.d.ts +2 -0
  32. package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
  33. package/dist-types/ts3.4/Batch.d.ts +103 -0
  34. package/dist-types/ts3.4/BatchClient.d.ts +36 -0
  35. package/dist-types/ts3.4/commands/CreateConsumableResourceCommand.d.ts +51 -0
  36. package/dist-types/ts3.4/commands/DeleteConsumableResourceCommand.d.ts +51 -0
  37. package/dist-types/ts3.4/commands/DescribeConsumableResourceCommand.d.ts +51 -0
  38. package/dist-types/ts3.4/commands/ListConsumableResourcesCommand.d.ts +51 -0
  39. package/dist-types/ts3.4/commands/ListJobsByConsumableResourceCommand.d.ts +51 -0
  40. package/dist-types/ts3.4/commands/UpdateConsumableResourceCommand.d.ts +51 -0
  41. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  42. package/dist-types/ts3.4/models/models_0.d.ts +94 -0
  43. package/dist-types/ts3.4/pagination/ListConsumableResourcesPaginator.d.ts +11 -0
  44. package/dist-types/ts3.4/pagination/ListJobsByConsumableResourcePaginator.d.ts +11 -0
  45. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  46. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
  47. package/package.json +4 -2
@@ -986,6 +986,59 @@ export interface CreateComputeEnvironmentResponse {
986
986
  */
987
987
  computeEnvironmentArn?: string | undefined;
988
988
  }
989
+ /**
990
+ * @public
991
+ */
992
+ export interface CreateConsumableResourceRequest {
993
+ /**
994
+ * <p>The name of the consumable resource. Must be unique.</p>
995
+ * @public
996
+ */
997
+ consumableResourceName: string | undefined;
998
+ /**
999
+ * <p>The total amount of the consumable resource that is available. Must be non-negative.</p>
1000
+ * @public
1001
+ */
1002
+ totalQuantity?: number | undefined;
1003
+ /**
1004
+ * <p>Indicates whether the resource is available to be re-used after a job completes. Can be
1005
+ * one of: </p>
1006
+ * <ul>
1007
+ * <li>
1008
+ * <p>
1009
+ * <code>REPLENISHABLE</code> (default)</p>
1010
+ * </li>
1011
+ * <li>
1012
+ * <p>
1013
+ * <code>NON_REPLENISHABLE</code>
1014
+ * </p>
1015
+ * </li>
1016
+ * </ul>
1017
+ * @public
1018
+ */
1019
+ resourceType?: string | undefined;
1020
+ /**
1021
+ * <p>The tags that you apply to the consumable resource to help you categorize and organize your
1022
+ * resources. Each tag consists of a key and an optional value. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html">Tagging your Batch resources</a>.</p>
1023
+ * @public
1024
+ */
1025
+ tags?: Record<string, string> | undefined;
1026
+ }
1027
+ /**
1028
+ * @public
1029
+ */
1030
+ export interface CreateConsumableResourceResponse {
1031
+ /**
1032
+ * <p>The name of the consumable resource.</p>
1033
+ * @public
1034
+ */
1035
+ consumableResourceName: string | undefined;
1036
+ /**
1037
+ * <p>The Amazon Resource Name (ARN) of the consumable resource.</p>
1038
+ * @public
1039
+ */
1040
+ consumableResourceArn: string | undefined;
1041
+ }
989
1042
  /**
990
1043
  * <p>The order that compute environments are tried in for job placement within a queue. Compute
991
1044
  * environments are tried in ascending order. For example, if two compute environments are
@@ -1293,6 +1346,21 @@ export interface DeleteComputeEnvironmentRequest {
1293
1346
  */
1294
1347
  export interface DeleteComputeEnvironmentResponse {
1295
1348
  }
1349
+ /**
1350
+ * @public
1351
+ */
1352
+ export interface DeleteConsumableResourceRequest {
1353
+ /**
1354
+ * <p>The name or ARN of the consumable resource that will be deleted.</p>
1355
+ * @public
1356
+ */
1357
+ consumableResource: string | undefined;
1358
+ }
1359
+ /**
1360
+ * @public
1361
+ */
1362
+ export interface DeleteConsumableResourceResponse {
1363
+ }
1296
1364
  /**
1297
1365
  * <p>Contains the parameters for <code>DeleteJobQueue</code>.</p>
1298
1366
  * @public
@@ -1561,6 +1629,75 @@ export interface DescribeComputeEnvironmentsResponse {
1561
1629
  */
1562
1630
  nextToken?: string | undefined;
1563
1631
  }
1632
+ /**
1633
+ * @public
1634
+ */
1635
+ export interface DescribeConsumableResourceRequest {
1636
+ /**
1637
+ * <p>The name or ARN of the consumable resource whose description will be returned.</p>
1638
+ * @public
1639
+ */
1640
+ consumableResource: string | undefined;
1641
+ }
1642
+ /**
1643
+ * @public
1644
+ */
1645
+ export interface DescribeConsumableResourceResponse {
1646
+ /**
1647
+ * <p>The name of the consumable resource.</p>
1648
+ * @public
1649
+ */
1650
+ consumableResourceName: string | undefined;
1651
+ /**
1652
+ * <p>The Amazon Resource Name (ARN) of the consumable resource.</p>
1653
+ * @public
1654
+ */
1655
+ consumableResourceArn: string | undefined;
1656
+ /**
1657
+ * <p>The total amount of the consumable resource that is available.</p>
1658
+ * @public
1659
+ */
1660
+ totalQuantity?: number | undefined;
1661
+ /**
1662
+ * <p>The amount of the consumable resource that is currently in use.</p>
1663
+ * @public
1664
+ */
1665
+ inUseQuantity?: number | undefined;
1666
+ /**
1667
+ * <p>The amount of the consumable resource that is currently available to use.</p>
1668
+ * @public
1669
+ */
1670
+ availableQuantity?: number | undefined;
1671
+ /**
1672
+ * <p>Indicates whether the resource is available to be re-used after a job completes. Can be
1673
+ * one of: </p>
1674
+ * <ul>
1675
+ * <li>
1676
+ * <p>
1677
+ * <code>REPLENISHABLE</code>
1678
+ * </p>
1679
+ * </li>
1680
+ * <li>
1681
+ * <p>
1682
+ * <code>NON_REPLENISHABLE</code>
1683
+ * </p>
1684
+ * </li>
1685
+ * </ul>
1686
+ * @public
1687
+ */
1688
+ resourceType?: string | undefined;
1689
+ /**
1690
+ * <p>The Unix timestamp (in milliseconds) for when the consumable resource was created.</p>
1691
+ * @public
1692
+ */
1693
+ createdAt?: number | undefined;
1694
+ /**
1695
+ * <p>The tags that you apply to the consumable resource to help you categorize and organize your
1696
+ * resources. Each tag consists of a key and an optional value. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html">Tagging your Batch resources</a>.</p>
1697
+ * @public
1698
+ */
1699
+ tags?: Record<string, string> | undefined;
1700
+ }
1564
1701
  /**
1565
1702
  * <p>Contains the parameters for <code>DescribeJobDefinitions</code>.</p>
1566
1703
  * @public
@@ -1611,6 +1748,33 @@ export interface DescribeJobDefinitionsRequest {
1611
1748
  */
1612
1749
  nextToken?: string | undefined;
1613
1750
  }
1751
+ /**
1752
+ * <p>Information about a consumable resource required to run a job.</p>
1753
+ * @public
1754
+ */
1755
+ export interface ConsumableResourceRequirement {
1756
+ /**
1757
+ * <p>The name or ARN of the consumable resource.</p>
1758
+ * @public
1759
+ */
1760
+ consumableResource?: string | undefined;
1761
+ /**
1762
+ * <p>The quantity of the consumable resource that is needed.</p>
1763
+ * @public
1764
+ */
1765
+ quantity?: number | undefined;
1766
+ }
1767
+ /**
1768
+ * <p>Contains a list of consumable resources required by a job.</p>
1769
+ * @public
1770
+ */
1771
+ export interface ConsumableResourceProperties {
1772
+ /**
1773
+ * <p>The list of consumable resources required by a job.</p>
1774
+ * @public
1775
+ */
1776
+ consumableResourceList?: ConsumableResourceRequirement[] | undefined;
1777
+ }
1614
1778
  /**
1615
1779
  * <p>A key-value pair object.</p>
1616
1780
  * @public
@@ -3722,6 +3886,11 @@ export interface NodeRangeProperty {
3722
3886
  * @public
3723
3887
  */
3724
3888
  eksProperties?: EksProperties | undefined;
3889
+ /**
3890
+ * <p>Contains a list of consumable resources required by a job.</p>
3891
+ * @public
3892
+ */
3893
+ consumableResourceProperties?: ConsumableResourceProperties | undefined;
3725
3894
  }
3726
3895
  /**
3727
3896
  * <p>An object that represents the node properties of a multi-node parallel job.</p>
@@ -3974,6 +4143,11 @@ export interface JobDefinition {
3974
4143
  * @public
3975
4144
  */
3976
4145
  containerOrchestrationType?: OrchestrationType | undefined;
4146
+ /**
4147
+ * <p>Contains a list of consumable resources required by the job.</p>
4148
+ * @public
4149
+ */
4150
+ consumableResourceProperties?: ConsumableResourceProperties | undefined;
3977
4151
  }
3978
4152
  /**
3979
4153
  * @public
@@ -5259,6 +5433,11 @@ export interface JobDetail {
5259
5433
  * @public
5260
5434
  */
5261
5435
  isTerminated?: boolean | undefined;
5436
+ /**
5437
+ * <p>Contains a list of consumable resources required by the job.</p>
5438
+ * @public
5439
+ */
5440
+ consumableResourceProperties?: ConsumableResourceProperties | undefined;
5262
5441
  }
5263
5442
  /**
5264
5443
  * @public
@@ -5375,7 +5554,7 @@ export interface GetJobQueueSnapshotResponse {
5375
5554
  }
5376
5555
  /**
5377
5556
  * <p>A filter name and value pair that's used to return a more specific list of results from a
5378
- * <code>ListJobs</code> API operation.</p>
5557
+ * <code>ListJobs</code> or <code>ListJobsByConsumableResource</code> API operation.</p>
5379
5558
  * @public
5380
5559
  */
5381
5560
  export interface KeyValuesPair {
@@ -5390,6 +5569,113 @@ export interface KeyValuesPair {
5390
5569
  */
5391
5570
  values?: string[] | undefined;
5392
5571
  }
5572
+ /**
5573
+ * @public
5574
+ */
5575
+ export interface ListConsumableResourcesRequest {
5576
+ /**
5577
+ * <p>The filters to apply to the consumable resource list query. If used, only those consumable
5578
+ * resources that match the filter are listed. Filter names and values can be:</p>
5579
+ * <ul>
5580
+ * <li>
5581
+ * <p>name: <code>CONSUMABLE_RESOURCE_NAME </code>
5582
+ * </p>
5583
+ * <p>values: case-insensitive matches for the consumable resource name. If a filter
5584
+ * value ends with an asterisk (*), it matches any consumable resource name that begins
5585
+ * with the string before the '*'.</p>
5586
+ * </li>
5587
+ * </ul>
5588
+ * @public
5589
+ */
5590
+ filters?: KeyValuesPair[] | undefined;
5591
+ /**
5592
+ * <p>The maximum number of results returned by <code>ListConsumableResources</code> in paginated
5593
+ * output. When this parameter is used, <code>ListConsumableResources</code> only returns
5594
+ * <code>maxResults</code> results in a single page and a <code>nextToken</code> response
5595
+ * element. The remaining results of the initial request can be seen by sending another
5596
+ * <code>ListConsumableResources</code> request with the returned <code>nextToken</code> value.
5597
+ * This value can be between 1 and 100. If this parameter isn't
5598
+ * used, then <code>ListConsumableResources</code> returns up to 100 results and
5599
+ * a <code>nextToken</code> value if applicable.</p>
5600
+ * @public
5601
+ */
5602
+ maxResults?: number | undefined;
5603
+ /**
5604
+ * <p>The <code>nextToken</code> value returned from a previous paginated
5605
+ * <code>ListConsumableResources</code> request where <code>maxResults</code> was used and the
5606
+ * results exceeded the value of that parameter. Pagination continues from the end of the previous
5607
+ * results that returned the <code>nextToken</code> value. This value is <code>null</code> when
5608
+ * there are no more results to return.</p>
5609
+ * <note>
5610
+ * <p>Treat this token as an opaque identifier that's only used to
5611
+ * retrieve the next items in a list and not for other programmatic purposes.</p>
5612
+ * </note>
5613
+ * @public
5614
+ */
5615
+ nextToken?: string | undefined;
5616
+ }
5617
+ /**
5618
+ * <p>Current information about a consumable resource.</p>
5619
+ * @public
5620
+ */
5621
+ export interface ConsumableResourceSummary {
5622
+ /**
5623
+ * <p>The Amazon Resource Name (ARN) of the consumable resource.</p>
5624
+ * @public
5625
+ */
5626
+ consumableResourceArn: string | undefined;
5627
+ /**
5628
+ * <p>The name of the consumable resource.</p>
5629
+ * @public
5630
+ */
5631
+ consumableResourceName: string | undefined;
5632
+ /**
5633
+ * <p>The total amount of the consumable resource that is available.</p>
5634
+ * @public
5635
+ */
5636
+ totalQuantity?: number | undefined;
5637
+ /**
5638
+ * <p>The amount of the consumable resource that is currently in use.</p>
5639
+ * @public
5640
+ */
5641
+ inUseQuantity?: number | undefined;
5642
+ /**
5643
+ * <p>Indicates whether the resource is available to be re-used after a job completes. Can be
5644
+ * one of: </p>
5645
+ * <ul>
5646
+ * <li>
5647
+ * <p>
5648
+ * <code>REPLENISHABLE</code>
5649
+ * </p>
5650
+ * </li>
5651
+ * <li>
5652
+ * <p>
5653
+ * <code>NON_REPLENISHABLE</code>
5654
+ * </p>
5655
+ * </li>
5656
+ * </ul>
5657
+ * @public
5658
+ */
5659
+ resourceType?: string | undefined;
5660
+ }
5661
+ /**
5662
+ * @public
5663
+ */
5664
+ export interface ListConsumableResourcesResponse {
5665
+ /**
5666
+ * <p>A list of consumable resources that match the request.</p>
5667
+ * @public
5668
+ */
5669
+ consumableResources: ConsumableResourceSummary[] | undefined;
5670
+ /**
5671
+ * <p>The <code>nextToken</code> value to include in a future <code>ListConsumableResources</code>
5672
+ * request. When the results of a <code>ListConsumableResources</code> request exceed <code>maxResults</code>,
5673
+ * this value can be used to retrieve the next page of results. This value is <code>null</code>
5674
+ * when there are no more results to return.</p>
5675
+ * @public
5676
+ */
5677
+ nextToken?: string | undefined;
5678
+ }
5393
5679
  /**
5394
5680
  * <p>Contains the parameters for <code>ListJobs</code>.</p>
5395
5681
  * @public
@@ -5638,6 +5924,180 @@ export interface ListJobsResponse {
5638
5924
  */
5639
5925
  nextToken?: string | undefined;
5640
5926
  }
5927
+ /**
5928
+ * @public
5929
+ */
5930
+ export interface ListJobsByConsumableResourceRequest {
5931
+ /**
5932
+ * <p>The name or ARN of the consumable resource.</p>
5933
+ * @public
5934
+ */
5935
+ consumableResource: string | undefined;
5936
+ /**
5937
+ * <p>The filters to apply to the job list query. If used, only those jobs requiring the specified
5938
+ * consumable resource (<code>consumableResource</code>) and that match the value of the filters
5939
+ * are listed. The filter names and values can be:</p>
5940
+ * <ul>
5941
+ * <li>
5942
+ * <p>name: <code>JOB_STATUS</code>
5943
+ * </p>
5944
+ * <p>values: <code>SUBMITTED | PENDING | RUNNABLE | STARTING | RUNNING | SUCCEEDED | FAILED</code>
5945
+ * </p>
5946
+ * </li>
5947
+ * <li>
5948
+ * <p>name: <code>JOB_NAME </code>
5949
+ * </p>
5950
+ * <p>The values are case-insensitive matches for the job name. If a filter value ends
5951
+ * with an asterisk (*), it matches any job name that begins with the string before
5952
+ * the '*'.</p>
5953
+ * </li>
5954
+ * </ul>
5955
+ * @public
5956
+ */
5957
+ filters?: KeyValuesPair[] | undefined;
5958
+ /**
5959
+ * <p>The maximum number of results returned by <code>ListJobsByConsumableResource</code> in paginated
5960
+ * output. When this parameter is used, <code>ListJobsByConsumableResource</code> only returns
5961
+ * <code>maxResults</code> results in a single page and a <code>nextToken</code> response
5962
+ * element. The remaining results of the initial request can be seen by sending another
5963
+ * <code>ListJobsByConsumableResource</code> request with the returned <code>nextToken</code> value.
5964
+ * This value can be between 1 and 100. If this parameter isn't
5965
+ * used, then <code>ListJobsByConsumableResource</code> returns up to 100 results
5966
+ * and a <code>nextToken</code> value if applicable.</p>
5967
+ * @public
5968
+ */
5969
+ maxResults?: number | undefined;
5970
+ /**
5971
+ * <p>The <code>nextToken</code> value returned from a previous paginated
5972
+ * <code>ListJobsByConsumableResource</code> request where <code>maxResults</code> was used and the
5973
+ * results exceeded the value of that parameter. Pagination continues from the end of the previous
5974
+ * results that returned the <code>nextToken</code> value. This value is <code>null</code> when
5975
+ * there are no more results to return.</p>
5976
+ * <note>
5977
+ * <p>Treat this token as an opaque identifier that's only used to
5978
+ * retrieve the next items in a list and not for other programmatic purposes.</p>
5979
+ * </note>
5980
+ * @public
5981
+ */
5982
+ nextToken?: string | undefined;
5983
+ }
5984
+ /**
5985
+ * <p>Current information about a consumable resource required by a job.</p>
5986
+ * @public
5987
+ */
5988
+ export interface ListJobsByConsumableResourceSummary {
5989
+ /**
5990
+ * <p>The Amazon Resource Name (ARN) of the job.</p>
5991
+ * @public
5992
+ */
5993
+ jobArn: string | undefined;
5994
+ /**
5995
+ * <p>The Amazon Resource Name (ARN) of the job queue.</p>
5996
+ * @public
5997
+ */
5998
+ jobQueueArn: string | undefined;
5999
+ /**
6000
+ * <p>The name of the job.</p>
6001
+ * @public
6002
+ */
6003
+ jobName: string | undefined;
6004
+ /**
6005
+ * <p>The Amazon Resource Name (ARN) of the job definition.</p>
6006
+ * @public
6007
+ */
6008
+ jobDefinitionArn?: string | undefined;
6009
+ /**
6010
+ * <p>The fair-share scheduling policy identifier for the job.</p>
6011
+ * @public
6012
+ */
6013
+ shareIdentifier?: string | undefined;
6014
+ /**
6015
+ * <p>The status of the job. Can be one of:</p>
6016
+ * <ul>
6017
+ * <li>
6018
+ * <p>
6019
+ * <code>SUBMITTED</code>
6020
+ * </p>
6021
+ * </li>
6022
+ * <li>
6023
+ * <p>
6024
+ * <code>PENDING</code>
6025
+ * </p>
6026
+ * </li>
6027
+ * <li>
6028
+ * <p>
6029
+ * <code>RUNNABLE</code>
6030
+ * </p>
6031
+ * </li>
6032
+ * <li>
6033
+ * <p>
6034
+ * <code>STARTING</code>
6035
+ * </p>
6036
+ * </li>
6037
+ * <li>
6038
+ * <p>
6039
+ * <code>RUNNING</code>
6040
+ * </p>
6041
+ * </li>
6042
+ * <li>
6043
+ * <p>
6044
+ * <code>SUCCEEDED</code>
6045
+ * </p>
6046
+ * </li>
6047
+ * <li>
6048
+ * <p>
6049
+ * <code>FAILED</code>
6050
+ * </p>
6051
+ * </li>
6052
+ * </ul>
6053
+ * @public
6054
+ */
6055
+ jobStatus: string | undefined;
6056
+ /**
6057
+ * <p>The total amount of the consumable resource that is available.</p>
6058
+ * @public
6059
+ */
6060
+ quantity: number | undefined;
6061
+ /**
6062
+ * <p>A short, human-readable string to provide more details for the current status of the job.</p>
6063
+ * @public
6064
+ */
6065
+ statusReason?: string | undefined;
6066
+ /**
6067
+ * <p>The Unix timestamp for when the job was started. More specifically, it's when the job transitioned
6068
+ * from the <code>STARTING</code> state to the <code>RUNNING</code> state.</p>
6069
+ * @public
6070
+ */
6071
+ startedAt?: number | undefined;
6072
+ /**
6073
+ * <p>The Unix timestamp (in milliseconds) for when the consumable resource was created.</p>
6074
+ * @public
6075
+ */
6076
+ createdAt: number | undefined;
6077
+ /**
6078
+ * <p>Contains a list of consumable resources required by the job.</p>
6079
+ * @public
6080
+ */
6081
+ consumableResourceProperties: ConsumableResourceProperties | undefined;
6082
+ }
6083
+ /**
6084
+ * @public
6085
+ */
6086
+ export interface ListJobsByConsumableResourceResponse {
6087
+ /**
6088
+ * <p>The list of jobs that require the specified consumable resources.</p>
6089
+ * @public
6090
+ */
6091
+ jobs: ListJobsByConsumableResourceSummary[] | undefined;
6092
+ /**
6093
+ * <p>The <code>nextToken</code> value to include in a future <code>ListJobsByConsumableResource</code>
6094
+ * request. When the results of a <code>ListJobsByConsumableResource</code> request exceed
6095
+ * <code>maxResults</code>, this value can be used to retrieve the next page of results. This
6096
+ * value is <code>null</code> when there are no more results to return.</p>
6097
+ * @public
6098
+ */
6099
+ nextToken?: string | undefined;
6100
+ }
5641
6101
  /**
5642
6102
  * <p>Contains the parameters for <code>ListSchedulingPolicies</code>.</p>
5643
6103
  * @public
@@ -5865,6 +6325,11 @@ export interface RegisterJobDefinitionRequest {
5865
6325
  * @public
5866
6326
  */
5867
6327
  ecsProperties?: EcsProperties | undefined;
6328
+ /**
6329
+ * <p>Contains a list of consumable resources required by the job.</p>
6330
+ * @public
6331
+ */
6332
+ consumableResourceProperties?: ConsumableResourceProperties | undefined;
5868
6333
  }
5869
6334
  /**
5870
6335
  * @public
@@ -6153,6 +6618,11 @@ export interface NodePropertyOverride {
6153
6618
  * @public
6154
6619
  */
6155
6620
  eksPropertiesOverride?: EksPropertiesOverride | undefined;
6621
+ /**
6622
+ * <p>An object that contains overrides for the consumable resources of a job.</p>
6623
+ * @public
6624
+ */
6625
+ consumableResourcePropertiesOverride?: ConsumableResourceProperties | undefined;
6156
6626
  }
6157
6627
  /**
6158
6628
  * <p>An object that represents any node overrides to a job definition that's used in a <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_SubmitJob.html">SubmitJob</a> API
@@ -6330,6 +6800,11 @@ export interface SubmitJobRequest {
6330
6800
  * @public
6331
6801
  */
6332
6802
  ecsPropertiesOverride?: EcsPropertiesOverride | undefined;
6803
+ /**
6804
+ * <p>An object that contains overrides for the consumable resources of a job.</p>
6805
+ * @public
6806
+ */
6807
+ consumableResourcePropertiesOverride?: ConsumableResourceProperties | undefined;
6333
6808
  }
6334
6809
  /**
6335
6810
  * @public
@@ -6852,6 +7327,80 @@ export interface UpdateComputeEnvironmentResponse {
6852
7327
  */
6853
7328
  computeEnvironmentArn?: string | undefined;
6854
7329
  }
7330
+ /**
7331
+ * @public
7332
+ */
7333
+ export interface UpdateConsumableResourceRequest {
7334
+ /**
7335
+ * <p>The name or ARN of the consumable resource to be updated.</p>
7336
+ * @public
7337
+ */
7338
+ consumableResource: string | undefined;
7339
+ /**
7340
+ * <p>Indicates how the quantity of the consumable resource will be updated. Must be one of:</p>
7341
+ * <ul>
7342
+ * <li>
7343
+ * <p>
7344
+ * <code>SET</code>
7345
+ * </p>
7346
+ * <p>Sets the quantity of the resource to the value specified by the <code>quantity</code>
7347
+ * parameter.</p>
7348
+ * </li>
7349
+ * <li>
7350
+ * <p>
7351
+ * <code>ADD</code>
7352
+ * </p>
7353
+ * <p>Increases the quantity of the resource by the value specified by the <code>quantity</code>
7354
+ * parameter.</p>
7355
+ * </li>
7356
+ * <li>
7357
+ * <p>
7358
+ * <code>REMOVE</code>
7359
+ * </p>
7360
+ * <p>Reduces the quantity of the resource by the value specified by the <code>quantity</code>
7361
+ * parameter.</p>
7362
+ * </li>
7363
+ * </ul>
7364
+ * @public
7365
+ */
7366
+ operation?: string | undefined;
7367
+ /**
7368
+ * <p>The change in the total quantity of the consumable resource. The <code>operation</code>
7369
+ * parameter determines whether the value specified here will be the new total quantity, or
7370
+ * the amount by which the total quantity will be increased or reduced. Must be a non-negative
7371
+ * value.</p>
7372
+ * @public
7373
+ */
7374
+ quantity?: number | undefined;
7375
+ /**
7376
+ * <p>If this parameter is specified and two update requests with identical payloads and
7377
+ * <code>clientToken</code>s are received, these requests are considered the same request and
7378
+ * the second request is rejected. A <code>clientToken</code> is valid for 8 hours or until
7379
+ * one hour after the consumable resource is deleted, whichever is less.</p>
7380
+ * @public
7381
+ */
7382
+ clientToken?: string | undefined;
7383
+ }
7384
+ /**
7385
+ * @public
7386
+ */
7387
+ export interface UpdateConsumableResourceResponse {
7388
+ /**
7389
+ * <p>The name of the consumable resource to be updated.</p>
7390
+ * @public
7391
+ */
7392
+ consumableResourceName: string | undefined;
7393
+ /**
7394
+ * <p>The Amazon Resource Name (ARN) of the consumable resource.</p>
7395
+ * @public
7396
+ */
7397
+ consumableResourceArn: string | undefined;
7398
+ /**
7399
+ * <p>The total amount of the consumable resource that is available.</p>
7400
+ * @public
7401
+ */
7402
+ totalQuantity?: number | undefined;
7403
+ }
6855
7404
  /**
6856
7405
  * <p>Contains the parameters for <code>UpdateJobQueue</code>.</p>
6857
7406
  * @public
@@ -0,0 +1,7 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import { ListConsumableResourcesCommandInput, ListConsumableResourcesCommandOutput } from "../commands/ListConsumableResourcesCommand";
3
+ import { BatchPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const paginateListConsumableResources: (config: BatchPaginationConfiguration, input: ListConsumableResourcesCommandInput, ...rest: any[]) => Paginator<ListConsumableResourcesCommandOutput>;
@@ -0,0 +1,7 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import { ListJobsByConsumableResourceCommandInput, ListJobsByConsumableResourceCommandOutput } from "../commands/ListJobsByConsumableResourceCommand";
3
+ import { BatchPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const paginateListJobsByConsumableResource: (config: BatchPaginationConfiguration, input: ListJobsByConsumableResourceCommandInput, ...rest: any[]) => Paginator<ListJobsByConsumableResourceCommandOutput>;
@@ -2,5 +2,7 @@ export * from "./DescribeComputeEnvironmentsPaginator";
2
2
  export * from "./DescribeJobDefinitionsPaginator";
3
3
  export * from "./DescribeJobQueuesPaginator";
4
4
  export * from "./Interfaces";
5
+ export * from "./ListConsumableResourcesPaginator";
6
+ export * from "./ListJobsByConsumableResourcePaginator";
5
7
  export * from "./ListJobsPaginator";
6
8
  export * from "./ListSchedulingPoliciesPaginator";