@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.
Files changed (61) hide show
  1. package/dist-types/commands/CreateCapacityProviderCommand.d.ts +25 -25
  2. package/dist-types/commands/CreateClusterCommand.d.ts +12 -12
  3. package/dist-types/commands/CreateServiceCommand.d.ts +75 -76
  4. package/dist-types/commands/CreateTaskSetCommand.d.ts +33 -33
  5. package/dist-types/commands/DeleteAccountSettingCommand.d.ts +19 -20
  6. package/dist-types/commands/DeleteAttributesCommand.d.ts +10 -10
  7. package/dist-types/commands/DeleteCapacityProviderCommand.d.ts +18 -18
  8. package/dist-types/commands/DeleteClusterCommand.d.ts +12 -12
  9. package/dist-types/commands/DeleteServiceCommand.d.ts +7 -4
  10. package/dist-types/commands/DeleteTaskDefinitionsCommand.d.ts +23 -23
  11. package/dist-types/commands/DeleteTaskSetCommand.d.ts +30 -30
  12. package/dist-types/commands/DeregisterContainerInstanceCommand.d.ts +9 -6
  13. package/dist-types/commands/DeregisterTaskDefinitionCommand.d.ts +22 -22
  14. package/dist-types/commands/DescribeCapacityProvidersCommand.d.ts +60 -61
  15. package/dist-types/commands/DescribeClustersCommand.d.ts +9 -9
  16. package/dist-types/commands/DescribeContainerInstancesCommand.d.ts +49 -49
  17. package/dist-types/commands/DescribeServiceDeploymentsCommand.d.ts +1 -41
  18. package/dist-types/commands/DescribeServiceRevisionsCommand.d.ts +1 -41
  19. package/dist-types/commands/DescribeServicesCommand.d.ts +32 -32
  20. package/dist-types/commands/DescribeTaskDefinitionCommand.d.ts +33 -33
  21. package/dist-types/commands/DescribeTaskSetsCommand.d.ts +30 -30
  22. package/dist-types/commands/DescribeTasksCommand.d.ts +25 -25
  23. package/dist-types/commands/DiscoverPollEndpointCommand.d.ts +1 -0
  24. package/dist-types/commands/ExecuteCommandCommand.d.ts +17 -17
  25. package/dist-types/commands/GetTaskProtectionCommand.d.ts +10 -10
  26. package/dist-types/commands/ListAccountSettingsCommand.d.ts +31 -32
  27. package/dist-types/commands/ListAttributesCommand.d.ts +11 -11
  28. package/dist-types/commands/ListClustersCommand.d.ts +5 -5
  29. package/dist-types/commands/ListContainerInstancesCommand.d.ts +5 -5
  30. package/dist-types/commands/ListServiceDeploymentsCommand.d.ts +12 -12
  31. package/dist-types/commands/ListServicesByNamespaceCommand.d.ts +1 -0
  32. package/dist-types/commands/ListServicesCommand.d.ts +5 -5
  33. package/dist-types/commands/ListTagsForResourceCommand.d.ts +7 -7
  34. package/dist-types/commands/ListTaskDefinitionFamiliesCommand.d.ts +16 -17
  35. package/dist-types/commands/ListTaskDefinitionsCommand.d.ts +16 -17
  36. package/dist-types/commands/ListTasksCommand.d.ts +16 -17
  37. package/dist-types/commands/PutAccountSettingCommand.d.ts +21 -22
  38. package/dist-types/commands/PutAccountSettingDefaultCommand.d.ts +9 -9
  39. package/dist-types/commands/PutAttributesCommand.d.ts +12 -12
  40. package/dist-types/commands/PutClusterCapacityProvidersCommand.d.ts +129 -131
  41. package/dist-types/commands/RegisterContainerInstanceCommand.d.ts +1 -0
  42. package/dist-types/commands/RegisterTaskDefinitionCommand.d.ts +29 -29
  43. package/dist-types/commands/RunTaskCommand.d.ts +19 -19
  44. package/dist-types/commands/StartTaskCommand.d.ts +29 -29
  45. package/dist-types/commands/StopTaskCommand.d.ts +37 -37
  46. package/dist-types/commands/SubmitAttachmentStateChangesCommand.d.ts +1 -0
  47. package/dist-types/commands/SubmitContainerStateChangeCommand.d.ts +1 -0
  48. package/dist-types/commands/SubmitTaskStateChangeCommand.d.ts +1 -0
  49. package/dist-types/commands/TagResourceCommand.d.ts +10 -7
  50. package/dist-types/commands/UntagResourceCommand.d.ts +8 -5
  51. package/dist-types/commands/UpdateCapacityProviderCommand.d.ts +25 -25
  52. package/dist-types/commands/UpdateClusterCommand.d.ts +103 -104
  53. package/dist-types/commands/UpdateClusterSettingsCommand.d.ts +20 -20
  54. package/dist-types/commands/UpdateContainerAgentCommand.d.ts +12 -12
  55. package/dist-types/commands/UpdateContainerInstancesStateCommand.d.ts +90 -90
  56. package/dist-types/commands/UpdateServiceCommand.d.ts +18 -13
  57. package/dist-types/commands/UpdateServicePrimaryTaskSetCommand.d.ts +29 -29
  58. package/dist-types/commands/UpdateTaskProtectionCommand.d.ts +35 -37
  59. package/dist-types/commands/UpdateTaskSetCommand.d.ts +32 -32
  60. package/dist-types/models/models_0.d.ts +0 -7
  61. package/package.json +2 -2
