@aws-sdk/client-batch 3.751.0 → 3.758.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 +108 -0
  18. package/dist-types/commands/DeleteConsumableResourceCommand.d.ts +88 -0
  19. package/dist-types/commands/DescribeConsumableResourceCommand.d.ts +114 -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 +129 -0
  23. package/dist-types/commands/ListJobsByConsumableResourceCommand.d.ts +154 -0
  24. package/dist-types/commands/RegisterJobDefinitionCommand.d.ts +16 -0
  25. package/dist-types/commands/SubmitJobCommand.d.ts +17 -1
  26. package/dist-types/commands/UpdateConsumableResourceCommand.d.ts +104 -0
  27. package/dist-types/commands/index.d.ts +6 -0
  28. package/dist-types/models/models_0.d.ts +589 -40
  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 +15 -13
@@ -0,0 +1,129 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BatchClient";
4
+ import { ListConsumableResourcesRequest, ListConsumableResourcesResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListConsumableResourcesCommand}.
14
+ */
15
+ export interface ListConsumableResourcesCommandInput extends ListConsumableResourcesRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListConsumableResourcesCommand}.
21
+ */
22
+ export interface ListConsumableResourcesCommandOutput extends ListConsumableResourcesResponse, __MetadataBearer {
23
+ }
24
+ declare const ListConsumableResourcesCommand_base: {
25
+ new (input: ListConsumableResourcesCommandInput): import("@smithy/smithy-client").CommandImpl<ListConsumableResourcesCommandInput, ListConsumableResourcesCommandOutput, BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListConsumableResourcesCommandInput]): import("@smithy/smithy-client").CommandImpl<ListConsumableResourcesCommandInput, ListConsumableResourcesCommandOutput, BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns a list of Batch consumable resources.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BatchClient, ListConsumableResourcesCommand } from "@aws-sdk/client-batch"; // ES Modules import
35
+ * // const { BatchClient, ListConsumableResourcesCommand } = require("@aws-sdk/client-batch"); // CommonJS import
36
+ * const client = new BatchClient(config);
37
+ * const input = { // ListConsumableResourcesRequest
38
+ * filters: [ // ListConsumableResourcesFilterList
39
+ * { // KeyValuesPair
40
+ * name: "STRING_VALUE",
41
+ * values: [ // StringList
42
+ * "STRING_VALUE",
43
+ * ],
44
+ * },
45
+ * ],
46
+ * maxResults: Number("int"),
47
+ * nextToken: "STRING_VALUE",
48
+ * };
49
+ * const command = new ListConsumableResourcesCommand(input);
50
+ * const response = await client.send(command);
51
+ * // { // ListConsumableResourcesResponse
52
+ * // consumableResources: [ // ConsumableResourceSummaryList // required
53
+ * // { // ConsumableResourceSummary
54
+ * // consumableResourceArn: "STRING_VALUE", // required
55
+ * // consumableResourceName: "STRING_VALUE", // required
56
+ * // totalQuantity: Number("long"),
57
+ * // inUseQuantity: Number("long"),
58
+ * // resourceType: "STRING_VALUE",
59
+ * // },
60
+ * // ],
61
+ * // nextToken: "STRING_VALUE",
62
+ * // };
63
+ *
64
+ * ```
65
+ *
66
+ * @param ListConsumableResourcesCommandInput - {@link ListConsumableResourcesCommandInput}
67
+ * @returns {@link ListConsumableResourcesCommandOutput}
68
+ * @see {@link ListConsumableResourcesCommandInput} for command's `input` shape.
69
+ * @see {@link ListConsumableResourcesCommandOutput} for command's `response` shape.
70
+ * @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
71
+ *
72
+ * @throws {@link ClientException} (client fault)
73
+ * <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
74
+ * of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
75
+ * that's not valid.</p>
76
+ *
77
+ * @throws {@link ServerException} (server fault)
78
+ * <p>These errors are usually caused by a server issue.</p>
79
+ *
80
+ * @throws {@link BatchServiceException}
81
+ * <p>Base exception class for all service exceptions from Batch service.</p>
82
+ *
83
+ * @public
84
+ * @example To get a list of a consumable resources
85
+ * ```javascript
86
+ * // Returns a list of the consumable resources for your account.
87
+ * const input = {
88
+ * "filters": [
89
+ * {
90
+ * "name": "CONSUMABLE_RESOURCE_NAME",
91
+ * "values": [
92
+ * "my*"
93
+ * ]
94
+ * }
95
+ * ],
96
+ * "maxResults": 123
97
+ * };
98
+ * const command = new ListConsumableResourcesCommand(input);
99
+ * const response = await client.send(command);
100
+ * /* response ==
101
+ * {
102
+ * "consumableResources": [
103
+ * {
104
+ * "consumableResourceArn": "arn:aws:batch:us-east-1:012345678910:consumable-resource/myConsumableResource",
105
+ * "consumableResourceName": "myConsumableResource",
106
+ * "inUseQuantity": 12,
107
+ * "resourceType": "REPLENISHABLE",
108
+ * "totalQuantity": 123
109
+ * }
110
+ * ]
111
+ * }
112
+ * *\/
113
+ * // example id: to-get-a-list-of-a-consumable-resources-1739496071960
114
+ * ```
115
+ *
116
+ */
117
+ export declare class ListConsumableResourcesCommand extends ListConsumableResourcesCommand_base {
118
+ /** @internal type navigation helper, not in runtime. */
119
+ protected static __types: {
120
+ api: {
121
+ input: ListConsumableResourcesRequest;
122
+ output: ListConsumableResourcesResponse;
123
+ };
124
+ sdk: {
125
+ input: ListConsumableResourcesCommandInput;
126
+ output: ListConsumableResourcesCommandOutput;
127
+ };
128
+ };
129
+ }
@@ -0,0 +1,154 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BatchClient";
4
+ import { ListJobsByConsumableResourceRequest, ListJobsByConsumableResourceResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListJobsByConsumableResourceCommand}.
14
+ */
15
+ export interface ListJobsByConsumableResourceCommandInput extends ListJobsByConsumableResourceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListJobsByConsumableResourceCommand}.
21
+ */
22
+ export interface ListJobsByConsumableResourceCommandOutput extends ListJobsByConsumableResourceResponse, __MetadataBearer {
23
+ }
24
+ declare const ListJobsByConsumableResourceCommand_base: {
25
+ new (input: ListJobsByConsumableResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListJobsByConsumableResourceCommandInput, ListJobsByConsumableResourceCommandOutput, BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: ListJobsByConsumableResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListJobsByConsumableResourceCommandInput, ListJobsByConsumableResourceCommandOutput, BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns a list of Batch jobs that require a specific consumable resource.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BatchClient, ListJobsByConsumableResourceCommand } from "@aws-sdk/client-batch"; // ES Modules import
35
+ * // const { BatchClient, ListJobsByConsumableResourceCommand } = require("@aws-sdk/client-batch"); // CommonJS import
36
+ * const client = new BatchClient(config);
37
+ * const input = { // ListJobsByConsumableResourceRequest
38
+ * consumableResource: "STRING_VALUE", // required
39
+ * filters: [ // ListJobsByConsumableResourceFilterList
40
+ * { // KeyValuesPair
41
+ * name: "STRING_VALUE",
42
+ * values: [ // StringList
43
+ * "STRING_VALUE",
44
+ * ],
45
+ * },
46
+ * ],
47
+ * maxResults: Number("int"),
48
+ * nextToken: "STRING_VALUE",
49
+ * };
50
+ * const command = new ListJobsByConsumableResourceCommand(input);
51
+ * const response = await client.send(command);
52
+ * // { // ListJobsByConsumableResourceResponse
53
+ * // jobs: [ // ListJobsByConsumableResourceSummaryList // required
54
+ * // { // ListJobsByConsumableResourceSummary
55
+ * // jobArn: "STRING_VALUE", // required
56
+ * // jobQueueArn: "STRING_VALUE", // required
57
+ * // jobName: "STRING_VALUE", // required
58
+ * // jobDefinitionArn: "STRING_VALUE",
59
+ * // shareIdentifier: "STRING_VALUE",
60
+ * // jobStatus: "STRING_VALUE", // required
61
+ * // quantity: Number("long"), // required
62
+ * // statusReason: "STRING_VALUE",
63
+ * // startedAt: Number("long"),
64
+ * // createdAt: Number("long"), // required
65
+ * // consumableResourceProperties: { // ConsumableResourceProperties
66
+ * // consumableResourceList: [ // ConsumableResourceList
67
+ * // { // ConsumableResourceRequirement
68
+ * // consumableResource: "STRING_VALUE",
69
+ * // quantity: Number("long"),
70
+ * // },
71
+ * // ],
72
+ * // },
73
+ * // },
74
+ * // ],
75
+ * // nextToken: "STRING_VALUE",
76
+ * // };
77
+ *
78
+ * ```
79
+ *
80
+ * @param ListJobsByConsumableResourceCommandInput - {@link ListJobsByConsumableResourceCommandInput}
81
+ * @returns {@link ListJobsByConsumableResourceCommandOutput}
82
+ * @see {@link ListJobsByConsumableResourceCommandInput} for command's `input` shape.
83
+ * @see {@link ListJobsByConsumableResourceCommandOutput} for command's `response` shape.
84
+ * @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
85
+ *
86
+ * @throws {@link ClientException} (client fault)
87
+ * <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
88
+ * of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
89
+ * that's not valid.</p>
90
+ *
91
+ * @throws {@link ServerException} (server fault)
92
+ * <p>These errors are usually caused by a server issue.</p>
93
+ *
94
+ * @throws {@link BatchServiceException}
95
+ * <p>Base exception class for all service exceptions from Batch service.</p>
96
+ *
97
+ * @public
98
+ * @example To get a list of Batch jobs by consumable resource
99
+ * ```javascript
100
+ * // Returns a list of Batch jobs that require a specific consumable resource.
101
+ * const input = {
102
+ * "consumableResource": "myConsumableResource",
103
+ * "filters": [
104
+ * {
105
+ * "name": "CONSUMABLE_RESOURCE_NAME",
106
+ * "values": [
107
+ * "my*"
108
+ * ]
109
+ * }
110
+ * ],
111
+ * "maxResults": 123
112
+ * };
113
+ * const command = new ListJobsByConsumableResourceCommand(input);
114
+ * const response = await client.send(command);
115
+ * /* response ==
116
+ * {
117
+ * "jobs": [
118
+ * {
119
+ * "consumableResourceProperties": {
120
+ * "consumableResourceList": [
121
+ * {
122
+ * "consumableResource": "myConsumableResource",
123
+ * "quantity": 123
124
+ * }
125
+ * ]
126
+ * },
127
+ * "createdAt": 1480460782010,
128
+ * "jobArn": "arn:aws:batch:us-east-1:012345678910:job/myJob",
129
+ * "jobDefinitionArn": "arn:aws:batch:us-east-1:012345678910:job-definition/myJobDef",
130
+ * "jobName": "myJob",
131
+ * "jobQueueArn": "arn:aws:batch:us-east-1:012345678910:job-queue/myJobQueue",
132
+ * "jobStatus": "PENDING",
133
+ * "quantity": 123
134
+ * }
135
+ * ]
136
+ * }
137
+ * *\/
138
+ * // example id: to-get-a-list-of-batch-jobs-by-consumable-resource-1739496640347
139
+ * ```
140
+ *
141
+ */
142
+ export declare class ListJobsByConsumableResourceCommand extends ListJobsByConsumableResourceCommand_base {
143
+ /** @internal type navigation helper, not in runtime. */
144
+ protected static __types: {
145
+ api: {
146
+ input: ListJobsByConsumableResourceRequest;
147
+ output: ListJobsByConsumableResourceResponse;
148
+ };
149
+ sdk: {
150
+ input: ListJobsByConsumableResourceCommandInput;
151
+ output: ListJobsByConsumableResourceCommandOutput;
152
+ };
153
+ };
154
+ }
@@ -428,6 +428,14 @@ declare const RegisterJobDefinitionCommand_base: {
428
428
  * shareProcessNamespace: true || false,
429
429
  * },
430
430
  * },
