@aws-sdk/client-batch 3.751.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 +17 -1
  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 +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 +4 -2
package/README.md CHANGED
@@ -229,6 +229,14 @@ CreateComputeEnvironment
229
229
 
230
230
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/batch/command/CreateComputeEnvironmentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/CreateComputeEnvironmentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/CreateComputeEnvironmentCommandOutput/)
231
231
 
232
+ </details>
233
+ <details>
234
+ <summary>
235
+ CreateConsumableResource
236
+ </summary>
237
+
238
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/batch/command/CreateConsumableResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/CreateConsumableResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/CreateConsumableResourceCommandOutput/)
239
+
232
240
  </details>
233
241
  <details>
234
242
  <summary>
@@ -253,6 +261,14 @@ DeleteComputeEnvironment
253
261
 
254
262
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/batch/command/DeleteComputeEnvironmentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/DeleteComputeEnvironmentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/DeleteComputeEnvironmentCommandOutput/)
255
263
 
264
+ </details>
265
+ <details>
266
+ <summary>
267
+ DeleteConsumableResource
268
+ </summary>
269
+
270
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/batch/command/DeleteConsumableResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/DeleteConsumableResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/DeleteConsumableResourceCommandOutput/)
271
+
256
272
  </details>
257
273
  <details>
258
274
  <summary>
@@ -285,6 +301,14 @@ DescribeComputeEnvironments
285
301
 
286
302
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/batch/command/DescribeComputeEnvironmentsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/DescribeComputeEnvironmentsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/DescribeComputeEnvironmentsCommandOutput/)
287
303
 
304
+ </details>
305
+ <details>
306
+ <summary>
307
+ DescribeConsumableResource
308
+ </summary>
309
+
310
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/batch/command/DescribeConsumableResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/DescribeConsumableResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/DescribeConsumableResourceCommandOutput/)
311
+
288
312
  </details>
289
313
  <details>
290
314
  <summary>
@@ -325,6 +349,14 @@ GetJobQueueSnapshot
325
349
 
326
350
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/batch/command/GetJobQueueSnapshotCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/GetJobQueueSnapshotCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/GetJobQueueSnapshotCommandOutput/)
327
351
 
352
+ </details>
353
+ <details>
354
+ <summary>
355
+ ListConsumableResources
356
+ </summary>
357
+
358
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/batch/command/ListConsumableResourcesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/ListConsumableResourcesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/ListConsumableResourcesCommandOutput/)
359
+
328
360
  </details>
329
361
  <details>
330
362
  <summary>
@@ -333,6 +365,14 @@ ListJobs
333
365
 
334
366
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/batch/command/ListJobsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/ListJobsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/ListJobsCommandOutput/)
335
367
 
368
+ </details>
369
+ <details>
370
+ <summary>
371
+ ListJobsByConsumableResource
372
+ </summary>
373
+
374
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/batch/command/ListJobsByConsumableResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/ListJobsByConsumableResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/ListJobsByConsumableResourceCommandOutput/)
375
+
336
376
  </details>
337
377
  <details>
338
378
  <summary>
@@ -397,6 +437,14 @@ UpdateComputeEnvironment
397
437
 
398
438
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/batch/command/UpdateComputeEnvironmentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/UpdateComputeEnvironmentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/UpdateComputeEnvironmentCommandOutput/)
399
439
 
440
+ </details>
441
+ <details>
442
+ <summary>
443
+ UpdateConsumableResource
444
+ </summary>
445
+
446
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/batch/command/UpdateConsumableResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/UpdateConsumableResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/UpdateConsumableResourceCommandOutput/)
447
+
400
448
  </details>
401
449
  <details>
402
450
  <summary>
