@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.
- package/README.md +48 -0
- package/dist-cjs/index.js +318 -0
- package/dist-es/Batch.js +12 -0
- package/dist-es/commands/CreateConsumableResourceCommand.js +22 -0
- package/dist-es/commands/DeleteConsumableResourceCommand.js +22 -0
- package/dist-es/commands/DescribeConsumableResourceCommand.js +22 -0
- package/dist-es/commands/ListConsumableResourcesCommand.js +22 -0
- package/dist-es/commands/ListJobsByConsumableResourceCommand.js +22 -0
- package/dist-es/commands/UpdateConsumableResourceCommand.js +22 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/pagination/ListConsumableResourcesPaginator.js +4 -0
- package/dist-es/pagination/ListJobsByConsumableResourcePaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +186 -0
- package/dist-types/Batch.d.ts +43 -0
- package/dist-types/BatchClient.d.ts +8 -2
- package/dist-types/commands/CreateConsumableResourceCommand.d.ts +85 -0
- package/dist-types/commands/DeleteConsumableResourceCommand.d.ts +77 -0
- package/dist-types/commands/DescribeConsumableResourceCommand.d.ts +88 -0
- package/dist-types/commands/DescribeJobDefinitionsCommand.d.ts +16 -0
- package/dist-types/commands/DescribeJobsCommand.d.ts +16 -0
- package/dist-types/commands/ListConsumableResourcesCommand.d.ts +97 -0
- package/dist-types/commands/ListJobsByConsumableResourceCommand.d.ts +111 -0
- package/dist-types/commands/RegisterJobDefinitionCommand.d.ts +16 -0
- package/dist-types/commands/SubmitJobCommand.d.ts +17 -1
- package/dist-types/commands/UpdateConsumableResourceCommand.d.ts +84 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +589 -40
- package/dist-types/pagination/ListConsumableResourcesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListJobsByConsumableResourcePaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
- package/dist-types/ts3.4/Batch.d.ts +103 -0
- package/dist-types/ts3.4/BatchClient.d.ts +36 -0
- package/dist-types/ts3.4/commands/CreateConsumableResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteConsumableResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeConsumableResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListConsumableResourcesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListJobsByConsumableResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateConsumableResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +94 -0
- package/dist-types/ts3.4/pagination/ListConsumableResourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListJobsByConsumableResourcePaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
- package/package.json +4 -2
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BatchClient";
|
|
4
|
+
import { ListJobsByConsumableResourceRequest, ListJobsByConsumableResourceResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListJobsByConsumableResourceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListJobsByConsumableResourceCommandInput extends ListJobsByConsumableResourceRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListJobsByConsumableResourceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListJobsByConsumableResourceCommandOutput extends ListJobsByConsumableResourceResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListJobsByConsumableResourceCommand_base: {
|
|
25
|
+
new (input: ListJobsByConsumableResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListJobsByConsumableResourceCommandInput, ListJobsByConsumableResourceCommandOutput, BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: ListJobsByConsumableResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListJobsByConsumableResourceCommandInput, ListJobsByConsumableResourceCommandOutput, BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Returns a list of Batch jobs that require a specific consumable resource.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BatchClient, ListJobsByConsumableResourceCommand } from "@aws-sdk/client-batch"; // ES Modules import
|
|
35
|
+
* // const { BatchClient, ListJobsByConsumableResourceCommand } = require("@aws-sdk/client-batch"); // CommonJS import
|
|
36
|
+
* const client = new BatchClient(config);
|
|
37
|
+
* const input = { // ListJobsByConsumableResourceRequest
|
|
38
|
+
* consumableResource: "STRING_VALUE", // required
|
|
39
|
+
* filters: [ // ListJobsByConsumableResourceFilterList
|
|
40
|
+
* { // KeyValuesPair
|
|
41
|
+
* name: "STRING_VALUE",
|
|
42
|
+
* values: [ // StringList
|
|
43
|
+
* "STRING_VALUE",
|
|
44
|
+
* ],
|
|
45
|
+
* },
|
|
46
|
+
* ],
|
|
47
|
+
* maxResults: Number("int"),
|
|
48
|
+
* nextToken: "STRING_VALUE",
|
|
49
|
+
* };
|
|
50
|
+
* const command = new ListJobsByConsumableResourceCommand(input);
|
|
51
|
+
* const response = await client.send(command);
|
|
52
|
+
* // { // ListJobsByConsumableResourceResponse
|
|
53
|
+
* // jobs: [ // ListJobsByConsumableResourceSummaryList // required
|
|
54
|
+
* // { // ListJobsByConsumableResourceSummary
|
|
55
|
+
* // jobArn: "STRING_VALUE", // required
|
|
56
|
+
* // jobQueueArn: "STRING_VALUE", // required
|
|
57
|
+
* // jobName: "STRING_VALUE", // required
|
|
58
|
+
* // jobDefinitionArn: "STRING_VALUE",
|
|
59
|
+
* // shareIdentifier: "STRING_VALUE",
|
|
60
|
+
* // jobStatus: "STRING_VALUE", // required
|
|
61
|
+
* // quantity: Number("long"), // required
|
|
62
|
+
* // statusReason: "STRING_VALUE",
|
|
63
|
+
* // startedAt: Number("long"),
|
|
64
|
+
* // createdAt: Number("long"), // required
|
|
65
|
+
* // consumableResourceProperties: { // ConsumableResourceProperties
|
|
66
|
+
* // consumableResourceList: [ // ConsumableResourceList
|
|
67
|
+
* // { // ConsumableResourceRequirement
|
|
68
|
+
* // consumableResource: "STRING_VALUE",
|
|
69
|
+
* // quantity: Number("long"),
|
|
70
|
+
* // },
|
|
71
|
+
* // ],
|
|
72
|
+
* // },
|
|
73
|
+
* // },
|
|
74
|
+
* // ],
|
|
75
|
+
* // nextToken: "STRING_VALUE",
|
|
76
|
+
* // };
|
|
77
|
+
*
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* @param ListJobsByConsumableResourceCommandInput - {@link ListJobsByConsumableResourceCommandInput}
|
|
81
|
+
* @returns {@link ListJobsByConsumableResourceCommandOutput}
|
|
82
|
+
* @see {@link ListJobsByConsumableResourceCommandInput} for command's `input` shape.
|
|
83
|
+
* @see {@link ListJobsByConsumableResourceCommandOutput} for command's `response` shape.
|
|
84
|
+
* @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link ClientException} (client fault)
|
|
87
|
+
* <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
|
|
88
|
+
* of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
|
|
89
|
+
* that's not valid.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link ServerException} (server fault)
|
|
92
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link BatchServiceException}
|
|
95
|
+
* <p>Base exception class for all service exceptions from Batch service.</p>
|
|
96
|
+
*
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
export declare class ListJobsByConsumableResourceCommand extends ListJobsByConsumableResourceCommand_base {
|
|
100
|
+
/** @internal type navigation helper, not in runtime. */
|
|
101
|
+
protected static __types: {
|
|
102
|
+
api: {
|
|
103
|
+
input: ListJobsByConsumableResourceRequest;
|
|
104
|
+
output: ListJobsByConsumableResourceResponse;
|
|
105
|
+
};
|
|
106
|
+
sdk: {
|
|
107
|
+
input: ListJobsByConsumableResourceCommandInput;
|
|
108
|
+
output: ListJobsByConsumableResourceCommandOutput;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
}
|
|
@@ -428,6 +428,14 @@ declare const RegisterJobDefinitionCommand_base: {
|
|
|
428
428
|
* shareProcessNamespace: true || false,
|
|
429
429
|
* },
|
|
430
430
|
* },
|
|
431
|
+
* consumableResourceProperties: { // ConsumableResourceProperties
|
|
432
|
+
* consumableResourceList: [ // ConsumableResourceList
|
|
433
|
+
* { // ConsumableResourceRequirement
|
|
434
|
+
* consumableResource: "STRING_VALUE",
|
|
435
|
+
* quantity: Number("long"),
|
|
436
|
+
* },
|
|
437
|
+
* ],
|
|
438
|
+
* },
|
|
431
439
|
* },
|
|
432
440
|
* ],
|
|
433
441
|
* },
|
|
@@ -612,6 +620,14 @@ declare const RegisterJobDefinitionCommand_base: {
|
|
|
612
620
|
* },
|
|
613
621
|
* ],
|
|
614
622
|
* },
|
|
623
|
+
* consumableResourceProperties: {
|
|
624
|
+
* consumableResourceList: [
|
|
625
|
+
* {
|
|
626
|
+
* consumableResource: "STRING_VALUE",
|
|
627
|
+
* quantity: Number("long"),
|
|
628
|
+
* },
|
|
629
|
+
* ],
|
|
630
|
+
* },
|
|
615
631
|
* };
|
|
616
632
|
* const command = new RegisterJobDefinitionCommand(input);
|
|
617
633
|
* const response = await client.send(command);
|
|
@@ -34,7 +34,7 @@ declare const SubmitJobCommand_base: {
|
|
|
34
34
|
* parameters in a <code>resourceRequirements</code> object that's included in the
|
|
35
35
|
* <code>containerOverrides</code> parameter.</p>
|
|
36
36
|
* <note>
|
|
37
|
-
* <p>Job queues with a scheduling policy are limited to 500 active share identifiers at
|
|
37
|
+
* <p>Job queues with a scheduling policy are limited to 500 active fair share identifiers at
|
|
38
38
|
* a time. </p>
|
|
39
39
|
* </note>
|
|
40
40
|
* <important>
|
|
@@ -183,6 +183,14 @@ declare const SubmitJobCommand_base: {
|
|
|
183
183
|
* },
|
|
184
184
|
* },
|
|
185
185
|
* },
|
|
186
|
+
* consumableResourcePropertiesOverride: { // ConsumableResourceProperties
|
|
187
|
+
* consumableResourceList: [ // ConsumableResourceList
|
|
188
|
+
* { // ConsumableResourceRequirement
|
|
189
|
+
* consumableResource: "STRING_VALUE",
|
|
190
|
+
* quantity: Number("long"),
|
|
191
|
+
* },
|
|
192
|
+
* ],
|
|
193
|
+
* },
|
|
186
194
|
* },
|
|
187
195
|
* ],
|
|
188
196
|
* },
|
|
@@ -275,6 +283,14 @@ declare const SubmitJobCommand_base: {
|
|
|
275
283
|
* },
|
|
276
284
|
* ],
|
|
277
285
|
* },
|
|
286
|
+
* consumableResourcePropertiesOverride: {
|
|
287
|
+
* consumableResourceList: [
|
|
288
|
+
* {
|
|
289
|
+
* consumableResource: "STRING_VALUE",
|
|
290
|
+
* quantity: Number("long"),
|
|
291
|
+
* },
|
|
292
|
+
* ],
|
|
293
|
+
* },
|
|
278
294
|
* };
|
|
279
295
|
* const command = new SubmitJobCommand(input);
|
|
280
296
|
* const response = await client.send(command);
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BatchClient";
|
|
4
|
+
import { UpdateConsumableResourceRequest, UpdateConsumableResourceResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateConsumableResourceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateConsumableResourceCommandInput extends UpdateConsumableResourceRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateConsumableResourceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateConsumableResourceCommandOutput extends UpdateConsumableResourceResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateConsumableResourceCommand_base: {
|
|
25
|
+
new (input: UpdateConsumableResourceCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateConsumableResourceCommandInput, UpdateConsumableResourceCommandOutput, BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UpdateConsumableResourceCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateConsumableResourceCommandInput, UpdateConsumableResourceCommandOutput, BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Updates a consumable resource.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BatchClient, UpdateConsumableResourceCommand } from "@aws-sdk/client-batch"; // ES Modules import
|
|
35
|
+
* // const { BatchClient, UpdateConsumableResourceCommand } = require("@aws-sdk/client-batch"); // CommonJS import
|
|
36
|
+
* const client = new BatchClient(config);
|
|
37
|
+
* const input = { // UpdateConsumableResourceRequest
|
|
38
|
+
* consumableResource: "STRING_VALUE", // required
|
|
39
|
+
* operation: "STRING_VALUE",
|
|
40
|
+
* quantity: Number("long"),
|
|
41
|
+
* clientToken: "STRING_VALUE",
|
|
42
|
+
* };
|
|
43
|
+
* const command = new UpdateConsumableResourceCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // UpdateConsumableResourceResponse
|
|
46
|
+
* // consumableResourceName: "STRING_VALUE", // required
|
|
47
|
+
* // consumableResourceArn: "STRING_VALUE", // required
|
|
48
|
+
* // totalQuantity: Number("long"),
|
|
49
|
+
* // };
|
|
50
|
+
*
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @param UpdateConsumableResourceCommandInput - {@link UpdateConsumableResourceCommandInput}
|
|
54
|
+
* @returns {@link UpdateConsumableResourceCommandOutput}
|
|
55
|
+
* @see {@link UpdateConsumableResourceCommandInput} for command's `input` shape.
|
|
56
|
+
* @see {@link UpdateConsumableResourceCommandOutput} for command's `response` shape.
|
|
57
|
+
* @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link ClientException} (client fault)
|
|
60
|
+
* <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
|
|
61
|
+
* of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
|
|
62
|
+
* that's not valid.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ServerException} (server fault)
|
|
65
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link BatchServiceException}
|
|
68
|
+
* <p>Base exception class for all service exceptions from Batch service.</p>
|
|
69
|
+
*
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
export declare class UpdateConsumableResourceCommand extends UpdateConsumableResourceCommand_base {
|
|
73
|
+
/** @internal type navigation helper, not in runtime. */
|
|
74
|
+
protected static __types: {
|
|
75
|
+
api: {
|
|
76
|
+
input: UpdateConsumableResourceRequest;
|
|
77
|
+
output: UpdateConsumableResourceResponse;
|
|
78
|
+
};
|
|
79
|
+
sdk: {
|
|
80
|
+
input: UpdateConsumableResourceCommandInput;
|
|
81
|
+
output: UpdateConsumableResourceCommandOutput;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -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";
|