@aws-sdk/client-batch 3.288.0 → 3.290.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/dist-types/commands/CancelJobCommand.d.ts +21 -0
- package/dist-types/commands/CreateComputeEnvironmentCommand.d.ts +99 -0
- package/dist-types/commands/CreateJobQueueCommand.d.ts +63 -0
- package/dist-types/commands/CreateSchedulingPolicyCommand.d.ts +9 -0
- package/dist-types/commands/DeleteComputeEnvironmentCommand.d.ts +20 -0
- package/dist-types/commands/DeleteJobQueueCommand.d.ts +20 -0
- package/dist-types/commands/DeleteSchedulingPolicyCommand.d.ts +9 -0
- package/dist-types/commands/DeregisterJobDefinitionCommand.d.ts +20 -0
- package/dist-types/commands/DescribeComputeEnvironmentsCommand.d.ts +60 -0
- package/dist-types/commands/DescribeJobDefinitionsCommand.d.ts +54 -0
- package/dist-types/commands/DescribeJobQueuesCommand.d.ts +42 -0
- package/dist-types/commands/DescribeJobsCommand.d.ts +55 -0
- package/dist-types/commands/DescribeSchedulingPoliciesCommand.d.ts +9 -0
- package/dist-types/commands/ListJobsCommand.d.ts +52 -0
- package/dist-types/commands/ListSchedulingPoliciesCommand.d.ts +9 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +29 -0
- package/dist-types/commands/RegisterJobDefinitionCommand.d.ts +85 -0
- package/dist-types/commands/SubmitJobCommand.d.ts +28 -0
- package/dist-types/commands/TagResourceCommand.d.ts +23 -0
- package/dist-types/commands/TerminateJobCommand.d.ts +21 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +23 -0
- package/dist-types/commands/UpdateComputeEnvironmentCommand.d.ts +27 -0
- package/dist-types/commands/UpdateJobQueueCommand.d.ts +27 -0
- package/dist-types/commands/UpdateSchedulingPolicyCommand.d.ts +9 -0
- package/package.json +29 -29
|
@@ -32,6 +32,27 @@ export interface CancelJobCommandOutput extends CancelJobResponse, __MetadataBea
|
|
|
32
32
|
* @see {@link CancelJobCommandOutput} for command's `response` shape.
|
|
33
33
|
* @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
|
|
34
34
|
*
|
|
35
|
+
* @throws {@link ClientException} (client fault)
|
|
36
|
+
* <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
|
|
37
|
+
* of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
|
|
38
|
+
* that's not valid.</p>
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link ServerException} (server fault)
|
|
41
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
42
|
+
*
|
|
43
|
+
*
|
|
44
|
+
* @example To cancel a job
|
|
45
|
+
* ```javascript
|
|
46
|
+
* // This example cancels a job with the specified job ID.
|
|
47
|
+
* const input = {
|
|
48
|
+
* "jobId": "1d828f65-7a4d-42e8-996d-3b900ed59dc4",
|
|
49
|
+
* "reason": "Cancelling job."
|
|
50
|
+
* };
|
|
51
|
+
* const command = new CancelJobCommand(input);
|
|
52
|
+
* await client.send(command);
|
|
53
|
+
* // example id: to-cancel-a-job-1481152314733
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
35
56
|
*/
|
|
36
57
|
export declare class CancelJobCommand extends $Command<CancelJobCommandInput, CancelJobCommandOutput, BatchClientResolvedConfig> {
|
|
37
58
|
readonly input: CancelJobCommandInput;
|
|
@@ -107,6 +107,105 @@ export interface CreateComputeEnvironmentCommandOutput extends CreateComputeEnvi
|
|
|
107
107
|
* @see {@link CreateComputeEnvironmentCommandOutput} for command's `response` shape.
|
|
108
108
|
* @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
|
|
109
109
|
*
|
|
110
|
+
* @throws {@link ClientException} (client fault)
|
|
111
|
+
* <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
|
|
112
|
+
* of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
|
|
113
|
+
* that's not valid.</p>
|
|
114
|
+
*
|
|
115
|
+
* @throws {@link ServerException} (server fault)
|
|
116
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
117
|
+
*
|
|
118
|
+
*
|
|
119
|
+
* @example To create a managed EC2 compute environment
|
|
120
|
+
* ```javascript
|
|
121
|
+
* // This example creates a managed compute environment with specific C4 instance types that are launched on demand. The compute environment is called C4OnDemand.
|
|
122
|
+
* const input = {
|
|
123
|
+
* "type": "MANAGED",
|
|
124
|
+
* "computeEnvironmentName": "C4OnDemand",
|
|
125
|
+
* "computeResources": {
|
|
126
|
+
* "type": "EC2",
|
|
127
|
+
* "desiredvCpus": 48,
|
|
128
|
+
* "ec2KeyPair": "id_rsa",
|
|
129
|
+
* "instanceRole": "ecsInstanceRole",
|
|
130
|
+
* "instanceTypes": [
|
|
131
|
+
* "c4.large",
|
|
132
|
+
* "c4.xlarge",
|
|
133
|
+
* "c4.2xlarge",
|
|
134
|
+
* "c4.4xlarge",
|
|
135
|
+
* "c4.8xlarge"
|
|
136
|
+
* ],
|
|
137
|
+
* "maxvCpus": 128,
|
|
138
|
+
* "minvCpus": 0,
|
|
139
|
+
* "securityGroupIds": [
|
|
140
|
+
* "sg-cf5093b2"
|
|
141
|
+
* ],
|
|
142
|
+
* "subnets": [
|
|
143
|
+
* "subnet-220c0e0a",
|
|
144
|
+
* "subnet-1a95556d",
|
|
145
|
+
* "subnet-978f6dce"
|
|
146
|
+
* ],
|
|
147
|
+
* "tags": {
|
|
148
|
+
* "Name": "Batch Instance - C4OnDemand"
|
|
149
|
+
* }
|
|
150
|
+
* },
|
|
151
|
+
* "serviceRole": "arn:aws:iam::012345678910:role/AWSBatchServiceRole",
|
|
152
|
+
* "state": "ENABLED"
|
|
153
|
+
* };
|
|
154
|
+
* const command = new CreateComputeEnvironmentCommand(input);
|
|
155
|
+
* const response = await client.send(command);
|
|
156
|
+
* /* response ==
|
|
157
|
+
* {
|
|
158
|
+
* "computeEnvironmentArn": "arn:aws:batch:us-east-1:012345678910:compute-environment/C4OnDemand",
|
|
159
|
+
* "computeEnvironmentName": "C4OnDemand"
|
|
160
|
+
* }
|
|
161
|
+
* *\/
|
|
162
|
+
* // example id: to-create-a-managed-ec2-compute-environment-1481152600017
|
|
163
|
+
* ```
|
|
164
|
+
*
|
|
165
|
+
* @example To create a managed EC2 Spot compute environment
|
|
166
|
+
* ```javascript
|
|
167
|
+
* // This example creates a managed compute environment with the M4 instance type that is launched when the Spot bid price is at or below 20% of the On-Demand price for the instance type. The compute environment is called M4Spot.
|
|
168
|
+
* const input = {
|
|
169
|
+
* "type": "MANAGED",
|
|
170
|
+
* "computeEnvironmentName": "M4Spot",
|
|
171
|
+
* "computeResources": {
|
|
172
|
+
* "type": "SPOT",
|
|
173
|
+
* "bidPercentage": 20,
|
|
174
|
+
* "desiredvCpus": 4,
|
|
175
|
+
* "ec2KeyPair": "id_rsa",
|
|
176
|
+
* "instanceRole": "ecsInstanceRole",
|
|
177
|
+
* "instanceTypes": [
|
|
178
|
+
* "m4"
|
|
179
|
+
* ],
|
|
180
|
+
* "maxvCpus": 128,
|
|
181
|
+
* "minvCpus": 0,
|
|
182
|
+
* "securityGroupIds": [
|
|
183
|
+
* "sg-cf5093b2"
|
|
184
|
+
* ],
|
|
185
|
+
* "spotIamFleetRole": "arn:aws:iam::012345678910:role/aws-ec2-spot-fleet-role",
|
|
186
|
+
* "subnets": [
|
|
187
|
+
* "subnet-220c0e0a",
|
|
188
|
+
* "subnet-1a95556d",
|
|
189
|
+
* "subnet-978f6dce"
|
|
190
|
+
* ],
|
|
191
|
+
* "tags": {
|
|
192
|
+
* "Name": "Batch Instance - M4Spot"
|
|
193
|
+
* }
|
|
194
|
+
* },
|
|
195
|
+
* "serviceRole": "arn:aws:iam::012345678910:role/AWSBatchServiceRole",
|
|
196
|
+
* "state": "ENABLED"
|
|
197
|
+
* };
|
|
198
|
+
* const command = new CreateComputeEnvironmentCommand(input);
|
|
199
|
+
* const response = await client.send(command);
|
|
200
|
+
* /* response ==
|
|
201
|
+
* {
|
|
202
|
+
* "computeEnvironmentArn": "arn:aws:batch:us-east-1:012345678910:compute-environment/M4Spot",
|
|
203
|
+
* "computeEnvironmentName": "M4Spot"
|
|
204
|
+
* }
|
|
205
|
+
* *\/
|
|
206
|
+
* // example id: to-create-a-managed-ec2-spot-compute-environment-1481152844190
|
|
207
|
+
* ```
|
|
208
|
+
*
|
|
110
209
|
*/
|
|
111
210
|
export declare class CreateComputeEnvironmentCommand extends $Command<CreateComputeEnvironmentCommandInput, CreateComputeEnvironmentCommandOutput, BatchClientResolvedConfig> {
|
|
112
211
|
readonly input: CreateComputeEnvironmentCommandInput;
|
|
@@ -34,6 +34,69 @@ export interface CreateJobQueueCommandOutput extends CreateJobQueueResponse, __M
|
|
|
34
34
|
* @see {@link CreateJobQueueCommandOutput} for command's `response` shape.
|
|
35
35
|
* @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
|
|
36
36
|
*
|
|
37
|
+
* @throws {@link ClientException} (client fault)
|
|
38
|
+
* <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
|
|
39
|
+
* of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
|
|
40
|
+
* that's not valid.</p>
|
|
41
|
+
*
|
|
42
|
+
* @throws {@link ServerException} (server fault)
|
|
43
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
44
|
+
*
|
|
45
|
+
*
|
|
46
|
+
* @example To create a job queue with a single compute environment
|
|
47
|
+
* ```javascript
|
|
48
|
+
* // This example creates a job queue called LowPriority that uses the M4Spot compute environment.
|
|
49
|
+
* const input = {
|
|
50
|
+
* "computeEnvironmentOrder": [
|
|
51
|
+
* {
|
|
52
|
+
* "computeEnvironment": "M4Spot",
|
|
53
|
+
* "order": 1
|
|
54
|
+
* }
|
|
55
|
+
* ],
|
|
56
|
+
* "jobQueueName": "LowPriority",
|
|
57
|
+
* "priority": 1,
|
|
58
|
+
* "state": "ENABLED"
|
|
59
|
+
* };
|
|
60
|
+
* const command = new CreateJobQueueCommand(input);
|
|
61
|
+
* const response = await client.send(command);
|
|
62
|
+
* /* response ==
|
|
63
|
+
* {
|
|
64
|
+
* "jobQueueArn": "arn:aws:batch:us-east-1:012345678910:job-queue/LowPriority",
|
|
65
|
+
* "jobQueueName": "LowPriority"
|
|
66
|
+
* }
|
|
67
|
+
* *\/
|
|
68
|
+
* // example id: to-create-a-job-queue-with-a-single-compute-environment-1481152967946
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* @example To create a job queue with multiple compute environments
|
|
72
|
+
* ```javascript
|
|
73
|
+
* // This example creates a job queue called HighPriority that uses the C4OnDemand compute environment with an order of 1 and the M4Spot compute environment with an order of 2.
|
|
74
|
+
* const input = {
|
|
75
|
+
* "computeEnvironmentOrder": [
|
|
76
|
+
* {
|
|
77
|
+
* "computeEnvironment": "C4OnDemand",
|
|
78
|
+
* "order": 1
|
|
79
|
+
* },
|
|
80
|
+
* {
|
|
81
|
+
* "computeEnvironment": "M4Spot",
|
|
82
|
+
* "order": 2
|
|
83
|
+
* }
|
|
84
|
+
* ],
|
|
85
|
+
* "jobQueueName": "HighPriority",
|
|
86
|
+
* "priority": 10,
|
|
87
|
+
* "state": "ENABLED"
|
|
88
|
+
* };
|
|
89
|
+
* const command = new CreateJobQueueCommand(input);
|
|
90
|
+
* const response = await client.send(command);
|
|
91
|
+
* /* response ==
|
|
92
|
+
* {
|
|
93
|
+
* "jobQueueArn": "arn:aws:batch:us-east-1:012345678910:job-queue/HighPriority",
|
|
94
|
+
* "jobQueueName": "HighPriority"
|
|
95
|
+
* }
|
|
96
|
+
* *\/
|
|
97
|
+
* // example id: to-create-a-job-queue-with-multiple-compute-environments-1481153027051
|
|
98
|
+
* ```
|
|
99
|
+
*
|
|
37
100
|
*/
|
|
38
101
|
export declare class CreateJobQueueCommand extends $Command<CreateJobQueueCommandInput, CreateJobQueueCommandOutput, BatchClientResolvedConfig> {
|
|
39
102
|
readonly input: CreateJobQueueCommandInput;
|
|
@@ -29,6 +29,15 @@ export interface CreateSchedulingPolicyCommandOutput extends CreateSchedulingPol
|
|
|
29
29
|
* @see {@link CreateSchedulingPolicyCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @throws {@link ClientException} (client fault)
|
|
33
|
+
* <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
|
|
34
|
+
* of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
|
|
35
|
+
* that's not valid.</p>
|
|
36
|
+
*
|
|
37
|
+
* @throws {@link ServerException} (server fault)
|
|
38
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
39
|
+
*
|
|
40
|
+
*
|
|
32
41
|
*/
|
|
33
42
|
export declare class CreateSchedulingPolicyCommand extends $Command<CreateSchedulingPolicyCommandInput, CreateSchedulingPolicyCommandOutput, BatchClientResolvedConfig> {
|
|
34
43
|
readonly input: CreateSchedulingPolicyCommandInput;
|
|
@@ -32,6 +32,26 @@ export interface DeleteComputeEnvironmentCommandOutput extends DeleteComputeEnvi
|
|
|
32
32
|
* @see {@link DeleteComputeEnvironmentCommandOutput} for command's `response` shape.
|
|
33
33
|
* @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
|
|
34
34
|
*
|
|
35
|
+
* @throws {@link ClientException} (client fault)
|
|
36
|
+
* <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
|
|
37
|
+
* of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
|
|
38
|
+
* that's not valid.</p>
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link ServerException} (server fault)
|
|
41
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
42
|
+
*
|
|
43
|
+
*
|
|
44
|
+
* @example To delete a compute environment
|
|
45
|
+
* ```javascript
|
|
46
|
+
* // This example deletes the P2OnDemand compute environment.
|
|
47
|
+
* const input = {
|
|
48
|
+
* "computeEnvironment": "P2OnDemand"
|
|
49
|
+
* };
|
|
50
|
+
* const command = new DeleteComputeEnvironmentCommand(input);
|
|
51
|
+
* await client.send(command);
|
|
52
|
+
* // example id: to-delete-a-compute-environment-1481153105644
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
35
55
|
*/
|
|
36
56
|
export declare class DeleteComputeEnvironmentCommand extends $Command<DeleteComputeEnvironmentCommandInput, DeleteComputeEnvironmentCommandOutput, BatchClientResolvedConfig> {
|
|
37
57
|
readonly input: DeleteComputeEnvironmentCommandInput;
|
|
@@ -32,6 +32,26 @@ export interface DeleteJobQueueCommandOutput extends DeleteJobQueueResponse, __M
|
|
|
32
32
|
* @see {@link DeleteJobQueueCommandOutput} for command's `response` shape.
|
|
33
33
|
* @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
|
|
34
34
|
*
|
|
35
|
+
* @throws {@link ClientException} (client fault)
|
|
36
|
+
* <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
|
|
37
|
+
* of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
|
|
38
|
+
* that's not valid.</p>
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link ServerException} (server fault)
|
|
41
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
42
|
+
*
|
|
43
|
+
*
|
|
44
|
+
* @example To delete a job queue
|
|
45
|
+
* ```javascript
|
|
46
|
+
* // This example deletes the GPGPU job queue.
|
|
47
|
+
* const input = {
|
|
48
|
+
* "jobQueue": "GPGPU"
|
|
49
|
+
* };
|
|
50
|
+
* const command = new DeleteJobQueueCommand(input);
|
|
51
|
+
* await client.send(command);
|
|
52
|
+
* // example id: to-delete-a-job-queue-1481153508134
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
35
55
|
*/
|
|
36
56
|
export declare class DeleteJobQueueCommand extends $Command<DeleteJobQueueCommandInput, DeleteJobQueueCommandOutput, BatchClientResolvedConfig> {
|
|
37
57
|
readonly input: DeleteJobQueueCommandInput;
|
|
@@ -30,6 +30,15 @@ export interface DeleteSchedulingPolicyCommandOutput extends DeleteSchedulingPol
|
|
|
30
30
|
* @see {@link DeleteSchedulingPolicyCommandOutput} for command's `response` shape.
|
|
31
31
|
* @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
|
|
32
32
|
*
|
|
33
|
+
* @throws {@link ClientException} (client fault)
|
|
34
|
+
* <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
|
|
35
|
+
* of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
|
|
36
|
+
* that's not valid.</p>
|
|
37
|
+
*
|
|
38
|
+
* @throws {@link ServerException} (server fault)
|
|
39
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
40
|
+
*
|
|
41
|
+
*
|
|
33
42
|
*/
|
|
34
43
|
export declare class DeleteSchedulingPolicyCommand extends $Command<DeleteSchedulingPolicyCommandInput, DeleteSchedulingPolicyCommandOutput, BatchClientResolvedConfig> {
|
|
35
44
|
readonly input: DeleteSchedulingPolicyCommandInput;
|
|
@@ -29,6 +29,26 @@ export interface DeregisterJobDefinitionCommandOutput extends DeregisterJobDefin
|
|
|
29
29
|
* @see {@link DeregisterJobDefinitionCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @throws {@link ClientException} (client fault)
|
|
33
|
+
* <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
|
|
34
|
+
* of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
|
|
35
|
+
* that's not valid.</p>
|
|
36
|
+
*
|
|
37
|
+
* @throws {@link ServerException} (server fault)
|
|
38
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
39
|
+
*
|
|
40
|
+
*
|
|
41
|
+
* @example To deregister a job definition
|
|
42
|
+
* ```javascript
|
|
43
|
+
* // This example deregisters a job definition called sleep10.
|
|
44
|
+
* const input = {
|
|
45
|
+
* "jobDefinition": "sleep10"
|
|
46
|
+
* };
|
|
47
|
+
* const command = new DeregisterJobDefinitionCommand(input);
|
|
48
|
+
* await client.send(command);
|
|
49
|
+
* // example id: to-deregister-a-job-definition-1481153579565
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
32
52
|
*/
|
|
33
53
|
export declare class DeregisterJobDefinitionCommand extends $Command<DeregisterJobDefinitionCommandInput, DeregisterJobDefinitionCommandOutput, BatchClientResolvedConfig> {
|
|
34
54
|
readonly input: DeregisterJobDefinitionCommandInput;
|
|
@@ -32,6 +32,66 @@ export interface DescribeComputeEnvironmentsCommandOutput extends DescribeComput
|
|
|
32
32
|
* @see {@link DescribeComputeEnvironmentsCommandOutput} for command's `response` shape.
|
|
33
33
|
* @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
|
|
34
34
|
*
|
|
35
|
+
* @throws {@link ClientException} (client fault)
|
|
36
|
+
* <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
|
|
37
|
+
* of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
|
|
38
|
+
* that's not valid.</p>
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link ServerException} (server fault)
|
|
41
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
42
|
+
*
|
|
43
|
+
*
|
|
44
|
+
* @example To describe a compute environment
|
|
45
|
+
* ```javascript
|
|
46
|
+
* // This example describes the P2OnDemand compute environment.
|
|
47
|
+
* const input = {
|
|
48
|
+
* "computeEnvironments": [
|
|
49
|
+
* "P2OnDemand"
|
|
50
|
+
* ]
|
|
51
|
+
* };
|
|
52
|
+
* const command = new DescribeComputeEnvironmentsCommand(input);
|
|
53
|
+
* const response = await client.send(command);
|
|
54
|
+
* /* response ==
|
|
55
|
+
* {
|
|
56
|
+
* "computeEnvironments": [
|
|
57
|
+
* {
|
|
58
|
+
* "type": "MANAGED",
|
|
59
|
+
* "computeEnvironmentArn": "arn:aws:batch:us-east-1:012345678910:compute-environment/P2OnDemand",
|
|
60
|
+
* "computeEnvironmentName": "P2OnDemand",
|
|
61
|
+
* "computeResources": {
|
|
62
|
+
* "type": "EC2",
|
|
63
|
+
* "desiredvCpus": 48,
|
|
64
|
+
* "ec2KeyPair": "id_rsa",
|
|
65
|
+
* "instanceRole": "ecsInstanceRole",
|
|
66
|
+
* "instanceTypes": [
|
|
67
|
+
* "p2"
|
|
68
|
+
* ],
|
|
69
|
+
* "maxvCpus": 128,
|
|
70
|
+
* "minvCpus": 0,
|
|
71
|
+
* "securityGroupIds": [
|
|
72
|
+
* "sg-cf5093b2"
|
|
73
|
+
* ],
|
|
74
|
+
* "subnets": [
|
|
75
|
+
* "subnet-220c0e0a",
|
|
76
|
+
* "subnet-1a95556d",
|
|
77
|
+
* "subnet-978f6dce"
|
|
78
|
+
* ],
|
|
79
|
+
* "tags": {
|
|
80
|
+
* "Name": "Batch Instance - P2OnDemand"
|
|
81
|
+
* }
|
|
82
|
+
* },
|
|
83
|
+
* "ecsClusterArn": "arn:aws:ecs:us-east-1:012345678910:cluster/P2OnDemand_Batch_2c06f29d-d1fe-3a49-879d-42394c86effc",
|
|
84
|
+
* "serviceRole": "arn:aws:iam::012345678910:role/AWSBatchServiceRole",
|
|
85
|
+
* "state": "ENABLED",
|
|
86
|
+
* "status": "VALID",
|
|
87
|
+
* "statusReason": "ComputeEnvironment Healthy"
|
|
88
|
+
* }
|
|
89
|
+
* ]
|
|
90
|
+
* }
|
|
91
|
+
* *\/
|
|
92
|
+
* // example id: to-describe-a-compute-environment-1481153713334
|
|
93
|
+
* ```
|
|
94
|
+
*
|
|
35
95
|
*/
|
|
36
96
|
export declare class DescribeComputeEnvironmentsCommand extends $Command<DescribeComputeEnvironmentsCommandInput, DescribeComputeEnvironmentsCommandOutput, BatchClientResolvedConfig> {
|
|
37
97
|
readonly input: DescribeComputeEnvironmentsCommandInput;
|
|
@@ -30,6 +30,60 @@ export interface DescribeJobDefinitionsCommandOutput extends DescribeJobDefiniti
|
|
|
30
30
|
* @see {@link DescribeJobDefinitionsCommandOutput} for command's `response` shape.
|
|
31
31
|
* @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
|
|
32
32
|
*
|
|
33
|
+
* @throws {@link ClientException} (client fault)
|
|
34
|
+
* <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
|
|
35
|
+
* of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
|
|
36
|
+
* that's not valid.</p>
|
|
37
|
+
*
|
|
38
|
+
* @throws {@link ServerException} (server fault)
|
|
39
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
40
|
+
*
|
|
41
|
+
*
|
|
42
|
+
* @example To describe active job definitions
|
|
43
|
+
* ```javascript
|
|
44
|
+
* // This example describes all of your active job definitions.
|
|
45
|
+
* const input = {
|
|
46
|
+
* "status": "ACTIVE"
|
|
47
|
+
* };
|
|
48
|
+
* const command = new DescribeJobDefinitionsCommand(input);
|
|
49
|
+
* const response = await client.send(command);
|
|
50
|
+
* /* response ==
|
|
51
|
+
* {
|
|
52
|
+
* "jobDefinitions": [
|
|
53
|
+
* {
|
|
54
|
+
* "type": "container",
|
|
55
|
+
* "containerProperties": {
|
|
56
|
+
* "command": [
|
|
57
|
+
* "sleep",
|
|
58
|
+
* "60"
|
|
59
|
+
* ],
|
|
60
|
+
* "environment": [],
|
|
61
|
+
* "image": "busybox",
|
|
62
|
+
* "mountPoints": [],
|
|
63
|
+
* "resourceRequirements": [
|
|
64
|
+
* {
|
|
65
|
+
* "type": "MEMORY",
|
|
66
|
+
* "value": "128"
|
|
67
|
+
* },
|
|
68
|
+
* {
|
|
69
|
+
* "type": "VCPU",
|
|
70
|
+
* "value": "1"
|
|
71
|
+
* }
|
|
72
|
+
* ],
|
|
73
|
+
* "ulimits": [],
|
|
74
|
+
* "volumes": []
|
|
75
|
+
* },
|
|
76
|
+
* "jobDefinitionArn": "arn:aws:batch:us-east-1:012345678910:job-definition/sleep60:1",
|
|
77
|
+
* "jobDefinitionName": "sleep60",
|
|
78
|
+
* "revision": 1,
|
|
79
|
+
* "status": "ACTIVE"
|
|
80
|
+
* }
|
|
81
|
+
* ]
|
|
82
|
+
* }
|
|
83
|
+
* *\/
|
|
84
|
+
* // example id: to-describe-active-job-definitions-1481153895831
|
|
85
|
+
* ```
|
|
86
|
+
*
|
|
33
87
|
*/
|
|
34
88
|
export declare class DescribeJobDefinitionsCommand extends $Command<DescribeJobDefinitionsCommandInput, DescribeJobDefinitionsCommandOutput, BatchClientResolvedConfig> {
|
|
35
89
|
readonly input: DescribeJobDefinitionsCommandInput;
|
|
@@ -29,6 +29,48 @@ export interface DescribeJobQueuesCommandOutput extends DescribeJobQueuesRespons
|
|
|
29
29
|
* @see {@link DescribeJobQueuesCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @throws {@link ClientException} (client fault)
|
|
33
|
+
* <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
|
|
34
|
+
* of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
|
|
35
|
+
* that's not valid.</p>
|
|
36
|
+
*
|
|
37
|
+
* @throws {@link ServerException} (server fault)
|
|
38
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
39
|
+
*
|
|
40
|
+
*
|
|
41
|
+
* @example To describe a job queue
|
|
42
|
+
* ```javascript
|
|
43
|
+
* // This example describes the HighPriority job queue.
|
|
44
|
+
* const input = {
|
|
45
|
+
* "jobQueues": [
|
|
46
|
+
* "HighPriority"
|
|
47
|
+
* ]
|
|
48
|
+
* };
|
|
49
|
+
* const command = new DescribeJobQueuesCommand(input);
|
|
50
|
+
* const response = await client.send(command);
|
|
51
|
+
* /* response ==
|
|
52
|
+
* {
|
|
53
|
+
* "jobQueues": [
|
|
54
|
+
* {
|
|
55
|
+
* "computeEnvironmentOrder": [
|
|
56
|
+
* {
|
|
57
|
+
* "computeEnvironment": "arn:aws:batch:us-east-1:012345678910:compute-environment/C4OnDemand",
|
|
58
|
+
* "order": 1
|
|
59
|
+
* }
|
|
60
|
+
* ],
|
|
61
|
+
* "jobQueueArn": "arn:aws:batch:us-east-1:012345678910:job-queue/HighPriority",
|
|
62
|
+
* "jobQueueName": "HighPriority",
|
|
63
|
+
* "priority": 1,
|
|
64
|
+
* "state": "ENABLED",
|
|
65
|
+
* "status": "VALID",
|
|
66
|
+
* "statusReason": "JobQueue Healthy"
|
|
67
|
+
* }
|
|
68
|
+
* ]
|
|
69
|
+
* }
|
|
70
|
+
* *\/
|
|
71
|
+
* // example id: to-describe-a-job-queue-1481153995804
|
|
72
|
+
* ```
|
|
73
|
+
*
|
|
32
74
|
*/
|
|
33
75
|
export declare class DescribeJobQueuesCommand extends $Command<DescribeJobQueuesCommandInput, DescribeJobQueuesCommandOutput, BatchClientResolvedConfig> {
|
|
34
76
|
readonly input: DescribeJobQueuesCommandInput;
|
|
@@ -29,6 +29,61 @@ export interface DescribeJobsCommandOutput extends DescribeJobsResponse, __Metad
|
|
|
29
29
|
* @see {@link DescribeJobsCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @throws {@link ClientException} (client fault)
|
|
33
|
+
* <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
|
|
34
|
+
* of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
|
|
35
|
+
* that's not valid.</p>
|
|
36
|
+
*
|
|
37
|
+
* @throws {@link ServerException} (server fault)
|
|
38
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
39
|
+
*
|
|
40
|
+
*
|
|
41
|
+
* @example To describe a specific job
|
|
42
|
+
* ```javascript
|
|
43
|
+
* // This example describes a job with the specified job ID.
|
|
44
|
+
* const input = {
|
|
45
|
+
* "jobs": [
|
|
46
|
+
* "24fa2d7a-64c4-49d2-8b47-f8da4fbde8e9"
|
|
47
|
+
* ]
|
|
48
|
+
* };
|
|
49
|
+
* const command = new DescribeJobsCommand(input);
|
|
50
|
+
* const response = await client.send(command);
|
|
51
|
+
* /* response ==
|
|
52
|
+
* {
|
|
53
|
+
* "jobs": [
|
|
54
|
+
* {
|
|
55
|
+
* "container": {
|
|
56
|
+
* "command": [
|
|
57
|
+
* "sleep",
|
|
58
|
+
* "60"
|
|
59
|
+
* ],
|
|
60
|
+
* "containerInstanceArn": "arn:aws:ecs:us-east-1:012345678910:container-instance/5406d7cd-58bd-4b8f-9936-48d7c6b1526c",
|
|
61
|
+
* "environment": [],
|
|
62
|
+
* "exitCode": 0,
|
|
63
|
+
* "image": "busybox",
|
|
64
|
+
* "memory": 128,
|
|
65
|
+
* "mountPoints": [],
|
|
66
|
+
* "ulimits": [],
|
|
67
|
+
* "vcpus": 1,
|
|
68
|
+
* "volumes": []
|
|
69
|
+
* },
|
|
70
|
+
* "createdAt": 1480460782010,
|
|
71
|
+
* "dependsOn": [],
|
|
72
|
+
* "jobDefinition": "sleep60",
|
|
73
|
+
* "jobId": "24fa2d7a-64c4-49d2-8b47-f8da4fbde8e9",
|
|
74
|
+
* "jobName": "example",
|
|
75
|
+
* "jobQueue": "arn:aws:batch:us-east-1:012345678910:job-queue/HighPriority",
|
|
76
|
+
* "parameters": {},
|
|
77
|
+
* "startedAt": 1480460816500,
|
|
78
|
+
* "status": "SUCCEEDED",
|
|
79
|
+
* "stoppedAt": 1480460880699
|
|
80
|
+
* }
|
|
81
|
+
* ]
|
|
82
|
+
* }
|
|
83
|
+
* *\/
|
|
84
|
+
* // example id: to-describe-a-specific-job-1481154090490
|
|
85
|
+
* ```
|
|
86
|
+
*
|
|
32
87
|
*/
|
|
33
88
|
export declare class DescribeJobsCommand extends $Command<DescribeJobsCommandInput, DescribeJobsCommandOutput, BatchClientResolvedConfig> {
|
|
34
89
|
readonly input: DescribeJobsCommandInput;
|
|
@@ -29,6 +29,15 @@ export interface DescribeSchedulingPoliciesCommandOutput extends DescribeSchedul
|
|
|
29
29
|
* @see {@link DescribeSchedulingPoliciesCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @throws {@link ClientException} (client fault)
|
|
33
|
+
* <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
|
|
34
|
+
* of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
|
|
35
|
+
* that's not valid.</p>
|
|
36
|
+
*
|
|
37
|
+
* @throws {@link ServerException} (server fault)
|
|
38
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
39
|
+
*
|
|
40
|
+
*
|
|
32
41
|
*/
|
|
33
42
|
export declare class DescribeSchedulingPoliciesCommand extends $Command<DescribeSchedulingPoliciesCommandInput, DescribeSchedulingPoliciesCommandOutput, BatchClientResolvedConfig> {
|
|
34
43
|
readonly input: DescribeSchedulingPoliciesCommandInput;
|
|
@@ -43,6 +43,58 @@ export interface ListJobsCommandOutput extends ListJobsResponse, __MetadataBeare
|
|
|
43
43
|
* @see {@link ListJobsCommandOutput} for command's `response` shape.
|
|
44
44
|
* @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
|
|
45
45
|
*
|
|
46
|
+
* @throws {@link ClientException} (client fault)
|
|
47
|
+
* <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
|
|
48
|
+
* of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
|
|
49
|
+
* that's not valid.</p>
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link ServerException} (server fault)
|
|
52
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
53
|
+
*
|
|
54
|
+
*
|
|
55
|
+
* @example To list running jobs
|
|
56
|
+
* ```javascript
|
|
57
|
+
* // This example lists the running jobs in the HighPriority job queue.
|
|
58
|
+
* const input = {
|
|
59
|
+
* "jobQueue": "HighPriority"
|
|
60
|
+
* };
|
|
61
|
+
* const command = new ListJobsCommand(input);
|
|
62
|
+
* const response = await client.send(command);
|
|
63
|
+
* /* response ==
|
|
64
|
+
* {
|
|
65
|
+
* "jobSummaryList": [
|
|
66
|
+
* {
|
|
67
|
+
* "jobId": "e66ff5fd-a1ff-4640-b1a2-0b0a142f49bb",
|
|
68
|
+
* "jobName": "example"
|
|
69
|
+
* }
|
|
70
|
+
* ]
|
|
71
|
+
* }
|
|
72
|
+
* *\/
|
|
73
|
+
* // example id: to-list-running-jobs-1481154202164
|
|
74
|
+
* ```
|
|
75
|
+
*
|
|
76
|
+
* @example To list submitted jobs
|
|
77
|
+
* ```javascript
|
|
78
|
+
* // This example lists jobs in the HighPriority job queue that are in the SUBMITTED job status.
|
|
79
|
+
* const input = {
|
|
80
|
+
* "jobQueue": "HighPriority",
|
|
81
|
+
* "jobStatus": "SUBMITTED"
|
|
82
|
+
* };
|
|
83
|
+
* const command = new ListJobsCommand(input);
|
|
84
|
+
* const response = await client.send(command);
|
|
85
|
+
* /* response ==
|
|
86
|
+
* {
|
|
87
|
+
* "jobSummaryList": [
|
|
88
|
+
* {
|
|
89
|
+
* "jobId": "68f0c163-fbd4-44e6-9fd1-25b14a434786",
|
|
90
|
+
* "jobName": "example"
|
|
91
|
+
* }
|
|
92
|
+
* ]
|
|
93
|
+
* }
|
|
94
|
+
* *\/
|
|
95
|
+
* // example id: to-list-submitted-jobs-1481154251623
|
|
96
|
+
* ```
|
|
97
|
+
*
|
|
46
98
|
*/
|
|
47
99
|
export declare class ListJobsCommand extends $Command<ListJobsCommandInput, ListJobsCommandOutput, BatchClientResolvedConfig> {
|
|
48
100
|
readonly input: ListJobsCommandInput;
|
|
@@ -29,6 +29,15 @@ export interface ListSchedulingPoliciesCommandOutput extends ListSchedulingPolic
|
|
|
29
29
|
* @see {@link ListSchedulingPoliciesCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @throws {@link ClientException} (client fault)
|
|
33
|
+
* <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
|
|
34
|
+
* of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
|
|
35
|
+
* that's not valid.</p>
|
|
36
|
+
*
|
|
37
|
+
* @throws {@link ServerException} (server fault)
|
|
38
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
39
|
+
*
|
|
40
|
+
*
|
|
32
41
|
*/
|
|
33
42
|
export declare class ListSchedulingPoliciesCommand extends $Command<ListSchedulingPoliciesCommandInput, ListSchedulingPoliciesCommandOutput, BatchClientResolvedConfig> {
|
|
34
43
|
readonly input: ListSchedulingPoliciesCommandInput;
|
|
@@ -30,6 +30,35 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
|
|
|
30
30
|
* @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
|
|
31
31
|
* @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
|
|
32
32
|
*
|
|
33
|
+
* @throws {@link ClientException} (client fault)
|
|
34
|
+
* <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
|
|
35
|
+
* of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
|
|
36
|
+
* that's not valid.</p>
|
|
37
|
+
*
|
|
38
|
+
* @throws {@link ServerException} (server fault)
|
|
39
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
40
|
+
*
|
|
41
|
+
*
|
|
42
|
+
* @example ListTagsForResource Example
|
|
43
|
+
* ```javascript
|
|
44
|
+
* // This demonstrates calling the ListTagsForResource action.
|
|
45
|
+
* const input = {
|
|
46
|
+
* "resourceArn": "arn:aws:batch:us-east-1:123456789012:job-definition/sleep30:1"
|
|
47
|
+
* };
|
|
48
|
+
* const command = new ListTagsForResourceCommand(input);
|
|
49
|
+
* const response = await client.send(command);
|
|
50
|
+
* /* response ==
|
|
51
|
+
* {
|
|
52
|
+
* "tags": {
|
|
53
|
+
* "Department": "Engineering",
|
|
54
|
+
* "Stage": "Alpha",
|
|
55
|
+
* "User": "JaneDoe"
|
|
56
|
+
* }
|
|
57
|
+
* }
|
|
58
|
+
* *\/
|
|
59
|
+
* // example id: listtagsforresource-example-1591293003710
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
33
62
|
*/
|
|
34
63
|
export declare class ListTagsForResourceCommand extends $Command<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, BatchClientResolvedConfig> {
|
|
35
64
|
readonly input: ListTagsForResourceCommandInput;
|
|
@@ -29,6 +29,91 @@ export interface RegisterJobDefinitionCommandOutput extends RegisterJobDefinitio
|
|
|
29
29
|
* @see {@link RegisterJobDefinitionCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @throws {@link ClientException} (client fault)
|
|
33
|
+
* <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
|
|
34
|
+
* of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
|
|
35
|
+
* that's not valid.</p>
|
|
36
|
+
*
|
|
37
|
+
* @throws {@link ServerException} (server fault)
|
|
38
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
39
|
+
*
|
|
40
|
+
*
|
|
41
|
+
* @example To register a job definition
|
|
42
|
+
* ```javascript
|
|
43
|
+
* // This example registers a job definition for a simple container job.
|
|
44
|
+
* const input = {
|
|
45
|
+
* "type": "container",
|
|
46
|
+
* "containerProperties": {
|
|
47
|
+
* "command": [
|
|
48
|
+
* "sleep",
|
|
49
|
+
* "10"
|
|
50
|
+
* ],
|
|
51
|
+
* "image": "busybox",
|
|
52
|
+
* "resourceRequirements": [
|
|
53
|
+
* {
|
|
54
|
+
* "type": "MEMORY",
|
|
55
|
+
* "value": "128"
|
|
56
|
+
* },
|
|
57
|
+
* {
|
|
58
|
+
* "type": "VCPU",
|
|
59
|
+
* "value": "1"
|
|
60
|
+
* }
|
|
61
|
+
* ]
|
|
62
|
+
* },
|
|
63
|
+
* "jobDefinitionName": "sleep10"
|
|
64
|
+
* };
|
|
65
|
+
* const command = new RegisterJobDefinitionCommand(input);
|
|
66
|
+
* const response = await client.send(command);
|
|
67
|
+
* /* response ==
|
|
68
|
+
* {
|
|
69
|
+
* "jobDefinitionArn": "arn:aws:batch:us-east-1:012345678910:job-definition/sleep10:1",
|
|
70
|
+
* "jobDefinitionName": "sleep10",
|
|
71
|
+
* "revision": 1
|
|
72
|
+
* }
|
|
73
|
+
* *\/
|
|
74
|
+
* // example id: to-register-a-job-definition-1481154325325
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* @example RegisterJobDefinition with tags
|
|
78
|
+
* ```javascript
|
|
79
|
+
* // This demonstrates calling the RegisterJobDefinition action, including tags.
|
|
80
|
+
* const input = {
|
|
81
|
+
* "type": "container",
|
|
82
|
+
* "containerProperties": {
|
|
83
|
+
* "command": [
|
|
84
|
+
* "sleep",
|
|
85
|
+
* "30"
|
|
86
|
+
* ],
|
|
87
|
+
* "image": "busybox",
|
|
88
|
+
* "resourceRequirements": [
|
|
89
|
+
* {
|
|
90
|
+
* "type": "MEMORY",
|
|
91
|
+
* "value": "128"
|
|
92
|
+
* },
|
|
93
|
+
* {
|
|
94
|
+
* "type": "VCPU",
|
|
95
|
+
* "value": "1"
|
|
96
|
+
* }
|
|
97
|
+
* ]
|
|
98
|
+
* },
|
|
99
|
+
* "jobDefinitionName": "sleep30",
|
|
100
|
+
* "tags": {
|
|
101
|
+
* "Department": "Engineering",
|
|
102
|
+
* "User": "JaneDoe"
|
|
103
|
+
* }
|
|
104
|
+
* };
|
|
105
|
+
* const command = new RegisterJobDefinitionCommand(input);
|
|
106
|
+
* const response = await client.send(command);
|
|
107
|
+
* /* response ==
|
|
108
|
+
* {
|
|
109
|
+
* "jobDefinitionArn": "arn:aws:batch:us-east-1:012345678910:job-definition/sleep30:1",
|
|
110
|
+
* "jobDefinitionName": "sleep30",
|
|
111
|
+
* "revision": 1
|
|
112
|
+
* }
|
|
113
|
+
* *\/
|
|
114
|
+
* // example id: registerjobdefinition-with-tags-1591290509028
|
|
115
|
+
* ```
|
|
116
|
+
*
|
|
32
117
|
*/
|
|
33
118
|
export declare class RegisterJobDefinitionCommand extends $Command<RegisterJobDefinitionCommandInput, RegisterJobDefinitionCommandOutput, BatchClientResolvedConfig> {
|
|
34
119
|
readonly input: RegisterJobDefinitionCommandInput;
|
|
@@ -41,6 +41,34 @@ export interface SubmitJobCommandOutput extends SubmitJobResponse, __MetadataBea
|
|
|
41
41
|
* @see {@link SubmitJobCommandOutput} for command's `response` shape.
|
|
42
42
|
* @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
|
|
43
43
|
*
|
|
44
|
+
* @throws {@link ClientException} (client fault)
|
|
45
|
+
* <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
|
|
46
|
+
* of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
|
|
47
|
+
* that's not valid.</p>
|
|
48
|
+
*
|
|
49
|
+
* @throws {@link ServerException} (server fault)
|
|
50
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
51
|
+
*
|
|
52
|
+
*
|
|
53
|
+
* @example To submit a job to a queue
|
|
54
|
+
* ```javascript
|
|
55
|
+
* // This example submits a simple container job called example to the HighPriority job queue.
|
|
56
|
+
* const input = {
|
|
57
|
+
* "jobDefinition": "sleep60",
|
|
58
|
+
* "jobName": "example",
|
|
59
|
+
* "jobQueue": "HighPriority"
|
|
60
|
+
* };
|
|
61
|
+
* const command = new SubmitJobCommand(input);
|
|
62
|
+
* const response = await client.send(command);
|
|
63
|
+
* /* response ==
|
|
64
|
+
* {
|
|
65
|
+
* "jobId": "876da822-4198-45f2-a252-6cea32512ea8",
|
|
66
|
+
* "jobName": "example"
|
|
67
|
+
* }
|
|
68
|
+
* *\/
|
|
69
|
+
* // example id: to-submit-a-job-to-a-queue-1481154481673
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
44
72
|
*/
|
|
45
73
|
export declare class SubmitJobCommand extends $Command<SubmitJobCommandInput, SubmitJobCommandOutput, BatchClientResolvedConfig> {
|
|
46
74
|
readonly input: SubmitJobCommandInput;
|
|
@@ -32,6 +32,29 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
|
|
|
32
32
|
* @see {@link TagResourceCommandOutput} for command's `response` shape.
|
|
33
33
|
* @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
|
|
34
34
|
*
|
|
35
|
+
* @throws {@link ClientException} (client fault)
|
|
36
|
+
* <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
|
|
37
|
+
* of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
|
|
38
|
+
* that's not valid.</p>
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link ServerException} (server fault)
|
|
41
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
42
|
+
*
|
|
43
|
+
*
|
|
44
|
+
* @example TagResource Example
|
|
45
|
+
* ```javascript
|
|
46
|
+
* // This demonstrates calling the TagResource action.
|
|
47
|
+
* const input = {
|
|
48
|
+
* "resourceArn": "arn:aws:batch:us-east-1:123456789012:job-definition/sleep30:1",
|
|
49
|
+
* "tags": {
|
|
50
|
+
* "Stage": "Alpha"
|
|
51
|
+
* }
|
|
52
|
+
* };
|
|
53
|
+
* const command = new TagResourceCommand(input);
|
|
54
|
+
* await client.send(command);
|
|
55
|
+
* // example id: tagresource-example-1591291959952
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
35
58
|
*/
|
|
36
59
|
export declare class TagResourceCommand extends $Command<TagResourceCommandInput, TagResourceCommandOutput, BatchClientResolvedConfig> {
|
|
37
60
|
readonly input: TagResourceCommandInput;
|
|
@@ -31,6 +31,27 @@ export interface TerminateJobCommandOutput extends TerminateJobResponse, __Metad
|
|
|
31
31
|
* @see {@link TerminateJobCommandOutput} for command's `response` shape.
|
|
32
32
|
* @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
|
|
33
33
|
*
|
|
34
|
+
* @throws {@link ClientException} (client fault)
|
|
35
|
+
* <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
|
|
36
|
+
* of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
|
|
37
|
+
* that's not valid.</p>
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link ServerException} (server fault)
|
|
40
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
41
|
+
*
|
|
42
|
+
*
|
|
43
|
+
* @example To terminate a job
|
|
44
|
+
* ```javascript
|
|
45
|
+
* // This example terminates a job with the specified job ID.
|
|
46
|
+
* const input = {
|
|
47
|
+
* "jobId": "61e743ed-35e4-48da-b2de-5c8333821c84",
|
|
48
|
+
* "reason": "Terminating job."
|
|
49
|
+
* };
|
|
50
|
+
* const command = new TerminateJobCommand(input);
|
|
51
|
+
* await client.send(command);
|
|
52
|
+
* // example id: to-terminate-a-job-1481154558276
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
34
55
|
*/
|
|
35
56
|
export declare class TerminateJobCommand extends $Command<TerminateJobCommandInput, TerminateJobCommandOutput, BatchClientResolvedConfig> {
|
|
36
57
|
readonly input: TerminateJobCommandInput;
|
|
@@ -29,6 +29,29 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
|
|
|
29
29
|
* @see {@link UntagResourceCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @throws {@link ClientException} (client fault)
|
|
33
|
+
* <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
|
|
34
|
+
* of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
|
|
35
|
+
* that's not valid.</p>
|
|
36
|
+
*
|
|
37
|
+
* @throws {@link ServerException} (server fault)
|
|
38
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
39
|
+
*
|
|
40
|
+
*
|
|
41
|
+
* @example UntagResource Example
|
|
42
|
+
* ```javascript
|
|
43
|
+
* // This demonstrates calling the UntagResource action.
|
|
44
|
+
* const input = {
|
|
45
|
+
* "resourceArn": "arn:aws:batch:us-east-1:123456789012:job-definition/sleep30:1",
|
|
46
|
+
* "tagKeys": [
|
|
47
|
+
* "Stage"
|
|
48
|
+
* ]
|
|
49
|
+
* };
|
|
50
|
+
* const command = new UntagResourceCommand(input);
|
|
51
|
+
* await client.send(command);
|
|
52
|
+
* // example id: untagresource-example-1591292811042
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
32
55
|
*/
|
|
33
56
|
export declare class UntagResourceCommand extends $Command<UntagResourceCommandInput, UntagResourceCommandOutput, BatchClientResolvedConfig> {
|
|
34
57
|
readonly input: UntagResourceCommandInput;
|
|
@@ -29,6 +29,33 @@ export interface UpdateComputeEnvironmentCommandOutput extends UpdateComputeEnvi
|
|
|
29
29
|
* @see {@link UpdateComputeEnvironmentCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @throws {@link ClientException} (client fault)
|
|
33
|
+
* <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
|
|
34
|
+
* of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
|
|
35
|
+
* that's not valid.</p>
|
|
36
|
+
*
|
|
37
|
+
* @throws {@link ServerException} (server fault)
|
|
38
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
39
|
+
*
|
|
40
|
+
*
|
|
41
|
+
* @example To update a compute environment
|
|
42
|
+
* ```javascript
|
|
43
|
+
* // This example disables the P2OnDemand compute environment so it can be deleted.
|
|
44
|
+
* const input = {
|
|
45
|
+
* "computeEnvironment": "P2OnDemand",
|
|
46
|
+
* "state": "DISABLED"
|
|
47
|
+
* };
|
|
48
|
+
* const command = new UpdateComputeEnvironmentCommand(input);
|
|
49
|
+
* const response = await client.send(command);
|
|
50
|
+
* /* response ==
|
|
51
|
+
* {
|
|
52
|
+
* "computeEnvironmentArn": "arn:aws:batch:us-east-1:012345678910:compute-environment/P2OnDemand",
|
|
53
|
+
* "computeEnvironmentName": "P2OnDemand"
|
|
54
|
+
* }
|
|
55
|
+
* *\/
|
|
56
|
+
* // example id: to-update-a-compute-environment-1481154702731
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
32
59
|
*/
|
|
33
60
|
export declare class UpdateComputeEnvironmentCommand extends $Command<UpdateComputeEnvironmentCommandInput, UpdateComputeEnvironmentCommandOutput, BatchClientResolvedConfig> {
|
|
34
61
|
readonly input: UpdateComputeEnvironmentCommandInput;
|
|
@@ -29,6 +29,33 @@ export interface UpdateJobQueueCommandOutput extends UpdateJobQueueResponse, __M
|
|
|
29
29
|
* @see {@link UpdateJobQueueCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @throws {@link ClientException} (client fault)
|
|
33
|
+
* <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
|
|
34
|
+
* of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
|
|
35
|
+
* that's not valid.</p>
|
|
36
|
+
*
|
|
37
|
+
* @throws {@link ServerException} (server fault)
|
|
38
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
39
|
+
*
|
|
40
|
+
*
|
|
41
|
+
* @example To update a job queue
|
|
42
|
+
* ```javascript
|
|
43
|
+
* // This example disables a job queue so that it can be deleted.
|
|
44
|
+
* const input = {
|
|
45
|
+
* "jobQueue": "GPGPU",
|
|
46
|
+
* "state": "DISABLED"
|
|
47
|
+
* };
|
|
48
|
+
* const command = new UpdateJobQueueCommand(input);
|
|
49
|
+
* const response = await client.send(command);
|
|
50
|
+
* /* response ==
|
|
51
|
+
* {
|
|
52
|
+
* "jobQueueArn": "arn:aws:batch:us-east-1:012345678910:job-queue/GPGPU",
|
|
53
|
+
* "jobQueueName": "GPGPU"
|
|
54
|
+
* }
|
|
55
|
+
* *\/
|
|
56
|
+
* // example id: to-update-a-job-queue-1481154806981
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
32
59
|
*/
|
|
33
60
|
export declare class UpdateJobQueueCommand extends $Command<UpdateJobQueueCommandInput, UpdateJobQueueCommandOutput, BatchClientResolvedConfig> {
|
|
34
61
|
readonly input: UpdateJobQueueCommandInput;
|
|
@@ -29,6 +29,15 @@ export interface UpdateSchedulingPolicyCommandOutput extends UpdateSchedulingPol
|
|
|
29
29
|
* @see {@link UpdateSchedulingPolicyCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @throws {@link ClientException} (client fault)
|
|
33
|
+
* <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
|
|
34
|
+
* of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
|
|
35
|
+
* that's not valid.</p>
|
|
36
|
+
*
|
|
37
|
+
* @throws {@link ServerException} (server fault)
|
|
38
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
39
|
+
*
|
|
40
|
+
*
|
|
32
41
|
*/
|
|
33
42
|
export declare class UpdateSchedulingPolicyCommand extends $Command<UpdateSchedulingPolicyCommandInput, UpdateSchedulingPolicyCommandOutput, BatchClientResolvedConfig> {
|
|
34
43
|
readonly input: UpdateSchedulingPolicyCommandInput;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-batch",
|
|
3
3
|
"description": "AWS SDK for JavaScript Batch Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.290.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,37 +20,37 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/config-resolver": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
27
|
-
"@aws-sdk/hash-node": "3.
|
|
28
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
29
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
30
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
31
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
32
|
-
"@aws-sdk/middleware-logger": "3.
|
|
33
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
34
|
-
"@aws-sdk/middleware-retry": "3.
|
|
35
|
-
"@aws-sdk/middleware-serde": "3.
|
|
36
|
-
"@aws-sdk/middleware-signing": "3.
|
|
37
|
-
"@aws-sdk/middleware-stack": "3.
|
|
38
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
-
"@aws-sdk/node-config-provider": "3.
|
|
40
|
-
"@aws-sdk/node-http-handler": "3.
|
|
41
|
-
"@aws-sdk/protocol-http": "3.
|
|
42
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
-
"@aws-sdk/types": "3.
|
|
44
|
-
"@aws-sdk/url-parser": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.290.0",
|
|
24
|
+
"@aws-sdk/config-resolver": "3.290.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.290.0",
|
|
26
|
+
"@aws-sdk/fetch-http-handler": "3.290.0",
|
|
27
|
+
"@aws-sdk/hash-node": "3.290.0",
|
|
28
|
+
"@aws-sdk/invalid-dependency": "3.290.0",
|
|
29
|
+
"@aws-sdk/middleware-content-length": "3.290.0",
|
|
30
|
+
"@aws-sdk/middleware-endpoint": "3.290.0",
|
|
31
|
+
"@aws-sdk/middleware-host-header": "3.290.0",
|
|
32
|
+
"@aws-sdk/middleware-logger": "3.290.0",
|
|
33
|
+
"@aws-sdk/middleware-recursion-detection": "3.290.0",
|
|
34
|
+
"@aws-sdk/middleware-retry": "3.290.0",
|
|
35
|
+
"@aws-sdk/middleware-serde": "3.290.0",
|
|
36
|
+
"@aws-sdk/middleware-signing": "3.290.0",
|
|
37
|
+
"@aws-sdk/middleware-stack": "3.290.0",
|
|
38
|
+
"@aws-sdk/middleware-user-agent": "3.290.0",
|
|
39
|
+
"@aws-sdk/node-config-provider": "3.290.0",
|
|
40
|
+
"@aws-sdk/node-http-handler": "3.290.0",
|
|
41
|
+
"@aws-sdk/protocol-http": "3.290.0",
|
|
42
|
+
"@aws-sdk/smithy-client": "3.290.0",
|
|
43
|
+
"@aws-sdk/types": "3.290.0",
|
|
44
|
+
"@aws-sdk/url-parser": "3.290.0",
|
|
45
45
|
"@aws-sdk/util-base64": "3.208.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-retry": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.290.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.290.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.290.0",
|
|
51
|
+
"@aws-sdk/util-retry": "3.290.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-browser": "3.290.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-node": "3.290.0",
|
|
54
54
|
"@aws-sdk/util-utf8": "3.254.0",
|
|
55
55
|
"tslib": "^2.3.1"
|
|
56
56
|
},
|