@aws-sdk/client-batch 3.1012.0 → 3.1013.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 +5 -5
@@ -0,0 +1,97 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BatchClient";
4
+ import type { UpdateQuotaShareRequest, UpdateQuotaShareResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateQuotaShareCommand}.
14
+ */
15
+ export interface UpdateQuotaShareCommandInput extends UpdateQuotaShareRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateQuotaShareCommand}.
21
+ */
22
+ export interface UpdateQuotaShareCommandOutput extends UpdateQuotaShareResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateQuotaShareCommand_base: {
25
+ new (input: UpdateQuotaShareCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateQuotaShareCommandInput, UpdateQuotaShareCommandOutput, BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateQuotaShareCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateQuotaShareCommandInput, UpdateQuotaShareCommandOutput, BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Updates a quota share.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BatchClient, UpdateQuotaShareCommand } from "@aws-sdk/client-batch"; // ES Modules import
35
+ * // const { BatchClient, UpdateQuotaShareCommand } = require("@aws-sdk/client-batch"); // CommonJS import
36
+ * // import type { BatchClientConfig } from "@aws-sdk/client-batch";
37
+ * const config = {}; // type is BatchClientConfig
38
+ * const client = new BatchClient(config);
39
+ * const input = { // UpdateQuotaShareRequest
40
+ * quotaShareArn: "STRING_VALUE", // required
41
+ * capacityLimits: [ // QuotaShareCapacityLimits
42
+ * { // QuotaShareCapacityLimit
43
+ * maxCapacity: Number("int"), // required
44
+ * capacityUnit: "STRING_VALUE", // required
45
+ * },
46
+ * ],
47
+ * resourceSharingConfiguration: { // QuotaShareResourceSharingConfiguration
48
+ * strategy: "RESERVE" || "LEND" || "LEND_AND_BORROW", // required
49
+ * borrowLimit: Number("int"),
50
+ * },
51
+ * preemptionConfiguration: { // QuotaSharePreemptionConfiguration
52
+ * inSharePreemption: "ENABLED" || "DISABLED", // required
53
+ * },
54
+ * state: "ENABLED" || "DISABLED",
55
+ * };
56
+ * const command = new UpdateQuotaShareCommand(input);
57
+ * const response = await client.send(command);
58
+ * // { // UpdateQuotaShareResponse
59
+ * // quotaShareName: "STRING_VALUE",
60
+ * // quotaShareArn: "STRING_VALUE",
61
+ * // };
62
+ *
63
+ * ```
64
+ *
65
+ * @param UpdateQuotaShareCommandInput - {@link UpdateQuotaShareCommandInput}
66
+ * @returns {@link UpdateQuotaShareCommandOutput}
67
+ * @see {@link UpdateQuotaShareCommandInput} for command's `input` shape.
68
+ * @see {@link UpdateQuotaShareCommandOutput} for command's `response` shape.
69
+ * @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
70
+ *
71
+ * @throws {@link ClientException} (client fault)
72
+ * <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
73
+ * of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
74
+ * that's not valid.</p>
75
+ *
76
+ * @throws {@link ServerException} (server fault)
77
+ * <p>These errors are usually caused by a server issue.</p>
78
+ *
79
+ * @throws {@link BatchServiceException}
80
+ * <p>Base exception class for all service exceptions from Batch service.</p>
81
+ *
82
+ *
83
+ * @public
84
+ */
85
+ export declare class UpdateQuotaShareCommand extends UpdateQuotaShareCommand_base {
86
+ /** @internal type navigation helper, not in runtime. */
87
+ protected static __types: {
88
+ api: {
89
+ input: UpdateQuotaShareRequest;
90
+ output: UpdateQuotaShareResponse;
91
+ };
92
+ sdk: {
93
+ input: UpdateQuotaShareCommandInput;
94
+ output: UpdateQuotaShareCommandOutput;
95
+ };
96
+ };
97
+ }
@@ -38,6 +38,9 @@ declare const UpdateSchedulingPolicyCommand_base: {
38
38
  * const client = new BatchClient(config);
39
39
  * const input = { // UpdateSchedulingPolicyRequest
40
40
  * arn: "STRING_VALUE", // required
41
+ * quotaSharePolicy: { // QuotaSharePolicy
42
+ * idleResourceAssignmentStrategy: "FIFO", // required
43
+ * },
41
44
  * fairsharePolicy: { // FairsharePolicy
42
45
  * shareDecaySeconds: Number("int"),
43
46
  * computeReservation: Number("int"),
@@ -0,0 +1,85 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BatchClient";
4
+ import type { UpdateServiceJobRequest, UpdateServiceJobResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateServiceJobCommand}.
14
+ */
15
+ export interface UpdateServiceJobCommandInput extends UpdateServiceJobRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateServiceJobCommand}.
21
+ */
22
+ export interface UpdateServiceJobCommandOutput extends UpdateServiceJobResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateServiceJobCommand_base: {
25
+ new (input: UpdateServiceJobCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateServiceJobCommandInput, UpdateServiceJobCommandOutput, BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateServiceJobCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateServiceJobCommandInput, UpdateServiceJobCommandOutput, BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Updates the priority of a specified service job in an Batch job queue.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BatchClient, UpdateServiceJobCommand } from "@aws-sdk/client-batch"; // ES Modules import
35
+ * // const { BatchClient, UpdateServiceJobCommand } = require("@aws-sdk/client-batch"); // CommonJS import
36
+ * // import type { BatchClientConfig } from "@aws-sdk/client-batch";
37
+ * const config = {}; // type is BatchClientConfig
38
+ * const client = new BatchClient(config);
39
+ * const input = { // UpdateServiceJobRequest
40
+ * jobId: "STRING_VALUE", // required
41
+ * schedulingPriority: Number("int"), // required
42
+ * };
43
+ * const command = new UpdateServiceJobCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // UpdateServiceJobResponse
46
+ * // jobArn: "STRING_VALUE",
47
+ * // jobName: "STRING_VALUE",
48
+ * // jobId: "STRING_VALUE",
49
+ * // };
50
+ *
51
+ * ```
52
+ *
53
+ * @param UpdateServiceJobCommandInput - {@link UpdateServiceJobCommandInput}
54
+ * @returns {@link UpdateServiceJobCommandOutput}
55
+ * @see {@link UpdateServiceJobCommandInput} for command's `input` shape.
56
+ * @see {@link UpdateServiceJobCommandOutput} 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
+ *
71
+ * @public
72
+ */
73
+ export declare class UpdateServiceJobCommand extends UpdateServiceJobCommand_base {
74
+ /** @internal type navigation helper, not in runtime. */
75
+ protected static __types: {
76
+ api: {
77
+ input: UpdateServiceJobRequest;
78
+ output: UpdateServiceJobResponse;
79
+ };
80
+ sdk: {
81
+ input: UpdateServiceJobCommandInput;
82
+ output: UpdateServiceJobCommandOutput;
83
+ };
84
+ };
85
+ }
@@ -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";
@@ -135,6 +135,54 @@ export declare const JQState: {
135
135
  * @public
136
136
  */
137
137
  export type JQState = (typeof JQState)[keyof typeof JQState];
138
+ /**
139
+ * @public
140
+ * @enum
141
+ */
142
+ export declare const QuotaShareInSharePreemptionState: {
143
+ readonly DISABLED: "DISABLED";
144
+ readonly ENABLED: "ENABLED";
145
+ };
146
+ /**
147
+ * @public
148
+ */
149
+ export type QuotaShareInSharePreemptionState = (typeof QuotaShareInSharePreemptionState)[keyof typeof QuotaShareInSharePreemptionState];
150
+ /**
151
+ * @public
152
+ * @enum
153
+ */
154
+ export declare const QuotaShareResourceSharingStrategy: {
155
+ readonly LEND: "LEND";
156
+ readonly LEND_AND_BORROW: "LEND_AND_BORROW";
157
+ readonly RESERVE: "RESERVE";
158
+ };
159
+ /**
160
+ * @public
161
+ */
162
+ export type QuotaShareResourceSharingStrategy = (typeof QuotaShareResourceSharingStrategy)[keyof typeof QuotaShareResourceSharingStrategy];
163
+ /**
164
+ * @public
165
+ * @enum
166
+ */
167
+ export declare const QuotaShareState: {
168
+ readonly DISABLED: "DISABLED";
169
+ readonly ENABLED: "ENABLED";
170
+ };
171
+ /**
172
+ * @public
173
+ */
174
+ export type QuotaShareState = (typeof QuotaShareState)[keyof typeof QuotaShareState];
175
+ /**
176
+ * @public
177
+ * @enum
178
+ */
179
+ export declare const QuotaShareIdleResourceAssignmentStrategy: {
180
+ readonly FIFO: "FIFO";
181
+ };
182
+ /**
183
+ * @public
184
+ */
185
+ export type QuotaShareIdleResourceAssignmentStrategy = (typeof QuotaShareIdleResourceAssignmentStrategy)[keyof typeof QuotaShareIdleResourceAssignmentStrategy];
138
186
  /**
139
187
  * @public
140
188
  * @enum
@@ -323,6 +371,21 @@ export declare const JobStatus: {
323
371
  * @public
324
372
  */
325
373
  export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus];
374
+ /**
375
+ * @public
376
+ * @enum
377
+ */
378
+ export declare const QuotaShareStatus: {
379
+ readonly CREATING: "CREATING";
380
+ readonly DELETING: "DELETING";
381
+ readonly INVALID: "INVALID";
382
+ readonly UPDATING: "UPDATING";
383
+ readonly VALID: "VALID";
384
+ };
385
+ /**
386
+ * @public
387
+ */
388
+ export type QuotaShareStatus = (typeof QuotaShareStatus)[keyof typeof QuotaShareStatus];
326
389
  /**
327
390
  * @public
328
391
  * @enum