@aws-sdk/client-batch 3.1012.0 → 3.1014.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 (52) hide show
  1. package/README.md +42 -0
  2. package/dist-cjs/index.js +116 -0
  3. package/dist-cjs/schemas/schemas_0.js +244 -25
  4. package/dist-es/Batch.js +14 -0
  5. package/dist-es/commands/CreateQuotaShareCommand.js +16 -0
  6. package/dist-es/commands/DeleteQuotaShareCommand.js +16 -0
  7. package/dist-es/commands/DescribeQuotaShareCommand.js +16 -0
  8. package/dist-es/commands/ListQuotaSharesCommand.js +16 -0
  9. package/dist-es/commands/UpdateQuotaShareCommand.js +16 -0
  10. package/dist-es/commands/UpdateServiceJobCommand.js +16 -0
  11. package/dist-es/commands/index.js +6 -0
  12. package/dist-es/models/enums.js +23 -0
  13. package/dist-es/pagination/ListQuotaSharesPaginator.js +4 -0
  14. package/dist-es/pagination/index.js +1 -0
  15. package/dist-es/schemas/schemas_0.js +238 -20
  16. package/dist-types/Batch.d.ts +49 -0
  17. package/dist-types/BatchClient.d.ts +8 -2
  18. package/dist-types/commands/CreateQuotaShareCommand.d.ts +101 -0
  19. package/dist-types/commands/CreateSchedulingPolicyCommand.d.ts +3 -0
  20. package/dist-types/commands/DeleteJobQueueCommand.d.ts +1 -2
  21. package/dist-types/commands/DeleteQuotaShareCommand.d.ts +82 -0
  22. package/dist-types/commands/DescribeQuotaShareCommand.d.ts +102 -0
  23. package/dist-types/commands/DescribeSchedulingPoliciesCommand.d.ts +3 -0
  24. package/dist-types/commands/DescribeServiceJobCommand.d.ts +15 -0
  25. package/dist-types/commands/GetJobQueueSnapshotCommand.d.ts +28 -2
  26. package/dist-types/commands/ListQuotaSharesCommand.d.ts +106 -0
  27. package/dist-types/commands/ListServiceJobsCommand.d.ts +1 -0
  28. package/dist-types/commands/SubmitServiceJobCommand.d.ts +4 -0
  29. package/dist-types/commands/UpdateQuotaShareCommand.d.ts +97 -0
  30. package/dist-types/commands/UpdateSchedulingPolicyCommand.d.ts +3 -0
  31. package/dist-types/commands/UpdateServiceJobCommand.d.ts +85 -0
  32. package/dist-types/commands/index.d.ts +6 -0
  33. package/dist-types/models/enums.d.ts +63 -0
  34. package/dist-types/models/models_0.d.ts +596 -18
  35. package/dist-types/pagination/ListQuotaSharesPaginator.d.ts +7 -0
  36. package/dist-types/pagination/index.d.ts +1 -0
  37. package/dist-types/schemas/schemas_0.d.ts +31 -0
  38. package/dist-types/ts3.4/Batch.d.ts +109 -0
  39. package/dist-types/ts3.4/BatchClient.d.ts +38 -2
  40. package/dist-types/ts3.4/commands/CreateQuotaShareCommand.d.ts +50 -0
  41. package/dist-types/ts3.4/commands/DeleteQuotaShareCommand.d.ts +50 -0
  42. package/dist-types/ts3.4/commands/DescribeQuotaShareCommand.d.ts +51 -0
  43. package/dist-types/ts3.4/commands/ListQuotaSharesCommand.d.ts +50 -0
  44. package/dist-types/ts3.4/commands/UpdateQuotaShareCommand.d.ts +50 -0
  45. package/dist-types/ts3.4/commands/UpdateServiceJobCommand.d.ts +50 -0
  46. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  47. package/dist-types/ts3.4/models/enums.d.ts +33 -0
  48. package/dist-types/ts3.4/models/models_0.d.ts +142 -0
  49. package/dist-types/ts3.4/pagination/ListQuotaSharesPaginator.d.ts +11 -0
  50. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  51. package/dist-types/ts3.4/schemas/schemas_0.d.ts +31 -0
  52. package/package.json +12 -12
package/dist-es/Batch.js CHANGED
@@ -4,11 +4,13 @@ import { CancelJobCommand } from "./commands/CancelJobCommand";
4
4
  import { CreateComputeEnvironmentCommand, } from "./commands/CreateComputeEnvironmentCommand";
5
5
  import { CreateConsumableResourceCommand, } from "./commands/CreateConsumableResourceCommand";