package/dist-cjs/index.js CHANGED
@@ -35,13 +35,16 @@ __export(src_exports, {
35
35
  CancelJobCommand: () => CancelJobCommand,
36
36
  ClientException: () => ClientException,
37
37
  CreateComputeEnvironmentCommand: () => CreateComputeEnvironmentCommand,
38
+ CreateConsumableResourceCommand: () => CreateConsumableResourceCommand,
38
39
  CreateJobQueueCommand: () => CreateJobQueueCommand,
39
40
  CreateSchedulingPolicyCommand: () => CreateSchedulingPolicyCommand,
40
41
  DeleteComputeEnvironmentCommand: () => DeleteComputeEnvironmentCommand,
42
+ DeleteConsumableResourceCommand: () => DeleteConsumableResourceCommand,
41
43
  DeleteJobQueueCommand: () => DeleteJobQueueCommand,
42
44
  DeleteSchedulingPolicyCommand: () => DeleteSchedulingPolicyCommand,
43
45
  DeregisterJobDefinitionCommand: () => DeregisterJobDefinitionCommand,
44
46
  DescribeComputeEnvironmentsCommand: () => DescribeComputeEnvironmentsCommand,
47
+ DescribeConsumableResourceCommand: () => DescribeConsumableResourceCommand,
45
48
  DescribeJobDefinitionsCommand: () => DescribeJobDefinitionsCommand,
46
49
  DescribeJobQueuesCommand: () => DescribeJobQueuesCommand,
47
50
  DescribeJobsCommand: () => DescribeJobsCommand,
@@ -56,6 +59,8 @@ __export(src_exports, {
56
59
  JobStateTimeLimitActionsAction: () => JobStateTimeLimitActionsAction,
57
60
  JobStateTimeLimitActionsState: () => JobStateTimeLimitActionsState,
58
61
  JobStatus: () => JobStatus,
62
+ ListConsumableResourcesCommand: () => ListConsumableResourcesCommand,
63
+ ListJobsByConsumableResourceCommand: () => ListJobsByConsumableResourceCommand,
59
64
  ListJobsCommand: () => ListJobsCommand,
60
65
  ListSchedulingPoliciesCommand: () => ListSchedulingPoliciesCommand,
61
66
  ListTagsForResourceCommand: () => ListTagsForResourceCommand,
@@ -71,13 +76,16 @@ __export(src_exports, {
71
76
  TerminateJobCommand: () => TerminateJobCommand,
72
77
  UntagResourceCommand: () => UntagResourceCommand,
73
78
  UpdateComputeEnvironmentCommand: () => UpdateComputeEnvironmentCommand,
79
+ UpdateConsumableResourceCommand: () => UpdateConsumableResourceCommand,
74
80
  UpdateJobQueueCommand: () => UpdateJobQueueCommand,
75
81
  UpdateSchedulingPolicyCommand: () => UpdateSchedulingPolicyCommand,
76
82
  __Client: () => import_smithy_client.Client,
77
83
  paginateDescribeComputeEnvironments: () => paginateDescribeComputeEnvironments,
78
84
  paginateDescribeJobDefinitions: () => paginateDescribeJobDefinitions,
79
85
  paginateDescribeJobQueues: () => paginateDescribeJobQueues,
86
+ paginateListConsumableResources: () => paginateListConsumableResources,
80
87
  paginateListJobs: () => paginateListJobs,
88
+ paginateListJobsByConsumableResource: () => paginateListJobsByConsumableResource,
81
89
  paginateListSchedulingPolicies: () => paginateListSchedulingPolicies
82
90
  });
83
91
  module.exports = __toCommonJS(src_exports);
@@ -236,6 +244,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
236
244
  var import_core2 = require("@aws-sdk/core");
237
245
 
238
246
 
247
+ var import_uuid = require("uuid");
239
248
 
240
249
  // src/models/BatchServiceException.ts
241
250
 
@@ -441,6 +450,24 @@ var se_CreateComputeEnvironmentCommand = /* @__PURE__ */ __name(async (input, co
441
450
  b.m("POST").h(headers).b(body);
442
451
  return b.build();
443
452
  }, "se_CreateComputeEnvironmentCommand");
453
+ var se_CreateConsumableResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
454
+ const b = (0, import_core.requestBuilder)(input, context);
455
+ const headers = {
456
+ "content-type": "application/json"
457
+ };
458
+ b.bp("/v1/createconsumableresource");
459
+ let body;
460
+ body = JSON.stringify(
461
+ (0, import_smithy_client.take)(input, {
462
+ consumableResourceName: [],
463
+ resourceType: [],
464
+ tags: (_) => (0, import_smithy_client._json)(_),
465
+ totalQuantity: []
466
+ })
467
+ );
468
+ b.m("POST").h(headers).b(body);
469
+ return b.build();
470
+ }, "se_CreateConsumableResourceCommand");
444
471
  var se_CreateJobQueueCommand = /* @__PURE__ */ __name(async (input, context) => {
445
472
  const b = (0, import_core.requestBuilder)(input, context);
446
473
  const headers = {
@@ -494,6 +521,21 @@ var se_DeleteComputeEnvironmentCommand = /* @__PURE__ */ __name(async (input, co
494
521
  b.m("POST").h(headers).b(body);
495
522
  return b.build();
496
523
  }, "se_DeleteComputeEnvironmentCommand");
524
+ var se_DeleteConsumableResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
525
+ const b = (0, import_core.requestBuilder)(input, context);
526
+ const headers = {
527
+ "content-type": "application/json"
528
+ };
529
+ b.bp("/v1/deleteconsumableresource");
530
+ let body;
531
+ body = JSON.stringify(
532
+ (0, import_smithy_client.take)(input, {
533
+ consumableResource: []
534
+ })
535
+ );
536
+ b.m("POST").h(headers).b(body);
537
+ return b.build();
538
+ }, "se_DeleteConsumableResourceCommand");
497
539
  var se_DeleteJobQueueCommand = /* @__PURE__ */ __name(async (input, context) => {
498
540
  const b = (0, import_core.requestBuilder)(input, context);
499
541
  const headers = {
@@ -556,6 +598,21 @@ var se_DescribeComputeEnvironmentsCommand = /* @__PURE__ */ __name(async (input,
556
598
  b.m("POST").h(headers).b(body);
557
599
  return b.build();
558
600
  }, "se_DescribeComputeEnvironmentsCommand");
601
+ var se_DescribeConsumableResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
602
+ const b = (0, import_core.requestBuilder)(input, context);
603
+ const headers = {
604
+ "content-type": "application/json"
605
+ };
606
+ b.bp("/v1/describeconsumableresource");
607
+ let body;
608
+ body = JSON.stringify(
609
+ (0, import_smithy_client.take)(input, {
610
+ consumableResource: []
611
+ })
612
+ );
613
+ b.m("POST").h(headers).b(body);
614
+ return b.build();
615
+ }, "se_DescribeConsumableResourceCommand");
559
616
  var se_DescribeJobDefinitionsCommand = /* @__PURE__ */ __name(async (input, context) => {
560
617
  const b = (0, import_core.requestBuilder)(input, context);
561
618
  const headers = {
@@ -637,6 +694,23 @@ var se_GetJobQueueSnapshotCommand = /* @__PURE__ */ __name(async (input, context
637
694
  b.m("POST").h(headers).b(body);
638
695
  return b.build();
639
696
  }, "se_GetJobQueueSnapshotCommand");
697
+ var se_ListConsumableResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
698
+ const b = (0, import_core.requestBuilder)(input, context);
699
+ const headers = {
700
+ "content-type": "application/json"
701
+ };
702
+ b.bp("/v1/listconsumableresources");
703
+ let body;
704
+ body = JSON.stringify(
705
+ (0, import_smithy_client.take)(input, {
706
+ filters: (_) => (0, import_smithy_client._json)(_),
707
+ maxResults: [],
708
+ nextToken: []
709
+ })
710
+ );
711
+ b.m("POST").h(headers).b(body);
712
+ return b.build();
713
+ }, "se_ListConsumableResourcesCommand");
640
714
  var se_ListJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
641
715
  const b = (0, import_core.requestBuilder)(input, context);
642
716
  const headers = {
@@ -658,6 +732,24 @@ var se_ListJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
658
732
  b.m("POST").h(headers).b(body);
659
733
  return b.build();
660
734
  }, "se_ListJobsCommand");
735
+ var se_ListJobsByConsumableResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
736
+ const b = (0, import_core.requestBuilder)(input, context);
737
+ const headers = {
738
+ "content-type": "application/json"
739
+ };
740
+ b.bp("/v1/listjobsbyconsumableresource");
741
+ let body;
742
+ body = JSON.stringify(
743
+ (0, import_smithy_client.take)(input, {
744
+ consumableResource: [],
745
+ filters: (_) => (0, import_smithy_client._json)(_),
746
+ maxResults: [],
747
+ nextToken: []
748
+ })
749
+ );
750
+ b.m("POST").h(headers).b(body);
751
+ return b.build();
752
+ }, "se_ListJobsByConsumableResourceCommand");
661
753
  var se_ListSchedulingPoliciesCommand = /* @__PURE__ */ __name(async (input, context) => {
662
754
  const b = (0, import_core.requestBuilder)(input, context);
663
755
  const headers = {
@@ -692,6 +784,7 @@ var se_RegisterJobDefinitionCommand = /* @__PURE__ */ __name(async (input, conte
692
784
  let body;
693
785
  body = JSON.stringify(
694
786
  (0, import_smithy_client.take)(input, {
787
+ consumableResourceProperties: (_) => (0, import_smithy_client._json)(_),
695
788
  containerProperties: (_) => (0, import_smithy_client._json)(_),
696
789
  ecsProperties: (_) => (0, import_smithy_client._json)(_),
697
790
  eksProperties: (_) => (0, import_smithy_client._json)(_),
@@ -720,6 +813,7 @@ var se_SubmitJobCommand = /* @__PURE__ */ __name(async (input, context) => {
720
813
  body = JSON.stringify(
721
814
  (0, import_smithy_client.take)(input, {
722
815
  arrayProperties: (_) => (0, import_smithy_client._json)(_),
816
+ consumableResourcePropertiesOverride: (_) => (0, import_smithy_client._json)(_),
723
817
  containerOverrides: (_) => (0, import_smithy_client._json)(_),
724
818
  dependsOn: (_) => (0, import_smithy_client._json)(_),
725
819
  ecsPropertiesOverride: (_) => (0, import_smithy_client._json)(_),
@@ -805,6 +899,24 @@ var se_UpdateComputeEnvironmentCommand = /* @__PURE__ */ __name(async (input, co
805
899
  b.m("POST").h(headers).b(body);
806
900
  return b.build();
807
901
  }, "se_UpdateComputeEnvironmentCommand");
902
+ var se_UpdateConsumableResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
903
+ const b = (0, import_core.requestBuilder)(input, context);
904
+ const headers = {
905
+ "content-type": "application/json"
906
+ };
907
+ b.bp("/v1/updateconsumableresource");
908
+ let body;
909
+ body = JSON.stringify(
910
+ (0, import_smithy_client.take)(input, {
911
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
912
+ consumableResource: [],
913
+ operation: [],
914
+ quantity: []
915
+ })
916
+ );
917
+ b.m("POST").h(headers).b(body);
918
+ return b.build();
919
+ }, "se_UpdateConsumableResourceCommand");
808
920
  var se_UpdateJobQueueCommand = /* @__PURE__ */ __name(async (input, context) => {
809
921
  const b = (0, import_core.requestBuilder)(input, context);
810
922
  const headers = {
@@ -866,6 +978,21 @@ var de_CreateComputeEnvironmentCommand = /* @__PURE__ */ __name(async (output, c
866
978
  Object.assign(contents, doc);
867
979
  return contents;
868
980
  }, "de_CreateComputeEnvironmentCommand");
981
+ var de_CreateConsumableResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
982
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
983
+ return de_CommandError(output, context);
984
+ }
985
+ const contents = (0, import_smithy_client.map)({
986
+ $metadata: deserializeMetadata(output)
987
+ });
988
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
989
+ const doc = (0, import_smithy_client.take)(data, {
990
+ consumableResourceArn: import_smithy_client.expectString,
991
+ consumableResourceName: import_smithy_client.expectString
992
+ });
993
+ Object.assign(contents, doc);
994
+ return contents;
995
+ }, "de_CreateConsumableResourceCommand");
869
996
  var de_CreateJobQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
870
997
  if (output.statusCode !== 200 && output.statusCode >= 300) {
871
998
  return de_CommandError(output, context);
@@ -906,6 +1033,16 @@ var de_DeleteComputeEnvironmentCommand = /* @__PURE__ */ __name(async (output, c
906
1033
  await (0, import_smithy_client.collectBody)(output.body, context);
907
1034
  return contents;
908
1035
  }, "de_DeleteComputeEnvironmentCommand");
1036
+ var de_DeleteConsumableResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1037
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1038
+ return de_CommandError(output, context);
1039
+ }
1040
+ const contents = (0, import_smithy_client.map)({
1041
+ $metadata: deserializeMetadata(output)
1042
+ });
1043
+ await (0, import_smithy_client.collectBody)(output.body, context);
1044
+ return contents;
1045
+ }, "de_DeleteConsumableResourceCommand");
909
1046
  var de_DeleteJobQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
910
1047
  if (output.statusCode !== 200 && output.statusCode >= 300) {
911
1048
  return de_CommandError(output, context);
@@ -951,6 +1088,27 @@ var de_DescribeComputeEnvironmentsCommand = /* @__PURE__ */ __name(async (output
951
1088
  Object.assign(contents, doc);
952
1089
  return contents;
953
1090
  }, "de_DescribeComputeEnvironmentsCommand");
1091
+ var de_DescribeConsumableResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1092
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1093
+ return de_CommandError(output, context);
1094
+ }
1095
+ const contents = (0, import_smithy_client.map)({
1096
+ $metadata: deserializeMetadata(output)
1097
+ });
1098
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1099
+ const doc = (0, import_smithy_client.take)(data, {
1100
+ availableQuantity: import_smithy_client.expectLong,
1101
+ consumableResourceArn: import_smithy_client.expectString,
1102
+ consumableResourceName: import_smithy_client.expectString,
1103
+ createdAt: import_smithy_client.expectLong,
1104
+ inUseQuantity: import_smithy_client.expectLong,
1105
+ resourceType: import_smithy_client.expectString,
1106
+ tags: import_smithy_client._json,
1107
+ totalQuantity: import_smithy_client.expectLong
1108
+ });
1109
+ Object.assign(contents, doc);
1110
+ return contents;
1111
+ }, "de_DescribeConsumableResourceCommand");
954
1112
  var de_DescribeJobDefinitionsCommand = /* @__PURE__ */ __name(async (output, context) => {
955
1113
  if (output.statusCode !== 200 && output.statusCode >= 300) {
956
1114
  return de_CommandError(output, context);
@@ -1023,6 +1181,21 @@ var de_GetJobQueueSnapshotCommand = /* @__PURE__ */ __name(async (output, contex
1023
1181
  Object.assign(contents, doc);
1024
1182
  return contents;
1025
1183
  }, "de_GetJobQueueSnapshotCommand");
1184
+ var de_ListConsumableResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
1185
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1186
+ return de_CommandError(output, context);
1187
+ }
1188
+ const contents = (0, import_smithy_client.map)({
1189
+ $metadata: deserializeMetadata(output)
1190
+ });
1191
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1192
+ const doc = (0, import_smithy_client.take)(data, {
1193
+ consumableResources: import_smithy_client._json,
1194
+ nextToken: import_smithy_client.expectString
1195
+ });
1196
+ Object.assign(contents, doc);
1197
+ return contents;
1198
+ }, "de_ListConsumableResourcesCommand");
1026
1199
  var de_ListJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
1027
1200
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1028
1201
  return de_CommandError(output, context);
@@ -1038,6 +1211,21 @@ var de_ListJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
1038
1211
  Object.assign(contents, doc);
1039
1212
  return contents;
1040
1213
  }, "de_ListJobsCommand");
1214
+ var de_ListJobsByConsumableResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1215
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1216
+ return de_CommandError(output, context);
1217
+ }
1218
+ const contents = (0, import_smithy_client.map)({
1219
+ $metadata: deserializeMetadata(output)
1220
+ });
1221
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1222
+ const doc = (0, import_smithy_client.take)(data, {
1223
+ jobs: import_smithy_client._json,
1224
+ nextToken: import_smithy_client.expectString
1225
+ });
1226
+ Object.assign(contents, doc);
1227
+ return contents;
1228
+ }, "de_ListJobsByConsumableResourceCommand");
1041
1229
  var de_ListSchedulingPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
1042
1230
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1043
1231
  return de_CommandError(output, context);
@@ -1144,6 +1332,22 @@ var de_UpdateComputeEnvironmentCommand = /* @__PURE__ */ __name(async (output, c
1144
1332
  Object.assign(contents, doc);
1145
1333
  return contents;
1146
1334
  }, "de_UpdateComputeEnvironmentCommand");
1335
+ var de_UpdateConsumableResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1336
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1337
+ return de_CommandError(output, context);
1338
+ }
1339
+ const contents = (0, import_smithy_client.map)({
1340
+ $metadata: deserializeMetadata(output)
1341
+ });
1342
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1343
+ const doc = (0, import_smithy_client.take)(data, {
1344
+ consumableResourceArn: import_smithy_client.expectString,
1345
+ consumableResourceName: import_smithy_client.expectString,
1346
+ totalQuantity: import_smithy_client.expectLong
1347
+ });
1348
+ Object.assign(contents, doc);
1349
+ return contents;
1350
+ }, "de_UpdateConsumableResourceCommand");
1147
1351
  var de_UpdateJobQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
1148
1352
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1149
1353
  return de_CommandError(output, context);
@@ -1257,6 +1461,7 @@ var de_FairsharePolicy = /* @__PURE__ */ __name((output, context) => {
1257
1461
  }, "de_FairsharePolicy");
1258
1462
  var de_JobDefinition = /* @__PURE__ */ __name((output, context) => {
1259
1463
  return (0, import_smithy_client.take)(output, {
1464
+ consumableResourceProperties: import_smithy_client._json,
1260
1465
  containerOrchestrationType: import_smithy_client.expectString,
1261
1466
  containerProperties: import_smithy_client._json,
1262
1467
  ecsProperties: import_smithy_client._json,
@@ -1286,6 +1491,7 @@ var de_JobDetail = /* @__PURE__ */ __name((output, context) => {
1286
1491
  return (0, import_smithy_client.take)(output, {
1287
1492
  arrayProperties: import_smithy_client._json,
1288
1493
  attempts: import_smithy_client._json,
1494
+ consumableResourceProperties: import_smithy_client._json,
1289
1495
  container: import_smithy_client._json,
1290
1496
  createdAt: import_smithy_client.expectLong,
1291
1497
  dependsOn: import_smithy_client._json,
@@ -1395,6 +1601,21 @@ var CreateComputeEnvironmentCommand = class extends import_smithy_client.Command
1395
1601
  }
1396
1602
  };
1397
1603
 
1604
+ // src/commands/CreateConsumableResourceCommand.ts
1605
+
1606
+
1607
+
1608
+ var CreateConsumableResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1609
+ return [
1610
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1611
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1612
+ ];
1613
+ }).s("AWSBatchV20160810", "CreateConsumableResource", {}).n("BatchClient", "CreateConsumableResourceCommand").f(void 0, void 0).ser(se_CreateConsumableResourceCommand).de(de_CreateConsumableResourceCommand).build() {
1614
+ static {
1615
+ __name(this, "CreateConsumableResourceCommand");
1616
+ }
1617
+ };
1618
+
1398
1619
  // src/commands/CreateJobQueueCommand.ts
1399
1620
 
1400
1621
 
@@ -1440,6 +1661,21 @@ var DeleteComputeEnvironmentCommand = class extends import_smithy_client.Command
1440
1661
  }
1441
1662
  };
1442
1663
 
1664
+ // src/commands/DeleteConsumableResourceCommand.ts
1665
+
1666
+
1667
+
1668
+ var DeleteConsumableResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1669
+ return [
1670
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1671
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1672
+ ];
1673
+ }).s("AWSBatchV20160810", "DeleteConsumableResource", {}).n("BatchClient", "DeleteConsumableResourceCommand").f(void 0, void 0).ser(se_DeleteConsumableResourceCommand).de(de_DeleteConsumableResourceCommand).build() {
1674
+ static {
1675
+ __name(this, "DeleteConsumableResourceCommand");
1676
+ }
1677
+ };
1678
+
1443
1679
  // src/commands/DeleteJobQueueCommand.ts
1444
1680
 
1445
1681
 
@@ -1500,6 +1736,21 @@ var DescribeComputeEnvironmentsCommand = class extends import_smithy_client.Comm
1500
1736
  }
