@aws-sdk/client-ecs 3.722.0 → 3.726.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 (36) hide show
  1. package/dist-cjs/index.js +415 -317
  2. package/dist-es/ECSClient.js +1 -0
  3. package/dist-es/models/models_0.js +49 -48
  4. package/dist-es/models/models_1.js +4 -4
  5. package/dist-types/commands/CreateCapacityProviderCommand.d.ts +40 -0
  6. package/dist-types/commands/CreateTaskSetCommand.d.ts +58 -0
  7. package/dist-types/commands/DeleteAttributesCommand.d.ts +27 -0
  8. package/dist-types/commands/DeleteCapacityProviderCommand.d.ts +32 -0
  9. package/dist-types/commands/DeleteTaskDefinitionsCommand.d.ts +47 -0
  10. package/dist-types/commands/DeleteTaskSetCommand.d.ts +49 -0
  11. package/dist-types/commands/DeregisterTaskDefinitionCommand.d.ts +39 -0
  12. package/dist-types/commands/DescribeCapacityProvidersCommand.d.ts +86 -0
  13. package/dist-types/commands/DescribeServiceDeploymentsCommand.d.ts +41 -0
  14. package/dist-types/commands/DescribeServiceRevisionsCommand.d.ts +41 -0
  15. package/dist-types/commands/DescribeTaskSetsCommand.d.ts +53 -0
  16. package/dist-types/commands/ExecuteCommandCommand.d.ts +29 -0
  17. package/dist-types/commands/ListAttributesCommand.d.ts +25 -0
  18. package/dist-types/commands/ListServiceDeploymentsCommand.d.ts +28 -0
  19. package/dist-types/commands/PutAttributesCommand.d.ts +29 -0
  20. package/dist-types/commands/PutClusterCapacityProvidersCommand.d.ts +249 -0
  21. package/dist-types/commands/StartTaskCommand.d.ts +56 -0
  22. package/dist-types/commands/StopTaskCommand.d.ts +63 -0
  23. package/dist-types/commands/UpdateCapacityProviderCommand.d.ts +40 -0
  24. package/dist-types/commands/UpdateClusterCommand.d.ts +189 -0
  25. package/dist-types/commands/UpdateClusterSettingsCommand.d.ts +38 -0
  26. package/dist-types/commands/UpdateContainerAgentCommand.d.ts +25 -0
  27. package/dist-types/commands/UpdateContainerInstancesStateCommand.d.ts +172 -0
  28. package/dist-types/commands/UpdateServicePrimaryTaskSetCommand.d.ts +48 -0
  29. package/dist-types/commands/UpdateTaskSetCommand.d.ts +52 -0
  30. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  31. package/dist-types/runtimeConfig.d.ts +1 -1
  32. package/dist-types/runtimeConfig.native.d.ts +2 -2
  33. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -3
  34. package/dist-types/ts3.4/runtimeConfig.d.ts +9 -7
  35. package/dist-types/ts3.4/runtimeConfig.native.d.ts +20 -8
  36. package/package.json +44 -44
