@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
package/dist-es/Batch.js CHANGED
@@ -2,18 +2,23 @@ import { createAggregatedClient } from "@smithy/smithy-client";
2
2
  import { BatchClient } from "./BatchClient";
3
3
  import { CancelJobCommand } from "./commands/CancelJobCommand";
4
4
  import { CreateComputeEnvironmentCommand, } from "./commands/CreateComputeEnvironmentCommand";
5
+ import { CreateConsumableResourceCommand, } from "./commands/CreateConsumableResourceCommand";
5
6
  import { CreateJobQueueCommand, } from "./commands/CreateJobQueueCommand";
6
7
  import { CreateSchedulingPolicyCommand, } from "./commands/CreateSchedulingPolicyCommand";
7
8
  import { DeleteComputeEnvironmentCommand, } from "./commands/DeleteComputeEnvironmentCommand";
9
+ import { DeleteConsumableResourceCommand, } from "./commands/DeleteConsumableResourceCommand";
8
10
  import { DeleteJobQueueCommand, } from "./commands/DeleteJobQueueCommand";
9
11
  import { DeleteSchedulingPolicyCommand, } from "./commands/DeleteSchedulingPolicyCommand";
10
12
  import { DeregisterJobDefinitionCommand, } from "./commands/DeregisterJobDefinitionCommand";
11
13
  import { DescribeComputeEnvironmentsCommand, } from "./commands/DescribeComputeEnvironmentsCommand";
14
+ import { DescribeConsumableResourceCommand, } from "./commands/DescribeConsumableResourceCommand";
12
15
  import { DescribeJobDefinitionsCommand, } from "./commands/DescribeJobDefinitionsCommand";
13
16
  import { DescribeJobQueuesCommand, } from "./commands/DescribeJobQueuesCommand";
14
17
  import { DescribeJobsCommand, } from "./commands/DescribeJobsCommand";
15
18
  import { DescribeSchedulingPoliciesCommand, } from "./commands/DescribeSchedulingPoliciesCommand";
16
19
  import { GetJobQueueSnapshotCommand, } from "./commands/GetJobQueueSnapshotCommand";
20
+ import { ListConsumableResourcesCommand, } from "./commands/ListConsumableResourcesCommand";
21
+ import { ListJobsByConsumableResourceCommand, } from "./commands/ListJobsByConsumableResourceCommand";
17
22
  import { ListJobsCommand } from "./commands/ListJobsCommand";
18
23
  import { ListSchedulingPoliciesCommand, } from "./commands/ListSchedulingPoliciesCommand";
19
24
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
@@ -23,24 +28,30 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
23
28
  import { TerminateJobCommand, } from "./commands/TerminateJobCommand";
24
29
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
25
30
  import { UpdateComputeEnvironmentCommand, } from "./commands/UpdateComputeEnvironmentCommand";
31
+ import { UpdateConsumableResourceCommand, } from "./commands/UpdateConsumableResourceCommand";
26
32
  import { UpdateJobQueueCommand, } from "./commands/UpdateJobQueueCommand";
27
33
  import { UpdateSchedulingPolicyCommand, } from "./commands/UpdateSchedulingPolicyCommand";