431
+ * consumableResourceProperties: { // ConsumableResourceProperties
432
+ * consumableResourceList: [ // ConsumableResourceList
433
+ * { // ConsumableResourceRequirement
434
+ * consumableResource: "STRING_VALUE",
435
+ * quantity: Number("long"),
436
+ * },
437
+ * ],
438
+ * },
431
439
  * },
432
440
  * ],
433
441
  * },
@@ -612,6 +620,14 @@ declare const RegisterJobDefinitionCommand_base: {
612
620
  * },
613
621
  * ],
614
622
  * },
623
+ * consumableResourceProperties: {
624
+ * consumableResourceList: [
625
+ * {
626
+ * consumableResource: "STRING_VALUE",
627
+ * quantity: Number("long"),
628
+ * },
629
+ * ],
630
+ * },
615
631
  * };
616
632
  * const command = new RegisterJobDefinitionCommand(input);
617
633
  * const response = await client.send(command);
@@ -34,7 +34,7 @@ declare const SubmitJobCommand_base: {
34
34
  * parameters in a <code>resourceRequirements</code> object that's included in the
35
35
  * <code>containerOverrides</code> parameter.</p>
36
36
  * <note>
37
- * <p>Job queues with a scheduling policy are limited to 500 active share identifiers at
37
+ * <p>Job queues with a scheduling policy are limited to 500 active fair share identifiers at
38
38
  * a time. </p>
39
39
  * </note>
40
40
  * <important>
@@ -183,6 +183,14 @@ declare const SubmitJobCommand_base: {
183
183
  * },
184
184
  * },