1501
1737
  };
1502
1738
 
1739
+ // src/commands/DescribeConsumableResourceCommand.ts
1740
+
1741
+
1742
+
1743
+ var DescribeConsumableResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1744
+ return [
1745
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1746
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1747
+ ];
1748
+ }).s("AWSBatchV20160810", "DescribeConsumableResource", {}).n("BatchClient", "DescribeConsumableResourceCommand").f(void 0, void 0).ser(se_DescribeConsumableResourceCommand).de(de_DescribeConsumableResourceCommand).build() {
1749
+ static {
1750
+ __name(this, "DescribeConsumableResourceCommand");
1751
+ }
1752
+ };
1753
+
1503
1754
  // src/commands/DescribeJobDefinitionsCommand.ts
1504
1755
 
1505
1756
 
@@ -1575,6 +1826,36 @@ var GetJobQueueSnapshotCommand = class extends import_smithy_client.Command.clas
1575
1826
  }
1576
1827
  };
1577
1828
 
1829
+ // src/commands/ListConsumableResourcesCommand.ts
1830
+
1831
+
1832
+
1833
+ var ListConsumableResourcesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1834
+ return [
1835
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1836
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1837
+ ];
1838
+ }).s("AWSBatchV20160810", "ListConsumableResources", {}).n("BatchClient", "ListConsumableResourcesCommand").f(void 0, void 0).ser(se_ListConsumableResourcesCommand).de(de_ListConsumableResourcesCommand).build() {
1839
+ static {
1840
+ __name(this, "ListConsumableResourcesCommand");
1841
+ }
1842
+ };
1843
+
1844
+ // src/commands/ListJobsByConsumableResourceCommand.ts
1845
+
1846
+
1847
+
1848
+ var ListJobsByConsumableResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1849
+ return [
1850
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1851
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1852
+ ];
1853
+ }).s("AWSBatchV20160810", "ListJobsByConsumableResource", {}).n("BatchClient", "ListJobsByConsumableResourceCommand").f(void 0, void 0).ser(se_ListJobsByConsumableResourceCommand).de(de_ListJobsByConsumableResourceCommand).build() {
1854
+ static {
1855
+ __name(this, "ListJobsByConsumableResourceCommand");
1856
+ }
1857
+ };
1858
+
1578
1859
  // src/commands/ListJobsCommand.ts