@@ -168,6 +168,55 @@ declare const DeleteTaskSetCommand_base: {
168
168
  * <p>Base exception class for all service exceptions from ECS service.</p>
169
169
  *
170
170
  * @public
171
+ * @example To delete a task set within a service that uses the EXTERNAL deployment controller type
172
+ * ```javascript
173
+ * // This example deletes a task set and uses the force flag to force deletion if it hasn't scaled to zero.
174
+ * const input = {
175
+ * "cluster": "MyCluster",
176
+ * "force": true,
177
+ * "service": "MyService",
178
+ * "taskSet": "arn:aws:ecs:us-west-2:123456789012:task-set/MyCluster/MyService/ecs-svc/1234567890123456789"
179
+ * };
180
+ * const command = new DeleteTaskSetCommand(input);
181
+ * const response = await client.send(command);
182
+ * /* response ==
183
+ * {
184
+ * "taskSet": {
185
+ * "computedDesiredCount": 0,
186
+ * "createdAt": 1557130260.276,
187
+ * "id": "ecs-svc/1234567890123456789",
188
+ * "launchType": "EC2",
189
+ * "loadBalancers": [],
190
+ * "networkConfiguration": {
191
+ * "awsvpcConfiguration": {
192
+ * "assignPublicIp": "DISABLED",
193
+ * "securityGroups": [
194
+ * "sg-12345678"
195
+ * ],
196
+ * "subnets": [
197
+ * "subnet-12345678"
198
+ * ]
199
+ * }
200
+ * },
201
+ * "pendingCount": 0,
202
+ * "runningCount": 0,
203
+ * "scale": {
204
+ * "value": 0,
205
+ * "unit": "PERCENT"
206
+ * },
207
+ * "serviceRegistries": [],
208
+ * "stabilityStatus": "STABILIZING",
209
+ * "stabilityStatusAt": 1557130290.707,
210
+ * "status": "DRAINING",
211
+ * "taskDefinition": "arn:aws:ecs:us-west-2:123456789012:task-definition/sample-fargate:2",
212
+ * "taskSetArn": "arn:aws:ecs:us-west-2:123456789012:task-set/MyCluster/MyService/ecs-svc/1234567890123456789",
213
+ * "updatedAt": 1557130290.707
214
+ * }
215
+ * }
216
+ * *\/
217
+ * // example id: to-delete-a-task-set-within-a-service-that-uses-the-external-deployment-controller-type-1733949897807
218
+ * ```
219
+ *
171
220
  */
172
221
  export declare class DeleteTaskSetCommand extends DeleteTaskSetCommand_base {
173
222
  /** @internal type navigation helper, not in runtime. */
@@ -365,6 +365,45 @@ declare const DeregisterTaskDefinitionCommand_base: {
365
365
  * <p>Base exception class for all service exceptions from ECS service.</p>
366
366
  *
367
367
  * @public
368
+ * @example To deregister a revision of a task definition
369
+ * ```javascript
370
+ * // This example deregisters the first revision of the curler task definition
371
+ * const input = {
372
+ * "taskDefinition": "curler:1"
373
+ * };
374
+ * const command = new DeregisterTaskDefinitionCommand(input);
375
+ * const response = await client.send(command);
376
+ * /* response ==
377
+ * {
378
+ * "taskDefinition": {
379
+ * "containerDefinitions": [
380
+ * {
381
+ * "name": "curler",
382
+ * "command": [
383
+ * "curl -v http://example.com/"
384
+ * ],
385
+ * "cpu": 100,
386
+ * "entryPoint": [],
387
+ * "environment": [],
388
+ * "essential": true,
389
+ * "image": "curl:latest",
390
+ * "memory": 256,
391
+ * "mountPoints": [],
392
+ * "portMappings": [],
393
+ * "volumesFrom": []
394
+ * }
395
+ * ],
396
+ * "family": "curler",
397
+ * "revision": 1,
398
+ * "status": "INACTIVE",
399
+ * "taskDefinitionArn": "arn:aws:ecs:us-west-2:123456789012:task-definition/curler:1",
400
+ * "volumes": []
401
+ * }
402
+ * }
403
+ * *\/
404
+ * // example id: to-deregister-a-revision-of-a-task-definition-1733950214421
405
+ * ```
406
+ *
368
407
  */
369
408
  export declare class DeregisterTaskDefinitionCommand extends DeregisterTaskDefinitionCommand_base {
370
409
  /** @internal type navigation helper, not in runtime. */
@@ -118,6 +118,92 @@ declare const DescribeCapacityProvidersCommand_base: {
118
118
  * <p>Base exception class for all service exceptions from ECS service.</p>
119
119
  *
120
120
  * @public
121
+ * @example To describe all capacity providers
122
+ * ```javascript
123
+ * // This example retrieves details about all capacity providers.
124
+ * const input = {};
125
+ * const command = new DescribeCapacityProvidersCommand(input);
126
+ * const response = await client.send(command);
127
+ * /* response ==
128
+ * {
129
+ * "capacityProviders": [
130
+ * {
131
+ * "name": "MyCapacityProvider",
132
+ * "autoScalingGroupProvider": {
133
+ * "autoScalingGroupArn": "arn:aws:autoscaling:us-west-2:123456789012:autoScalingGroup:a1b2c3d4-5678-90ab-cdef-EXAMPLE11111:autoScalingGroupName/MyAutoScalingGroup",
134
+ * "managedScaling": {
135
+ * "maximumScalingStepSize": 1000,
136
+ * "minimumScalingStepSize": 1,
137
+ * "status": "ENABLED",
138
+ * "targetCapacity": 100
139
+ * },
140
+ * "managedTerminationProtection": "ENABLED"
141
+ * },
142
+ * "capacityProviderArn": "arn:aws:ecs:us-west-2:123456789012:capacity-provider/MyCapacityProvider",
143
+ * "status": "ACTIVE",
144
+ * "tags": []
145
+ * },
146
+ * {
147
+ * "name": "FARGATE",
148
+ * "capacityProviderArn": "arn:aws:ecs:us-west-2:123456789012:capacity-provider/FARGATE",
149
+ * "status": "ACTIVE",
150
+ * "tags": []
151
+ * },
152
+ * {
153
+ * "name": "FARGATE_SPOT",
154
+ * "capacityProviderArn": "arn:aws:ecs:us-west-2:123456789012:capacity-provider/FARGATE_SPOT",
155
+ * "status": "ACTIVE",
156
+ * "tags": []
157
+ * }
158
+ * ]
159
+ * }
160
+ * *\/
161
+ * // example id: to-describe-all-capacity-providers-1733951199913
162
+ * ```
163
+ *
164
+ * @example To describe a specific capacity provider
165
+ * ```javascript
166
+ * // This example retrieves details about the capacity provider MyCapacityProvider
167
+ * const input = {
168
+ * "capacityProviders": [
169
+ * "MyCapacityProvider"
170
+ * ],
171
+ * "include": [
172
+ * "TAGS"
173
+ * ]
174
+ * };
175
+ * const command = new DescribeCapacityProvidersCommand(input);
176
+ * const response = await client.send(command);
177
+ * /* response ==
178
+ * {
179
+ * "capacityProviders": [
180
+ * {
181
+ * "name": "MyCapacityProvider",
182
+ * "autoScalingGroupProvider": {
183
+ * "autoScalingGroupArn": "arn:aws:autoscaling:us-west-2:123456789012:autoScalingGroup:a1b2c3d4-5678-90ab-cdef-EXAMPLE11111:autoScalingGroupName/MyAutoScalingGroup",
184
+ * "managedScaling": {
185
+ * "maximumScalingStepSize": 1000,
186
+ * "minimumScalingStepSize": 1,
187
+ * "status": "ENABLED",
188
+ * "targetCapacity": 100
189
+ * },
190
+ * "managedTerminationProtection": "ENABLED"
191
+ * },
192
+ * "capacityProviderArn": "arn:aws:ecs:us-west-2:123456789012:capacity-provider/MyCapacityProvider",
193
+ * "status": "ACTIVE",
194
+ * "tags": [
195
+ * {
196
+ * "key": "environment",
197
+ * "value": "production"
198
+ * }
199
+ * ]
200
+ * }
201
+ * ]
202
+ * }
203
+ * *\/
204
+ * // example id: to-describe-a-specific-capacity-provider-1733951378688
205
+ * ```
206
+ *
121
207
  */
122
208
  export declare class DescribeCapacityProvidersCommand extends DescribeCapacityProvidersCommand_base {
123
209
  /** @internal type navigation helper, not in runtime. */
@@ -163,6 +163,47 @@ declare const DescribeServiceDeploymentsCommand_base: {
163
163
  * <p>Base exception class for all service exceptions from ECS service.</p>
164
164
  *
165
165
  * @public
166
+ * @example To describe a service deployment
167
+ * ```javascript
168
+ * // This example describes a service deployment for the service sd-example in the example cluster.
169
+ * const input = {
170
+ * "serviceDeploymentArns": [
171
+ * "arn:aws:ecs:us-west-2:123456789012:service-deployment/example/sd-example/NCWGC2ZR-taawPAYrIaU5"
172
+ * ]
173
+ * };
174
+ * const command = new DescribeServiceDeploymentsCommand(input);
175
+ * const response = await client.send(command);
176
+ * /* response ==
177
+ * {
178
+ * "failures": [],
179
+ * "serviceDeployments": [
180
+ * {
181
+ * "clusterArn": "arn:aws:ecs:us-west-2:123456789012:cluster/example",
182
+ * "deploymentConfiguration": {
183
+ * "deploymentCircuitBreaker": {
184
+ * "enable": false,
185
+ * "rollback": false
186
+ * },
187
+ * "maximumPercent": 200,
188
+ * "minimumHealthyPercent": 100
189
+ * },
190
+ * "serviceArn": "arn:aws:ecs:us-west-2:123456789012:service/example/sd-example",
191
+ * "serviceDeploymentArn": "arn:aws:ecs:us-west-2:123456789012:service-deployment/example/sd-example/NCWGC2ZR-taawPAYrIaU5",
192
+ * "status": "PENDING",
193
+ * "targetServiceRevision": {
194
+ * "arn": "arn:aws:ecs:us-west-2:123456789012:service-revision/example/sd-example/4980306466373577095",
195
+ * "pendingTaskCount": 0,
196
+ * "requestedTaskCount": 0,
197
+ * "runningTaskCount": 0
198
+ * },
199
+ * "updatedAt": "2024-09-10T16:49:35.572000+00:00"
200
+ * }
201
+ * ]
202
+ * }
203
+ * *\/
204
+ * // example id: to-describe-a-service-deployment--1733954961143
205
+ * ```
206
+ *
166
207
  */
167
208
  export declare class DescribeServiceDeploymentsCommand extends DescribeServiceDeploymentsCommand_base {
168
209
  /** @internal type navigation helper, not in runtime. */
@@ -234,6 +234,47 @@ declare const DescribeServiceRevisionsCommand_base: {
234
234
  * <p>Base exception class for all service exceptions from ECS service.</p>
235
235
  *
236
236
  * @public
237
+ * @example To describe a service revision
238
+ * ```javascript
239
+ * // This example describes a service revision with the specified ARN
240
+ * const input = {
241
+ * "serviceRevisionArns": [
242
+ * "arn:aws:ecs:us-west-2:123456789012:service-revision/testc/sd1/4980306466373577095"
243
+ * ]
244
+ * };
245
+ * const command = new DescribeServiceRevisionsCommand(input);
246
+ * const response = await client.send(command);
247
+ * /* response ==
248
+ * {
249
+ * "failures": [],
250
+ * "serviceRevisions": [
251
+ * {
252
+ * "clusterArn": "arn:aws:ecs:us-west-2:123456789012:cluster/example",
253
+ * "createdAt": "2024-09-10T16:49:26.388000+00:00",
254
+ * "launchType": "FARGATE",
255
+ * "networkConfiguration": {
256
+ * "awsvpcConfiguration": {
257
+ * "assignPublicIp": "ENABLED",
258
+ * "securityGroups": [
259
+ * "sg-09605d60a6bc1b296"
260
+ * ],
261
+ * "subnets": [
262
+ * "subnet-0a4040e73895f04e1"
263
+ * ]
264
+ * }
265
+ * },
266
+ * "platformFamily": "DockerLinux",
267
+ * "platformVersion": "1.4.0",
268
+ * "serviceArn": "arn:aws:ecs:us-west-2:123456789012:service/example/sd-example",
269
+ * "serviceRevisionArn": "arn:aws:ecs:us-west-2:123456789012:service-revision/example/sd-example/4980306466373577095",
270
+ * "taskDefinition": "arn:aws:ecs:us-west-2:123456789012:task-definition/large-ngingx:1"
271
+ * }
272
+ * ]
273
+ * }
274
+ * *\/
275
+ * // example id: to-describe-a-service-revision--1734033215738
276
+ * ```
277
+ *
237
278
  */
238
279
  export declare class DescribeServiceRevisionsCommand extends DescribeServiceRevisionsCommand_base {
239
280
  /** @internal type navigation helper, not in runtime. */
@@ -179,6 +179,59 @@ declare const DescribeTaskSetsCommand_base: {
179
179
  * <p>Base exception class for all service exceptions from ECS service.</p>
180
180
  *
181
181
  * @public
182
+ * @example To describe a task set
183
+ * ```javascript
184
+ * // This example describes a task set in service MyService that uses an EXTERNAL deployment controller.
185
+ * const input = {
186
+ * "cluster": "MyCluster",
187
+ * "service": "MyService",
188
+ * "taskSets": [
189
+ * "arn:aws:ecs:us-west-2:123456789012:task-set/MyCluster/MyService/ecs-svc/1234567890123456789"
190
+ * ]
191
+ * };
192
+ * const command = new DescribeTaskSetsCommand(input);
193
+ * const response = await client.send(command);
194
+ * /* response ==
195
+ * {
196
+ * "failures": [],
197
+ * "taskSets": [
198
+ * {
199
+ * "computedDesiredCount": 0,
200
+ * "createdAt": 1557207715.195,
201
+ * "id": "ecs-svc/1234567890123456789",
202
+ * "launchType": "EC2",
203
+ * "loadBalancers": [],
204
+ * "networkConfiguration": {
205
+ * "awsvpcConfiguration": {
206
+ * "assignPublicIp": "DISABLED",
207
+ * "securityGroups": [
208
+ * "sg-1234431"
209
+ * ],
210
+ * "subnets": [
211
+ * "subnet-12344321"
212
+ * ]
213
+ * }
214
+ * },
215
+ * "pendingCount": 0,
216
+ * "runningCount": 0,
217
+ * "scale": {
218
+ * "value": 0,
219
+ * "unit": "PERCENT"
220
+ * },
221
+ * "serviceRegistries": [],
222
+ * "stabilityStatus": "STEADY_STATE",
223
+ * "stabilityStatusAt": 1557207740.014,
224
+ * "status": "ACTIVE",
225
+ * "taskDefinition": "arn:aws:ecs:us-west-2:123456789012:task-definition/sample-fargate:2",
226
+ * "taskSetArn": "arn:aws:ecs:us-west-2:123456789012:task-set/MyCluster/MyService/ecs-svc/1234567890123456789",
227
+ * "updatedAt": 1557207740.014
228
+ * }
229
+ * ]
230
+ * }
231
+ * *\/
232
+ * // example id: to-describe-a-task-set--1734035629507
233
+ * ```
234
+ *
182
235
  */
183
236
  export declare class DescribeTaskSetsCommand extends DescribeTaskSetsCommand_base {
184
237
  /** @internal type navigation helper, not in runtime. */
@@ -121,6 +121,35 @@ declare const ExecuteCommandCommand_base: {
121
121
  * <p>Base exception class for all service exceptions from ECS service.</p>
122
122
  *
123
123
  * @public
124
+ * @example To run a command remotely on a container in a task
125
+ * ```javascript
126
+ * // This example runs an interactive /bin/sh command on a container MyContainer.
127
+ * const input = {
128
+ * "cluster": "MyCluster",
129
+ * "command": "/bin/sh",
130
+ * "container": "MyContainer",
131
+ * "interactive": true,
132
+ * "task": "arn:aws:ecs:us-east-1:123456789012:task/MyCluster/d789e94343414c25b9f6bd59eEXAMPLE"
133
+ * };
134
+ * const command = new ExecuteCommandCommand(input);
135
+ * const response = await client.send(command);
136
+ * /* response ==
137
+ * {
138
+ * "clusterArn": "arn:aws:ecs:us-east-1:123456789012:cluster/MyCluster",
139
+ * "containerArn": "arn:aws:ecs:us-east-1:123456789012:container/MyCluster/d789e94343414c25b9f6bd59eEXAMPLE/43ba4b77-37f7-4a41-b923-69d4abEXAMPLE",
140
+ * "containerName": "MyContainer",
141
+ * "interactive": true,
142
+ * "session": {
143
+ * "sessionId": "ecs-execute-command-794nnsxobsg4p2hiur6gxu9a9e",
144
+ * "streamUrl": "wss://ssmmessages.us-east-1.amazonaws.com/v1/data-channel/ecs-execute-command-794nnsxobsg4p2hiur6gxu9a9e?role=publish_subscribe&cell-number=AAEAAfiZG4oybxqsYj3Zhm15s4J0W1k7d9nxVRenNO8Kl5nzAAAAAGdbWGl479/y/4IrTWPadUic3eBrMu3vmB7aPvI+s12lbpDc142y1KZy",
145
+ * "tokenValue": "AAEAAcVb7ww10N9aNUI5Cl7K7DbHjbD2Ed4Mw6uaGYIc+UFNAAAAAGdbWGmMDaPbGfDkzrVIhyKEsc4CPT2hcToPU6yzlddPm7rRZvYQtpaAgsvQdjbCAd9OB6ohtDYfqZI9gzMqLKegXq0E+KbDcGPnQVODFNHmQxnR1BvC6vNcHqh6HAJuKnQD7RSYx/J5bfYNHj4hCYHuN0HNcueSDOOTRB/MBt5DBDY7Djv2uzs9FD0N1kcsGljZkZWLuPTVKHHyrU3zh0awfrFFC3RXvgaUCBnloIIvZeq2CjTesxn9JJS+3N4I0DVxfkHdWWBbBY/5+wH82JVTJpqN3yOAt74u/W7TvYBd7Xu2lQbvtpuAnEszl++bFG2ZoV3dfnmBkSnfD/qV1FJcEskbxUHKgmqe0Paouv4zwrQKNfWYfcv9xkWskqcExh07IeaxZz1tp/WegZ5D76sD6xYeuH+35TMNXMoY7oudLgxIXsA7b39ElM7orGi4Jy3W2tLyuNIvDoI2JI6ww4tYdEjYZnld9rhKwV9rDHk1Z8wjHMs++3BIkHrFQRsv7BFUWlZ9lyqO9GWlXeBe7dQtOeFNahBuJUE9z/xLHJn1x13VkdROKqUVHTJrT4sXAnI5roWiGPoQPVY7aHVYJnwjSxrPRWJBsgyHiVN3dAWTmeVMjp0VbOiJaLlpBI+AUWs8OeVRzuJSZ+1alETpK7Ukag7ma9K4lxq/N7IxYo2ub0cG/bvX42zQqdJAW+9St9sQ1QMaMvkSq1tdbLoOuY0QjN7JrkuKLFQA5bhs+o1YwItzIp7bNrzQ9Z9IN51qoGL5HDXQzi1kNFfYtAryhwt6BgtQU9Z0k+RpE+V5G+V68E0MMUvb313f0nRBYj1u5VKonWb708wADPbUU+s7nvbWuD5oLp1Z6A4iqI9Om0R4RrFASj/7fVY7r3raNXcIYA="
146
+ * },
147
+ * "taskArn": "arn:aws:ecs:us-east-1:123456789012:task/MyCluster/d789e94343414c25b9f6bd59eEXAMPLE"
148
+ * }
149
+ * *\/
150
+ * // example id: to-run-a-command-remotely-on-a-container-in-a-task-1734037663312
151
+ * ```
152
+ *
124
153
  */
125
154
  export declare class ExecuteCommandCommand extends ExecuteCommandCommand_base {
126
155
  /** @internal type navigation helper, not in runtime. */
@@ -81,6 +81,31 @@ declare const ListAttributesCommand_base: {
81
81
  * <p>Base exception class for all service exceptions from ECS service.</p>
82
82
  *
83
83
  * @public
84
+ * @example To list container instances that have a specific attribute
85
+ * ```javascript
86
+ * // This example lists attributes for a container instance with the attribute "stack" equal to the value "production".
87
+ * const input = {
88
+ * "attributeName": "stack",
89
+ * "attributeValue": "production",
90
+ * "cluster": "MyCluster",
91
+ * "targetType": "container-instance"
92
+ * };
93
+ * const command = new ListAttributesCommand(input);
94
+ * const response = await client.send(command);
95
+ * /* response ==
96
+ * {
97
+ * "attributes": [
98
+ * {
99
+ * "name": "stack",
100
+ * "value": "production",
101
+ * "targetId": "arn:aws:ecs:us-west-2:123456789012:container-instance/1c3be8ed-df30-47b4-8f1e-6e68ebd01f34"
102
+ * }
103
+ * ]
104
+ * }
105
+ * *\/
106
+ * // example id: to-list-container-instances-that-have-a-specific-attribute-1734368946577
107
+ * ```
108
+ *
84
109
  */
85
110
  export declare class ListAttributesCommand extends ListAttributesCommand_base {
86
111
  /** @internal type navigation helper, not in runtime. */
@@ -115,6 +115,34 @@ declare const ListServiceDeploymentsCommand_base: {
115
115
  * <p>Base exception class for all service exceptions from ECS service.</p>
116
116
  *
117
117
  * @public
118
+ * @example To list service deployments that meet the specified criteria
119
+ * ```javascript
120
+ * // This example lists all successful service deployments for the service "sd-example" in the cluster "example".
121
+ * const input = {
122
+ * "cluster": "example",
123
+ * "service": "sd-example",
124
+ * "status": [
125
+ * "SUCCESSFUL"
126
+ * ]
127
+ * };
128
+ * const command = new ListServiceDeploymentsCommand(input);
129
+ * const response = await client.send(command);
130
+ * /* response ==
131
+ * {
132
+ * "serviceDeployments": [
133
+ * {
134
+ * "clusterArn": "arn:aws:ecs:us-west-2:123456789012:cluster/example",
135
+ * "serviceArn": "arn:aws:ecs:us-west-2:123456789012:service/example/sd-example",
136
+ * "serviceDeploymentArn": "arn:aws:ecs:us-west-2:123456789012:service-deployment/example/sd-example/NCWGC2ZR-taawPAYrIaU5",
137
+ * "status": "SUCCESSFUL",
138
+ * "targetServiceRevisionArn": "arn:aws:ecs:us-west-2:123456789012:service-revision/example/sd-example/4980306466373577095"
139
+ * }
140
+ * ]
141
+ * }
142
+ * *\/
143
+ * // example id: to-list-service-deployments-that-meet-the-specified-criteria-1734370445427
144
+ * ```
145
+ *
118
146
  */
119
147
  export declare class ListServiceDeploymentsCommand extends ListServiceDeploymentsCommand_base {
120
148
  /** @internal type navigation helper, not in runtime. */
@@ -89,6 +89,35 @@ declare const PutAttributesCommand_base: {
89
89
  * <p>Base exception class for all service exceptions from ECS service.</p>
90
90
  *
91
91
  * @public
92
+ * @example To create or update an attribute on a resource
93
+ * ```javascript
94
+ * // This example adds an attribute "stack" with the value "production" to a container instance.
95
+ * const input = {
96
+ * "attributes": [
97
+ * {
98
+ * "name": "stack",
99
+ * "value": "production",
100
+ * "targetId": "arn:aws:ecs:us-west-2:123456789012:container-instance/1c3be8ed-df30-47b4-8f1e-6e68ebd01f34"
101
+ * }
102
+ * ],
103
+ * "cluster": "MyCluster"
104
+ * };
105
+ * const command = new PutAttributesCommand(input);
106
+ * const response = await client.send(command);
107
+ * /* response ==
108
+ * {
109
+ * "attributes": [
110
+ * {
111
+ * "name": "stack",
112
+ * "value": "production",
113
+ * "targetId": "arn:aws:ecs:us-west-2:123456789012:container-instance/1c3be8ed-df30-47b4-8f1e-6e68ebd01f34"
114
+ * }
115
+ * ]
116
+ * }
117
+ * *\/
118
+ * // example id: to-create-or-update-an-attribute-on-a-resource-1734382423405
119
+ * ```
120
+ *
92
121
  */
93
122
  export declare class PutAttributesCommand extends PutAttributesCommand_base {
94
123
  /** @internal type navigation helper, not in runtime. */