185
185
  * },
186
+ * consumableResourcePropertiesOverride: { // ConsumableResourceProperties
187
+ * consumableResourceList: [ // ConsumableResourceList
188
+ * { // ConsumableResourceRequirement
189
+ * consumableResource: "STRING_VALUE",
190
+ * quantity: Number("long"),
191
+ * },
192
+ * ],
193
+ * },
186
194
  * },
187
195
  * ],
188
196
  * },
@@ -275,6 +283,14 @@ declare const SubmitJobCommand_base: {
275
283
  * },
276
284
  * ],
277
285
  * },
286
+ * consumableResourcePropertiesOverride: {
287
+ * consumableResourceList: [
288
+ * {
289
+ * consumableResource: "STRING_VALUE",
290
+ * quantity: Number("long"),
291
+ * },
292
+ * ],
293
+ * },
278
294
  * };
279
295
  * const command = new SubmitJobCommand(input);
280
296
  * const response = await client.send(command);
@@ -0,0 +1,104 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BatchClient";
4
+ import { UpdateConsumableResourceRequest, UpdateConsumableResourceResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateConsumableResourceCommand}.
14
+ */
15
+ export interface UpdateConsumableResourceCommandInput extends UpdateConsumableResourceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateConsumableResourceCommand}.
21
+ */
22
+ export interface UpdateConsumableResourceCommandOutput extends UpdateConsumableResourceResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateConsumableResourceCommand_base: {
25
+ new (input: UpdateConsumableResourceCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateConsumableResourceCommandInput, UpdateConsumableResourceCommandOutput, BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: UpdateConsumableResourceCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateConsumableResourceCommandInput, UpdateConsumableResourceCommandOutput, BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Updates a consumable resource.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BatchClient, UpdateConsumableResourceCommand } from "@aws-sdk/client-batch"; // ES Modules import
35
+ * // const { BatchClient, UpdateConsumableResourceCommand } = require("@aws-sdk/client-batch"); // CommonJS import
36
+ * const client = new BatchClient(config);
37
+ * const input = { // UpdateConsumableResourceRequest
38
+ * consumableResource: "STRING_VALUE", // required
39
+ * operation: "STRING_VALUE",
40
+ * quantity: Number("long"),
41
+ * clientToken: "STRING_VALUE",
42
+ * };
43
+ * const command = new UpdateConsumableResourceCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // UpdateConsumableResourceResponse
46
+ * // consumableResourceName: "STRING_VALUE", // required
47
+ * // consumableResourceArn: "STRING_VALUE", // required
48
+ * // totalQuantity: Number("long"),
49
+ * // };
50
+ *
51
+ * ```
52
+ *
53
+ * @param UpdateConsumableResourceCommandInput - {@link UpdateConsumableResourceCommandInput}
54
+ * @returns {@link UpdateConsumableResourceCommandOutput}
55
+ * @see {@link UpdateConsumableResourceCommandInput} for command's `input` shape.
56
+ * @see {@link UpdateConsumableResourceCommandOutput} for command's `response` shape.
57
+ * @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
58
+ *
59
+ * @throws {@link ClientException} (client fault)
60
+ * <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
61
+ * of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
62
+ * that's not valid.</p>
63
+ *
64
+ * @throws {@link ServerException} (server fault)
65
+ * <p>These errors are usually caused by a server issue.</p>
66
+ *
67
+ * @throws {@link BatchServiceException}
68
+ * <p>Base exception class for all service exceptions from Batch service.</p>
69
+ *
70
+ * @public
71
+ * @example To update a consumable resource
72
+ * ```javascript
73
+ * // Updates a consumable resource.
74
+ * const input = {
75
+ * "consumableResource": "myConsumableResource",
76
+ * "operation": "ADD",
77
+ * "quantity": 12
78
+ * };
79
+ * const command = new UpdateConsumableResourceCommand(input);
80
+ * const response = await client.send(command);
81
+ * /* response ==
82
+ * {
83
+ * "consumableResourceArn": "arn:aws:batch:us-east-1:012345678910:consumable-resource/myConsumableResource",
84
+ * "consumableResourceName": "myConsumableResource",
85
+ * "totalQuantity": 135
86
+ * }
87
+ * *\/
88
+ * // example id: to-update-a-consumable-resource-1739497761692
89
+ * ```
90
+ *
91
+ */
92
+ export declare class UpdateConsumableResourceCommand extends UpdateConsumableResourceCommand_base {
93
+ /** @internal type navigation helper, not in runtime. */
94
+ protected static __types: {
95
+ api: {
96
+ input: UpdateConsumableResourceRequest;
97
+ output: UpdateConsumableResourceResponse;
98
+ };
99
+ sdk: {
100
+ input: UpdateConsumableResourceCommandInput;
101
+ output: UpdateConsumableResourceCommandOutput;
102
+ };
103
+ };
104
+ }
@@ -1,17 +1,22 @@
1
1
  export * from "./CancelJobCommand";
2
2
  export * from "./CreateComputeEnvironmentCommand";
3
+ export * from "./CreateConsumableResourceCommand";
3
4
  export * from "./CreateJobQueueCommand";
4
5
  export * from "./CreateSchedulingPolicyCommand";
5
6
  export * from "./DeleteComputeEnvironmentCommand";
7
+ export * from "./DeleteConsumableResourceCommand";
6
8
  export * from "./DeleteJobQueueCommand";
7
9
  export * from "./DeleteSchedulingPolicyCommand";
8
10
  export * from "./DeregisterJobDefinitionCommand";
9
11
  export * from "./DescribeComputeEnvironmentsCommand";
12
+ export * from "./DescribeConsumableResourceCommand";
10
13
  export * from "./DescribeJobDefinitionsCommand";
11
14
  export * from "./DescribeJobQueuesCommand";
12
15
  export * from "./DescribeJobsCommand";
13
16
  export * from "./DescribeSchedulingPoliciesCommand";
14
17
  export * from "./GetJobQueueSnapshotCommand";
18
+ export * from "./ListConsumableResourcesCommand";
19
+ export * from "./ListJobsByConsumableResourceCommand";
15
20
  export * from "./ListJobsCommand";
16
21
  export * from "./ListSchedulingPoliciesCommand";
17
22
  export * from "./ListTagsForResourceCommand";
@@ -21,5 +26,6 @@ export * from "./TagResourceCommand";
21
26
  export * from "./TerminateJobCommand";
22
27
  export * from "./UntagResourceCommand";
23
28
  export * from "./UpdateComputeEnvironmentCommand";
29
+ export * from "./UpdateConsumableResourceCommand";
24
30
  export * from "./UpdateJobQueueCommand";
25
31
  export * from "./UpdateSchedulingPolicyCommand";