1579
1860
 
1580
1861
 
@@ -1710,6 +1991,21 @@ var UpdateComputeEnvironmentCommand = class extends import_smithy_client.Command
1710
1991
  }
1711
1992
  };
1712
1993
 
1994
+ // src/commands/UpdateConsumableResourceCommand.ts
1995
+
1996
+
1997
+
1998
+ var UpdateConsumableResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1999
+ return [
2000
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2001
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2002
+ ];
2003
+ }).s("AWSBatchV20160810", "UpdateConsumableResource", {}).n("BatchClient", "UpdateConsumableResourceCommand").f(void 0, void 0).ser(se_UpdateConsumableResourceCommand).de(de_UpdateConsumableResourceCommand).build() {
2004
+ static {
2005
+ __name(this, "UpdateConsumableResourceCommand");
2006
+ }
2007
+ };
2008
+
1713
2009
  // src/commands/UpdateJobQueueCommand.ts
1714
2010
 
1715
2011
 
@@ -1744,19 +2040,24 @@ var UpdateSchedulingPolicyCommand = class extends import_smithy_client.Command.c
1744
2040
  var commands = {
1745
2041
  CancelJobCommand,
1746
2042
  CreateComputeEnvironmentCommand,
2043
+ CreateConsumableResourceCommand,
1747
2044
  CreateJobQueueCommand,
1748
2045
  CreateSchedulingPolicyCommand,
1749
2046
  DeleteComputeEnvironmentCommand,
2047
+ DeleteConsumableResourceCommand,
1750
2048
  DeleteJobQueueCommand,
1751
2049
  DeleteSchedulingPolicyCommand,
1752
2050
  DeregisterJobDefinitionCommand,
1753
2051
  DescribeComputeEnvironmentsCommand,
2052
+ DescribeConsumableResourceCommand,
1754
2053
  DescribeJobDefinitionsCommand,
1755
2054
  DescribeJobQueuesCommand,
1756
2055
  DescribeJobsCommand,
1757
2056
  DescribeSchedulingPoliciesCommand,
1758
2057
  GetJobQueueSnapshotCommand,
2058
+ ListConsumableResourcesCommand,
1759
2059
  ListJobsCommand,
2060
+ ListJobsByConsumableResourceCommand,
1760
2061
  ListSchedulingPoliciesCommand,
1761
2062
  ListTagsForResourceCommand,
1762
2063
  RegisterJobDefinitionCommand,
@@ -1765,6 +2066,7 @@ var commands = {
1765
2066
  TerminateJobCommand,
1766
2067
  UntagResourceCommand,
1767
2068
  UpdateComputeEnvironmentCommand,
2069
+ UpdateConsumableResourceCommand,
1768
2070
  UpdateJobQueueCommand,
1769
2071
  UpdateSchedulingPolicyCommand
1770
2072
  };
@@ -1787,6 +2089,14 @@ var paginateDescribeJobDefinitions = (0, import_core.createPaginator)(BatchClien
1787
2089
 
1788
2090
  var paginateDescribeJobQueues = (0, import_core.createPaginator)(BatchClient, DescribeJobQueuesCommand, "nextToken", "nextToken", "maxResults");
1789
2091
 
2092
+ // src/pagination/ListConsumableResourcesPaginator.ts
2093
+
2094
+ var paginateListConsumableResources = (0, import_core.createPaginator)(BatchClient, ListConsumableResourcesCommand, "nextToken", "nextToken", "maxResults");
2095
+
2096
+ // src/pagination/ListJobsByConsumableResourcePaginator.ts
2097
+
2098
+ var paginateListJobsByConsumableResource = (0, import_core.createPaginator)(BatchClient, ListJobsByConsumableResourceCommand, "nextToken", "nextToken", "maxResults");
2099
+
1790
2100
  // src/pagination/ListJobsPaginator.ts
1791
2101
 
1792
2102
  var paginateListJobs = (0, import_core.createPaginator)(BatchClient, ListJobsCommand, "nextToken", "nextToken", "maxResults");
@@ -1804,18 +2114,23 @@ var paginateListSchedulingPolicies = (0, import_core.createPaginator)(BatchClien
1804
2114
  $Command,
1805
2115
  CancelJobCommand,
1806
2116
  CreateComputeEnvironmentCommand,
2117
+ CreateConsumableResourceCommand,
1807
2118
  CreateJobQueueCommand,
1808
2119
  CreateSchedulingPolicyCommand,
1809
2120
  DeleteComputeEnvironmentCommand,
2121
+ DeleteConsumableResourceCommand,
1810
2122
  DeleteJobQueueCommand,
1811
2123
  DeleteSchedulingPolicyCommand,
1812
2124
  DeregisterJobDefinitionCommand,
1813
2125
  DescribeComputeEnvironmentsCommand,
2126
+ DescribeConsumableResourceCommand,
1814
2127
  DescribeJobDefinitionsCommand,
1815
2128
  DescribeJobQueuesCommand,
1816
2129
  DescribeJobsCommand,
1817
2130
  DescribeSchedulingPoliciesCommand,
1818
2131
  GetJobQueueSnapshotCommand,
2132
+ ListConsumableResourcesCommand,
2133
+ ListJobsByConsumableResourceCommand,
1819
2134
  ListJobsCommand,
1820
2135
  ListSchedulingPoliciesCommand,
1821
2136
  ListTagsForResourceCommand,
@@ -1825,11 +2140,14 @@ var paginateListSchedulingPolicies = (0, import_core.createPaginator)(BatchClien
1825
2140
  TerminateJobCommand,
1826
2141
  UntagResourceCommand,
1827
2142
  UpdateComputeEnvironmentCommand,
2143
+ UpdateConsumableResourceCommand,
1828
2144
  UpdateJobQueueCommand,
1829
2145
  UpdateSchedulingPolicyCommand,
1830
2146
  paginateDescribeComputeEnvironments,
1831
2147
  paginateDescribeJobDefinitions,
1832
2148
  paginateDescribeJobQueues,
2149
+ paginateListConsumableResources,
2150
+ paginateListJobsByConsumableResource,
1833
2151
  paginateListJobs,
1834
2152
  paginateListSchedulingPolicies,
1835
2153
  ArrayJobDependency,