28
34
  const commands = {
29
35
  CancelJobCommand,
30
36
  CreateComputeEnvironmentCommand,
37
+ CreateConsumableResourceCommand,
31
38
  CreateJobQueueCommand,
32
39
  CreateSchedulingPolicyCommand,
33
40
  DeleteComputeEnvironmentCommand,
41
+ DeleteConsumableResourceCommand,
34
42
  DeleteJobQueueCommand,
35
43
  DeleteSchedulingPolicyCommand,
36
44
  DeregisterJobDefinitionCommand,
37
45
  DescribeComputeEnvironmentsCommand,
46
+ DescribeConsumableResourceCommand,
38
47
  DescribeJobDefinitionsCommand,
39
48
  DescribeJobQueuesCommand,
40
49
  DescribeJobsCommand,
41
50
  DescribeSchedulingPoliciesCommand,
42
51
  GetJobQueueSnapshotCommand,
52
+ ListConsumableResourcesCommand,
43
53
  ListJobsCommand,
54
+ ListJobsByConsumableResourceCommand,
44
55
  ListSchedulingPoliciesCommand,
45
56
  ListTagsForResourceCommand,
46
57
  RegisterJobDefinitionCommand,
@@ -49,6 +60,7 @@ const commands = {
49
60
  TerminateJobCommand,
50
61
  UntagResourceCommand,
51
62
  UpdateComputeEnvironmentCommand,
63
+ UpdateConsumableResourceCommand,
52
64
  UpdateJobQueueCommand,
53
65
  UpdateSchedulingPolicyCommand,
54
66
  };
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_CreateConsumableResourceCommand, se_CreateConsumableResourceCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class CreateConsumableResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AWSBatchV20160810", "CreateConsumableResource", {})
17
+ .n("BatchClient", "CreateConsumableResourceCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_CreateConsumableResourceCommand)
20
+ .de(de_CreateConsumableResourceCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DeleteConsumableResourceCommand, se_DeleteConsumableResourceCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeleteConsumableResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AWSBatchV20160810", "DeleteConsumableResource", {})
17
+ .n("BatchClient", "DeleteConsumableResourceCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DeleteConsumableResourceCommand)
20
+ .de(de_DeleteConsumableResourceCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DescribeConsumableResourceCommand, se_DescribeConsumableResourceCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DescribeConsumableResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AWSBatchV20160810", "DescribeConsumableResource", {})
17
+ .n("BatchClient", "DescribeConsumableResourceCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DescribeConsumableResourceCommand)
20
+ .de(de_DescribeConsumableResourceCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListConsumableResourcesCommand, se_ListConsumableResourcesCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListConsumableResourcesCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AWSBatchV20160810", "ListConsumableResources", {})
17
+ .n("BatchClient", "ListConsumableResourcesCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListConsumableResourcesCommand)
20
+ .de(de_ListConsumableResourcesCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListJobsByConsumableResourceCommand, se_ListJobsByConsumableResourceCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListJobsByConsumableResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AWSBatchV20160810", "ListJobsByConsumableResource", {})
17
+ .n("BatchClient", "ListJobsByConsumableResourceCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListJobsByConsumableResourceCommand)
20
+ .de(de_ListJobsByConsumableResourceCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_UpdateConsumableResourceCommand, se_UpdateConsumableResourceCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class UpdateConsumableResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AWSBatchV20160810", "UpdateConsumableResource", {})
17
+ .n("BatchClient", "UpdateConsumableResourceCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_UpdateConsumableResourceCommand)
20
+ .de(de_UpdateConsumableResourceCommand)
21
+ .build() {
22
+ }
@@ -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";
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { BatchClient } from "../BatchClient";
3
+ import { ListConsumableResourcesCommand, } from "../commands/ListConsumableResourcesCommand";
4
+ export const paginateListConsumableResources = createPaginator(BatchClient, ListConsumableResourcesCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { BatchClient } from "../BatchClient";
3
+ import { ListJobsByConsumableResourceCommand, } from "../commands/ListJobsByConsumableResourceCommand";
4
+ export const paginateListJobsByConsumableResource = createPaginator(BatchClient, ListJobsByConsumableResourceCommand, "nextToken", "nextToken", "maxResults");
@@ -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";
@@ -1,6 +1,7 @@
1
1
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
+ import { v4 as generateIdempotencyToken } from "uuid";
4
5
  import { BatchServiceException as __BaseException } from "../models/BatchServiceException";
5
6
  import { ClientException, ServerException, } from "../models/models_0";
6
7
  export const se_CancelJobCommand = async (input, context) => {
@@ -38,6 +39,22 @@ export const se_CreateComputeEnvironmentCommand = async (input, context) => {
38
39
  b.m("POST").h(headers).b(body);
39
40
  return b.build();
40
41
  };
42
+ export const se_CreateConsumableResourceCommand = async (input, context) => {
43
+ const b = rb(input, context);
44
+ const headers = {
45
+ "content-type": "application/json",
46
+ };
47
+ b.bp("/v1/createconsumableresource");
48
+ let body;
49
+ body = JSON.stringify(take(input, {
50
+ consumableResourceName: [],
51
+ resourceType: [],
52
+ tags: (_) => _json(_),
53
+ totalQuantity: [],
54
+ }));
55
+ b.m("POST").h(headers).b(body);
56
+ return b.build();
57
+ };
41
58
  export const se_CreateJobQueueCommand = async (input, context) => {
42
59
  const b = rb(input, context);
43
60
  const headers = {
@@ -85,6 +102,19 @@ export const se_DeleteComputeEnvironmentCommand = async (input, context) => {
85
102
  b.m("POST").h(headers).b(body);
86
103
  return b.build();
87
104
  };
105
+ export const se_DeleteConsumableResourceCommand = async (input, context) => {
106
+ const b = rb(input, context);
107
+ const headers = {
108
+ "content-type": "application/json",
109
+ };
110
+ b.bp("/v1/deleteconsumableresource");
111
+ let body;
112
+ body = JSON.stringify(take(input, {
113
+ consumableResource: [],
114
+ }));
115
+ b.m("POST").h(headers).b(body);
116
+ return b.build();
117
+ };
88
118
  export const se_DeleteJobQueueCommand = async (input, context) => {
89
119
  const b = rb(input, context);
90
120
  const headers = {
@@ -139,6 +169,19 @@ export const se_DescribeComputeEnvironmentsCommand = async (input, context) => {
139
169
  b.m("POST").h(headers).b(body);
140
170
  return b.build();
141
171
  };
172
+ export const se_DescribeConsumableResourceCommand = async (input, context) => {
173
+ const b = rb(input, context);
174
+ const headers = {
175
+ "content-type": "application/json",
176
+ };
177
+ b.bp("/v1/describeconsumableresource");
178
+ let body;
179
+ body = JSON.stringify(take(input, {
180
+ consumableResource: [],
181
+ }));
182
+ b.m("POST").h(headers).b(body);
183
+ return b.build();
184
+ };
142
185
  export const se_DescribeJobDefinitionsCommand = async (input, context) => {
143
186
  const b = rb(input, context);
144
187
  const headers = {
@@ -210,6 +253,21 @@ export const se_GetJobQueueSnapshotCommand = async (input, context) => {
210
253
  b.m("POST").h(headers).b(body);
211
254
  return b.build();
212
255
  };
256
+ export const se_ListConsumableResourcesCommand = async (input, context) => {
257
+ const b = rb(input, context);
258
+ const headers = {
259
+ "content-type": "application/json",
260
+ };
261
+ b.bp("/v1/listconsumableresources");
262
+ let body;
263
+ body = JSON.stringify(take(input, {
264
+ filters: (_) => _json(_),
265
+ maxResults: [],
266
+ nextToken: [],
267
+ }));
268
+ b.m("POST").h(headers).b(body);
269
+ return b.build();
270
+ };
213
271
  export const se_ListJobsCommand = async (input, context) => {
214
272
  const b = rb(input, context);
215
273
  const headers = {
@@ -229,6 +287,22 @@ export const se_ListJobsCommand = async (input, context) => {
229
287
  b.m("POST").h(headers).b(body);
230
288
  return b.build();
231
289
  };
290
+ export const se_ListJobsByConsumableResourceCommand = async (input, context) => {
291
+ const b = rb(input, context);
292
+ const headers = {
293
+ "content-type": "application/json",
294
+ };
295
+ b.bp("/v1/listjobsbyconsumableresource");
296
+ let body;
297
+ body = JSON.stringify(take(input, {
298
+ consumableResource: [],
299
+ filters: (_) => _json(_),
300
+ maxResults: [],
301
+ nextToken: [],
302
+ }));
303
+ b.m("POST").h(headers).b(body);
304
+ return b.build();
305
+ };
232
306
  export const se_ListSchedulingPoliciesCommand = async (input, context) => {
233
307
  const b = rb(input, context);
234
308
  const headers = {
@@ -260,6 +334,7 @@ export const se_RegisterJobDefinitionCommand = async (input, context) => {
260
334
  b.bp("/v1/registerjobdefinition");
261
335
  let body;
262
336
  body = JSON.stringify(take(input, {
337
+ consumableResourceProperties: (_) => _json(_),
263
338
  containerProperties: (_) => _json(_),
264
339
  ecsProperties: (_) => _json(_),
265
340
  eksProperties: (_) => _json(_),
@@ -286,6 +361,7 @@ export const se_SubmitJobCommand = async (input, context) => {
286
361
  let body;
287
362
  body = JSON.stringify(take(input, {
288
363
  arrayProperties: (_) => _json(_),
364
+ consumableResourcePropertiesOverride: (_) => _json(_),
289
365
  containerOverrides: (_) => _json(_),
290
366
  dependsOn: (_) => _json(_),
291
367
  ecsPropertiesOverride: (_) => _json(_),
@@ -364,6 +440,22 @@ export const se_UpdateComputeEnvironmentCommand = async (input, context) => {
364
440
  b.m("POST").h(headers).b(body);
365
441
  return b.build();
366
442
  };
443
+ export const se_UpdateConsumableResourceCommand = async (input, context) => {
444
+ const b = rb(input, context);
445
+ const headers = {
446
+ "content-type": "application/json",
447
+ };
448
+ b.bp("/v1/updateconsumableresource");
449
+ let body;
450
+ body = JSON.stringify(take(input, {
451
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
452
+ consumableResource: [],
453
+ operation: [],
454
+ quantity: [],
455
+ }));
456
+ b.m("POST").h(headers).b(body);
457
+ return b.build();
458
+ };
367
459
  export const se_UpdateJobQueueCommand = async (input, context) => {
368
460
  const b = rb(input, context);
369
461
  const headers = {
@@ -421,6 +513,21 @@ export const de_CreateComputeEnvironmentCommand = async (output, context) => {
421
513
  Object.assign(contents, doc);
422
514
  return contents;
423
515
  };
516
+ export const de_CreateConsumableResourceCommand = async (output, context) => {
517
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
518
+ return de_CommandError(output, context);
519
+ }
520
+ const contents = map({
521
+ $metadata: deserializeMetadata(output),
522
+ });
523
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
524
+ const doc = take(data, {
525
+ consumableResourceArn: __expectString,
526
+ consumableResourceName: __expectString,
527
+ });
528
+ Object.assign(contents, doc);
529
+ return contents;
530
+ };
424
531
  export const de_CreateJobQueueCommand = async (output, context) => {
425
532
  if (output.statusCode !== 200 && output.statusCode >= 300) {
426
533
  return de_CommandError(output, context);
@@ -461,6 +568,16 @@ export const de_DeleteComputeEnvironmentCommand = async (output, context) => {
461
568
  await collectBody(output.body, context);
462
569
  return contents;
463
570
  };
571
+ export const de_DeleteConsumableResourceCommand = async (output, context) => {
572
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
573
+ return de_CommandError(output, context);
574
+ }
575
+ const contents = map({
576
+ $metadata: deserializeMetadata(output),
577
+ });
578
+ await collectBody(output.body, context);
579
+ return contents;
580
+ };
464
581
  export const de_DeleteJobQueueCommand = async (output, context) => {
465
582
  if (output.statusCode !== 200 && output.statusCode >= 300) {
466
583
  return de_CommandError(output, context);
@@ -506,6 +623,27 @@ export const de_DescribeComputeEnvironmentsCommand = async (output, context) =>
506
623
  Object.assign(contents, doc);
507
624
  return contents;
508
625
  };
626
+ export const de_DescribeConsumableResourceCommand = async (output, context) => {
627
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
628
+ return de_CommandError(output, context);
629
+ }
630
+ const contents = map({
631
+ $metadata: deserializeMetadata(output),
632
+ });
633
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
634
+ const doc = take(data, {
635
+ availableQuantity: __expectLong,
636
+ consumableResourceArn: __expectString,
637
+ consumableResourceName: __expectString,
638
+ createdAt: __expectLong,
639
+ inUseQuantity: __expectLong,
640
+ resourceType: __expectString,
641
+ tags: _json,
642
+ totalQuantity: __expectLong,
643
+ });
644
+ Object.assign(contents, doc);
645
+ return contents;
646
+ };
509
647
  export const de_DescribeJobDefinitionsCommand = async (output, context) => {
510
648
  if (output.statusCode !== 200 && output.statusCode >= 300) {
511
649
  return de_CommandError(output, context);
@@ -578,6 +716,21 @@ export const de_GetJobQueueSnapshotCommand = async (output, context) => {
578
716
  Object.assign(contents, doc);
579
717
  return contents;
580
718
  };
719
+ export const de_ListConsumableResourcesCommand = async (output, context) => {
720
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
721
+ return de_CommandError(output, context);
722
+ }
723
+ const contents = map({
724
+ $metadata: deserializeMetadata(output),
725
+ });
726
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
727
+ const doc = take(data, {
728
+ consumableResources: _json,
729
+ nextToken: __expectString,
730
+ });
731
+ Object.assign(contents, doc);
732
+ return contents;
733
+ };
581
734
  export const de_ListJobsCommand = async (output, context) => {
582
735
  if (output.statusCode !== 200 && output.statusCode >= 300) {
583
736
  return de_CommandError(output, context);
@@ -593,6 +746,21 @@ export const de_ListJobsCommand = async (output, context) => {
593
746
  Object.assign(contents, doc);
594
747
  return contents;
595
748
  };
749
+ export const de_ListJobsByConsumableResourceCommand = async (output, context) => {
750
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
751
+ return de_CommandError(output, context);
752
+ }
753
+ const contents = map({
754
+ $metadata: deserializeMetadata(output),
755
+ });
756
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
757
+ const doc = take(data, {
758
+ jobs: _json,
759
+ nextToken: __expectString,
760
+ });
761
+ Object.assign(contents, doc);
762
+ return contents;
763
+ };
596
764
  export const de_ListSchedulingPoliciesCommand = async (output, context) => {
597
765
  if (output.statusCode !== 200 && output.statusCode >= 300) {
598
766
  return de_CommandError(output, context);
@@ -699,6 +867,22 @@ export const de_UpdateComputeEnvironmentCommand = async (output, context) => {
699
867
  Object.assign(contents, doc);
700
868
  return contents;
701
869
  };
870
+ export const de_UpdateConsumableResourceCommand = async (output, context) => {
871
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
872
+ return de_CommandError(output, context);
873
+ }
874
+ const contents = map({
875
+ $metadata: deserializeMetadata(output),
876
+ });
877
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
878
+ const doc = take(data, {
879
+ consumableResourceArn: __expectString,
880
+ consumableResourceName: __expectString,
881
+ totalQuantity: __expectLong,
882
+ });
883
+ Object.assign(contents, doc);
884
+ return contents;
885
+ };
702
886
  export const de_UpdateJobQueueCommand = async (output, context) => {
703
887
  if (output.statusCode !== 200 && output.statusCode >= 300) {
704
888
  return de_CommandError(output, context);
@@ -816,6 +1000,7 @@ const de_FairsharePolicy = (output, context) => {
816
1000
  };
817
1001
  const de_JobDefinition = (output, context) => {
818
1002
  return take(output, {
1003
+ consumableResourceProperties: _json,
819
1004
  containerOrchestrationType: __expectString,
820
1005
  containerProperties: _json,
821
1006
  ecsProperties: _json,
@@ -847,6 +1032,7 @@ const de_JobDetail = (output, context) => {
847
1032
  return take(output, {
848
1033
  arrayProperties: _json,
849
1034
  attempts: _json,
1035
+ consumableResourceProperties: _json,
850
1036
  container: _json,
851
1037
  createdAt: __expectLong,
852
1038
  dependsOn: _json,