@aws-sdk/client-ecs 3.775.0 → 3.778.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/CreateCapacityProviderCommand.d.ts +25 -25
- package/dist-types/commands/CreateClusterCommand.d.ts +12 -12
- package/dist-types/commands/CreateServiceCommand.d.ts +75 -76
- package/dist-types/commands/CreateTaskSetCommand.d.ts +33 -33
- package/dist-types/commands/DeleteAccountSettingCommand.d.ts +19 -20
- package/dist-types/commands/DeleteAttributesCommand.d.ts +10 -10
- package/dist-types/commands/DeleteCapacityProviderCommand.d.ts +18 -18
- package/dist-types/commands/DeleteClusterCommand.d.ts +12 -12
- package/dist-types/commands/DeleteServiceCommand.d.ts +7 -4
- package/dist-types/commands/DeleteTaskDefinitionsCommand.d.ts +23 -23
- package/dist-types/commands/DeleteTaskSetCommand.d.ts +30 -30
- package/dist-types/commands/DeregisterContainerInstanceCommand.d.ts +9 -6
- package/dist-types/commands/DeregisterTaskDefinitionCommand.d.ts +22 -22
- package/dist-types/commands/DescribeCapacityProvidersCommand.d.ts +60 -61
- package/dist-types/commands/DescribeClustersCommand.d.ts +9 -9
- package/dist-types/commands/DescribeContainerInstancesCommand.d.ts +49 -49
- package/dist-types/commands/DescribeServiceDeploymentsCommand.d.ts +1 -41
- package/dist-types/commands/DescribeServiceRevisionsCommand.d.ts +1 -41
- package/dist-types/commands/DescribeServicesCommand.d.ts +32 -32
- package/dist-types/commands/DescribeTaskDefinitionCommand.d.ts +33 -33
- package/dist-types/commands/DescribeTaskSetsCommand.d.ts +30 -30
- package/dist-types/commands/DescribeTasksCommand.d.ts +25 -25
- package/dist-types/commands/DiscoverPollEndpointCommand.d.ts +1 -0
- package/dist-types/commands/ExecuteCommandCommand.d.ts +17 -17
- package/dist-types/commands/GetTaskProtectionCommand.d.ts +10 -10
- package/dist-types/commands/ListAccountSettingsCommand.d.ts +31 -32
- package/dist-types/commands/ListAttributesCommand.d.ts +11 -11
- package/dist-types/commands/ListClustersCommand.d.ts +5 -5
- package/dist-types/commands/ListContainerInstancesCommand.d.ts +5 -5
- package/dist-types/commands/ListServiceDeploymentsCommand.d.ts +12 -12
- package/dist-types/commands/ListServicesByNamespaceCommand.d.ts +1 -0
- package/dist-types/commands/ListServicesCommand.d.ts +5 -5
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +7 -7
- package/dist-types/commands/ListTaskDefinitionFamiliesCommand.d.ts +16 -17
- package/dist-types/commands/ListTaskDefinitionsCommand.d.ts +16 -17
- package/dist-types/commands/ListTasksCommand.d.ts +16 -17
- package/dist-types/commands/PutAccountSettingCommand.d.ts +21 -22
- package/dist-types/commands/PutAccountSettingDefaultCommand.d.ts +9 -9
- package/dist-types/commands/PutAttributesCommand.d.ts +12 -12
- package/dist-types/commands/PutClusterCapacityProvidersCommand.d.ts +129 -131
- package/dist-types/commands/RegisterContainerInstanceCommand.d.ts +1 -0
- package/dist-types/commands/RegisterTaskDefinitionCommand.d.ts +29 -29
- package/dist-types/commands/RunTaskCommand.d.ts +19 -19
- package/dist-types/commands/StartTaskCommand.d.ts +29 -29
- package/dist-types/commands/StopTaskCommand.d.ts +37 -37
- package/dist-types/commands/SubmitAttachmentStateChangesCommand.d.ts +1 -0
- package/dist-types/commands/SubmitContainerStateChangeCommand.d.ts +1 -0
- package/dist-types/commands/SubmitTaskStateChangeCommand.d.ts +1 -0
- package/dist-types/commands/TagResourceCommand.d.ts +10 -7
- package/dist-types/commands/UntagResourceCommand.d.ts +8 -5
- package/dist-types/commands/UpdateCapacityProviderCommand.d.ts +25 -25
- package/dist-types/commands/UpdateClusterCommand.d.ts +103 -104
- package/dist-types/commands/UpdateClusterSettingsCommand.d.ts +20 -20
- package/dist-types/commands/UpdateContainerAgentCommand.d.ts +12 -12
- package/dist-types/commands/UpdateContainerInstancesStateCommand.d.ts +90 -90
- package/dist-types/commands/UpdateServiceCommand.d.ts +18 -13
- package/dist-types/commands/UpdateServicePrimaryTaskSetCommand.d.ts +29 -29
- package/dist-types/commands/UpdateTaskProtectionCommand.d.ts +35 -37
- package/dist-types/commands/UpdateTaskSetCommand.d.ts +32 -32
- package/dist-types/models/models_0.d.ts +0 -7
- package/package.json +2 -2
|
@@ -220,179 +220,179 @@ declare const UpdateContainerInstancesStateCommand_base: {
|
|
|
220
220
|
* @throws {@link ECSServiceException}
|
|
221
221
|
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
222
222
|
*
|
|
223
|
-
*
|
|
223
|
+
*
|
|
224
224
|
* @example To update the state of a container instance
|
|
225
225
|
* ```javascript
|
|
226
226
|
* // This example updates the state of the specified container instance in the default cluster to DRAINING.
|
|
227
227
|
* const input = {
|
|
228
|
-
*
|
|
229
|
-
*
|
|
228
|
+
* cluster: "default",
|
|
229
|
+
* containerInstances: [
|
|
230
230
|
* "1c3be8ed-df30-47b4-8f1e-6e68ebd01f34"
|
|
231
231
|
* ],
|
|
232
|
-
*
|
|
232
|
+
* status: "DRAINING"
|
|
233
233
|
* };
|
|
234
234
|
* const command = new UpdateContainerInstancesStateCommand(input);
|
|
235
235
|
* const response = await client.send(command);
|
|
236
|
-
* /* response
|
|
236
|
+
* /* response is
|
|
237
237
|
* {
|
|
238
|
-
*
|
|
238
|
+
* containerInstances: [
|
|
239
239
|
* {
|
|
240
|
-
*
|
|
241
|
-
*
|
|
242
|
-
* "attributes": [
|
|
240
|
+
* agentConnected: true,
|
|
241
|
+
* attributes: [
|
|
243
242
|
* {
|
|
244
|
-
*
|
|
245
|
-
*
|
|
243
|
+
* name: "ecs.availability-zone",
|
|
244
|
+
* value: "us-west-2b"
|
|
246
245
|
* },
|
|
247
246
|
* {
|
|
248
|
-
*
|
|
247
|
+
* name: "com.amazonaws.ecs.capability.logging-driver.syslog"
|
|
249
248
|
* },
|
|
250
249
|
* {
|
|
251
|
-
*
|
|
252
|
-
*
|
|
250
|
+
* name: "ecs.instance-type",
|
|
251
|
+
* value: "c4.xlarge"
|
|
253
252
|
* },
|
|
254
253
|
* {
|
|
255
|
-
*
|
|
256
|
-
*
|
|
254
|
+
* name: "ecs.ami-id",
|
|
255
|
+
* value: "ami-a2ca61c2"
|
|
257
256
|
* },
|
|
258
257
|
* {
|
|
259
|
-
*
|
|
258
|
+
* name: "com.amazonaws.ecs.capability.task-iam-role-network-host"
|
|
260
259
|
* },
|
|
261
260
|
* {
|
|
262
|
-
*
|
|
261
|
+
* name: "com.amazonaws.ecs.capability.logging-driver.awslogs"
|
|
263
262
|
* },
|
|
264
263
|
* {
|
|
265
|
-
*
|
|
264
|
+
* name: "com.amazonaws.ecs.capability.logging-driver.json-file"
|
|
266
265
|
* },
|
|
267
266
|
* {
|
|
268
|
-
*
|
|
267
|
+
* name: "com.amazonaws.ecs.capability.docker-remote-api.1.17"
|
|
269
268
|
* },
|
|
270
269
|
* {
|
|
271
|
-
*
|
|
270
|
+
* name: "com.amazonaws.ecs.capability.privileged-container"
|
|
272
271
|
* },
|
|
273
272
|
* {
|
|
274
|
-
*
|
|
273
|
+
* name: "com.amazonaws.ecs.capability.docker-remote-api.1.18"
|
|
275
274
|
* },
|
|
276
275
|
* {
|
|
277
|
-
*
|
|
276
|
+
* name: "com.amazonaws.ecs.capability.docker-remote-api.1.19"
|
|
278
277
|
* },
|
|
279
278
|
* {
|
|
280
|
-
*
|
|
279
|
+
* name: "com.amazonaws.ecs.capability.ecr-auth"
|
|
281
280
|
* },
|
|
282
281
|
* {
|
|
283
|
-
*
|
|
284
|
-
*
|
|
282
|
+
* name: "ecs.os-type",
|
|
283
|
+
* value: "linux"
|
|
285
284
|
* },
|
|
286
285
|
* {
|
|
287
|
-
*
|
|
286
|
+
* name: "com.amazonaws.ecs.capability.docker-remote-api.1.20"
|
|
288
287
|
* },
|
|
289
288
|
* {
|
|
290
|
-
*
|
|
289
|
+
* name: "com.amazonaws.ecs.capability.docker-remote-api.1.21"
|
|
291
290
|
* },
|
|
292
291
|
* {
|
|
293
|
-
*
|
|
292
|
+
* name: "com.amazonaws.ecs.capability.docker-remote-api.1.22"
|
|
294
293
|
* },
|
|
295
294
|
* {
|
|
296
|
-
*
|
|
295
|
+
* name: "com.amazonaws.ecs.capability.task-iam-role"
|
|
297
296
|
* },
|
|
298
297
|
* {
|
|
299
|
-
*
|
|
298
|
+
* name: "com.amazonaws.ecs.capability.docker-remote-api.1.23"
|
|
300
299
|
* }
|
|
301
300
|
* ],
|
|
302
|
-
*
|
|
303
|
-
*
|
|
304
|
-
*
|
|
305
|
-
*
|
|
301
|
+
* containerInstanceArn: "arn:aws:ecs:us-west-2:012345678910:container-instance/default/1c3be8ed-df30-47b4-8f1e-6e68ebd01f34",
|
|
302
|
+
* ec2InstanceId: "i-05d99c76955727ec6",
|
|
303
|
+
* pendingTasksCount: 0,
|
|
304
|
+
* registeredResources: [
|
|
306
305
|
* {
|
|
307
|
-
*
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
* "
|
|
311
|
-
* "
|
|
306
|
+
* doubleValue: 0,
|
|
307
|
+
* integerValue: 4096,
|
|
308
|
+
* longValue: 0,
|
|
309
|
+
* name: "CPU",
|
|
310
|
+
* type: "INTEGER"
|
|
312
311
|
* },
|
|
313
312
|
* {
|
|
314
|
-
*
|
|
315
|
-
*
|
|
316
|
-
*
|
|
317
|
-
* "
|
|
318
|
-
* "
|
|
313
|
+
* doubleValue: 0,
|
|
314
|
+
* integerValue: 7482,
|
|
315
|
+
* longValue: 0,
|
|
316
|
+
* name: "MEMORY",
|
|
317
|
+
* type: "INTEGER"
|
|
319
318
|
* },
|
|
320
319
|
* {
|
|
321
|
-
*
|
|
322
|
-
*
|
|
323
|
-
*
|
|
324
|
-
* "
|
|
325
|
-
*
|
|
326
|
-
* "stringSetValue": [
|
|
320
|
+
* doubleValue: 0,
|
|
321
|
+
* integerValue: 0,
|
|
322
|
+
* longValue: 0,
|
|
323
|
+
* name: "PORTS",
|
|
324
|
+
* stringSetValue: [
|
|
327
325
|
* "22",
|
|
328
326
|
* "2376",
|
|
329
327
|
* "2375",
|
|
330
328
|
* "51678",
|
|
331
329
|
* "51679"
|
|
332
|
-
* ]
|
|
330
|
+
* ],
|
|
331
|
+
* type: "STRINGSET"
|
|
333
332
|
* },
|
|
334
333
|
* {
|
|
335
|
-
*
|
|
336
|
-
*
|
|
337
|
-
*
|
|
338
|
-
* "
|
|
339
|
-
*
|
|
340
|
-
* "
|
|
334
|
+
* doubleValue: 0,
|
|
335
|
+
* integerValue: 0,
|
|
336
|
+
* longValue: 0,
|
|
337
|
+
* name: "PORTS_UDP",
|
|
338
|
+
* stringSetValue: [],
|
|
339
|
+
* type: "STRINGSET"
|
|
341
340
|
* }
|
|
342
341
|
* ],
|
|
343
|
-
*
|
|
342
|
+
* remainingResources: [
|
|
344
343
|
* {
|
|
345
|
-
*
|
|
346
|
-
*
|
|
347
|
-
*
|
|
348
|
-
* "
|
|
349
|
-
* "
|
|
344
|
+
* doubleValue: 0,
|
|
345
|
+
* integerValue: 4096,
|
|
346
|
+
* longValue: 0,
|
|
347
|
+
* name: "CPU",
|
|
348
|
+
* type: "INTEGER"
|
|
350
349
|
* },
|
|
351
350
|
* {
|
|
352
|
-
*
|
|
353
|
-
*
|
|
354
|
-
*
|
|
355
|
-
* "
|
|
356
|
-
* "
|
|
351
|
+
* doubleValue: 0,
|
|
352
|
+
* integerValue: 7482,
|
|
353
|
+
* longValue: 0,
|
|
354
|
+
* name: "MEMORY",
|
|
355
|
+
* type: "INTEGER"
|
|
357
356
|
* },
|
|
358
357
|
* {
|
|
359
|
-
*
|
|
360
|
-
*
|
|
361
|
-
*
|
|
362
|
-
* "
|
|
363
|
-
*
|
|
364
|
-
* "stringSetValue": [
|
|
358
|
+
* doubleValue: 0,
|
|
359
|
+
* integerValue: 0,
|
|
360
|
+
* longValue: 0,
|
|
361
|
+
* name: "PORTS",
|
|
362
|
+
* stringSetValue: [
|
|
365
363
|
* "22",
|
|
366
364
|
* "2376",
|
|
367
365
|
* "2375",
|
|
368
366
|
* "51678",
|
|
369
367
|
* "51679"
|
|
370
|
-
* ]
|
|
368
|
+
* ],
|
|
369
|
+
* type: "STRINGSET"
|
|
371
370
|
* },
|
|
372
371
|
* {
|
|
373
|
-
*
|
|
374
|
-
*
|
|
375
|
-
*
|
|
376
|
-
* "
|
|
377
|
-
*
|
|
378
|
-
* "
|
|
372
|
+
* doubleValue: 0,
|
|
373
|
+
* integerValue: 0,
|
|
374
|
+
* longValue: 0,
|
|
375
|
+
* name: "PORTS_UDP",
|
|
376
|
+
* stringSetValue: [],
|
|
377
|
+
* type: "STRINGSET"
|
|
379
378
|
* }
|
|
380
379
|
* ],
|
|
381
|
-
*
|
|
382
|
-
*
|
|
383
|
-
*
|
|
384
|
-
*
|
|
385
|
-
*
|
|
386
|
-
*
|
|
380
|
+
* runningTasksCount: 0,
|
|
381
|
+
* status: "DRAINING",
|
|
382
|
+
* version: 30,
|
|
383
|
+
* versionInfo: {
|
|
384
|
+
* agentHash: "efe53c6",
|
|
385
|
+
* agentVersion: "1.13.1",
|
|
386
|
+
* dockerVersion: "DockerVersion: 1.11.2"
|
|
387
387
|
* }
|
|
388
388
|
* }
|
|
389
389
|
* ],
|
|
390
|
-
*
|
|
390
|
+
* failures: []
|
|
391
391
|
* }
|
|
392
392
|
* *\/
|
|
393
|
-
* // example id: to-update-the-state-of-a-container-instance-1734630991280
|
|
394
393
|
* ```
|
|
395
394
|
*
|
|
395
|
+
* @public
|
|
396
396
|
*/
|
|
397
397
|
export declare class UpdateContainerInstancesStateCommand extends UpdateContainerInstancesStateCommand_base {
|
|
398
398
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -663,31 +663,36 @@ declare const UpdateServiceCommand_base: {
|
|
|
663
663
|
* @throws {@link ECSServiceException}
|
|
664
664
|
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
665
665
|
*
|
|
666
|
-
*
|
|
667
|
-
* @example To change the
|
|
666
|
+
*
|
|
667
|
+
* @example To change the number of tasks in a service
|
|
668
668
|
* ```javascript
|
|
669
|
-
* // This example updates the my-http-service service to
|
|
669
|
+
* // This example updates the desired count of the my-http-service service to 10.
|
|
670
670
|
* const input = {
|
|
671
|
-
*
|
|
672
|
-
*
|
|
671
|
+
* desiredCount: 10,
|
|
672
|
+
* service: "my-http-service"
|
|
673
673
|
* };
|
|
674
674
|
* const command = new UpdateServiceCommand(input);
|
|
675
|
-
* await client.send(command);
|
|
676
|
-
*
|
|
675
|
+
* const response = await client.send(command);
|
|
676
|
+
* /* response is
|
|
677
|
+
* { /* empty *\/ }
|
|
678
|
+
* *\/
|
|
677
679
|
* ```
|
|
678
680
|
*
|
|
679
|
-
* @example To change the
|
|
681
|
+
* @example To change the task definition used in a service
|
|
680
682
|
* ```javascript
|
|
681
|
-
* // This example updates the
|
|
683
|
+
* // This example updates the my-http-service service to use the amazon-ecs-sample task definition.
|
|
682
684
|
* const input = {
|
|
683
|
-
* "
|
|
684
|
-
*
|
|
685
|
+
* service: "my-http-service",
|
|
686
|
+
* taskDefinition: "amazon-ecs-sample"
|
|
685
687
|
* };
|
|
686
688
|
* const command = new UpdateServiceCommand(input);
|
|
687
|
-
* await client.send(command);
|
|
688
|
-
*
|
|
689
|
+
* const response = await client.send(command);
|
|
690
|
+
* /* response is
|
|
691
|
+
* { /* empty *\/ }
|
|
692
|
+
* *\/
|
|
689
693
|
* ```
|
|
690
694
|
*
|
|
695
|
+
* @public
|
|
691
696
|
*/
|
|
692
697
|
export declare class UpdateServiceCommand extends UpdateServiceCommand_base {
|
|
693
698
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -170,55 +170,55 @@ declare const UpdateServicePrimaryTaskSetCommand_base: {
|
|
|
170
170
|
* @throws {@link ECSServiceException}
|
|
171
171
|
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
172
172
|
*
|
|
173
|
-
*
|
|
173
|
+
*
|
|
174
174
|
* @example To update the primary task set for a service
|
|
175
175
|
* ```javascript
|
|
176
176
|
* // This example updates the primary task set for a service MyService that uses the EXTERNAL deployment controller type.
|
|
177
177
|
* const input = {
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
178
|
+
* cluster: "MyCluster",
|
|
179
|
+
* primaryTaskSet: "arn:aws:ecs:us-west-2:123456789012:task-set/MyCluster/MyService/ecs-svc/1234567890123456789",
|
|
180
|
+
* service: "MyService"
|
|
181
181
|
* };
|
|
182
182
|
* const command = new UpdateServicePrimaryTaskSetCommand(input);
|
|
183
183
|
* const response = await client.send(command);
|
|
184
|
-
* /* response
|
|
184
|
+
* /* response is
|
|
185
185
|
* {
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
*
|
|
186
|
+
* taskSet: {
|
|
187
|
+
* computedDesiredCount: 1,
|
|
188
|
+
* createdAt: 1.557128360711E9,
|
|
189
|
+
* id: "ecs-svc/1234567890123456789",
|
|
190
|
+
* launchType: "EC2",
|
|
191
|
+
* loadBalancers: [],
|
|
192
|
+
* networkConfiguration: {
|
|
193
|
+
* awsvpcConfiguration: {
|
|
194
|
+
* assignPublicIp: "DISABLED",
|
|
195
|
+
* securityGroups: [
|
|
196
196
|
* "sg-12344312"
|
|
197
197
|
* ],
|
|
198
|
-
*
|
|
198
|
+
* subnets: [
|
|
199
199
|
* "subnet-12344321"
|
|
200
200
|
* ]
|
|
201
201
|
* }
|
|
202
202
|
* },
|
|
203
|
-
*
|
|
204
|
-
*
|
|
205
|
-
*
|
|
206
|
-
* "
|
|
207
|
-
*
|
|
203
|
+
* pendingCount: 0,
|
|
204
|
+
* runningCount: 0,
|
|
205
|
+
* scale: {
|
|
206
|
+
* unit: "PERCENT",
|
|
207
|
+
* value: 50
|
|
208
208
|
* },
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
209
|
+
* serviceRegistries: [],
|
|
210
|
+
* stabilityStatus: "STABILIZING",
|
|
211
|
+
* stabilityStatusAt: 1.557129279914E9,
|
|
212
|
+
* status: "PRIMARY",
|
|
213
|
+
* taskDefinition: "arn:aws:ecs:us-west-2:123456789012:task-definition/sample-fargate:2",
|
|
214
|
+
* taskSetArn: "arn:aws:ecs:us-west-2:123456789012:task-set/MyCluster/MyService/ecs-svc/1234567890123456789",
|
|
215
|
+
* updatedAt: 1.557129412653E9
|
|
216
216
|
* }
|
|
217
217
|
* }
|
|
218
218
|
* *\/
|
|
219
|
-
* // example id: to-update-the-primary-task-set-for-a-service-1734637150370
|
|
220
219
|
* ```
|
|
221
220
|
*
|
|
221
|
+
* @public
|
|
222
222
|
*/
|
|
223
223
|
export declare class UpdateServicePrimaryTaskSetCommand extends UpdateServicePrimaryTaskSetCommand_base {
|
|
224
224
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -133,88 +133,86 @@ declare const UpdateTaskProtectionCommand_base: {
|
|
|
133
133
|
* @throws {@link ECSServiceException}
|
|
134
134
|
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
135
135
|
*
|
|
136
|
-
*
|
|
137
|
-
* @example To
|
|
136
|
+
*
|
|
137
|
+
* @example To remove task scale-in protection
|
|
138
138
|
* ```javascript
|
|
139
|
-
* // This example
|
|
139
|
+
* // This example removes scale-in protection for a task.
|
|
140
140
|
* const input = {
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
* "tasks": [
|
|
141
|
+
* cluster: "test-task-protection",
|
|
142
|
+
* protectionEnabled: false,
|
|
143
|
+
* tasks: [
|
|
145
144
|
* "b8b1cf532d0e46ba8d44a40d1de16772"
|
|
146
145
|
* ]
|
|
147
146
|
* };
|
|
148
147
|
* const command = new UpdateTaskProtectionCommand(input);
|
|
149
148
|
* const response = await client.send(command);
|
|
150
|
-
* /* response
|
|
149
|
+
* /* response is
|
|
151
150
|
* {
|
|
152
|
-
*
|
|
153
|
-
*
|
|
151
|
+
* failures: [],
|
|
152
|
+
* protectedTasks: [
|
|
154
153
|
* {
|
|
155
|
-
*
|
|
156
|
-
* "
|
|
157
|
-
* "taskArn": "arn:aws:ecs:us-west-2:012345678910:task/default/b8b1cf532d0e46ba8d44a40d1de16772"
|
|
154
|
+
* protectionEnabled: false,
|
|
155
|
+
* taskArn: "arn:aws:ecs:us-west-2:012345678910:task/default/b8b1cf532d0e46ba8d44a40d1de16772"
|
|
158
156
|
* }
|
|
159
157
|
* ]
|
|
160
158
|
* }
|
|
161
159
|
* *\/
|
|
162
|
-
* // example id: enable-the-protection-status-for-a-single-task-for-60-minutes-2022-11-02T06:56:32.553Z
|
|
163
160
|
* ```
|
|
164
161
|
*
|
|
165
|
-
* @example To set task scale-in protection for
|
|
162
|
+
* @example To set task scale-in protection for a task for 60 minutes
|
|
166
163
|
* ```javascript
|
|
167
|
-
* // This example enables
|
|
164
|
+
* // This example enables scale-in protection for a task for 60 minutes.
|
|
168
165
|
* const input = {
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
*
|
|
166
|
+
* cluster: "test-task-protection",
|
|
167
|
+
* expiresInMinutes: 60,
|
|
168
|
+
* protectionEnabled: true,
|
|
169
|
+
* tasks: [
|
|
172
170
|
* "b8b1cf532d0e46ba8d44a40d1de16772"
|
|
173
171
|
* ]
|
|
174
172
|
* };
|
|
175
173
|
* const command = new UpdateTaskProtectionCommand(input);
|
|
176
174
|
* const response = await client.send(command);
|
|
177
|
-
* /* response
|
|
175
|
+
* /* response is
|
|
178
176
|
* {
|
|
179
|
-
*
|
|
180
|
-
*
|
|
177
|
+
* failures: [],
|
|
178
|
+
* protectedTasks: [
|
|
181
179
|
* {
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
*
|
|
180
|
+
* expirationDate: "2022-11-02T06:56:32.553Z",
|
|
181
|
+
* protectionEnabled: true,
|
|
182
|
+
* taskArn: "arn:aws:ecs:us-west-2:012345678910:task/default/b8b1cf532d0e46ba8d44a40d1de16772"
|
|
185
183
|
* }
|
|
186
184
|
* ]
|
|
187
185
|
* }
|
|
188
186
|
* *\/
|
|
189
|
-
* // example id: enable-the-protection-status-for-a-single-task-with-default-expiresinminutes-2022-11-02T06:56:32.553Z
|
|
190
187
|
* ```
|
|
191
188
|
*
|
|
192
|
-
* @example To
|
|
189
|
+
* @example To set task scale-in protection for the default time period in minutes
|
|
193
190
|
* ```javascript
|
|
194
|
-
* // This example
|
|
191
|
+
* // This example enables task scale-in protection for a task, without specifying the expiresInMinutes parameter, for the default protection period of 120 minutes.
|
|
195
192
|
* const input = {
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
*
|
|
193
|
+
* cluster: "test-task-protection",
|
|
194
|
+
* protectionEnabled: true,
|
|
195
|
+
* tasks: [
|
|
199
196
|
* "b8b1cf532d0e46ba8d44a40d1de16772"
|
|
200
197
|
* ]
|
|
201
198
|
* };
|
|
202
199
|
* const command = new UpdateTaskProtectionCommand(input);
|
|
203
200
|
* const response = await client.send(command);
|
|
204
|
-
* /* response
|
|
201
|
+
* /* response is
|
|
205
202
|
* {
|
|
206
|
-
*
|
|
207
|
-
*
|
|
203
|
+
* failures: [],
|
|
204
|
+
* protectedTasks: [
|
|
208
205
|
* {
|
|
209
|
-
* "
|
|
210
|
-
*
|
|
206
|
+
* expirationDate: "2022-11-02T06:56:32.553Z",
|
|
207
|
+
* protectionEnabled: true,
|
|
208
|
+
* taskArn: "arn:aws:ecs:us-west-2:012345678910:task/default/b8b1cf532d0e46ba8d44a40d1de16772"
|
|
211
209
|
* }
|
|
212
210
|
* ]
|
|
213
211
|
* }
|
|
214
212
|
* *\/
|
|
215
|
-
* // example id: disable-scale-in-protection-on-a-single-task
|
|
216
213
|
* ```
|
|
217
214
|
*
|
|
215
|
+
* @public
|
|
218
216
|
*/
|
|
219
217
|
export declare class UpdateTaskProtectionCommand extends UpdateTaskProtectionCommand_base {
|
|
220
218
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -172,59 +172,59 @@ declare const UpdateTaskSetCommand_base: {
|
|
|
172
172
|
* @throws {@link ECSServiceException}
|
|
173
173
|
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
174
174
|
*
|
|
175
|
-
*
|
|
175
|
+
*
|
|
176
176
|
* @example To update a task set
|
|
177
177
|
* ```javascript
|
|
178
178
|
* // This example updates the task set to adjust the scale.
|
|
179
179
|
* const input = {
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
* "
|
|
183
|
-
*
|
|
180
|
+
* cluster: "MyCluster",
|
|
181
|
+
* scale: {
|
|
182
|
+
* unit: "PERCENT",
|
|
183
|
+
* value: 50
|
|
184
184
|
* },
|
|
185
|
-
*
|
|
186
|
-
*
|
|
185
|
+
* service: "MyService",
|
|
186
|
+
* taskSet: "arn:aws:ecs:us-west-2:123456789012:task-set/MyCluster/MyService/ecs-svc/1234567890123456789"
|
|
187
187
|
* };
|
|
188
188
|
* const command = new UpdateTaskSetCommand(input);
|
|
189
189
|
* const response = await client.send(command);
|
|
190
|
-
* /* response
|
|
190
|
+
* /* response is
|
|
191
191
|
* {
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
*
|
|
192
|
+
* taskSet: {
|
|
193
|
+
* computedDesiredCount: 0,
|
|
194
|
+
* createdAt: 1.557128360711E9,
|
|
195
|
+
* id: "ecs-svc/1234567890123456789",
|
|
196
|
+
* launchType: "EC2",
|
|
197
|
+
* loadBalancers: [],
|
|
198
|
+
* networkConfiguration: {
|
|
199
|
+
* awsvpcConfiguration: {
|
|
200
|
+
* assignPublicIp: "DISABLED",
|
|
201
|
+
* securityGroups: [
|
|
202
202
|
* "sg-12344321"
|
|
203
203
|
* ],
|
|
204
|
-
*
|
|
204
|
+
* subnets: [
|
|
205
205
|
* "subnet-12344321"
|
|
206
206
|
* ]
|
|
207
207
|
* }
|
|
208
208
|
* },
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
* "
|
|
213
|
-
*
|
|
209
|
+
* pendingCount: 0,
|
|
210
|
+
* runningCount: 0,
|
|
211
|
+
* scale: {
|
|
212
|
+
* unit: "PERCENT",
|
|
213
|
+
* value: 50
|
|
214
214
|
* },
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
*
|
|
220
|
-
*
|
|
221
|
-
*
|
|
215
|
+
* serviceRegistries: [],
|
|
216
|
+
* stabilityStatus: "STABILIZING",
|
|
217
|
+
* stabilityStatusAt: 1.557129279914E9,
|
|
218
|
+
* status: "ACTIVE",
|
|
219
|
+
* taskDefinition: "arn:aws:ecs:us-west-2:123456789012:task-definition/sample-fargate:2",
|
|
220
|
+
* taskSetArn: "arn:aws:ecs:us-west-2:123456789012:task-set/MyCluster/MyService/ecs-svc/1234567890123456789",
|
|
221
|
+
* updatedAt: 1.557129279914E9
|
|
222
222
|
* }
|
|
223
223
|
* }
|
|
224
224
|
* *\/
|
|
225
|
-
* // example id: to-update-a-task-set-1734638754368
|
|
226
225
|
* ```
|
|
227
226
|
*
|
|
227
|
+
* @public
|
|
228
228
|
*/
|
|
229
229
|
export declare class UpdateTaskSetCommand extends UpdateTaskSetCommand_base {
|
|
230
230
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -10230,13 +10230,6 @@ export interface PutAccountSettingRequest {
|
|
|
10230
10230
|
* </li>
|
|
10231
10231
|
* <li>
|
|
10232
10232
|
* <p>
|
|
10233
|
-
* <code>fargateFIPSMode</code> - When turned on, you can run Fargate workloads
|
|
10234
|
-
* in a manner that is compliant with Federal Information Processing Standard
|
|
10235
|
-
* (FIPS-140). For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-fips-compliance.html">Fargate
|
|
10236
|
-
* Federal Information Processing Standard (FIPS-140)</a>.</p>
|
|
10237
|
-
* </li>
|
|
10238
|
-
* <li>
|
|
10239
|
-
* <p>
|
|
10240
10233
|
* <code>containerInstanceLongArnFormat</code> - When modified, the Amazon
|
|
10241
10234
|
* Resource Name (ARN) and resource ID format of the resource type for a specified
|
|
10242
10235
|
* user, role, or the root user for an account is affected. The opt-in and opt-out
|