@aws-sdk/client-batch 3.775.0 → 3.777.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-cjs/index.js +7 -0
- package/dist-es/models/models_0.js +5 -0
- package/dist-types/commands/CancelJobCommand.d.ts +8 -5
- package/dist-types/commands/CreateComputeEnvironmentCommand.d.ts +44 -45
- package/dist-types/commands/CreateConsumableResourceCommand.d.ts +11 -11
- package/dist-types/commands/CreateJobQueueCommand.d.ts +22 -23
- package/dist-types/commands/CreateSchedulingPolicyCommand.d.ts +1 -0
- package/dist-types/commands/DeleteComputeEnvironmentCommand.d.ts +7 -4
- package/dist-types/commands/DeleteConsumableResourceCommand.d.ts +7 -4
- package/dist-types/commands/DeleteJobQueueCommand.d.ts +7 -4
- package/dist-types/commands/DeleteSchedulingPolicyCommand.d.ts +1 -0
- package/dist-types/commands/DeregisterJobDefinitionCommand.d.ts +7 -4
- package/dist-types/commands/DescribeComputeEnvironmentsCommand.d.ts +26 -26
- package/dist-types/commands/DescribeConsumableResourceCommand.d.ts +14 -14
- package/dist-types/commands/DescribeJobDefinitionsCommand.d.ts +40 -24
- package/dist-types/commands/DescribeJobQueuesCommand.d.ts +14 -14
- package/dist-types/commands/DescribeJobsCommand.d.ts +44 -28
- package/dist-types/commands/DescribeSchedulingPoliciesCommand.d.ts +1 -0
- package/dist-types/commands/GetJobQueueSnapshotCommand.d.ts +1 -0
- package/dist-types/commands/ListConsumableResourcesCommand.d.ts +13 -13
- package/dist-types/commands/ListJobsByConsumableResourceCommand.d.ts +20 -20
- package/dist-types/commands/ListJobsCommand.d.ts +13 -14
- package/dist-types/commands/ListSchedulingPoliciesCommand.d.ts +1 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +8 -8
- package/dist-types/commands/RegisterJobDefinitionCommand.d.ts +58 -43
- package/dist-types/commands/SubmitJobCommand.d.ts +9 -9
- package/dist-types/commands/TagResourceCommand.d.ts +9 -6
- package/dist-types/commands/TerminateJobCommand.d.ts +8 -5
- package/dist-types/commands/UntagResourceCommand.d.ts +8 -5
- package/dist-types/commands/UpdateComputeEnvironmentCommand.d.ts +7 -7
- package/dist-types/commands/UpdateConsumableResourceCommand.d.ts +9 -9
- package/dist-types/commands/UpdateJobQueueCommand.d.ts +7 -7
- package/dist-types/commands/UpdateSchedulingPolicyCommand.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +127 -45
- package/dist-types/ts3.4/models/models_0.d.ts +17 -0
- package/package.json +2 -2
package/dist-cjs/index.js
CHANGED
|
@@ -52,6 +52,7 @@ __export(index_exports, {
|
|
|
52
52
|
DeviceCgroupPermission: () => DeviceCgroupPermission,
|
|
53
53
|
EFSAuthorizationConfigIAM: () => EFSAuthorizationConfigIAM,
|
|
54
54
|
EFSTransitEncryption: () => EFSTransitEncryption,
|
|
55
|
+
FirelensConfigurationType: () => FirelensConfigurationType,
|
|
55
56
|
GetJobQueueSnapshotCommand: () => GetJobQueueSnapshotCommand,
|
|
56
57
|
JQState: () => JQState,
|
|
57
58
|
JQStatus: () => JQStatus,
|
|
@@ -353,6 +354,7 @@ var DeviceCgroupPermission = {
|
|
|
353
354
|
WRITE: "WRITE"
|
|
354
355
|
};
|
|
355
356
|
var LogDriver = {
|
|
357
|
+
AWSFIRELENS: "awsfirelens",
|
|
356
358
|
AWSLOGS: "awslogs",
|
|
357
359
|
FLUENTD: "fluentd",
|
|
358
360
|
GELF: "gelf",
|
|
@@ -374,6 +376,10 @@ var EFSTransitEncryption = {
|
|
|
374
376
|
DISABLED: "DISABLED",
|
|
375
377
|
ENABLED: "ENABLED"
|
|
376
378
|
};
|
|
379
|
+
var FirelensConfigurationType = {
|
|
380
|
+
FLUENTBIT: "fluentbit",
|
|
381
|
+
FLUENTD: "fluentd"
|
|
382
|
+
};
|
|
377
383
|
var PlatformCapability = {
|
|
378
384
|
EC2: "EC2",
|
|
379
385
|
FARGATE: "FARGATE"
|
|
@@ -2167,6 +2173,7 @@ var paginateListSchedulingPolicies = (0, import_core.createPaginator)(BatchClien
|
|
|
2167
2173
|
ResourceType,
|
|
2168
2174
|
EFSAuthorizationConfigIAM,
|
|
2169
2175
|
EFSTransitEncryption,
|
|
2176
|
+
FirelensConfigurationType,
|
|
2170
2177
|
PlatformCapability,
|
|
2171
2178
|
RetryAction,
|
|
2172
2179
|
JQStatus,
|
|
@@ -79,6 +79,7 @@ export const DeviceCgroupPermission = {
|
|
|
79
79
|
WRITE: "WRITE",
|
|
80
80
|
};
|
|
81
81
|
export const LogDriver = {
|
|
82
|
+
AWSFIRELENS: "awsfirelens",
|
|
82
83
|
AWSLOGS: "awslogs",
|
|
83
84
|
FLUENTD: "fluentd",
|
|
84
85
|
GELF: "gelf",
|
|
@@ -100,6 +101,10 @@ export const EFSTransitEncryption = {
|
|
|
100
101
|
DISABLED: "DISABLED",
|
|
101
102
|
ENABLED: "ENABLED",
|
|
102
103
|
};
|
|
104
|
+
export const FirelensConfigurationType = {
|
|
105
|
+
FLUENTBIT: "fluentbit",
|
|
106
|
+
FLUENTD: "fluentd",
|
|
107
|
+
};
|
|
103
108
|
export const PlatformCapability = {
|
|
104
109
|
EC2: "EC2",
|
|
105
110
|
FARGATE: "FARGATE",
|
|
@@ -73,19 +73,22 @@ declare const CancelJobCommand_base: {
|
|
|
73
73
|
* @throws {@link BatchServiceException}
|
|
74
74
|
* <p>Base exception class for all service exceptions from Batch service.</p>
|
|
75
75
|
*
|
|
76
|
-
*
|
|
76
|
+
*
|
|
77
77
|
* @example To cancel a job
|
|
78
78
|
* ```javascript
|
|
79
79
|
* // This example cancels a job with the specified job ID.
|
|
80
80
|
* const input = {
|
|
81
|
-
*
|
|
82
|
-
*
|
|
81
|
+
* jobId: "1d828f65-7a4d-42e8-996d-3b900ed59dc4",
|
|
82
|
+
* reason: "Cancelling job."
|
|
83
83
|
* };
|
|
84
84
|
* const command = new CancelJobCommand(input);
|
|
85
|
-
* await client.send(command);
|
|
86
|
-
*
|
|
85
|
+
* const response = await client.send(command);
|
|
86
|
+
* /* response is
|
|
87
|
+
* { /* empty *\/ }
|
|
88
|
+
* *\/
|
|
87
89
|
* ```
|
|
88
90
|
*
|
|
91
|
+
* @public
|
|
89
92
|
*/
|
|
90
93
|
export declare class CancelJobCommand extends CancelJobCommand_base {
|
|
91
94
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -216,97 +216,96 @@ declare const CreateComputeEnvironmentCommand_base: {
|
|
|
216
216
|
* @throws {@link BatchServiceException}
|
|
217
217
|
* <p>Base exception class for all service exceptions from Batch service.</p>
|
|
218
218
|
*
|
|
219
|
-
*
|
|
219
|
+
*
|
|
220
220
|
* @example To create a managed EC2 compute environment
|
|
221
221
|
* ```javascript
|
|
222
222
|
* // This example creates a managed compute environment with specific C4 instance types that are launched on demand. The compute environment is called C4OnDemand.
|
|
223
223
|
* const input = {
|
|
224
|
-
*
|
|
225
|
-
*
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
* "
|
|
229
|
-
*
|
|
230
|
-
* "instanceRole": "ecsInstanceRole",
|
|
231
|
-
* "instanceTypes": [
|
|
224
|
+
* computeEnvironmentName: "C4OnDemand",
|
|
225
|
+
* computeResources: {
|
|
226
|
+
* desiredvCpus: 48,
|
|
227
|
+
* ec2KeyPair: "id_rsa",
|
|
228
|
+
* instanceRole: "ecsInstanceRole",
|
|
229
|
+
* instanceTypes: [
|
|
232
230
|
* "c4.large",
|
|
233
231
|
* "c4.xlarge",
|
|
234
232
|
* "c4.2xlarge",
|
|
235
233
|
* "c4.4xlarge",
|
|
236
234
|
* "c4.8xlarge"
|
|
237
235
|
* ],
|
|
238
|
-
*
|
|
239
|
-
*
|
|
240
|
-
*
|
|
236
|
+
* maxvCpus: 128,
|
|
237
|
+
* minvCpus: 0,
|
|
238
|
+
* securityGroupIds: [
|
|
241
239
|
* "sg-cf5093b2"
|
|
242
240
|
* ],
|
|
243
|
-
*
|
|
241
|
+
* subnets: [
|
|
244
242
|
* "subnet-220c0e0a",
|
|
245
243
|
* "subnet-1a95556d",
|
|
246
244
|
* "subnet-978f6dce"
|
|
247
245
|
* ],
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
* }
|
|
246
|
+
* tags: {
|
|
247
|
+
* Name: "Batch Instance - C4OnDemand"
|
|
248
|
+
* },
|
|
249
|
+
* type: "EC2"
|
|
251
250
|
* },
|
|
252
|
-
*
|
|
253
|
-
*
|
|
251
|
+
* serviceRole: "arn:aws:iam::012345678910:role/AWSBatchServiceRole",
|
|
252
|
+
* state: "ENABLED",
|
|
253
|
+
* type: "MANAGED"
|
|
254
254
|
* };
|
|
255
255
|
* const command = new CreateComputeEnvironmentCommand(input);
|
|
256
256
|
* const response = await client.send(command);
|
|
257
|
-
* /* response
|
|
257
|
+
* /* response is
|
|
258
258
|
* {
|
|
259
|
-
*
|
|
260
|
-
*
|
|
259
|
+
* computeEnvironmentArn: "arn:aws:batch:us-east-1:012345678910:compute-environment/C4OnDemand",
|
|
260
|
+
* computeEnvironmentName: "C4OnDemand"
|
|
261
261
|
* }
|
|
262
262
|
* *\/
|
|
263
|
-
* // example id: to-create-a-managed-ec2-compute-environment-1481152600017
|
|
264
263
|
* ```
|
|
265
264
|
*
|
|
266
265
|
* @example To create a managed EC2 Spot compute environment
|
|
267
266
|
* ```javascript
|
|
268
267
|
* // 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.
|
|
269
268
|
* const input = {
|
|
270
|
-
*
|
|
271
|
-
*
|
|
272
|
-
*
|
|
273
|
-
*
|
|
274
|
-
* "
|
|
275
|
-
* "
|
|
276
|
-
*
|
|
277
|
-
* "instanceRole": "ecsInstanceRole",
|
|
278
|
-
* "instanceTypes": [
|
|
269
|
+
* computeEnvironmentName: "M4Spot",
|
|
270
|
+
* computeResources: {
|
|
271
|
+
* bidPercentage: 20,
|
|
272
|
+
* desiredvCpus: 4,
|
|
273
|
+
* ec2KeyPair: "id_rsa",
|
|
274
|
+
* instanceRole: "ecsInstanceRole",
|
|
275
|
+
* instanceTypes: [
|
|
279
276
|
* "m4"
|
|
280
277
|
* ],
|
|
281
|
-
*
|
|
282
|
-
*
|
|
283
|
-
*
|
|
278
|
+
* maxvCpus: 128,
|
|
279
|
+
* minvCpus: 0,
|
|
280
|
+
* securityGroupIds: [
|
|
284
281
|
* "sg-cf5093b2"
|
|
285
282
|
* ],
|
|
286
|
-
*
|
|
287
|
-
*
|
|
283
|
+
* spotIamFleetRole: "arn:aws:iam::012345678910:role/aws-ec2-spot-fleet-role",
|
|
284
|
+
* subnets: [
|
|
288
285
|
* "subnet-220c0e0a",
|
|
289
286
|
* "subnet-1a95556d",
|
|
290
287
|
* "subnet-978f6dce"
|
|
291
288
|
* ],
|
|
292
|
-
*
|
|
293
|
-
*
|
|
294
|
-
* }
|
|
289
|
+
* tags: {
|
|
290
|
+
* Name: "Batch Instance - M4Spot"
|
|
291
|
+
* },
|
|
292
|
+
* type: "SPOT"
|
|
295
293
|
* },
|
|
296
|
-
*
|
|
297
|
-
*
|
|
294
|
+
* serviceRole: "arn:aws:iam::012345678910:role/AWSBatchServiceRole",
|
|
295
|
+
* state: "ENABLED",
|
|
296
|
+
* type: "MANAGED"
|
|
298
297
|
* };
|
|
299
298
|
* const command = new CreateComputeEnvironmentCommand(input);
|
|
300
299
|
* const response = await client.send(command);
|
|
301
|
-
* /* response
|
|
300
|
+
* /* response is
|
|
302
301
|
* {
|
|
303
|
-
*
|
|
304
|
-
*
|
|
302
|
+
* computeEnvironmentArn: "arn:aws:batch:us-east-1:012345678910:compute-environment/M4Spot",
|
|
303
|
+
* computeEnvironmentName: "M4Spot"
|
|
305
304
|
* }
|
|
306
305
|
* *\/
|
|
307
|
-
* // example id: to-create-a-managed-ec2-spot-compute-environment-1481152844190
|
|
308
306
|
* ```
|
|
309
307
|
*
|
|
308
|
+
* @public
|
|
310
309
|
*/
|
|
311
310
|
export declare class CreateComputeEnvironmentCommand extends CreateComputeEnvironmentCommand_base {
|
|
312
311
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -68,30 +68,30 @@ declare const CreateConsumableResourceCommand_base: {
|
|
|
68
68
|
* @throws {@link BatchServiceException}
|
|
69
69
|
* <p>Base exception class for all service exceptions from Batch service.</p>
|
|
70
70
|
*
|
|
71
|
-
*
|
|
71
|
+
*
|
|
72
72
|
* @example To create a consumable resource
|
|
73
73
|
* ```javascript
|
|
74
74
|
* // Creates a Batch consumable resource.
|
|
75
75
|
* const input = {
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
76
|
+
* consumableResourceName: "myConsumableResource",
|
|
77
|
+
* resourceType: "REPLENISHABLE",
|
|
78
|
+
* tags: {
|
|
79
|
+
* Department: "Engineering",
|
|
80
|
+
* User: "JaneDoe"
|
|
81
81
|
* },
|
|
82
|
-
*
|
|
82
|
+
* totalQuantity: 123
|
|
83
83
|
* };
|
|
84
84
|
* const command = new CreateConsumableResourceCommand(input);
|
|
85
85
|
* const response = await client.send(command);
|
|
86
|
-
* /* response
|
|
86
|
+
* /* response is
|
|
87
87
|
* {
|
|
88
|
-
*
|
|
89
|
-
*
|
|
88
|
+
* consumableResourceArn: "arn:aws:batch:us-east-1:012345678910:consumable-resource/myConsumableResource",
|
|
89
|
+
* consumableResourceName: "myConsumableResource"
|
|
90
90
|
* }
|
|
91
91
|
* *\/
|
|
92
|
-
* // example id: to-create-a-consumable-resource-1739494856623
|
|
93
92
|
* ```
|
|
94
93
|
*
|
|
94
|
+
* @public
|
|
95
95
|
*/
|
|
96
96
|
export declare class CreateConsumableResourceCommand extends CreateConsumableResourceCommand_base {
|
|
97
97
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -89,61 +89,60 @@ declare const CreateJobQueueCommand_base: {
|
|
|
89
89
|
* @throws {@link BatchServiceException}
|
|
90
90
|
* <p>Base exception class for all service exceptions from Batch service.</p>
|
|
91
91
|
*
|
|
92
|
-
*
|
|
92
|
+
*
|
|
93
93
|
* @example To create a job queue with a single compute environment
|
|
94
94
|
* ```javascript
|
|
95
95
|
* // This example creates a job queue called LowPriority that uses the M4Spot compute environment.
|
|
96
96
|
* const input = {
|
|
97
|
-
*
|
|
97
|
+
* computeEnvironmentOrder: [
|
|
98
98
|
* {
|
|
99
|
-
*
|
|
100
|
-
*
|
|
99
|
+
* computeEnvironment: "M4Spot",
|
|
100
|
+
* order: 1
|
|
101
101
|
* }
|
|
102
102
|
* ],
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
103
|
+
* jobQueueName: "LowPriority",
|
|
104
|
+
* priority: 1,
|
|
105
|
+
* state: "ENABLED"
|
|
106
106
|
* };
|
|
107
107
|
* const command = new CreateJobQueueCommand(input);
|
|
108
108
|
* const response = await client.send(command);
|
|
109
|
-
* /* response
|
|
109
|
+
* /* response is
|
|
110
110
|
* {
|
|
111
|
-
*
|
|
112
|
-
*
|
|
111
|
+
* jobQueueArn: "arn:aws:batch:us-east-1:012345678910:job-queue/LowPriority",
|
|
112
|
+
* jobQueueName: "LowPriority"
|
|
113
113
|
* }
|
|
114
114
|
* *\/
|
|
115
|
-
* // example id: to-create-a-job-queue-with-a-single-compute-environment-1481152967946
|
|
116
115
|
* ```
|
|
117
116
|
*
|
|
118
117
|
* @example To create a job queue with multiple compute environments
|
|
119
118
|
* ```javascript
|
|
120
119
|
* // 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.
|
|
121
120
|
* const input = {
|
|
122
|
-
*
|
|
121
|
+
* computeEnvironmentOrder: [
|
|
123
122
|
* {
|
|
124
|
-
*
|
|
125
|
-
*
|
|
123
|
+
* computeEnvironment: "C4OnDemand",
|
|
124
|
+
* order: 1
|
|
126
125
|
* },
|
|
127
126
|
* {
|
|
128
|
-
*
|
|
129
|
-
*
|
|
127
|
+
* computeEnvironment: "M4Spot",
|
|
128
|
+
* order: 2
|
|
130
129
|
* }
|
|
131
130
|
* ],
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
131
|
+
* jobQueueName: "HighPriority",
|
|
132
|
+
* priority: 10,
|
|
133
|
+
* state: "ENABLED"
|
|
135
134
|
* };
|
|
136
135
|
* const command = new CreateJobQueueCommand(input);
|
|
137
136
|
* const response = await client.send(command);
|
|
138
|
-
* /* response
|
|
137
|
+
* /* response is
|
|
139
138
|
* {
|
|
140
|
-
*
|
|
141
|
-
*
|
|
139
|
+
* jobQueueArn: "arn:aws:batch:us-east-1:012345678910:job-queue/HighPriority",
|
|
140
|
+
* jobQueueName: "HighPriority"
|
|
142
141
|
* }
|
|
143
142
|
* *\/
|
|
144
|
-
* // example id: to-create-a-job-queue-with-multiple-compute-environments-1481153027051
|
|
145
143
|
* ```
|
|
146
144
|
*
|
|
145
|
+
* @public
|
|
147
146
|
*/
|
|
148
147
|
export declare class CreateJobQueueCommand extends CreateJobQueueCommand_base {
|
|
149
148
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -76,6 +76,7 @@ declare const CreateSchedulingPolicyCommand_base: {
|
|
|
76
76
|
* @throws {@link BatchServiceException}
|
|
77
77
|
* <p>Base exception class for all service exceptions from Batch service.</p>
|
|
78
78
|
*
|
|
79
|
+
*
|
|
79
80
|
* @public
|
|
80
81
|
*/
|
|
81
82
|
export declare class CreateSchedulingPolicyCommand extends CreateSchedulingPolicyCommand_base {
|
|
@@ -66,18 +66,21 @@ declare const DeleteComputeEnvironmentCommand_base: {
|
|
|
66
66
|
* @throws {@link BatchServiceException}
|
|
67
67
|
* <p>Base exception class for all service exceptions from Batch service.</p>
|
|
68
68
|
*
|
|
69
|
-
*
|
|
69
|
+
*
|
|
70
70
|
* @example To delete a compute environment
|
|
71
71
|
* ```javascript
|
|
72
72
|
* // This example deletes the P2OnDemand compute environment.
|
|
73
73
|
* const input = {
|
|
74
|
-
*
|
|
74
|
+
* computeEnvironment: "P2OnDemand"
|
|
75
75
|
* };
|
|
76
76
|
* const command = new DeleteComputeEnvironmentCommand(input);
|
|
77
|
-
* await client.send(command);
|
|
78
|
-
*
|
|
77
|
+
* const response = await client.send(command);
|
|
78
|
+
* /* response is
|
|
79
|
+
* { /* empty *\/ }
|
|
80
|
+
* *\/
|
|
79
81
|
* ```
|
|
80
82
|
*
|
|
83
|
+
* @public
|
|
81
84
|
*/
|
|
82
85
|
export declare class DeleteComputeEnvironmentCommand extends DeleteComputeEnvironmentCommand_base {
|
|
83
86
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -60,18 +60,21 @@ declare const DeleteConsumableResourceCommand_base: {
|
|
|
60
60
|
* @throws {@link BatchServiceException}
|
|
61
61
|
* <p>Base exception class for all service exceptions from Batch service.</p>
|
|
62
62
|
*
|
|
63
|
-
*
|
|
63
|
+
*
|
|
64
64
|
* @example To delete a consumable resource
|
|
65
65
|
* ```javascript
|
|
66
66
|
* // Deletes the specified consumable resource.
|
|
67
67
|
* const input = {
|
|
68
|
-
*
|
|
68
|
+
* consumableResource: "myConsumableResource"
|
|
69
69
|
* };
|
|
70
70
|
* const command = new DeleteConsumableResourceCommand(input);
|
|
71
|
-
* await client.send(command);
|
|
72
|
-
*
|
|
71
|
+
* const response = await client.send(command);
|
|
72
|
+
* /* response is
|
|
73
|
+
* { /* empty *\/ }
|
|
74
|
+
* *\/
|
|
73
75
|
* ```
|
|
74
76
|
*
|
|
77
|
+
* @public
|
|
75
78
|
*/
|
|
76
79
|
export declare class DeleteConsumableResourceCommand extends DeleteConsumableResourceCommand_base {
|
|
77
80
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -65,18 +65,21 @@ declare const DeleteJobQueueCommand_base: {
|
|
|
65
65
|
* @throws {@link BatchServiceException}
|
|
66
66
|
* <p>Base exception class for all service exceptions from Batch service.</p>
|
|
67
67
|
*
|
|
68
|
-
*
|
|
68
|
+
*
|
|
69
69
|
* @example To delete a job queue
|
|
70
70
|
* ```javascript
|
|
71
71
|
* // This example deletes the GPGPU job queue.
|
|
72
72
|
* const input = {
|
|
73
|
-
*
|
|
73
|
+
* jobQueue: "GPGPU"
|
|
74
74
|
* };
|
|
75
75
|
* const command = new DeleteJobQueueCommand(input);
|
|
76
|
-
* await client.send(command);
|
|
77
|
-
*
|
|
76
|
+
* const response = await client.send(command);
|
|
77
|
+
* /* response is
|
|
78
|
+
* { /* empty *\/ }
|
|
79
|
+
* *\/
|
|
78
80
|
* ```
|
|
79
81
|
*
|
|
82
|
+
* @public
|
|
80
83
|
*/
|
|
81
84
|
export declare class DeleteJobQueueCommand extends DeleteJobQueueCommand_base {
|
|
82
85
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -61,6 +61,7 @@ declare const DeleteSchedulingPolicyCommand_base: {
|
|
|
61
61
|
* @throws {@link BatchServiceException}
|
|
62
62
|
* <p>Base exception class for all service exceptions from Batch service.</p>
|
|
63
63
|
*
|
|
64
|
+
*
|
|
64
65
|
* @public
|
|
65
66
|
*/
|
|
66
67
|
export declare class DeleteSchedulingPolicyCommand extends DeleteSchedulingPolicyCommand_base {
|
|
@@ -61,18 +61,21 @@ declare const DeregisterJobDefinitionCommand_base: {
|
|
|
61
61
|
* @throws {@link BatchServiceException}
|
|
62
62
|
* <p>Base exception class for all service exceptions from Batch service.</p>
|
|
63
63
|
*
|
|
64
|
-
*
|
|
64
|
+
*
|
|
65
65
|
* @example To deregister a job definition
|
|
66
66
|
* ```javascript
|
|
67
67
|
* // This example deregisters a job definition called sleep10.
|
|
68
68
|
* const input = {
|
|
69
|
-
*
|
|
69
|
+
* jobDefinition: "sleep10"
|
|
70
70
|
* };
|
|
71
71
|
* const command = new DeregisterJobDefinitionCommand(input);
|
|
72
|
-
* await client.send(command);
|
|
73
|
-
*
|
|
72
|
+
* const response = await client.send(command);
|
|
73
|
+
* /* response is
|
|
74
|
+
* { /* empty *\/ }
|
|
75
|
+
* *\/
|
|
74
76
|
* ```
|
|
75
77
|
*
|
|
78
|
+
* @public
|
|
76
79
|
*/
|
|
77
80
|
export declare class DeregisterJobDefinitionCommand extends DeregisterJobDefinitionCommand_base {
|
|
78
81
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -143,58 +143,58 @@ declare const DescribeComputeEnvironmentsCommand_base: {
|
|
|
143
143
|
* @throws {@link BatchServiceException}
|
|
144
144
|
* <p>Base exception class for all service exceptions from Batch service.</p>
|
|
145
145
|
*
|
|
146
|
-
*
|
|
146
|
+
*
|
|
147
147
|
* @example To describe a compute environment
|
|
148
148
|
* ```javascript
|
|
149
149
|
* // This example describes the P2OnDemand compute environment.
|
|
150
150
|
* const input = {
|
|
151
|
-
*
|
|
151
|
+
* computeEnvironments: [
|
|
152
152
|
* "P2OnDemand"
|
|
153
153
|
* ]
|
|
154
154
|
* };
|
|
155
155
|
* const command = new DescribeComputeEnvironmentsCommand(input);
|
|
156
156
|
* const response = await client.send(command);
|
|
157
|
-
* /* response
|
|
157
|
+
* /* response is
|
|
158
158
|
* {
|
|
159
|
-
*
|
|
159
|
+
* computeEnvironments: [
|
|
160
160
|
* {
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
* "
|
|
167
|
-
*
|
|
168
|
-
* "instanceRole": "ecsInstanceRole",
|
|
169
|
-
* "instanceTypes": [
|
|
161
|
+
* computeEnvironmentArn: "arn:aws:batch:us-east-1:012345678910:compute-environment/P2OnDemand",
|
|
162
|
+
* computeEnvironmentName: "P2OnDemand",
|
|
163
|
+
* computeResources: {
|
|
164
|
+
* desiredvCpus: 48,
|
|
165
|
+
* ec2KeyPair: "id_rsa",
|
|
166
|
+
* instanceRole: "ecsInstanceRole",
|
|
167
|
+
* instanceTypes: [
|
|
170
168
|
* "p2"
|
|
171
169
|
* ],
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
170
|
+
* maxvCpus: 128,
|
|
171
|
+
* minvCpus: 0,
|
|
172
|
+
* securityGroupIds: [
|
|
175
173
|
* "sg-cf5093b2"
|
|
176
174
|
* ],
|
|
177
|
-
*
|
|
175
|
+
* subnets: [
|
|
178
176
|
* "subnet-220c0e0a",
|
|
179
177
|
* "subnet-1a95556d",
|
|
180
178
|
* "subnet-978f6dce"
|
|
181
179
|
* ],
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
* }
|
|
180
|
+
* tags: {
|
|
181
|
+
* Name: "Batch Instance - P2OnDemand"
|
|
182
|
+
* },
|
|
183
|
+
* type: "EC2"
|
|
185
184
|
* },
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
185
|
+
* ecsClusterArn: "arn:aws:ecs:us-east-1:012345678910:cluster/P2OnDemand_Batch_2c06f29d-d1fe-3a49-879d-42394c86effc",
|
|
186
|
+
* serviceRole: "arn:aws:iam::012345678910:role/AWSBatchServiceRole",
|
|
187
|
+
* state: "ENABLED",
|
|
188
|
+
* status: "VALID",
|
|
189
|
+
* statusReason: "ComputeEnvironment Healthy",
|
|
190
|
+
* type: "MANAGED"
|
|
191
191
|
* }
|
|
192
192
|
* ]
|
|
193
193
|
* }
|
|
194
194
|
* *\/
|
|
195
|
-
* // example id: to-describe-a-compute-environment-1481153713334
|
|
196
195
|
* ```
|
|
197
196
|
*
|
|
197
|
+
* @public
|
|
198
198
|
*/
|
|
199
199
|
export declare class DescribeComputeEnvironmentsCommand extends DescribeComputeEnvironmentsCommand_base {
|
|
200
200
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -71,33 +71,33 @@ declare const DescribeConsumableResourceCommand_base: {
|
|
|
71
71
|
* @throws {@link BatchServiceException}
|
|
72
72
|
* <p>Base exception class for all service exceptions from Batch service.</p>
|
|
73
73
|
*
|
|
74
|
-
*
|
|
74
|
+
*
|
|
75
75
|
* @example To get a description of a consumable resource
|
|
76
76
|
* ```javascript
|
|
77
77
|
* // Returns a description of the specified consumable resource.
|
|
78
78
|
* const input = {
|
|
79
|
-
*
|
|
79
|
+
* consumableResource: "myConsumableResource"
|
|
80
80
|
* };
|
|
81
81
|
* const command = new DescribeConsumableResourceCommand(input);
|
|
82
82
|
* const response = await client.send(command);
|
|
83
|
-
* /* response
|
|
83
|
+
* /* response is
|
|
84
84
|
* {
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
85
|
+
* availableQuantity: 123,
|
|
86
|
+
* consumableResourceArn: "arn:aws:batch:us-east-1:012345678910:consumable-resource/myConsumableResource",
|
|
87
|
+
* consumableResourceName: "myConsumableResource",
|
|
88
|
+
* createdAt: 123,
|
|
89
|
+
* inUseQuantity: 123,
|
|
90
|
+
* resourceType: "REPLENISHABLE",
|
|
91
|
+
* tags: {
|
|
92
|
+
* Department: "Engineering",
|
|
93
|
+
* User: "JaneDoe"
|
|
94
94
|
* },
|
|
95
|
-
*
|
|
95
|
+
* totalQuantity: 123
|
|
96
96
|
* }
|
|
97
97
|
* *\/
|
|
98
|
-
* // example id: to-get-a-description-of-a-consumable-resource-1739495864808
|
|
99
98
|
* ```
|
|
100
99
|
*
|
|
100
|
+
* @public
|
|
101
101
|
*/
|
|
102
102
|
export declare class DescribeConsumableResourceCommand extends DescribeConsumableResourceCommand_base {
|
|
103
103
|
/** @internal type navigation helper, not in runtime. */
|