@aws-sdk/client-ecs 3.721.0 → 3.723.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 +415 -317
- package/dist-es/ECSClient.js +1 -0
- package/dist-es/models/models_0.js +49 -48
- package/dist-es/models/models_1.js +4 -4
- package/dist-types/commands/CreateCapacityProviderCommand.d.ts +40 -0
- package/dist-types/commands/CreateTaskSetCommand.d.ts +58 -0
- package/dist-types/commands/DeleteAttributesCommand.d.ts +27 -0
- package/dist-types/commands/DeleteCapacityProviderCommand.d.ts +32 -0
- package/dist-types/commands/DeleteTaskDefinitionsCommand.d.ts +47 -0
- package/dist-types/commands/DeleteTaskSetCommand.d.ts +49 -0
- package/dist-types/commands/DeregisterTaskDefinitionCommand.d.ts +39 -0
- package/dist-types/commands/DescribeCapacityProvidersCommand.d.ts +86 -0
- package/dist-types/commands/DescribeServiceDeploymentsCommand.d.ts +41 -0
- package/dist-types/commands/DescribeServiceRevisionsCommand.d.ts +41 -0
- package/dist-types/commands/DescribeTaskSetsCommand.d.ts +53 -0
- package/dist-types/commands/ExecuteCommandCommand.d.ts +29 -0
- package/dist-types/commands/ListAttributesCommand.d.ts +25 -0
- package/dist-types/commands/ListServiceDeploymentsCommand.d.ts +29 -1
- package/dist-types/commands/PutAttributesCommand.d.ts +29 -0
- package/dist-types/commands/PutClusterCapacityProvidersCommand.d.ts +249 -0
- package/dist-types/commands/StartTaskCommand.d.ts +56 -0
- package/dist-types/commands/StopTaskCommand.d.ts +63 -0
- package/dist-types/commands/UpdateCapacityProviderCommand.d.ts +40 -0
- package/dist-types/commands/UpdateClusterCommand.d.ts +189 -0
- package/dist-types/commands/UpdateClusterSettingsCommand.d.ts +38 -0
- package/dist-types/commands/UpdateContainerAgentCommand.d.ts +25 -0
- package/dist-types/commands/UpdateContainerInstancesStateCommand.d.ts +172 -0
- package/dist-types/commands/UpdateServicePrimaryTaskSetCommand.d.ts +48 -0
- package/dist-types/commands/UpdateTaskSetCommand.d.ts +52 -0
- package/dist-types/models/models_0.d.ts +2 -3
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +9 -7
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +20 -8
- package/package.json +44 -44
package/dist-es/ECSClient.js
CHANGED
|
@@ -14,6 +14,7 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
|
14
14
|
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
15
15
|
export { __Client };
|
|
16
16
|
export class ECSClient extends __Client {
|
|
17
|
+
config;
|
|
17
18
|
constructor(...[configuration]) {
|
|
18
19
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
19
20
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
2
|
import { ECSServiceException as __BaseException } from "./ECSServiceException";
|
|
3
3
|
export class AccessDeniedException extends __BaseException {
|
|
4
|
+
name = "AccessDeniedException";
|
|
5
|
+
$fault = "client";
|
|
4
6
|
constructor(opts) {
|
|
5
7
|
super({
|
|
6
8
|
name: "AccessDeniedException",
|
|
7
9
|
$fault: "client",
|
|
8
10
|
...opts,
|
|
9
11
|
});
|
|
10
|
-
this.name = "AccessDeniedException";
|
|
11
|
-
this.$fault = "client";
|
|
12
12
|
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -21,14 +21,14 @@ export const AgentUpdateStatus = {
|
|
|
21
21
|
UPDATING: "UPDATING",
|
|
22
22
|
};
|
|
23
23
|
export class ClientException extends __BaseException {
|
|
24
|
+
name = "ClientException";
|
|
25
|
+
$fault = "client";
|
|
24
26
|
constructor(opts) {
|
|
25
27
|
super({
|
|
26
28
|
name: "ClientException",
|
|
27
29
|
$fault: "client",
|
|
28
30
|
...opts,
|
|
29
31
|
});
|
|
30
|
-
this.name = "ClientException";
|
|
31
|
-
this.$fault = "client";
|
|
32
32
|
Object.setPrototypeOf(this, ClientException.prototype);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -57,50 +57,50 @@ export const CapacityProviderUpdateStatus = {
|
|
|
57
57
|
UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS",
|
|
58
58
|
};
|
|
59
59
|
export class InvalidParameterException extends __BaseException {
|
|
60
|
+
name = "InvalidParameterException";
|
|
61
|
+
$fault = "client";
|
|
60
62
|
constructor(opts) {
|
|
61
63
|
super({
|
|
62
64
|
name: "InvalidParameterException",
|
|
63
65
|
$fault: "client",
|
|
64
66
|
...opts,
|
|
65
67
|
});
|
|
66
|
-
this.name = "InvalidParameterException";
|
|
67
|
-
this.$fault = "client";
|
|
68
68
|
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
export class LimitExceededException extends __BaseException {
|
|
72
|
+
name = "LimitExceededException";
|
|
73
|
+
$fault = "client";
|
|
72
74
|
constructor(opts) {
|
|
73
75
|
super({
|
|
74
76
|
name: "LimitExceededException",
|
|
75
77
|
$fault: "client",
|
|
76
78
|
...opts,
|
|
77
79
|
});
|
|
78
|
-
this.name = "LimitExceededException";
|
|
79
|
-
this.$fault = "client";
|
|
80
80
|
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
export class ServerException extends __BaseException {
|
|
84
|
+
name = "ServerException";
|
|
85
|
+
$fault = "server";
|
|
84
86
|
constructor(opts) {
|
|
85
87
|
super({
|
|
86
88
|
name: "ServerException",
|
|
87
89
|
$fault: "server",
|
|
88
90
|
...opts,
|
|
89
91
|
});
|
|
90
|
-
this.name = "ServerException";
|
|
91
|
-
this.$fault = "server";
|
|
92
92
|
Object.setPrototypeOf(this, ServerException.prototype);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
export class UpdateInProgressException extends __BaseException {
|
|
96
|
+
name = "UpdateInProgressException";
|
|
97
|
+
$fault = "client";
|
|
96
98
|
constructor(opts) {
|
|
97
99
|
super({
|
|
98
100
|
name: "UpdateInProgressException",
|
|
99
101
|
$fault: "client",
|
|
100
102
|
...opts,
|
|
101
103
|
});
|
|
102
|
-
this.name = "UpdateInProgressException";
|
|
103
|
-
this.$fault = "client";
|
|
104
104
|
Object.setPrototypeOf(this, UpdateInProgressException.prototype);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
@@ -113,26 +113,26 @@ export const ClusterSettingName = {
|
|
|
113
113
|
CONTAINER_INSIGHTS: "containerInsights",
|
|
114
114
|
};
|
|
115
115
|
export class NamespaceNotFoundException extends __BaseException {
|
|
116
|
+
name = "NamespaceNotFoundException";
|
|
117
|
+
$fault = "client";
|
|
116
118
|
constructor(opts) {
|
|
117
119
|
super({
|
|
118
120
|
name: "NamespaceNotFoundException",
|
|
119
121
|
$fault: "client",
|
|
120
122
|
...opts,
|
|
121
123
|
});
|
|
122
|
-
this.name = "NamespaceNotFoundException";
|
|
123
|
-
this.$fault = "client";
|
|
124
124
|
Object.setPrototypeOf(this, NamespaceNotFoundException.prototype);
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
export class ClusterNotFoundException extends __BaseException {
|
|
128
|
+
name = "ClusterNotFoundException";
|
|
129
|
+
$fault = "client";
|
|
128
130
|
constructor(opts) {
|
|
129
131
|
super({
|
|
130
132
|
name: "ClusterNotFoundException",
|
|
131
133
|
$fault: "client",
|
|
132
134
|
...opts,
|
|
133
135
|
});
|
|
134
|
-
this.name = "ClusterNotFoundException";
|
|
135
|
-
this.$fault = "client";
|
|
136
136
|
Object.setPrototypeOf(this, ClusterNotFoundException.prototype);
|
|
137
137
|
}
|
|
138
138
|
}
|
|
@@ -204,62 +204,62 @@ export const StabilityStatus = {
|
|
|
204
204
|
STEADY_STATE: "STEADY_STATE",
|
|
205
205
|
};
|
|
206
206
|
export class PlatformTaskDefinitionIncompatibilityException extends __BaseException {
|
|
207
|
+
name = "PlatformTaskDefinitionIncompatibilityException";
|
|
208
|
+
$fault = "client";
|
|
207
209
|
constructor(opts) {
|
|
208
210
|
super({
|
|
209
211
|
name: "PlatformTaskDefinitionIncompatibilityException",
|
|
210
212
|
$fault: "client",
|
|
211
213
|
...opts,
|
|
212
214
|
});
|
|
213
|
-
this.name = "PlatformTaskDefinitionIncompatibilityException";
|
|
214
|
-
this.$fault = "client";
|
|
215
215
|
Object.setPrototypeOf(this, PlatformTaskDefinitionIncompatibilityException.prototype);
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
export class PlatformUnknownException extends __BaseException {
|
|
219
|
+
name = "PlatformUnknownException";
|
|
220
|
+
$fault = "client";
|
|
219
221
|
constructor(opts) {
|
|
220
222
|
super({
|
|
221
223
|
name: "PlatformUnknownException",
|
|
222
224
|
$fault: "client",
|
|
223
225
|
...opts,
|
|
224
226
|
});
|
|
225
|
-
this.name = "PlatformUnknownException";
|
|
226
|
-
this.$fault = "client";
|
|
227
227
|
Object.setPrototypeOf(this, PlatformUnknownException.prototype);
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
export class UnsupportedFeatureException extends __BaseException {
|
|
231
|
+
name = "UnsupportedFeatureException";
|
|
232
|
+
$fault = "client";
|
|
231
233
|
constructor(opts) {
|
|
232
234
|
super({
|
|
233
235
|
name: "UnsupportedFeatureException",
|
|
234
236
|
$fault: "client",
|
|
235
237
|
...opts,
|
|
236
238
|
});
|
|
237
|
-
this.name = "UnsupportedFeatureException";
|
|
238
|
-
this.$fault = "client";
|
|
239
239
|
Object.setPrototypeOf(this, UnsupportedFeatureException.prototype);
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
export class ServiceNotActiveException extends __BaseException {
|
|
243
|
+
name = "ServiceNotActiveException";
|
|
244
|
+
$fault = "client";
|
|
243
245
|
constructor(opts) {
|
|
244
246
|
super({
|
|
245
247
|
name: "ServiceNotActiveException",
|
|
246
248
|
$fault: "client",
|
|
247
249
|
...opts,
|
|
248
250
|
});
|
|
249
|
-
this.name = "ServiceNotActiveException";
|
|
250
|
-
this.$fault = "client";
|
|
251
251
|
Object.setPrototypeOf(this, ServiceNotActiveException.prototype);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
export class ServiceNotFoundException extends __BaseException {
|
|
255
|
+
name = "ServiceNotFoundException";
|
|
256
|
+
$fault = "client";
|
|
255
257
|
constructor(opts) {
|
|
256
258
|
super({
|
|
257
259
|
name: "ServiceNotFoundException",
|
|
258
260
|
$fault: "client",
|
|
259
261
|
...opts,
|
|
260
262
|
});
|
|
261
|
-
this.name = "ServiceNotFoundException";
|
|
262
|
-
this.$fault = "client";
|
|
263
263
|
Object.setPrototypeOf(this, ServiceNotFoundException.prototype);
|
|
264
264
|
}
|
|
265
265
|
}
|
|
@@ -282,50 +282,50 @@ export const TargetType = {
|
|
|
282
282
|
CONTAINER_INSTANCE: "container-instance",
|
|
283
283
|
};
|
|
284
284
|
export class TargetNotFoundException extends __BaseException {
|
|
285
|
+
name = "TargetNotFoundException";
|
|
286
|
+
$fault = "client";
|
|
285
287
|
constructor(opts) {
|
|
286
288
|
super({
|
|
287
289
|
name: "TargetNotFoundException",
|
|
288
290
|
$fault: "client",
|
|
289
291
|
...opts,
|
|
290
292
|
});
|
|
291
|
-
this.name = "TargetNotFoundException";
|
|
292
|
-
this.$fault = "client";
|
|
293
293
|
Object.setPrototypeOf(this, TargetNotFoundException.prototype);
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
export class ClusterContainsContainerInstancesException extends __BaseException {
|
|
297
|
+
name = "ClusterContainsContainerInstancesException";
|
|
298
|
+
$fault = "client";
|
|
297
299
|
constructor(opts) {
|
|
298
300
|
super({
|
|
299
301
|
name: "ClusterContainsContainerInstancesException",
|
|
300
302
|
$fault: "client",
|
|
301
303
|
...opts,
|
|
302
304
|
});
|
|
303
|
-
this.name = "ClusterContainsContainerInstancesException";
|
|
304
|
-
this.$fault = "client";
|
|
305
305
|
Object.setPrototypeOf(this, ClusterContainsContainerInstancesException.prototype);
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
export class ClusterContainsServicesException extends __BaseException {
|
|
309
|
+
name = "ClusterContainsServicesException";
|
|
310
|
+
$fault = "client";
|
|
309
311
|
constructor(opts) {
|
|
310
312
|
super({
|
|
311
313
|
name: "ClusterContainsServicesException",
|
|
312
314
|
$fault: "client",
|
|
313
315
|
...opts,
|
|
314
316
|
});
|
|
315
|
-
this.name = "ClusterContainsServicesException";
|
|
316
|
-
this.$fault = "client";
|
|
317
317
|
Object.setPrototypeOf(this, ClusterContainsServicesException.prototype);
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
export class ClusterContainsTasksException extends __BaseException {
|
|
321
|
+
name = "ClusterContainsTasksException";
|
|
322
|
+
$fault = "client";
|
|
321
323
|
constructor(opts) {
|
|
322
324
|
super({
|
|
323
325
|
name: "ClusterContainsTasksException",
|
|
324
326
|
$fault: "client",
|
|
325
327
|
...opts,
|
|
326
328
|
});
|
|
327
|
-
this.name = "ClusterContainsTasksException";
|
|
328
|
-
this.$fault = "client";
|
|
329
329
|
Object.setPrototypeOf(this, ClusterContainsTasksException.prototype);
|
|
330
330
|
}
|
|
331
331
|
}
|
|
@@ -439,14 +439,14 @@ export const EFSTransitEncryption = {
|
|
|
439
439
|
ENABLED: "ENABLED",
|
|
440
440
|
};
|
|
441
441
|
export class TaskSetNotFoundException extends __BaseException {
|
|
442
|
+
name = "TaskSetNotFoundException";
|
|
443
|
+
$fault = "client";
|
|
442
444
|
constructor(opts) {
|
|
443
445
|
super({
|
|
444
446
|
name: "TaskSetNotFoundException",
|
|
445
447
|
$fault: "client",
|
|
446
448
|
...opts,
|
|
447
449
|
});
|
|
448
|
-
this.name = "TaskSetNotFoundException";
|
|
449
|
-
this.$fault = "client";
|
|
450
450
|
Object.setPrototypeOf(this, TaskSetNotFoundException.prototype);
|
|
451
451
|
}
|
|
452
452
|
}
|
|
@@ -522,26 +522,26 @@ export const TaskSetField = {
|
|
|
522
522
|
TAGS: "TAGS",
|
|
523
523
|
};
|
|
524
524
|
export class TargetNotConnectedException extends __BaseException {
|
|
525
|
+
name = "TargetNotConnectedException";
|
|
526
|
+
$fault = "client";
|
|
525
527
|
constructor(opts) {
|
|
526
528
|
super({
|
|
527
529
|
name: "TargetNotConnectedException",
|
|
528
530
|
$fault: "client",
|
|
529
531
|
...opts,
|
|
530
532
|
});
|
|
531
|
-
this.name = "TargetNotConnectedException";
|
|
532
|
-
this.$fault = "client";
|
|
533
533
|
Object.setPrototypeOf(this, TargetNotConnectedException.prototype);
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
export class ResourceNotFoundException extends __BaseException {
|
|
537
|
+
name = "ResourceNotFoundException";
|
|
538
|
+
$fault = "client";
|
|
537
539
|
constructor(opts) {
|
|
538
540
|
super({
|
|
539
541
|
name: "ResourceNotFoundException",
|
|
540
542
|
$fault: "client",
|
|
541
543
|
...opts,
|
|
542
544
|
});
|
|
543
|
-
this.name = "ResourceNotFoundException";
|
|
544
|
-
this.$fault = "client";
|
|
545
545
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
546
546
|
}
|
|
547
547
|
}
|
|
@@ -567,26 +567,26 @@ export const DesiredStatus = {
|
|
|
567
567
|
STOPPED: "STOPPED",
|
|
568
568
|
};
|
|
569
569
|
export class AttributeLimitExceededException extends __BaseException {
|
|
570
|
+
name = "AttributeLimitExceededException";
|
|
571
|
+
$fault = "client";
|
|
570
572
|
constructor(opts) {
|
|
571
573
|
super({
|
|
572
574
|
name: "AttributeLimitExceededException",
|
|
573
575
|
$fault: "client",
|
|
574
576
|
...opts,
|
|
575
577
|
});
|
|
576
|
-
this.name = "AttributeLimitExceededException";
|
|
577
|
-
this.$fault = "client";
|
|
578
578
|
Object.setPrototypeOf(this, AttributeLimitExceededException.prototype);
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
export class ResourceInUseException extends __BaseException {
|
|
582
|
+
name = "ResourceInUseException";
|
|
583
|
+
$fault = "client";
|
|
582
584
|
constructor(opts) {
|
|
583
585
|
super({
|
|
584
586
|
name: "ResourceInUseException",
|
|
585
587
|
$fault: "client",
|
|
586
588
|
...opts,
|
|
587
589
|
});
|
|
588
|
-
this.name = "ResourceInUseException";
|
|
589
|
-
this.$fault = "client";
|
|
590
590
|
Object.setPrototypeOf(this, ResourceInUseException.prototype);
|
|
591
591
|
}
|
|
592
592
|
}
|
|
@@ -594,26 +594,27 @@ export const PlatformDeviceType = {
|
|
|
594
594
|
GPU: "GPU",
|
|
595
595
|
};
|
|
596
596
|
export class BlockedException extends __BaseException {
|
|
597
|
+
name = "BlockedException";
|
|
598
|
+
$fault = "client";
|
|
597
599
|
constructor(opts) {
|
|
598
600
|
super({
|
|
599
601
|
name: "BlockedException",
|
|
600
602
|
$fault: "client",
|
|
601
603
|
...opts,
|
|
602
604
|
});
|
|
603
|
-
this.name = "BlockedException";
|
|
604
|
-
this.$fault = "client";
|
|
605
605
|
Object.setPrototypeOf(this, BlockedException.prototype);
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
608
|
export class ConflictException extends __BaseException {
|
|
609
|
+
name = "ConflictException";
|
|
610
|
+
$fault = "client";
|
|
611
|
+
resourceIds;
|
|
609
612
|
constructor(opts) {
|
|
610
613
|
super({
|
|
611
614
|
name: "ConflictException",
|
|
612
615
|
$fault: "client",
|
|
613
616
|
...opts,
|
|
614
617
|
});
|
|
615
|
-
this.name = "ConflictException";
|
|
616
|
-
this.$fault = "client";
|
|
617
618
|
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
618
619
|
this.resourceIds = opts.resourceIds;
|
|
619
620
|
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { ECSServiceException as __BaseException } from "./ECSServiceException";
|
|
2
2
|
export class MissingVersionException extends __BaseException {
|
|
3
|
+
name = "MissingVersionException";
|
|
4
|
+
$fault = "client";
|
|
3
5
|
constructor(opts) {
|
|
4
6
|
super({
|
|
5
7
|
name: "MissingVersionException",
|
|
6
8
|
$fault: "client",
|
|
7
9
|
...opts,
|
|
8
10
|
});
|
|
9
|
-
this.name = "MissingVersionException";
|
|
10
|
-
this.$fault = "client";
|
|
11
11
|
Object.setPrototypeOf(this, MissingVersionException.prototype);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
export class NoUpdateAvailableException extends __BaseException {
|
|
15
|
+
name = "NoUpdateAvailableException";
|
|
16
|
+
$fault = "client";
|
|
15
17
|
constructor(opts) {
|
|
16
18
|
super({
|
|
17
19
|
name: "NoUpdateAvailableException",
|
|
18
20
|
$fault: "client",
|
|
19
21
|
...opts,
|
|
20
22
|
});
|
|
21
|
-
this.name = "NoUpdateAvailableException";
|
|
22
|
-
this.$fault = "client";
|
|
23
23
|
Object.setPrototypeOf(this, NoUpdateAvailableException.prototype);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -135,6 +135,46 @@ declare const CreateCapacityProviderCommand_base: {
|
|
|
135
135
|
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
136
136
|
*
|
|
137
137
|
* @public
|
|
138
|
+
* @example To create a capacity provider
|
|
139
|
+
* ```javascript
|
|
140
|
+
* // This example creates a capacity provider that uses the specified Auto Scaling group MyASG and has managed scaling and manager termination protection enabled.
|
|
141
|
+
* const input = {
|
|
142
|
+
* "name": "MyCapacityProvider",
|
|
143
|
+
* "autoScalingGroupProvider": {
|
|
144
|
+
* "autoScalingGroupArn": "arn:aws:autoscaling:us-east-1:123456789012:autoScalingGroup:57ffcb94-11f0-4d6d-bf60-3bac5EXAMPLE:autoScalingGroupName/MyASG",
|
|
145
|
+
* "managedScaling": {
|
|
146
|
+
* "status": "ENABLED",
|
|
147
|
+
* "targetCapacity": 100
|
|
148
|
+
* },
|
|
149
|
+
* "managedTerminationProtection": "ENABLED"
|
|
150
|
+
* }
|
|
151
|
+
* };
|
|
152
|
+
* const command = new CreateCapacityProviderCommand(input);
|
|
153
|
+
* const response = await client.send(command);
|
|
154
|
+
* /* response ==
|
|
155
|
+
* {
|
|
156
|
+
* "capacityProvider": {
|
|
157
|
+
* "name": "MyCapacityProvider",
|
|
158
|
+
* "autoScalingGroupProvider": {
|
|
159
|
+
* "autoScalingGroupArn": "arn:aws:autoscaling:us-east-1:132456789012:autoScalingGroup:57ffcb94-11f0-4d6d-bf60-3bac5EXAMPLE:autoScalingGroupName/MyASG",
|
|
160
|
+
* "managedScaling": {
|
|
161
|
+
* "instanceWarmupPeriod": 300,
|
|
162
|
+
* "maximumScalingStepSize": 10000,
|
|
163
|
+
* "minimumScalingStepSize": 1,
|
|
164
|
+
* "status": "ENABLED",
|
|
165
|
+
* "targetCapacity": 100
|
|
166
|
+
* },
|
|
167
|
+
* "managedTerminationProtection": "ENABLED"
|
|
168
|
+
* },
|
|
169
|
+
* "capacityProviderArn": "arn:aws:ecs:us-east-1:123456789012:capacity-provider/MyCapacityProvider",
|
|
170
|
+
* "status": "ACTIVE",
|
|
171
|
+
* "tags": []
|
|
172
|
+
* }
|
|
173
|
+
* }
|
|
174
|
+
* *\/
|
|
175
|
+
* // example id: to-create-a-capacity-provider--1733861347945
|
|
176
|
+
* ```
|
|
177
|
+
*
|
|
138
178
|
*/
|
|
139
179
|
export declare class CreateCapacityProviderCommand extends CreateCapacityProviderCommand_base {
|
|
140
180
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -228,6 +228,64 @@ declare const CreateTaskSetCommand_base: {
|
|
|
228
228
|
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
229
229
|
*
|
|
230
230
|
* @public
|
|
231
|
+
* @example To create a task set
|
|
232
|
+
* ```javascript
|
|
233
|
+
* // This example creates a task set in a service that uses the EXTERNAL deployment controller.
|
|
234
|
+
* const input = {
|
|
235
|
+
* "cluster": "MyCluster",
|
|
236
|
+
* "networkConfiguration": {
|
|
237
|
+
* "awsvpcConfiguration": {
|
|
238
|
+
* "securityGroups": [
|
|
239
|
+
* "sg-12344321"
|
|
240
|
+
* ],
|
|
241
|
+
* "subnets": [
|
|
242
|
+
* "subnet-12344321"
|
|
243
|
+
* ]
|
|
244
|
+
* }
|
|
245
|
+
* },
|
|
246
|
+
* "service": "MyService",
|
|
247
|
+
* "taskDefinition": "MyTaskDefinition:2"
|
|
248
|
+
* };
|
|
249
|
+
* const command = new CreateTaskSetCommand(input);
|
|
250
|
+
* const response = await client.send(command);
|
|
251
|
+
* /* response ==
|
|
252
|
+
* {
|
|
253
|
+
* "taskSet": {
|
|
254
|
+
* "computedDesiredCount": 0,
|
|
255
|
+
* "createdAt": 1557128360.711,
|
|
256
|
+
* "id": "ecs-svc/1234567890123456789",
|
|
257
|
+
* "launchType": "EC2",
|
|
258
|
+
* "loadBalancers": [],
|
|
259
|
+
* "networkConfiguration": {
|
|
260
|
+
* "awsvpcConfiguration": {
|
|
261
|
+
* "assignPublicIp": "DISABLED",
|
|
262
|
+
* "securityGroups": [
|
|
263
|
+
* "sg-12344321"
|
|
264
|
+
* ],
|
|
265
|
+
* "subnets": [
|
|
266
|
+
* "subnet-12344321"
|
|
267
|
+
* ]
|
|
268
|
+
* }
|
|
269
|
+
* },
|
|
270
|
+
* "pendingCount": 0,
|
|
271
|
+
* "runningCount": 0,
|
|
272
|
+
* "scale": {
|
|
273
|
+
* "value": 0,
|
|
274
|
+
* "unit": "PERCENT"
|
|
275
|
+
* },
|
|
276
|
+
* "serviceRegistries": [],
|
|
277
|
+
* "stabilityStatus": "STABILIZING",
|
|
278
|
+
* "stabilityStatusAt": 1557128360.711,
|
|
279
|
+
* "status": "ACTIVE",
|
|
280
|
+
* "taskDefinition": "arn:aws:ecs:us-west-2:123456789012:task-definition/MyTaskDefinition:2",
|
|
281
|
+
* "taskSetArn": "arn:aws:ecs:us-west-2:123456789012:task-set/MyCluster/MyService/ecs-svc/1234567890123456789",
|
|
282
|
+
* "updatedAt": 1557128360.711
|
|
283
|
+
* }
|
|
284
|
+
* }
|
|
285
|
+
* *\/
|
|
286
|
+
* // example id: to-create-a-task-set-1733864092815
|
|
287
|
+
* ```
|
|
288
|
+
*
|
|
231
289
|
*/
|
|
232
290
|
export declare class CreateTaskSetCommand extends CreateTaskSetCommand_base {
|
|
233
291
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -82,6 +82,33 @@ declare const DeleteAttributesCommand_base: {
|
|
|
82
82
|
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
83
83
|
*
|
|
84
84
|
* @public
|
|
85
|
+
* @example To delete a custom attribute from an Amazon ECS instance
|
|
86
|
+
* ```javascript
|
|
87
|
+
* // This example deletes an attribute named stack from a container instance.
|
|
88
|
+
* const input = {
|
|
89
|
+
* "attributes": [
|
|
90
|
+
* {
|
|
91
|
+
* "name": "stack",
|
|
92
|
+
* "targetId": "aws:ecs:us-west-2:130757420319:container-instance/1c3be8ed-df30-47b4-8f1e-6e68ebd01f34"
|
|
93
|
+
* }
|
|
94
|
+
* ]
|
|
95
|
+
* };
|
|
96
|
+
* const command = new DeleteAttributesCommand(input);
|
|
97
|
+
* const response = await client.send(command);
|
|
98
|
+
* /* response ==
|
|
99
|
+
* {
|
|
100
|
+
* "attributes": [
|
|
101
|
+
* {
|
|
102
|
+
* "name": "stack",
|
|
103
|
+
* "value": "production",
|
|
104
|
+
* "targetId": "aws:ecs:us-west-2:130757420319:container-instance/1c3be8ed-df30-47b4-8f1e-6e68ebd01f34"
|
|
105
|
+
* }
|
|
106
|
+
* ]
|
|
107
|
+
* }
|
|
108
|
+
* *\/
|
|
109
|
+
* // example id: to-delete-a-custom-attribute-from-an-amazon-ecs-instance-1733867267541
|
|
110
|
+
* ```
|
|
111
|
+
*
|
|
85
112
|
*/
|
|
86
113
|
export declare class DeleteAttributesCommand extends DeleteAttributesCommand_base {
|
|
87
114
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -114,6 +114,38 @@ declare const DeleteCapacityProviderCommand_base: {
|
|
|
114
114
|
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
115
115
|
*
|
|
116
116
|
* @public
|
|
117
|
+
* @example To delete a specified capacity provider
|
|
118
|
+
* ```javascript
|
|
119
|
+
* // This example deletes a specified capacity provider.
|
|
120
|
+
* const input = {
|
|
121
|
+
* "capacityProvider": "arn:aws:ecs:us-west-2:123456789012:capacity-provider/ExampleCapacityProvider"
|
|
122
|
+
* };
|
|
123
|
+
* const command = new DeleteCapacityProviderCommand(input);
|
|
124
|
+
* const response = await client.send(command);
|
|
125
|
+
* /* response ==
|
|
126
|
+
* {
|
|
127
|
+
* "capacityProvider": {
|
|
128
|
+
* "name": "ExampleCapacityProvider",
|
|
129
|
+
* "autoScalingGroupProvider": {
|
|
130
|
+
* "autoScalingGroupArn": "arn:aws:autoscaling:us-west-2:123456789012:autoScalingGroup:a1b2c3d4-5678-90ab-cdef-EXAMPLE11111:autoScalingGroupName/MyAutoScalingGroup",
|
|
131
|
+
* "managedScaling": {
|
|
132
|
+
* "maximumScalingStepSize": 10000,
|
|
133
|
+
* "minimumScalingStepSize": 1,
|
|
134
|
+
* "status": "ENABLED",
|
|
135
|
+
* "targetCapacity": 100
|
|
136
|
+
* },
|
|
137
|
+
* "managedTerminationProtection": "DISABLED"
|
|
138
|
+
* },
|
|
139
|
+
* "capacityProviderArn": "arn:aws:ecs:us-west-2:123456789012:capacity-provider/ExampleCapacityProvider",
|
|
140
|
+
* "status": "ACTIVE",
|
|
141
|
+
* "tags": [],
|
|
142
|
+
* "updateStatus": "DELETE_IN_PROGRESS"
|
|
143
|
+
* }
|
|
144
|
+
* }
|
|
145
|
+
* *\/
|
|
146
|
+
* // example id: to-delete-a-specified-capacity-provider-1733868702678
|
|
147
|
+
* ```
|
|
148
|
+
*
|
|
117
149
|
*/
|
|
118
150
|
export declare class DeleteCapacityProviderCommand extends DeleteCapacityProviderCommand_base {
|
|
119
151
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -381,6 +381,53 @@ declare const DeleteTaskDefinitionsCommand_base: {
|
|
|
381
381
|
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
382
382
|
*
|
|
383
383
|
* @public
|
|
384
|
+
* @example To delete a task definition that has been deregistered
|
|
385
|
+
* ```javascript
|
|
386
|
+
* // This example deletes a specified deregistered task definition.
|
|
387
|
+
* const input = {
|
|
388
|
+
* "taskDefinitions": [
|
|
389
|
+
* "Example-task-definition:1"
|
|
390
|
+
* ]
|
|
391
|
+
* };
|
|
392
|
+
* const command = new DeleteTaskDefinitionsCommand(input);
|
|
393
|
+
* const response = await client.send(command);
|
|
394
|
+
* /* response ==
|
|
395
|
+
* {
|
|
396
|
+
* "failures": [],
|
|
397
|
+
* "taskDefinitions": [
|
|
398
|
+
* {
|
|
399
|
+
* "containerDefinitions": [
|
|
400
|
+
* {
|
|
401
|
+
* "name": "wave",
|
|
402
|
+
* "command": [
|
|
403
|
+
* "apt-get update; apt-get install stress; while true; do stress --cpu $(( RANDOM % 4 )) -t $(( RANDOM % 10 )); done"
|
|
404
|
+
* ],
|
|
405
|
+
* "cpu": 50,
|
|
406
|
+
* "entryPoint": [
|
|
407
|
+
* "bash",
|
|
408
|
+
* "-c"
|
|
409
|
+
* ],
|
|
410
|
+
* "environment": [],
|
|
411
|
+
* "essential": true,
|
|
412
|
+
* "image": "ubuntu",
|
|
413
|
+
* "memory": 100,
|
|
414
|
+
* "mountPoints": [],
|
|
415
|
+
* "portMappings": [],
|
|
416
|
+
* "volumesFrom": []
|
|
417
|
+
* }
|
|
418
|
+
* ],
|
|
419
|
+
* "family": "cpu-wave",
|
|
420
|
+
* "revision": 1,
|
|
421
|
+
* "status": "DELETE_IN_PROGRESS",
|
|
422
|
+
* "taskDefinitionArn": "arn:aws:ecs:us-east-1:012345678910:task-definition/Example-task-definition:1",
|
|
423
|
+
* "volumes": []
|
|
424
|
+
* }
|
|
425
|
+
* ]
|
|
426
|
+
* }
|
|
427
|
+
* *\/
|
|
428
|
+
* // example id: to-delete-a-task-definition-that-has-been-deregistered-1733940790186
|
|
429
|
+
* ```
|
|
430
|
+
*
|
|
384
431
|
*/
|
|
385
432
|
export declare class DeleteTaskDefinitionsCommand extends DeleteTaskDefinitionsCommand_base {
|
|
386
433
|
/** @internal type navigation helper, not in runtime. */
|