@@ -362,63 +362,63 @@ declare const StartTaskCommand_base: {
362
362
  * @throws {@link ECSServiceException}
363
363
  * <p>Base exception class for all service exceptions from ECS service.</p>
364
364
  *
365
- * @public
365
+ *
366
366
  * @example To start a new task
367
367
  * ```javascript
368
368
  * // This example starts a new task in the cluster "MyCluster" on the specified container instance using the latest revision of the "hello-world" task definition.
369
369
  * const input = {
370
- * "cluster": "MyCluster",
371
- * "containerInstances": [
370
+ * cluster: "MyCluster",
371
+ * containerInstances: [
372
372
  * "4c543eed-f83f-47da-b1d8-3d23f1da4c64"
373
373
  * ],
374
- * "taskDefinition": "hello-world"
374
+ * taskDefinition: "hello-world"
375
375
  * };
376
376
  * const command = new StartTaskCommand(input);
377
377
  * const response = await client.send(command);
378
- * /* response ==
378
+ * /* response is
379
379
  * {
380
- * "failures": [],
381
- * "tasks": [
380
+ * failures: [],
381
+ * tasks: [
382
382
  * {
383
- * "version": 1,
384
- * "clusterArn": "arn:aws:ecs:us-east-1:012345678910:cluster/default",
385
- * "containerInstanceArn": "arn:aws:ecs:us-east-1:012345678910:container-instance/default/4c543eed-f83f-47da-b1d8-3d23f1da4c64",
386
- * "containers": [
383
+ * clusterArn: "arn:aws:ecs:us-east-1:012345678910:cluster/default",
384
+ * containerInstanceArn: "arn:aws:ecs:us-east-1:012345678910:container-instance/default/4c543eed-f83f-47da-b1d8-3d23f1da4c64",
385
+ * containers: [
387
386
  * {
388
- * "name": "wordpress",
389
- * "containerArn": "arn:aws:ecs:us-east-1:012345678910:container/e76594d4-27e1-4c74-98b5-46a6435eb769",
390
- * "lastStatus": "PENDING",
391
- * "taskArn": "arn:aws:ecs:us-east-1:012345678910:task/default/fdf2c302-468c-4e55-b884-5331d816e7fb"
387
+ * containerArn: "arn:aws:ecs:us-east-1:012345678910:container/e76594d4-27e1-4c74-98b5-46a6435eb769",
388
+ * lastStatus: "PENDING",
389
+ * name: "wordpress",
390
+ * taskArn: "arn:aws:ecs:us-east-1:012345678910:task/default/fdf2c302-468c-4e55-b884-5331d816e7fb"
392
391
  * },
393
392
  * {
394
- * "name": "mysql",
395
- * "containerArn": "arn:aws:ecs:us-east-1:012345678910:container/default/b19106ea-4fa8-4f1d-9767-96922c82b070",
396
- * "lastStatus": "PENDING",
397
- * "taskArn": "arn:aws:ecs:us-east-1:012345678910:task/default/fdf2c302-468c-4e55-b884-5331d816e7fb"
393
+ * containerArn: "arn:aws:ecs:us-east-1:012345678910:container/default/b19106ea-4fa8-4f1d-9767-96922c82b070",
394
+ * lastStatus: "PENDING",
395
+ * name: "mysql",
396
+ * taskArn: "arn:aws:ecs:us-east-1:012345678910:task/default/fdf2c302-468c-4e55-b884-5331d816e7fb"
398
397
  * }
399
398
  * ],
400
- * "createdAt": 1479765460.842,
401
- * "desiredStatus": "RUNNING",
402
- * "lastStatus": "PENDING",
403
- * "overrides": {
404
- * "containerOverrides": [
399
+ * createdAt: 1.479765460842E9,
400
+ * desiredStatus: "RUNNING",
401
+ * lastStatus: "PENDING",
402
+ * overrides: {
403
+ * containerOverrides: [
405
404
  * {
406
- * "name": "wordpress"
405
+ * name: "wordpress"
407
406
  * },
408
407
  * {
409
- * "name": "mysql"
408
+ * name: "mysql"
410
409
  * }
411
410
  * ]
412
411
  * },
413
- * "taskArn": "arn:aws:ecs:us-east-1:012345678910:task/default/fdf2c302-468c-4e55-b884-5331d816e7fb",
414
- * "taskDefinitionArn": "arn:aws:ecs:us-east-1:012345678910:task-definition/hello_world:6"
412
+ * taskArn: "arn:aws:ecs:us-east-1:012345678910:task/default/fdf2c302-468c-4e55-b884-5331d816e7fb",
413
+ * taskDefinitionArn: "arn:aws:ecs:us-east-1:012345678910:task-definition/hello_world:6",
414
+ * version: 1
415
415
  * }
416
416
  * ]
417
417
  * }
418
418
  * *\/
419
- * // example id: to-start-a-new-task-1734455482966
420
419
  * ```
421
420
  *
421
+ * @public
422
422
  */
423
423
  export declare class StartTaskCommand extends StartTaskCommand_base {
424
424
  /** @internal type navigation helper, not in runtime. */
@@ -256,70 +256,70 @@ declare const StopTaskCommand_base: {
256
256
  * @throws {@link ECSServiceException}
257
257
  * <p>Base exception class for all service exceptions from ECS service.</p>
258
258
  *
259
- * @public
259
+ *
260
260
  * @example To stop a task
261
261
  * ```javascript
262
262
  * // This example stops a task with ID "1dc5c17a-422b-4dc4-b493-371970c6c4d6" in cluster "MyCluster".
263
263
  * const input = {
264
- * "cluster": "MyCluster",
265
- * "reason": "testing stop task.",
266
- * "task": "1dc5c17a-422b-4dc4-b493-371970c6c4d6"
264
+ * cluster: "MyCluster",
265
+ * reason: "testing stop task.",
266
+ * task: "1dc5c17a-422b-4dc4-b493-371970c6c4d6"
267
267
  * };
268
268
  * const command = new StopTaskCommand(input);
269
269
  * const response = await client.send(command);
270
- * /* response ==
270
+ * /* response is
271
271
  * {
272
- * "task": {
273
- * "version": 0,
274
- * "clusterArn": "arn:aws:ecs:us-east-1:012345678910:cluster/MyCluster",
275
- * "containerInstanceArn": "arn:aws:ecs:us-east-1:012345678910:container-instance/MyCluster/5991d8da-1d59-49d2-a31f-4230f9e73140",
276
- * "containers": [
272
+ * task: {
273
+ * clusterArn: "arn:aws:ecs:us-east-1:012345678910:cluster/MyCluster",
274
+ * containerInstanceArn: "arn:aws:ecs:us-east-1:012345678910:container-instance/MyCluster/5991d8da-1d59-49d2-a31f-4230f9e73140",
275
+ * containers: [
277
276
  * {
278
- * "name": "simple-app",
279
- * "containerArn": "arn:aws:ecs:us-east-1:012345678910:container/4df26bb4-f057-467b-a079-961675296e64",
280
- * "lastStatus": "RUNNING",
281
- * "networkBindings": [
277
+ * containerArn: "arn:aws:ecs:us-east-1:012345678910:container/4df26bb4-f057-467b-a079-961675296e64",
278
+ * lastStatus: "RUNNING",
279
+ * name: "simple-app",
280
+ * networkBindings: [
282
281
  * {
283
- * "bindIP": "0.0.0.0",
284
- * "containerPort": 80,
285
- * "hostPort": 32774,
286
- * "protocol": "tcp"
282
+ * bindIP: "0.0.0.0",
283
+ * containerPort: 80,
284
+ * hostPort: 32774,
285
+ * protocol: "tcp"
287
286
  * }
288
287
  * ],
289
- * "taskArn": "arn:aws:ecs:us-east-1:012345678910:task/MyCluster/1dc5c17a-422b-4dc4-b493-371970c6c4d6"
288
+ * taskArn: "arn:aws:ecs:us-east-1:012345678910:task/MyCluster/1dc5c17a-422b-4dc4-b493-371970c6c4d6"
290
289
  * },
291
290
  * {
292
- * "name": "busybox",
293
- * "containerArn": "arn:aws:ecs:us-east-1:012345678910:container/e09064f7-7361-4c87-8ab9-8d073bbdbcb9",
294
- * "lastStatus": "RUNNING",
295
- * "networkBindings": [],
296
- * "taskArn": "arn:aws:ecs:us-east-1:012345678910:task/MyCluster/1dc5c17a-422b-4dc4-b493-371970c6c4d6"
291
+ * containerArn: "arn:aws:ecs:us-east-1:012345678910:container/e09064f7-7361-4c87-8ab9-8d073bbdbcb9",
292
+ * lastStatus: "RUNNING",
293
+ * name: "busybox",
294
+ * networkBindings: [],
295
+ * taskArn: "arn:aws:ecs:us-east-1:012345678910:task/MyCluster/1dc5c17a-422b-4dc4-b493-371970c6c4d6"
297
296
  * }
298
297
  * ],
299
- * "createdAt": 1476822811.295,
300
- * "desiredStatus": "STOPPED",
301
- * "lastStatus": "RUNNING",
302
- * "overrides": {
303
- * "containerOverrides": [
298
+ * createdAt: 1.476822811295E9,
299
+ * desiredStatus: "STOPPED",
300
+ * lastStatus: "RUNNING",
301
+ * overrides: {
302
+ * containerOverrides: [
304
303
  * {
305
- * "name": "simple-app"
304
+ * name: "simple-app"
306
305
  * },
307
306
  * {
308
- * "name": "busybox"
307
+ * name: "busybox"
309
308
  * }
310
309
  * ]
311
310
  * },
312
- * "startedAt": 1476822833.998,
313
- * "startedBy": "ecs-svc/9223370560032507596",
314
- * "stoppedReason": "testing stop task.",
315
- * "taskArn": "arn:aws:ecs:us-east-1:012345678910:task/1dc5c17a-422b-4dc4-b493-371970c6c4d6",
316
- * "taskDefinitionArn": "arn:aws:ecs:us-east-1:012345678910:task-definition/console-sample-app-dynamic-ports:1"
311
+ * startedAt: 1.476822833998E9,
312
+ * startedBy: "ecs-svc/9223370560032507596",
313
+ * stoppedReason: "testing stop task.",
314
+ * taskArn: "arn:aws:ecs:us-east-1:012345678910:task/1dc5c17a-422b-4dc4-b493-371970c6c4d6",
315
+ * taskDefinitionArn: "arn:aws:ecs:us-east-1:012345678910:task-definition/console-sample-app-dynamic-ports:1",
316
+ * version: 0
317
317
  * }
318
318
  * }
319
319
  * *\/
320
- * // example id: to-stop-a-task-1734457210346
321
320
  * ```
322
321
  *
322
+ * @public
323
323
  */
324
324
  export declare class StopTaskCommand extends StopTaskCommand_base {
325
325
  /** @internal type navigation helper, not in runtime. */
@@ -89,6 +89,7 @@ declare const SubmitAttachmentStateChangesCommand_base: {
89
89
  * @throws {@link ECSServiceException}
90
90
  * <p>Base exception class for all service exceptions from ECS service.</p>
91
91
  *
92
+ *
92
93
  * @public
93
94
  */
94
95
  export declare class SubmitAttachmentStateChangesCommand extends SubmitAttachmentStateChangesCommand_base {
@@ -94,6 +94,7 @@ declare const SubmitContainerStateChangeCommand_base: {
94
94
  * @throws {@link ECSServiceException}
95
95
  * <p>Base exception class for all service exceptions from ECS service.</p>
96
96
  *
97
+ *
97
98
  * @public
98
99
  */
99
100
  export declare class SubmitContainerStateChangeCommand extends SubmitContainerStateChangeCommand_base {
@@ -123,6 +123,7 @@ declare const SubmitTaskStateChangeCommand_base: {
123
123
  * @throws {@link ECSServiceException}
124
124
  * <p>Base exception class for all service exceptions from ECS service.</p>
125
125
  *
126
+ *
126
127
  * @public
127
128
  */
128
129
  export declare class SubmitTaskStateChangeCommand extends SubmitTaskStateChangeCommand_base {
@@ -90,24 +90,27 @@ declare const TagResourceCommand_base: {
90
90
  * @throws {@link ECSServiceException}
91
91
  * <p>Base exception class for all service exceptions from ECS service.</p>
92
92
  *
93
- * @public
93
+ *
94
94
  * @example To tag a cluster.
95
95
  * ```javascript
96
96
  * // This example tags the 'dev' cluster with key 'team' and value 'dev'.
97
97
  * const input = {
98
- * "resourceArn": "arn:aws:ecs:region:aws_account_id:cluster/dev",
99
- * "tags": [
98
+ * resourceArn: "arn:aws:ecs:region:aws_account_id:cluster/dev",
99
+ * tags: [
100
100
  * {
101
- * "key": "team",
102
- * "value": "dev"
101
+ * key: "team",
102
+ * value: "dev"
103
103
  * }
104
104
  * ]
105
105
  * };
106
106
  * const command = new TagResourceCommand(input);
107
- * await client.send(command);
108
- * // example id: to-tag-a-cluster-1540581863751
107
+ * const response = await client.send(command);
108
+ * /* response is
109
+ * { /* empty *\/ }
110
+ * *\/
109
111
  * ```
110
112
  *
113
+ * @public
111
114
  */
112
115
  export declare class TagResourceCommand extends TagResourceCommand_base {
113
116
  /** @internal type navigation helper, not in runtime. */
@@ -84,21 +84,24 @@ declare const UntagResourceCommand_base: {
84
84
  * @throws {@link ECSServiceException}
85
85
  * <p>Base exception class for all service exceptions from ECS service.</p>
86
86
  *
87
- * @public
87
+ *
88
88
  * @example To untag a cluster.
89
89
  * ```javascript
90
90
  * // This example deletes the 'team' tag from the 'dev' cluster.
91
91
  * const input = {
92
- * "resourceArn": "arn:aws:ecs:region:aws_account_id:cluster/dev",
93
- * "tagKeys": [
92
+ * resourceArn: "arn:aws:ecs:region:aws_account_id:cluster/dev",
93
+ * tagKeys: [
94
94
  * "team"
95
95
  * ]
96
96
  * };
97
97
  * const command = new UntagResourceCommand(input);
98
- * await client.send(command);
99
- * // example id: to-untag-a-cluster-1540582546056
98
+ * const response = await client.send(command);
99
+ * /* response is
100
+ * { /* empty *\/ }
101
+ * *\/
100
102
  * ```
101
103
  *
104
+ * @public
102
105
  */
103
106
  export declare class UntagResourceCommand extends UntagResourceCommand_base {
104
107
  /** @internal type navigation helper, not in runtime. */
@@ -112,47 +112,47 @@ declare const UpdateCapacityProviderCommand_base: {
112
112
  * @throws {@link ECSServiceException}
113
113
  * <p>Base exception class for all service exceptions from ECS service.</p>
114
114
  *
115
- * @public
115
+ *
116
116
  * @example To update a capacity provider's parameters
117
117
  * ```javascript
118
118
  * // This example updates the targetCapacity and instanceWarmupPeriod parameters for the capacity provider MyCapacityProvider to 90 and 150 respectively.
119
119
  * const input = {
120
- * "name": "MyCapacityProvider",
121
- * "autoScalingGroupProvider": {
122
- * "managedScaling": {
123
- * "instanceWarmupPeriod": 150,
124
- * "status": "ENABLED",
125
- * "targetCapacity": 90
120
+ * autoScalingGroupProvider: {
121
+ * managedScaling: {
122
+ * instanceWarmupPeriod: 150,
123
+ * status: "ENABLED",
124
+ * targetCapacity: 90
126
125
  * }
127
- * }
126
+ * },
127
+ * name: "MyCapacityProvider"
128
128
  * };
129
129
  * const command = new UpdateCapacityProviderCommand(input);
130
130
  * const response = await client.send(command);
131
- * /* response ==
131
+ * /* response is
132
132
  * {
133
- * "capacityProvider": {
134
- * "name": "MyCapacityProvider",
135
- * "autoScalingGroupProvider": {
136
- * "autoScalingGroupArn": "arn:aws:autoscaling:us-east-1:132456789012:autoScalingGroup:57ffcb94-11f0-4d6d-bf60-3bac5EXAMPLE:autoScalingGroupName/MyASG",
137
- * "managedScaling": {
138
- * "instanceWarmupPeriod": 150,
139
- * "maximumScalingStepSize": 10000,
140
- * "minimumScalingStepSize": 1,
141
- * "status": "ENABLED",
142
- * "targetCapacity": 90
133
+ * capacityProvider: {
134
+ * autoScalingGroupProvider: {
135
+ * autoScalingGroupArn: "arn:aws:autoscaling:us-east-1:132456789012:autoScalingGroup:57ffcb94-11f0-4d6d-bf60-3bac5EXAMPLE:autoScalingGroupName/MyASG",
136
+ * managedScaling: {
137
+ * instanceWarmupPeriod: 150,
138
+ * maximumScalingStepSize: 10000,
139
+ * minimumScalingStepSize: 1,
140
+ * status: "ENABLED",
141
+ * targetCapacity: 90
143
142
  * },
144
- * "managedTerminationProtection": "ENABLED"
143
+ * managedTerminationProtection: "ENABLED"
145
144
  * },
146
- * "capacityProviderArn": "arn:aws:ecs:us-east-1:123456789012:capacity-provider/MyCapacityProvider",
147
- * "status": "ACTIVE",
148
- * "tags": [],
149
- * "updateStatus": "UPDATE_COMPLETE"
145
+ * capacityProviderArn: "arn:aws:ecs:us-east-1:123456789012:capacity-provider/MyCapacityProvider",
146
+ * name: "MyCapacityProvider",
147
+ * status: "ACTIVE",
148
+ * tags: [],
149
+ * updateStatus: "UPDATE_COMPLETE"
150
150
  * }
151
151
  * }
152
152
  * *\/
153
- * // example id: to-update-a-capacity-providers-parameters-1734557290198
154
153
  * ```
155
154
  *
155
+ * @public
156
156
  */
157
157
  export declare class UpdateCapacityProviderCommand extends UpdateCapacityProviderCommand_base {
158
158
  /** @internal type navigation helper, not in runtime. */