@aws-sdk/client-ecs 3.774.0 → 3.777.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/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-cjs/index.js +17 -18
- package/dist-es/ECSClient.js +2 -1
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-es/endpoint/EndpointParameters.js +2 -3
- package/dist-es/runtimeExtensions.js +2 -14
- 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/package.json +34 -34
|
@@ -40,8 +40,6 @@ const defaultECSHttpAuthSchemeProvider = (authParameters) => {
|
|
|
40
40
|
exports.defaultECSHttpAuthSchemeProvider = defaultECSHttpAuthSchemeProvider;
|
|
41
41
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
42
42
|
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
|
43
|
-
return {
|
|
44
|
-
...config_0,
|
|
45
|
-
};
|
|
43
|
+
return Object.assign(config_0, {});
|
|
46
44
|
};
|
|
47
45
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/index.js
CHANGED
|
@@ -213,12 +213,11 @@ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
|
213
213
|
|
|
214
214
|
// src/endpoint/EndpointParameters.ts
|
|
215
215
|
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
216
|
-
return {
|
|
217
|
-
...options,
|
|
216
|
+
return Object.assign(options, {
|
|
218
217
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
219
218
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
220
219
|
defaultSigningName: "ecs"
|
|
221
|
-
};
|
|
220
|
+
});
|
|
222
221
|
}, "resolveClientEndpointParameters");
|
|
223
222
|
var commonParams = {
|
|
224
223
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -275,22 +274,21 @@ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
|
275
274
|
}, "resolveHttpAuthRuntimeConfig");
|
|
276
275
|
|
|
277
276
|
// src/runtimeExtensions.ts
|
|
278
|
-
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
279
277
|
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
280
|
-
const extensionConfiguration =
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
278
|
+
const extensionConfiguration = Object.assign(
|
|
279
|
+
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
280
|
+
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
281
|
+
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
282
|
+
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
283
|
+
);
|
|
286
284
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
287
|
-
return
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
285
|
+
return Object.assign(
|
|
286
|
+
runtimeConfig,
|
|
287
|
+
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
288
|
+
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
289
|
+
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
290
|
+
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
291
|
+
);
|
|
294
292
|
}, "resolveRuntimeExtensions");
|
|
295
293
|
|
|
296
294
|
// src/ECSClient.ts
|
|
@@ -304,6 +302,8 @@ var ECSClient = class extends import_smithy_client.Client {
|
|
|
304
302
|
config;
|
|
305
303
|
constructor(...[configuration]) {
|
|
306
304
|
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
305
|
+
super(_config_0);
|
|
306
|
+
this.initConfig = _config_0;
|
|
307
307
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
308
308
|
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
309
309
|
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
@@ -312,7 +312,6 @@ var ECSClient = class extends import_smithy_client.Client {
|
|
|
312
312
|
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
313
313
|
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
314
314
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
315
|
-
super(_config_8);
|
|
316
315
|
this.config = _config_8;
|
|
317
316
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
318
317
|
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
package/dist-es/ECSClient.js
CHANGED
|
@@ -17,6 +17,8 @@ export class ECSClient extends __Client {
|
|
|
17
17
|
config;
|
|
18
18
|
constructor(...[configuration]) {
|
|
19
19
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
20
|
+
super(_config_0);
|
|
21
|
+
this.initConfig = _config_0;
|
|
20
22
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
21
23
|
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
22
24
|
const _config_3 = resolveRetryConfig(_config_2);
|
|
@@ -25,7 +27,6 @@ export class ECSClient extends __Client {
|
|
|
25
27
|
const _config_6 = resolveEndpointConfig(_config_5);
|
|
26
28
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
27
29
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
28
|
-
super(_config_8);
|
|
29
30
|
this.config = _config_8;
|
|
30
31
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
31
32
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
@@ -35,7 +35,5 @@ export const defaultECSHttpAuthSchemeProvider = (authParameters) => {
|
|
|
35
35
|
};
|
|
36
36
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
37
37
|
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
38
|
-
return {
|
|
39
|
-
...config_0,
|
|
40
|
-
};
|
|
38
|
+
return Object.assign(config_0, {});
|
|
41
39
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
-
return {
|
|
3
|
-
...options,
|
|
2
|
+
return Object.assign(options, {
|
|
4
3
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
5
4
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
6
5
|
defaultSigningName: "ecs",
|
|
7
|
-
};
|
|
6
|
+
});
|
|
8
7
|
};
|
|
9
8
|
export const commonParams = {
|
|
10
9
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -2,20 +2,8 @@ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfigurat
|
|
|
2
2
|
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
3
|
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
4
|
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
-
const asPartial = (t) => t;
|
|
6
5
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
7
|
-
const extensionConfiguration =
|
|
8
|
-
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
9
|
-
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
10
|
-
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
11
|
-
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
|
12
|
-
};
|
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
13
7
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
14
|
-
return
|
|
15
|
-
...runtimeConfig,
|
|
16
|
-
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
17
|
-
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
18
|
-
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
19
|
-
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
|
20
|
-
};
|
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
21
9
|
};
|
|
@@ -135,47 +135,47 @@ declare const CreateCapacityProviderCommand_base: {
|
|
|
135
135
|
* @throws {@link ECSServiceException}
|
|
136
136
|
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
137
137
|
*
|
|
138
|
-
*
|
|
138
|
+
*
|
|
139
139
|
* @example To create a capacity provider
|
|
140
140
|
* ```javascript
|
|
141
141
|
* // This example creates a capacity provider that uses the specified Auto Scaling group MyASG and has managed scaling and manager termination protection enabled.
|
|
142
142
|
* const input = {
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
* "targetCapacity": 100
|
|
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
|
|
149
148
|
* },
|
|
150
|
-
*
|
|
151
|
-
* }
|
|
149
|
+
* managedTerminationProtection: "ENABLED"
|
|
150
|
+
* },
|
|
151
|
+
* name: "MyCapacityProvider"
|
|
152
152
|
* };
|
|
153
153
|
* const command = new CreateCapacityProviderCommand(input);
|
|
154
154
|
* const response = await client.send(command);
|
|
155
|
-
* /* response
|
|
155
|
+
* /* response is
|
|
156
156
|
* {
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
* "
|
|
165
|
-
*
|
|
166
|
-
* "targetCapacity": 100
|
|
157
|
+
* capacityProvider: {
|
|
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
|
|
167
166
|
* },
|
|
168
|
-
*
|
|
167
|
+
* managedTerminationProtection: "ENABLED"
|
|
169
168
|
* },
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
* "
|
|
169
|
+
* capacityProviderArn: "arn:aws:ecs:us-east-1:123456789012:capacity-provider/MyCapacityProvider",
|
|
170
|
+
* name: "MyCapacityProvider",
|
|
171
|
+
* status: "ACTIVE",
|
|
172
|
+
* tags: []
|
|
173
173
|
* }
|
|
174
174
|
* }
|
|
175
175
|
* *\/
|
|
176
|
-
* // example id: to-create-a-capacity-provider--1733861347945
|
|
177
176
|
* ```
|
|
178
177
|
*
|
|
178
|
+
* @public
|
|
179
179
|
*/
|
|
180
180
|
export declare class CreateCapacityProviderCommand extends CreateCapacityProviderCommand_base {
|
|
181
181
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -202,31 +202,31 @@ declare const CreateClusterCommand_base: {
|
|
|
202
202
|
* @throws {@link ECSServiceException}
|
|
203
203
|
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
204
204
|
*
|
|
205
|
-
*
|
|
205
|
+
*
|
|
206
206
|
* @example To create a new cluster
|
|
207
207
|
* ```javascript
|
|
208
208
|
* // This example creates a cluster in your default region.
|
|
209
209
|
* const input = {
|
|
210
|
-
*
|
|
210
|
+
* clusterName: "my_cluster"
|
|
211
211
|
* };
|
|
212
212
|
* const command = new CreateClusterCommand(input);
|
|
213
213
|
* const response = await client.send(command);
|
|
214
|
-
* /* response
|
|
214
|
+
* /* response is
|
|
215
215
|
* {
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
*
|
|
220
|
-
*
|
|
221
|
-
*
|
|
222
|
-
*
|
|
223
|
-
*
|
|
216
|
+
* cluster: {
|
|
217
|
+
* activeServicesCount: 0,
|
|
218
|
+
* clusterArn: "arn:aws:ecs:us-east-1:012345678910:cluster/my_cluster",
|
|
219
|
+
* clusterName: "my_cluster",
|
|
220
|
+
* pendingTasksCount: 0,
|
|
221
|
+
* registeredContainerInstancesCount: 0,
|
|
222
|
+
* runningTasksCount: 0,
|
|
223
|
+
* status: "ACTIVE"
|
|
224
224
|
* }
|
|
225
225
|
* }
|
|
226
226
|
* *\/
|
|
227
|
-
* // example id: to-create-a-new-cluster-1472514079365
|
|
228
227
|
* ```
|
|
229
228
|
*
|
|
229
|
+
* @public
|
|
230
230
|
*/
|
|
231
231
|
export declare class CreateClusterCommand extends CreateClusterCommand_base {
|
|
232
232
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -618,124 +618,123 @@ declare const CreateServiceCommand_base: {
|
|
|
618
618
|
* @throws {@link ECSServiceException}
|
|
619
619
|
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
620
620
|
*
|
|
621
|
-
*
|
|
621
|
+
*
|
|
622
622
|
* @example To create a new service
|
|
623
623
|
* ```javascript
|
|
624
624
|
* // This example creates a service in your default region called ``ecs-simple-service``. The service uses the ``hello_world`` task definition and it maintains 10 copies of that task.
|
|
625
625
|
* const input = {
|
|
626
|
-
*
|
|
627
|
-
*
|
|
628
|
-
*
|
|
626
|
+
* desiredCount: 10,
|
|
627
|
+
* serviceName: "ecs-simple-service",
|
|
628
|
+
* taskDefinition: "hello_world"
|
|
629
629
|
* };
|
|
630
630
|
* const command = new CreateServiceCommand(input);
|
|
631
631
|
* const response = await client.send(command);
|
|
632
|
-
* /* response
|
|
632
|
+
* /* response is
|
|
633
633
|
* {
|
|
634
|
-
*
|
|
635
|
-
*
|
|
636
|
-
*
|
|
637
|
-
*
|
|
638
|
-
*
|
|
639
|
-
*
|
|
634
|
+
* service: {
|
|
635
|
+
* clusterArn: "arn:aws:ecs:us-east-1:012345678910:cluster/default",
|
|
636
|
+
* createdAt: "2016-08-29T16:13:47.298Z",
|
|
637
|
+
* deploymentConfiguration: {
|
|
638
|
+
* maximumPercent: 200,
|
|
639
|
+
* minimumHealthyPercent: 100
|
|
640
640
|
* },
|
|
641
|
-
*
|
|
641
|
+
* deployments: [
|
|
642
642
|
* {
|
|
643
|
-
*
|
|
644
|
-
*
|
|
645
|
-
*
|
|
646
|
-
*
|
|
647
|
-
*
|
|
648
|
-
*
|
|
649
|
-
*
|
|
650
|
-
*
|
|
643
|
+
* createdAt: "2016-08-29T16:13:47.298Z",
|
|
644
|
+
* desiredCount: 10,
|
|
645
|
+
* id: "ecs-svc/9223370564342348388",
|
|
646
|
+
* pendingCount: 0,
|
|
647
|
+
* runningCount: 0,
|
|
648
|
+
* status: "PRIMARY",
|
|
649
|
+
* taskDefinition: "arn:aws:ecs:us-east-1:012345678910:task-definition/hello_world:6",
|
|
650
|
+
* updatedAt: "2016-08-29T16:13:47.298Z"
|
|
651
651
|
* },
|
|
652
652
|
* {
|
|
653
|
-
*
|
|
654
|
-
*
|
|
655
|
-
*
|
|
656
|
-
*
|
|
657
|
-
*
|
|
658
|
-
*
|
|
659
|
-
*
|
|
660
|
-
*
|
|
653
|
+
* createdAt: "2016-08-29T15:52:44.481Z",
|
|
654
|
+
* desiredCount: 0,
|
|
655
|
+
* id: "ecs-svc/9223370564343611322",
|
|
656
|
+
* pendingCount: 0,
|
|
657
|
+
* runningCount: 0,
|
|
658
|
+
* status: "ACTIVE",
|
|
659
|
+
* taskDefinition: "arn:aws:ecs:us-east-1:012345678910:task-definition/hello_world:6",
|
|
660
|
+
* updatedAt: "2016-08-29T16:11:38.941Z"
|
|
661
661
|
* }
|
|
662
662
|
* ],
|
|
663
|
-
*
|
|
664
|
-
*
|
|
665
|
-
*
|
|
666
|
-
*
|
|
667
|
-
*
|
|
668
|
-
*
|
|
669
|
-
*
|
|
670
|
-
*
|
|
671
|
-
*
|
|
663
|
+
* desiredCount: 10,
|
|
664
|
+
* events: [],
|
|
665
|
+
* loadBalancers: [],
|
|
666
|
+
* pendingCount: 0,
|
|
667
|
+
* runningCount: 0,
|
|
668
|
+
* serviceArn: "arn:aws:ecs:us-east-1:012345678910:service/default/ecs-simple-service",
|
|
669
|
+
* serviceName: "ecs-simple-service",
|
|
670
|
+
* status: "ACTIVE",
|
|
671
|
+
* taskDefinition: "arn:aws:ecs:us-east-1:012345678910:task-definition/default/hello_world:6"
|
|
672
672
|
* }
|
|
673
673
|
* }
|
|
674
674
|
* *\/
|
|
675
|
-
* // example id: to-create-a-new-service-1472512584282
|
|
676
675
|
* ```
|
|
677
676
|
*
|
|
678
677
|
* @example To create a new service behind a load balancer
|
|
679
678
|
* ```javascript
|
|
680
679
|
* // This example creates a service in your default region called ``ecs-simple-service-elb``. The service uses the ``ecs-demo`` task definition and it maintains 10 copies of that task. You must reference an existing load balancer in the same region by its name.
|
|
681
680
|
* const input = {
|
|
682
|
-
*
|
|
683
|
-
*
|
|
681
|
+
* desiredCount: 10,
|
|
682
|
+
* loadBalancers: [
|
|
684
683
|
* {
|
|
685
|
-
*
|
|
686
|
-
*
|
|
687
|
-
*
|
|
684
|
+
* containerName: "simple-app",
|
|
685
|
+
* containerPort: 80,
|
|
686
|
+
* loadBalancerName: "EC2Contai-EcsElast-15DCDAURT3ZO2"
|
|
688
687
|
* }
|
|
689
688
|
* ],
|
|
690
|
-
*
|
|
691
|
-
*
|
|
692
|
-
*
|
|
689
|
+
* role: "ecsServiceRole",
|
|
690
|
+
* serviceName: "ecs-simple-service-elb",
|
|
691
|
+
* taskDefinition: "console-sample-app-static"
|
|
693
692
|
* };
|
|
694
693
|
* const command = new CreateServiceCommand(input);
|
|
695
694
|
* const response = await client.send(command);
|
|
696
|
-
* /* response
|
|
695
|
+
* /* response is
|
|
697
696
|
* {
|
|
698
|
-
*
|
|
699
|
-
*
|
|
700
|
-
*
|
|
701
|
-
*
|
|
702
|
-
*
|
|
703
|
-
*
|
|
697
|
+
* service: {
|
|
698
|
+
* clusterArn: "arn:aws:ecs:us-east-1:012345678910:cluster/default",
|
|
699
|
+
* createdAt: "2016-08-29T16:02:54.884Z",
|
|
700
|
+
* deploymentConfiguration: {
|
|
701
|
+
* maximumPercent: 200,
|
|
702
|
+
* minimumHealthyPercent: 100
|
|
704
703
|
* },
|
|
705
|
-
*
|
|
704
|
+
* deployments: [
|
|
706
705
|
* {
|
|
707
|
-
*
|
|
708
|
-
*
|
|
709
|
-
*
|
|
710
|
-
*
|
|
711
|
-
*
|
|
712
|
-
*
|
|
713
|
-
*
|
|
714
|
-
*
|
|
706
|
+
* createdAt: "2016-08-29T16:02:54.884Z",
|
|
707
|
+
* desiredCount: 10,
|
|
708
|
+
* id: "ecs-svc/9223370564343000923",
|
|
709
|
+
* pendingCount: 0,
|
|
710
|
+
* runningCount: 0,
|
|
711
|
+
* status: "PRIMARY",
|
|
712
|
+
* taskDefinition: "arn:aws:ecs:us-east-1:012345678910:task-definition/console-sample-app-static:6",
|
|
713
|
+
* updatedAt: "2016-08-29T16:02:54.884Z"
|
|
715
714
|
* }
|
|
716
715
|
* ],
|
|
717
|
-
*
|
|
718
|
-
*
|
|
719
|
-
*
|
|
716
|
+
* desiredCount: 10,
|
|
717
|
+
* events: [],
|
|
718
|
+
* loadBalancers: [
|
|
720
719
|
* {
|
|
721
|
-
*
|
|
722
|
-
*
|
|
723
|
-
*
|
|
720
|
+
* containerName: "simple-app",
|
|
721
|
+
* containerPort: 80,
|
|
722
|
+
* loadBalancerName: "EC2Contai-EcsElast-15DCDAURT3ZO2"
|
|
724
723
|
* }
|
|
725
724
|
* ],
|
|
726
|
-
*
|
|
727
|
-
*
|
|
728
|
-
*
|
|
729
|
-
*
|
|
730
|
-
*
|
|
731
|
-
*
|
|
732
|
-
*
|
|
725
|
+
* pendingCount: 0,
|
|
726
|
+
* roleArn: "arn:aws:iam::012345678910:role/ecsServiceRole",
|
|
727
|
+
* runningCount: 0,
|
|
728
|
+
* serviceArn: "arn:aws:ecs:us-east-1:012345678910:service/default/ecs-simple-service-elb",
|
|
729
|
+
* serviceName: "ecs-simple-service-elb",
|
|
730
|
+
* status: "ACTIVE",
|
|
731
|
+
* taskDefinition: "arn:aws:ecs:us-east-1:012345678910:task-definition/default/console-sample-app-static:6"
|
|
733
732
|
* }
|
|
734
733
|
* }
|
|
735
734
|
* *\/
|
|
736
|
-
* // example id: to-create-a-new-service-behind-a-load-balancer-1472512484823
|
|
737
735
|
* ```
|
|
738
736
|
*
|
|
737
|
+
* @public
|
|
739
738
|
*/
|
|
740
739
|
export declare class CreateServiceCommand extends CreateServiceCommand_base {
|
|
741
740
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -228,65 +228,65 @@ declare const CreateTaskSetCommand_base: {
|
|
|
228
228
|
* @throws {@link ECSServiceException}
|
|
229
229
|
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
230
230
|
*
|
|
231
|
-
*
|
|
231
|
+
*
|
|
232
232
|
* @example To create a task set
|
|
233
233
|
* ```javascript
|
|
234
234
|
* // This example creates a task set in a service that uses the EXTERNAL deployment controller.
|
|
235
235
|
* const input = {
|
|
236
|
-
*
|
|
237
|
-
*
|
|
238
|
-
*
|
|
239
|
-
*
|
|
236
|
+
* cluster: "MyCluster",
|
|
237
|
+
* networkConfiguration: {
|
|
238
|
+
* awsvpcConfiguration: {
|
|
239
|
+
* securityGroups: [
|
|
240
240
|
* "sg-12344321"
|
|
241
241
|
* ],
|
|
242
|
-
*
|
|
242
|
+
* subnets: [
|
|
243
243
|
* "subnet-12344321"
|
|
244
244
|
* ]
|
|
245
245
|
* }
|
|
246
246
|
* },
|
|
247
|
-
*
|
|
248
|
-
*
|
|
247
|
+
* service: "MyService",
|
|
248
|
+
* taskDefinition: "MyTaskDefinition:2"
|
|
249
249
|
* };
|
|
250
250
|
* const command = new CreateTaskSetCommand(input);
|
|
251
251
|
* const response = await client.send(command);
|
|
252
|
-
* /* response
|
|
252
|
+
* /* response is
|
|
253
253
|
* {
|
|
254
|
-
*
|
|
255
|
-
*
|
|
256
|
-
*
|
|
257
|
-
*
|
|
258
|
-
*
|
|
259
|
-
*
|
|
260
|
-
*
|
|
261
|
-
*
|
|
262
|
-
*
|
|
263
|
-
*
|
|
254
|
+
* taskSet: {
|
|
255
|
+
* computedDesiredCount: 0,
|
|
256
|
+
* createdAt: 1.557128360711E9,
|
|
257
|
+
* id: "ecs-svc/1234567890123456789",
|
|
258
|
+
* launchType: "EC2",
|
|
259
|
+
* loadBalancers: [],
|
|
260
|
+
* networkConfiguration: {
|
|
261
|
+
* awsvpcConfiguration: {
|
|
262
|
+
* assignPublicIp: "DISABLED",
|
|
263
|
+
* securityGroups: [
|
|
264
264
|
* "sg-12344321"
|
|
265
265
|
* ],
|
|
266
|
-
*
|
|
266
|
+
* subnets: [
|
|
267
267
|
* "subnet-12344321"
|
|
268
268
|
* ]
|
|
269
269
|
* }
|
|
270
270
|
* },
|
|
271
|
-
*
|
|
272
|
-
*
|
|
273
|
-
*
|
|
274
|
-
* "
|
|
275
|
-
*
|
|
271
|
+
* pendingCount: 0,
|
|
272
|
+
* runningCount: 0,
|
|
273
|
+
* scale: {
|
|
274
|
+
* unit: "PERCENT",
|
|
275
|
+
* value: 0
|
|
276
276
|
* },
|
|
277
|
-
*
|
|
278
|
-
*
|
|
279
|
-
*
|
|
280
|
-
*
|
|
281
|
-
*
|
|
282
|
-
*
|
|
283
|
-
*
|
|
277
|
+
* serviceRegistries: [],
|
|
278
|
+
* stabilityStatus: "STABILIZING",
|
|
279
|
+
* stabilityStatusAt: 1.557128360711E9,
|
|
280
|
+
* status: "ACTIVE",
|
|
281
|
+
* taskDefinition: "arn:aws:ecs:us-west-2:123456789012:task-definition/MyTaskDefinition:2",
|
|
282
|
+
* taskSetArn: "arn:aws:ecs:us-west-2:123456789012:task-set/MyCluster/MyService/ecs-svc/1234567890123456789",
|
|
283
|
+
* updatedAt: 1.557128360711E9
|
|
284
284
|
* }
|
|
285
285
|
* }
|
|
286
286
|
* *\/
|
|
287
|
-
* // example id: to-create-a-task-set-1733864092815
|
|
288
287
|
* ```
|
|
289
288
|
*
|
|
289
|
+
* @public
|
|
290
290
|
*/
|
|
291
291
|
export declare class CreateTaskSetCommand extends CreateTaskSetCommand_base {
|
|
292
292
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -84,48 +84,47 @@ declare const DeleteAccountSettingCommand_base: {
|
|
|
84
84
|
* @throws {@link ECSServiceException}
|
|
85
85
|
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
86
86
|
*
|
|
87
|
-
*
|
|
88
|
-
* @example To delete
|
|
87
|
+
*
|
|
88
|
+
* @example To delete the account settings for a specific IAM user or IAM role
|
|
89
89
|
* ```javascript
|
|
90
|
-
* // This example deletes the account setting for
|
|
90
|
+
* // This example deletes the account setting for a specific IAM user or IAM role for the specified resource type. Only the root user can view or modify the account settings for another user.
|
|
91
91
|
* const input = {
|
|
92
|
-
*
|
|
92
|
+
* name: "containerInstanceLongArnFormat",
|
|
93
|
+
* principalArn: "arn:aws:iam::<aws_account_id>:user/principalName"
|
|
93
94
|
* };
|
|
94
95
|
* const command = new DeleteAccountSettingCommand(input);
|
|
95
96
|
* const response = await client.send(command);
|
|
96
|
-
* /* response
|
|
97
|
+
* /* response is
|
|
97
98
|
* {
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
99
|
+
* setting: {
|
|
100
|
+
* name: "containerInstanceLongArnFormat",
|
|
101
|
+
* principalArn: "arn:aws:iam::<aws_account_id>:user/principalName",
|
|
102
|
+
* value: "enabled"
|
|
102
103
|
* }
|
|
103
104
|
* }
|
|
104
105
|
* *\/
|
|
105
|
-
* // example id: to-delete-the-account-setting-for-your-user-account-1549524548115
|
|
106
106
|
* ```
|
|
107
107
|
*
|
|
108
|
-
* @example To delete
|
|
108
|
+
* @example To delete your account setting
|
|
109
109
|
* ```javascript
|
|
110
|
-
* // This example deletes the account setting for
|
|
110
|
+
* // This example deletes the account setting for your user for the specified resource type.
|
|
111
111
|
* const input = {
|
|
112
|
-
*
|
|
113
|
-
* "principalArn": "arn:aws:iam::<aws_account_id>:user/principalName"
|
|
112
|
+
* name: "serviceLongArnFormat"
|
|
114
113
|
* };
|
|
115
114
|
* const command = new DeleteAccountSettingCommand(input);
|
|
116
115
|
* const response = await client.send(command);
|
|
117
|
-
* /* response
|
|
116
|
+
* /* response is
|
|
118
117
|
* {
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
118
|
+
* setting: {
|
|
119
|
+
* name: "serviceLongArnFormat",
|
|
120
|
+
* principalArn: "arn:aws:iam::<aws_account_id>:user/principalName",
|
|
121
|
+
* value: "enabled"
|
|
123
122
|
* }
|
|
124
123
|
* }
|
|
125
124
|
* *\/
|
|
126
|
-
* // example id: to-delete-the-account-setting-for-a-specific-iam-user-or-iam-role-1549524612917
|
|
127
125
|
* ```
|
|
128
126
|
*
|
|
127
|
+
* @public
|
|
129
128
|
*/
|
|
130
129
|
export declare class DeleteAccountSettingCommand extends DeleteAccountSettingCommand_base {
|
|
131
130
|
/** @internal type navigation helper, not in runtime. */
|