6
6
  import { CreateJobQueueCommand, } from "./commands/CreateJobQueueCommand";
7
+ import { CreateQuotaShareCommand, } from "./commands/CreateQuotaShareCommand";
7
8
  import { CreateSchedulingPolicyCommand, } from "./commands/CreateSchedulingPolicyCommand";
8
9
  import { CreateServiceEnvironmentCommand, } from "./commands/CreateServiceEnvironmentCommand";
9
10
  import { DeleteComputeEnvironmentCommand, } from "./commands/DeleteComputeEnvironmentCommand";
10
11
  import { DeleteConsumableResourceCommand, } from "./commands/DeleteConsumableResourceCommand";
11
12
  import { DeleteJobQueueCommand, } from "./commands/DeleteJobQueueCommand";
13
+ import { DeleteQuotaShareCommand, } from "./commands/DeleteQuotaShareCommand";
12
14
  import { DeleteSchedulingPolicyCommand, } from "./commands/DeleteSchedulingPolicyCommand";
13
15
  import { DeleteServiceEnvironmentCommand, } from "./commands/DeleteServiceEnvironmentCommand";
14
16
  import { DeregisterJobDefinitionCommand, } from "./commands/DeregisterJobDefinitionCommand";
@@ -17,6 +19,7 @@ import { DescribeConsumableResourceCommand, } from "./commands/DescribeConsumabl
17
19
  import { DescribeJobDefinitionsCommand, } from "./commands/DescribeJobDefinitionsCommand";
18
20
  import { DescribeJobQueuesCommand, } from "./commands/DescribeJobQueuesCommand";
19
21
  import { DescribeJobsCommand, } from "./commands/DescribeJobsCommand";
22
+ import { DescribeQuotaShareCommand, } from "./commands/DescribeQuotaShareCommand";
20
23
  import { DescribeSchedulingPoliciesCommand, } from "./commands/DescribeSchedulingPoliciesCommand";
21
24
  import { DescribeServiceEnvironmentsCommand, } from "./commands/DescribeServiceEnvironmentsCommand";
22
25
  import { DescribeServiceJobCommand, } from "./commands/DescribeServiceJobCommand";
@@ -24,6 +27,7 @@ import { GetJobQueueSnapshotCommand, } from "./commands/GetJobQueueSnapshotComma
24
27
  import { ListConsumableResourcesCommand, } from "./commands/ListConsumableResourcesCommand";
25
28
  import { ListJobsByConsumableResourceCommand, } from "./commands/ListJobsByConsumableResourceCommand";
26
29
  import { ListJobsCommand } from "./commands/ListJobsCommand";
30
+ import { ListQuotaSharesCommand, } from "./commands/ListQuotaSharesCommand";
27
31
  import { ListSchedulingPoliciesCommand, } from "./commands/ListSchedulingPoliciesCommand";
28
32
  import { ListServiceJobsCommand, } from "./commands/ListServiceJobsCommand";
29
33
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
@@ -37,8 +41,10 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
37
41
  import { UpdateComputeEnvironmentCommand, } from "./commands/UpdateComputeEnvironmentCommand";
38
42
  import { UpdateConsumableResourceCommand, } from "./commands/UpdateConsumableResourceCommand";
39
43
  import { UpdateJobQueueCommand, } from "./commands/UpdateJobQueueCommand";
44
+ import { UpdateQuotaShareCommand, } from "./commands/UpdateQuotaShareCommand";
40
45
  import { UpdateSchedulingPolicyCommand, } from "./commands/UpdateSchedulingPolicyCommand";
41
46
  import { UpdateServiceEnvironmentCommand, } from "./commands/UpdateServiceEnvironmentCommand";
47
+ import { UpdateServiceJobCommand, } from "./commands/UpdateServiceJobCommand";
42
48
  import { paginateDescribeComputeEnvironments } from "./pagination/DescribeComputeEnvironmentsPaginator";
43
49
  import { paginateDescribeJobDefinitions } from "./pagination/DescribeJobDefinitionsPaginator";
44
50
  import { paginateDescribeJobQueues } from "./pagination/DescribeJobQueuesPaginator";
@@ -46,6 +52,7 @@ import { paginateDescribeServiceEnvironments } from "./pagination/DescribeServic
46
52
  import { paginateListConsumableResources } from "./pagination/ListConsumableResourcesPaginator";
47
53
  import { paginateListJobsByConsumableResource } from "./pagination/ListJobsByConsumableResourcePaginator";
48
54
  import { paginateListJobs } from "./pagination/ListJobsPaginator";
