@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
|
@@ -179,196 +179,195 @@ declare const UpdateClusterCommand_base: {
|
|
|
179
179
|
* @throws {@link ECSServiceException}
|
|
180
180
|
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
181
181
|
*
|
|
182
|
-
*
|
|
182
|
+
*
|
|
183
183
|
* @example To update a cluster's observability settings.
|
|
184
184
|
* ```javascript
|
|
185
185
|
* // This example turns on enhanced containerInsights in an existing cluster.
|
|
186
186
|
* const input = {
|
|
187
|
-
*
|
|
188
|
-
*
|
|
187
|
+
* cluster: "ECS-project-update-cluster",
|
|
188
|
+
* settings: [
|
|
189
189
|
* {
|
|
190
|
-
*
|
|
191
|
-
*
|
|
190
|
+
* name: "containerInsights",
|
|
191
|
+
* value: "enhanced"
|
|
192
192
|
* }
|
|
193
193
|
* ]
|
|
194
194
|
* };
|
|
195
195
|
* const command = new UpdateClusterCommand(input);
|
|
196
196
|
* const response = await client.send(command);
|
|
197
|
-
* /* response
|
|
197
|
+
* /* response is
|
|
198
198
|
* {
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
*
|
|
199
|
+
* cluster: {
|
|
200
|
+
* activeServicesCount: 0,
|
|
201
|
+
* attachments: [
|
|
202
202
|
* {
|
|
203
|
-
*
|
|
204
|
-
* "details": [
|
|
203
|
+
* details: [
|
|
205
204
|
* {
|
|
206
|
-
*
|
|
207
|
-
*
|
|
205
|
+
* name: "capacityProviderName",
|
|
206
|
+
* value: "Infra-ECS-Cluster-ECS-project-update-cluster-d6bb6d5b-EC2CapacityProvider-3fIpdkLywwFt"
|
|
208
207
|
* },
|
|
209
208
|
* {
|
|
210
|
-
*
|
|
211
|
-
*
|
|
209
|
+
* name: "scalingPolicyName",
|
|
210
|
+
* value: "ECSManagedAutoScalingPolicy-152363a6-8c65-484c-b721-42c3e070ae93"
|
|
212
211
|
* }
|
|
213
212
|
* ],
|
|
214
|
-
*
|
|
215
|
-
*
|
|
213
|
+
* id: "069d002b-7634-42e4-b1d4-544f4c8f6380",
|
|
214
|
+
* status: "CREATED",
|
|
215
|
+
* type: "as_policy"
|
|
216
216
|
* },
|
|
217
217
|
* {
|
|
218
|
-
*
|
|
219
|
-
* "details": [
|
|
218
|
+
* details: [
|
|
220
219
|
* {
|
|
221
|
-
*
|
|
222
|
-
*
|
|
220
|
+
* name: "capacityProviderName",
|
|
221
|
+
* value: "Infra-ECS-Cluster-ECS-project-update-cluster-d6bb6d5b-EC2CapacityProvider-3fIpdkLywwFt"
|
|
223
222
|
* },
|
|
224
223
|
* {
|
|
225
|
-
*
|
|
226
|
-
*
|
|
224
|
+
* name: "autoScalingLifecycleHookName",
|
|
225
|
+
* value: "ecs-managed-draining-termination-hook"
|
|
227
226
|
* }
|
|
228
227
|
* ],
|
|
229
|
-
*
|
|
230
|
-
*
|
|
228
|
+
* id: "08b5b6ca-45e9-4209-a65d-e962a27c490a",
|
|
229
|
+
* status: "CREATED",
|
|
230
|
+
* type: "managed_draining"
|
|
231
231
|
* },
|
|
232
232
|
* {
|
|
233
|
-
*
|
|
234
|
-
* "
|
|
235
|
-
*
|
|
236
|
-
*
|
|
233
|
+
* details: [],
|
|
234
|
+
* id: "45d0b36f-8cff-46b6-9380-1288744802ab",
|
|
235
|
+
* status: "ATTACHED",
|
|
236
|
+
* type: "sc"
|
|
237
237
|
* }
|
|
238
238
|
* ],
|
|
239
|
-
*
|
|
240
|
-
*
|
|
239
|
+
* attachmentsStatus: "UPDATE_COMPLETE",
|
|
240
|
+
* capacityProviders: [
|
|
241
241
|
* "Infra-ECS-Cluster-ECS-project-update-cluster-d6bb6d5b-EC2CapacityProvider-3fIpdkLywwFt"
|
|
242
242
|
* ],
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
*
|
|
243
|
+
* clusterArn: "arn:aws:ecs:us-west-2:123456789012:cluster/ECS-project-update-cluster",
|
|
244
|
+
* clusterName: "ECS-project-update-cluster",
|
|
245
|
+
* defaultCapacityProviderStrategy: [
|
|
246
246
|
* {
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
*
|
|
247
|
+
* base: 0,
|
|
248
|
+
* capacityProvider: "Infra-ECS-Cluster-ECS-project-update-cluster-d6bb6d5b-EC2CapacityProvider-3fIpdkLywwFt",
|
|
249
|
+
* weight: 1
|
|
250
250
|
* }
|
|
251
251
|
* ],
|
|
252
|
-
*
|
|
253
|
-
*
|
|
254
|
-
*
|
|
255
|
-
*
|
|
256
|
-
*
|
|
252
|
+
* pendingTasksCount: 0,
|
|
253
|
+
* registeredContainerInstancesCount: 0,
|
|
254
|
+
* runningTasksCount: 0,
|
|
255
|
+
* serviceConnectDefaults: {
|
|
256
|
+
* namespace: "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-igwrsylmy3kwvcdx"
|
|
257
257
|
* },
|
|
258
|
-
*
|
|
258
|
+
* settings: [
|
|
259
259
|
* {
|
|
260
|
-
*
|
|
261
|
-
*
|
|
260
|
+
* name: "containerInsights",
|
|
261
|
+
* value: "enhanced"
|
|
262
262
|
* }
|
|
263
263
|
* ],
|
|
264
|
-
*
|
|
265
|
-
*
|
|
266
|
-
*
|
|
264
|
+
* statistics: [],
|
|
265
|
+
* status: "ACTIVE",
|
|
266
|
+
* tags: []
|
|
267
267
|
* }
|
|
268
268
|
* }
|
|
269
269
|
* *\/
|
|
270
|
-
* // example id: to-update-a-clusters-observability-settings-1734626018966
|
|
271
270
|
* ```
|
|
272
271
|
*
|
|
273
272
|
* @example To update a cluster's Service Connect defaults.
|
|
274
273
|
* ```javascript
|
|
275
274
|
* // This example sets a default Service Connect namespace.
|
|
276
275
|
* const input = {
|
|
277
|
-
*
|
|
278
|
-
*
|
|
279
|
-
*
|
|
276
|
+
* cluster: "ECS-project-update-cluster",
|
|
277
|
+
* serviceConnectDefaults: {
|
|
278
|
+
* namespace: "test"
|
|
280
279
|
* }
|
|
281
280
|
* };
|
|
282
281
|
* const command = new UpdateClusterCommand(input);
|
|
283
282
|
* const response = await client.send(command);
|
|
284
|
-
* /* response
|
|
283
|
+
* /* response is
|
|
285
284
|
* {
|
|
286
|
-
*
|
|
287
|
-
*
|
|
288
|
-
*
|
|
285
|
+
* cluster: {
|
|
286
|
+
* activeServicesCount: 0,
|
|
287
|
+
* attachments: [
|
|
289
288
|
* {
|
|
290
|
-
*
|
|
291
|
-
* "details": [
|
|
289
|
+
* details: [
|
|
292
290
|
* {
|
|
293
|
-
*
|
|
294
|
-
*
|
|
291
|
+
* name: "capacityProviderName",
|
|
292
|
+
* value: "Infra-ECS-Cluster-ECS-project-update-cluster-d6bb6d5b-EC2CapacityProvider-3fIpdkLywwFt"
|
|
295
293
|
* },
|
|
296
294
|
* {
|
|
297
|
-
*
|
|
298
|
-
*
|
|
295
|
+
* name: "scalingPolicyName",
|
|
296
|
+
* value: "ECSManagedAutoScalingPolicy-152363a6-8c65-484c-b721-42c3e070ae93"
|
|
299
297
|
* }
|
|
300
298
|
* ],
|
|
301
|
-
*
|
|
302
|
-
*
|
|
299
|
+
* id: "069d002b-7634-42e4-b1d4-544f4c8f6380",
|
|
300
|
+
* status: "CREATED",
|
|
301
|
+
* type: "as_policy"
|
|
303
302
|
* },
|
|
304
303
|
* {
|
|
305
|
-
*
|
|
306
|
-
* "details": [
|
|
304
|
+
* details: [
|
|
307
305
|
* {
|
|
308
|
-
*
|
|
309
|
-
*
|
|
306
|
+
* name: "capacityProviderName",
|
|
307
|
+
* value: "Infra-ECS-Cluster-ECS-project-update-cluster-d6bb6d5b-EC2CapacityProvider-3fIpdkLywwFt"
|
|
310
308
|
* },
|
|
311
309
|
* {
|
|
312
|
-
*
|
|
313
|
-
*
|
|
310
|
+
* name: "autoScalingLifecycleHookName",
|
|
311
|
+
* value: "ecs-managed-draining-termination-hook"
|
|
314
312
|
* }
|
|
315
313
|
* ],
|
|
316
|
-
*
|
|
317
|
-
*
|
|
314
|
+
* id: "08b5b6ca-45e9-4209-a65d-e962a27c490a",
|
|
315
|
+
* status: "CREATED",
|
|
316
|
+
* type: "managed_draining"
|
|
318
317
|
* },
|
|
319
318
|
* {
|
|
320
|
-
*
|
|
321
|
-
* "
|
|
322
|
-
*
|
|
323
|
-
*
|
|
319
|
+
* details: [],
|
|
320
|
+
* id: "45d0b36f-8cff-46b6-9380-1288744802ab",
|
|
321
|
+
* status: "DELETED",
|
|
322
|
+
* type: "sc"
|
|
324
323
|
* },
|
|
325
324
|
* {
|
|
326
|
-
*
|
|
327
|
-
* "
|
|
328
|
-
*
|
|
329
|
-
*
|
|
325
|
+
* details: [],
|
|
326
|
+
* id: "3e6890c3-609c-4832-91de-d6ca891b3ef1",
|
|
327
|
+
* status: "ATTACHED",
|
|
328
|
+
* type: "sc"
|
|
330
329
|
* },
|
|
331
330
|
* {
|
|
332
|
-
*
|
|
333
|
-
* "
|
|
334
|
-
*
|
|
335
|
-
*
|
|
331
|
+
* details: [],
|
|
332
|
+
* id: "961b8ec1-c2f1-4070-8495-e669b7668e90",
|
|
333
|
+
* status: "DELETED",
|
|
334
|
+
* type: "sc"
|
|
336
335
|
* }
|
|
337
336
|
* ],
|
|
338
|
-
*
|
|
339
|
-
*
|
|
337
|
+
* attachmentsStatus: "UPDATE_COMPLETE",
|
|
338
|
+
* capacityProviders: [
|
|
340
339
|
* "Infra-ECS-Cluster-ECS-project-update-cluster-d6bb6d5b-EC2CapacityProvider-3fIpdkLywwFt"
|
|
341
340
|
* ],
|
|
342
|
-
*
|
|
343
|
-
*
|
|
344
|
-
*
|
|
341
|
+
* clusterArn: "arn:aws:ecs:us-west-2:123456789012:cluster/ECS-project-update-cluster",
|
|
342
|
+
* clusterName: "ECS-project-update-cluster",
|
|
343
|
+
* defaultCapacityProviderStrategy: [
|
|
345
344
|
* {
|
|
346
|
-
*
|
|
347
|
-
*
|
|
348
|
-
*
|
|
345
|
+
* base: 0,
|
|
346
|
+
* capacityProvider: "Infra-ECS-Cluster-ECS-project-update-cluster-d6bb6d5b-EC2CapacityProvider-3fIpdkLywwFt",
|
|
347
|
+
* weight: 1
|
|
349
348
|
* }
|
|
350
349
|
* ],
|
|
351
|
-
*
|
|
352
|
-
*
|
|
353
|
-
*
|
|
354
|
-
*
|
|
355
|
-
*
|
|
350
|
+
* pendingTasksCount: 0,
|
|
351
|
+
* registeredContainerInstancesCount: 0,
|
|
352
|
+
* runningTasksCount: 0,
|
|
353
|
+
* serviceConnectDefaults: {
|
|
354
|
+
* namespace: "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-dtjmxqpfi46ht7dr"
|
|
356
355
|
* },
|
|
357
|
-
*
|
|
356
|
+
* settings: [
|
|
358
357
|
* {
|
|
359
|
-
*
|
|
360
|
-
*
|
|
358
|
+
* name: "containerInsights",
|
|
359
|
+
* value: "enhanced"
|
|
361
360
|
* }
|
|
362
361
|
* ],
|
|
363
|
-
*
|
|
364
|
-
*
|
|
365
|
-
*
|
|
362
|
+
* statistics: [],
|
|
363
|
+
* status: "ACTIVE",
|
|
364
|
+
* tags: []
|
|
366
365
|
* }
|
|
367
366
|
* }
|
|
368
367
|
* *\/
|
|
369
|
-
* // example id: to-update-a-clusters-service-connect-defaults-1734626891648
|
|
370
368
|
* ```
|
|
371
369
|
*
|
|
370
|
+
* @public
|
|
372
371
|
*/
|
|
373
372
|
export declare class UpdateClusterCommand extends UpdateClusterCommand_base {
|
|
374
373
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -156,45 +156,45 @@ declare const UpdateClusterSettingsCommand_base: {
|
|
|
156
156
|
* @throws {@link ECSServiceException}
|
|
157
157
|
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
158
158
|
*
|
|
159
|
-
*
|
|
159
|
+
*
|
|
160
160
|
* @example To update a cluster's settings
|
|
161
161
|
* ```javascript
|
|
162
162
|
* // This example enables CloudWatch Container Insights for the default cluster.
|
|
163
163
|
* const input = {
|
|
164
|
-
*
|
|
165
|
-
*
|
|
164
|
+
* cluster: "default",
|
|
165
|
+
* settings: [
|
|
166
166
|
* {
|
|
167
|
-
*
|
|
168
|
-
*
|
|
167
|
+
* name: "containerInsights",
|
|
168
|
+
* value: "enabled"
|
|
169
169
|
* }
|
|
170
170
|
* ]
|
|
171
171
|
* };
|
|
172
172
|
* const command = new UpdateClusterSettingsCommand(input);
|
|
173
173
|
* const response = await client.send(command);
|
|
174
|
-
* /* response
|
|
174
|
+
* /* response is
|
|
175
175
|
* {
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
*
|
|
176
|
+
* cluster: {
|
|
177
|
+
* activeServicesCount: 0,
|
|
178
|
+
* clusterArn: "arn:aws:ecs:us-west-2:123456789012:cluster/MyCluster",
|
|
179
|
+
* clusterName: "default",
|
|
180
|
+
* pendingTasksCount: 0,
|
|
181
|
+
* registeredContainerInstancesCount: 0,
|
|
182
|
+
* runningTasksCount: 0,
|
|
183
|
+
* settings: [
|
|
184
184
|
* {
|
|
185
|
-
*
|
|
186
|
-
*
|
|
185
|
+
* name: "containerInsights",
|
|
186
|
+
* value: "enabled"
|
|
187
187
|
* }
|
|
188
188
|
* ],
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
*
|
|
189
|
+
* statistics: [],
|
|
190
|
+
* status: "ACTIVE",
|
|
191
|
+
* tags: []
|
|
192
192
|
* }
|
|
193
193
|
* }
|
|
194
194
|
* *\/
|
|
195
|
-
* // example id: to-update-a-clusters-settings-1734628004887
|
|
196
195
|
* ```
|
|
197
196
|
*
|
|
197
|
+
* @public
|
|
198
198
|
*/
|
|
199
199
|
export declare class UpdateClusterSettingsCommand extends UpdateClusterSettingsCommand_base {
|
|
200
200
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -196,32 +196,32 @@ declare const UpdateContainerAgentCommand_base: {
|
|
|
196
196
|
* @throws {@link ECSServiceException}
|
|
197
197
|
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
198
198
|
*
|
|
199
|
-
*
|
|
199
|
+
*
|
|
200
200
|
* @example To update the container agent version on a container instance
|
|
201
201
|
* ```javascript
|
|
202
202
|
* // This example updates the container agent version on the specified container instance in cluster MyCluster.
|
|
203
203
|
* const input = {
|
|
204
|
-
*
|
|
205
|
-
*
|
|
204
|
+
* cluster: "MyCluster",
|
|
205
|
+
* containerInstance: "53ac7152-dcd1-4102-81f5-208962864132"
|
|
206
206
|
* };
|
|
207
207
|
* const command = new UpdateContainerAgentCommand(input);
|
|
208
208
|
* const response = await client.send(command);
|
|
209
|
-
* /* response
|
|
209
|
+
* /* response is
|
|
210
210
|
* {
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
211
|
+
* containerInstance: {
|
|
212
|
+
* agentConnected: true,
|
|
213
|
+
* agentUpdateStatus: "PENDING",
|
|
214
|
+
* versionInfo: {
|
|
215
|
+
* agentHash: "4023248",
|
|
216
|
+
* agentVersion: "1.0.0",
|
|
217
|
+
* dockerVersion: "DockerVersion: 1.5.0"
|
|
218
218
|
* }
|
|
219
219
|
* }
|
|
220
220
|
* }
|
|
221
221
|
* *\/
|
|
222
|
-
* // example id: to-update-the-container-agent-version-on-a-container-instance-1734628653210
|
|
223
222
|
* ```
|
|
224
223
|
*
|
|
224
|
+
* @public
|
|
225
225
|
*/
|
|
226
226
|
export declare class UpdateContainerAgentCommand extends UpdateContainerAgentCommand_base {
|
|
227
227
|
/** @internal type navigation helper, not in runtime. */
|