55
+ import { paginateListQuotaShares } from "./pagination/ListQuotaSharesPaginator";
49
56
  import { paginateListSchedulingPolicies } from "./pagination/ListSchedulingPoliciesPaginator";
50
57
  import { paginateListServiceJobs } from "./pagination/ListServiceJobsPaginator";
51
58
  const commands = {
@@ -53,11 +60,13 @@ const commands = {
53
60
  CreateComputeEnvironmentCommand,
54
61
  CreateConsumableResourceCommand,
55
62
  CreateJobQueueCommand,
63
+ CreateQuotaShareCommand,
56
64
  CreateSchedulingPolicyCommand,
57
65
  CreateServiceEnvironmentCommand,
58
66
  DeleteComputeEnvironmentCommand,
59
67
  DeleteConsumableResourceCommand,
60
68
  DeleteJobQueueCommand,
69
+ DeleteQuotaShareCommand,
61
70
  DeleteSchedulingPolicyCommand,
62
71
  DeleteServiceEnvironmentCommand,
63
72
  DeregisterJobDefinitionCommand,
@@ -66,6 +75,7 @@ const commands = {
66
75
  DescribeJobDefinitionsCommand,
67
76
  DescribeJobQueuesCommand,
68
77
  DescribeJobsCommand,
78
+ DescribeQuotaShareCommand,
69
79
  DescribeSchedulingPoliciesCommand,
70
80
  DescribeServiceEnvironmentsCommand,
71
81
  DescribeServiceJobCommand,
@@ -73,6 +83,7 @@ const commands = {
73
83
  ListConsumableResourcesCommand,
74
84
  ListJobsCommand,
75
85
  ListJobsByConsumableResourceCommand,
86
+ ListQuotaSharesCommand,
76
87
  ListSchedulingPoliciesCommand,
77
88
  ListServiceJobsCommand,
78
89
  ListTagsForResourceCommand,
@@ -86,8 +97,10 @@ const commands = {
86
97
  UpdateComputeEnvironmentCommand,
87
98
  UpdateConsumableResourceCommand,
88
99
  UpdateJobQueueCommand,
100
+ UpdateQuotaShareCommand,
89
101
  UpdateSchedulingPolicyCommand,
90
102
  UpdateServiceEnvironmentCommand,
103
+ UpdateServiceJobCommand,
91
104
  };
92
105
  const paginators = {
93
106
  paginateDescribeComputeEnvironments,
@@ -97,6 +110,7 @@ const paginators = {
97
110
  paginateListConsumableResources,
98
111
  paginateListJobs,
99
112
  paginateListJobsByConsumableResource,
113
+ paginateListQuotaShares,
100
114
  paginateListSchedulingPolicies,
101
115
  paginateListServiceJobs,
102
116
  };
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { CreateQuotaShare$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class CreateQuotaShareCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AWSBatchV20160810", "CreateQuotaShare", {})
13
+ .n("BatchClient", "CreateQuotaShareCommand")
14
+ .sc(CreateQuotaShare$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DeleteQuotaShare$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class DeleteQuotaShareCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AWSBatchV20160810", "DeleteQuotaShare", {})
13
+ .n("BatchClient", "DeleteQuotaShareCommand")
14
+ .sc(DeleteQuotaShare$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DescribeQuotaShare$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class DescribeQuotaShareCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AWSBatchV20160810", "DescribeQuotaShare", {})
13
+ .n("BatchClient", "DescribeQuotaShareCommand")
14
+ .sc(DescribeQuotaShare$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListQuotaShares$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListQuotaSharesCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AWSBatchV20160810", "ListQuotaShares", {})
13
+ .n("BatchClient", "ListQuotaSharesCommand")
14
+ .sc(ListQuotaShares$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UpdateQuotaShare$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class UpdateQuotaShareCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AWSBatchV20160810", "UpdateQuotaShare", {})
13
+ .n("BatchClient", "UpdateQuotaShareCommand")
14
+ .sc(UpdateQuotaShare$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UpdateServiceJob$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class UpdateServiceJobCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AWSBatchV20160810", "UpdateServiceJob", {})
13
+ .n("BatchClient", "UpdateServiceJobCommand")
14
+ .sc(UpdateServiceJob$)
15
+ .build() {
16
+ }
@@ -2,11 +2,13 @@ export * from "./CancelJobCommand";
2
2
  export * from "./CreateComputeEnvironmentCommand";
3
3
  export * from "./CreateConsumableResourceCommand";
4
4
  export * from "./CreateJobQueueCommand";
5
+ export * from "./CreateQuotaShareCommand";
5
6
  export * from "./CreateSchedulingPolicyCommand";
6
7
  export * from "./CreateServiceEnvironmentCommand";
7
8
  export * from "./DeleteComputeEnvironmentCommand";
8
9
  export * from "./DeleteConsumableResourceCommand";
9
10
  export * from "./DeleteJobQueueCommand";
11
+ export * from "./DeleteQuotaShareCommand";
10
12
  export * from "./DeleteSchedulingPolicyCommand";
11
13
  export * from "./DeleteServiceEnvironmentCommand";
12
14
  export * from "./DeregisterJobDefinitionCommand";
@@ -15,6 +17,7 @@ export * from "./DescribeConsumableResourceCommand";
15
17
  export * from "./DescribeJobDefinitionsCommand";
16
18
  export * from "./DescribeJobQueuesCommand";
17
19
  export * from "./DescribeJobsCommand";
20
+ export * from "./DescribeQuotaShareCommand";
18
21
  export * from "./DescribeSchedulingPoliciesCommand";
19
22
  export * from "./DescribeServiceEnvironmentsCommand";
20
23
  export * from "./DescribeServiceJobCommand";
@@ -22,6 +25,7 @@ export * from "./GetJobQueueSnapshotCommand";
22
25
  export * from "./ListConsumableResourcesCommand";
23
26
  export * from "./ListJobsByConsumableResourceCommand";
24
27
  export * from "./ListJobsCommand";
28
+ export * from "./ListQuotaSharesCommand";
25
29
  export * from "./ListSchedulingPoliciesCommand";
26
30
  export * from "./ListServiceJobsCommand";
27
31
  export * from "./ListTagsForResourceCommand";
@@ -35,5 +39,7 @@ export * from "./UntagResourceCommand";
35
39
  export * from "./UpdateComputeEnvironmentCommand";
36
40
  export * from "./UpdateConsumableResourceCommand";
37
41
  export * from "./UpdateJobQueueCommand";
42
+ export * from "./UpdateQuotaShareCommand";
38
43
  export * from "./UpdateSchedulingPolicyCommand";
39
44
  export * from "./UpdateServiceEnvironmentCommand";
45
+ export * from "./UpdateServiceJobCommand";
@@ -47,6 +47,22 @@ export const JQState = {
47
47
  DISABLED: "DISABLED",
48
48
  ENABLED: "ENABLED",
49
49
  };
50
+ export const QuotaShareInSharePreemptionState = {
51
+ DISABLED: "DISABLED",
52
+ ENABLED: "ENABLED",
53
+ };
54
+ export const QuotaShareResourceSharingStrategy = {
55
+ LEND: "LEND",
56
+ LEND_AND_BORROW: "LEND_AND_BORROW",
57
+ RESERVE: "RESERVE",
58
+ };
59
+ export const QuotaShareState = {
60
+ DISABLED: "DISABLED",
61
+ ENABLED: "ENABLED",
62
+ };
63
+ export const QuotaShareIdleResourceAssignmentStrategy = {
64
+ FIFO: "FIFO",
65
+ };
50
66
  export const ServiceEnvironmentType = {
51
67
  SAGEMAKER_TRAINING: "SAGEMAKER_TRAINING",
52
68
  };
@@ -123,6 +139,13 @@ export const JobStatus = {
123
139
  SUBMITTED: "SUBMITTED",
124
140
  SUCCEEDED: "SUCCEEDED",
125
141
  };
142
+ export const QuotaShareStatus = {
143
+ CREATING: "CREATING",
144
+ DELETING: "DELETING",
145
+ INVALID: "INVALID",
146
+ UPDATING: "UPDATING",
147
+ VALID: "VALID",
148
+ };
126
149
  export const ServiceEnvironmentStatus = {
127
150
  CREATING: "CREATING",
128
151
  DELETED: "DELETED",
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { BatchClient } from "../BatchClient";
3
+ import { ListQuotaSharesCommand, } from "../commands/ListQuotaSharesCommand";
4
+ export const paginateListQuotaShares = createPaginator(BatchClient, ListQuotaSharesCommand, "nextToken", "nextToken", "maxResults");
@@ -6,5 +6,6 @@ export * from "./DescribeServiceEnvironmentsPaginator";
6
6
  export * from "./ListConsumableResourcesPaginator";
7
7
  export * from "./ListJobsPaginator";
8
8
  export * from "./ListJobsByConsumableResourcePaginator";
9
+ export * from "./ListQuotaSharesPaginator";
9
10
  export * from "./ListSchedulingPoliciesPaginator";
10
11
  export * from "./ListServiceJobsPaginator";