@aws-sdk/client-ecs 3.36.0 → 3.39.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/CHANGELOG.md +45 -0
- package/dist-cjs/ECS.js +0 -15
- package/dist-cjs/ECSClient.js +0 -20
- package/dist-cjs/commands/CreateCapacityProviderCommand.js +0 -30
- package/dist-cjs/commands/CreateClusterCommand.js +0 -35
- package/dist-cjs/commands/CreateServiceCommand.js +0 -129
- package/dist-cjs/commands/CreateTaskSetCommand.js +0 -27
- package/dist-cjs/commands/DeleteAccountSettingCommand.js +0 -25
- package/dist-cjs/commands/DeleteAttributesCommand.js +0 -24
- package/dist-cjs/commands/DeleteCapacityProviderCommand.js +0 -38
- package/dist-cjs/commands/DeleteClusterCommand.js +0 -30
- package/dist-cjs/commands/DeleteServiceCommand.js +0 -44
- package/dist-cjs/commands/DeleteTaskSetCommand.js +0 -25
- package/dist-cjs/commands/DeregisterContainerInstanceCommand.js +0 -36
- package/dist-cjs/commands/DeregisterTaskDefinitionCommand.js +0 -39
- package/dist-cjs/commands/DescribeCapacityProvidersCommand.js +0 -24
- package/dist-cjs/commands/DescribeClustersCommand.js +0 -24
- package/dist-cjs/commands/DescribeContainerInstancesCommand.js +0 -25
- package/dist-cjs/commands/DescribeServicesCommand.js +0 -24
- package/dist-cjs/commands/DescribeTaskDefinitionCommand.js +0 -31
- package/dist-cjs/commands/DescribeTaskSetsCommand.js +0 -27
- package/dist-cjs/commands/DescribeTasksCommand.js +0 -24
- package/dist-cjs/commands/DiscoverPollEndpointCommand.js +0 -28
- package/dist-cjs/commands/ExecuteCommandCommand.js +0 -24
- package/dist-cjs/commands/ListAccountSettingsCommand.js +0 -24
- package/dist-cjs/commands/ListAttributesCommand.js +0 -30
- package/dist-cjs/commands/ListClustersCommand.js +0 -24
- package/dist-cjs/commands/ListContainerInstancesCommand.js +0 -27
- package/dist-cjs/commands/ListServicesCommand.js +0 -25
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -24
- package/dist-cjs/commands/ListTaskDefinitionFamiliesCommand.js +0 -30
- package/dist-cjs/commands/ListTaskDefinitionsCommand.js +0 -26
- package/dist-cjs/commands/ListTasksCommand.js +0 -28
- package/dist-cjs/commands/PutAccountSettingCommand.js +0 -47
- package/dist-cjs/commands/PutAccountSettingDefaultCommand.js +0 -26
- package/dist-cjs/commands/PutAttributesCommand.js +0 -28
- package/dist-cjs/commands/PutClusterCapacityProvidersCommand.js +0 -37
- package/dist-cjs/commands/RegisterContainerInstanceCommand.js +0 -29
- package/dist-cjs/commands/RegisterTaskDefinitionCommand.js +0 -41
- package/dist-cjs/commands/RunTaskCommand.js +0 -52
- package/dist-cjs/commands/StartTaskCommand.js +0 -28
- package/dist-cjs/commands/StopTaskCommand.js +0 -36
- package/dist-cjs/commands/SubmitAttachmentStateChangesCommand.js +0 -28
- package/dist-cjs/commands/SubmitContainerStateChangeCommand.js +0 -28
- package/dist-cjs/commands/SubmitTaskStateChangeCommand.js +0 -28
- package/dist-cjs/commands/TagResourceCommand.js +0 -27
- package/dist-cjs/commands/UntagResourceCommand.js +0 -24
- package/dist-cjs/commands/UpdateCapacityProviderCommand.js +0 -24
- package/dist-cjs/commands/UpdateClusterCommand.js +0 -24
- package/dist-cjs/commands/UpdateClusterSettingsCommand.js +0 -24
- package/dist-cjs/commands/UpdateContainerAgentCommand.js +0 -39
- package/dist-cjs/commands/UpdateContainerInstancesStateCommand.js +0 -72
- package/dist-cjs/commands/UpdateServiceCommand.js +0 -132
- package/dist-cjs/commands/UpdateServicePrimaryTaskSetCommand.js +0 -28
- package/dist-cjs/commands/UpdateTaskSetCommand.js +0 -26
- package/dist-cjs/commands/index.js +55 -0
- package/dist-cjs/endpoints.js +6 -1
- package/dist-cjs/index.js +5 -66
- package/dist-cjs/models/models_0.js +26 -619
- package/dist-cjs/pagination/ListAccountSettingsPaginator.js +0 -10
- package/dist-cjs/pagination/ListAttributesPaginator.js +0 -10
- package/dist-cjs/pagination/ListClustersPaginator.js +0 -10
- package/dist-cjs/pagination/ListContainerInstancesPaginator.js +0 -10
- package/dist-cjs/pagination/ListServicesPaginator.js +0 -10
- package/dist-cjs/pagination/ListTaskDefinitionFamiliesPaginator.js +0 -10
- package/dist-cjs/pagination/ListTaskDefinitionsPaginator.js +0 -10
- package/dist-cjs/pagination/ListTasksPaginator.js +0 -10
- package/dist-cjs/pagination/index.js +12 -0
- package/dist-cjs/protocols/Aws_json1_1.js +25 -5
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-cjs/waiters/index.js +6 -0
- package/dist-cjs/waiters/waitForServicesInactive.js +0 -9
- package/dist-cjs/waiters/waitForTasksRunning.js +0 -9
- package/dist-cjs/waiters/waitForTasksStopped.js +0 -9
- package/dist-es/commands/index.js +52 -0
- package/dist-es/endpoints.js +6 -1
- package/dist-es/index.js +5 -66
- package/dist-es/models/models_0.js +20 -0
- package/dist-es/pagination/index.js +9 -0
- package/dist-es/protocols/Aws_json1_1.js +22 -1
- package/dist-es/waiters/index.js +3 -0
- package/dist-types/commands/index.d.ts +52 -0
- package/dist-types/index.d.ts +5 -66
- package/dist-types/models/models_0.d.ts +170 -25
- package/dist-types/pagination/index.d.ts +9 -0
- package/dist-types/ts3.4/ECS.d.ts +53 -702
- package/dist-types/ts3.4/ECSClient.d.ts +24 -101
- package/dist-types/ts3.4/commands/CreateCapacityProviderCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/CreateClusterCommand.d.ts +2 -31
- package/dist-types/ts3.4/commands/CreateServiceCommand.d.ts +2 -125
- package/dist-types/ts3.4/commands/CreateTaskSetCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DeleteAccountSettingCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteAttributesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteCapacityProviderCommand.d.ts +2 -34
- package/dist-types/ts3.4/commands/DeleteClusterCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/DeleteServiceCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/DeleteTaskSetCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeregisterContainerInstanceCommand.d.ts +2 -32
- package/dist-types/ts3.4/commands/DeregisterTaskDefinitionCommand.d.ts +2 -35
- package/dist-types/ts3.4/commands/DescribeCapacityProvidersCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeClustersCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeContainerInstancesCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeServicesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeTaskDefinitionCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/DescribeTaskSetsCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DescribeTasksCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DiscoverPollEndpointCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/ExecuteCommandCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListAccountSettingsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListAttributesCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/ListClustersCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListContainerInstancesCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/ListServicesCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTaskDefinitionFamiliesCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/ListTaskDefinitionsCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/ListTasksCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/PutAccountSettingCommand.d.ts +2 -43
- package/dist-types/ts3.4/commands/PutAccountSettingDefaultCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/PutAttributesCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/PutClusterCapacityProvidersCommand.d.ts +2 -33
- package/dist-types/ts3.4/commands/RegisterContainerInstanceCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/RegisterTaskDefinitionCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/RunTaskCommand.d.ts +2 -48
- package/dist-types/ts3.4/commands/StartTaskCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/StopTaskCommand.d.ts +2 -32
- package/dist-types/ts3.4/commands/SubmitAttachmentStateChangesCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/SubmitContainerStateChangeCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/SubmitTaskStateChangeCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateCapacityProviderCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateClusterCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateClusterSettingsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateContainerAgentCommand.d.ts +2 -35
- package/dist-types/ts3.4/commands/UpdateContainerInstancesStateCommand.d.ts +2 -68
- package/dist-types/ts3.4/commands/UpdateServiceCommand.d.ts +2 -128
- package/dist-types/ts3.4/commands/UpdateServicePrimaryTaskSetCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/UpdateTaskSetCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/index.d.ts +52 -0
- package/dist-types/ts3.4/index.d.ts +5 -66
- package/dist-types/ts3.4/models/models_0.d.ts +1099 -6662
- package/dist-types/ts3.4/pagination/index.d.ts +9 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/dist-types/ts3.4/waiters/index.d.ts +3 -0
- package/dist-types/ts3.4/waiters/waitForServicesInactive.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForTasksRunning.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForTasksStopped.d.ts +2 -9
- package/dist-types/waiters/index.d.ts +3 -0
- package/package.json +33 -33
|
@@ -5,39 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <note>
|
|
10
|
-
* <p>This action is only used by the Amazon ECS agent, and it is not intended for use outside of the agent.</p>
|
|
11
|
-
* </note>
|
|
12
|
-
* <p>Sent to
|
|
13
|
-
* acknowledge that a container changed states.</p>
|
|
14
|
-
* @example
|
|
15
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
16
|
-
* ```javascript
|
|
17
|
-
* import { ECSClient, SubmitContainerStateChangeCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
18
|
-
* // const { ECSClient, SubmitContainerStateChangeCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
19
|
-
* const client = new ECSClient(config);
|
|
20
|
-
* const command = new SubmitContainerStateChangeCommand(input);
|
|
21
|
-
* const response = await client.send(command);
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @see {@link SubmitContainerStateChangeCommandInput} for command's `input` shape.
|
|
25
|
-
* @see {@link SubmitContainerStateChangeCommandOutput} for command's `response` shape.
|
|
26
|
-
* @see {@link ECSClientResolvedConfig | config} for command's `input` shape.
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
8
|
class SubmitContainerStateChangeCommand extends smithy_client_1.Command {
|
|
30
|
-
// Start section: command_properties
|
|
31
|
-
// End section: command_properties
|
|
32
9
|
constructor(input) {
|
|
33
|
-
// Start section: command_constructor
|
|
34
10
|
super();
|
|
35
11
|
this.input = input;
|
|
36
|
-
// End section: command_constructor
|
|
37
12
|
}
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
42
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
43
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,39 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <note>
|
|
10
|
-
* <p>This action is only used by the Amazon ECS agent, and it is not intended for use outside of the agent.</p>
|
|
11
|
-
* </note>
|
|
12
|
-
* <p>Sent to acknowledge
|
|
13
|
-
* that a task changed states.</p>
|
|
14
|
-
* @example
|
|
15
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
16
|
-
* ```javascript
|
|
17
|
-
* import { ECSClient, SubmitTaskStateChangeCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
18
|
-
* // const { ECSClient, SubmitTaskStateChangeCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
19
|
-
* const client = new ECSClient(config);
|
|
20
|
-
* const command = new SubmitTaskStateChangeCommand(input);
|
|
21
|
-
* const response = await client.send(command);
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @see {@link SubmitTaskStateChangeCommandInput} for command's `input` shape.
|
|
25
|
-
* @see {@link SubmitTaskStateChangeCommandOutput} for command's `response` shape.
|
|
26
|
-
* @see {@link ECSClientResolvedConfig | config} for command's `input` shape.
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
8
|
class SubmitTaskStateChangeCommand extends smithy_client_1.Command {
|
|
30
|
-
// Start section: command_properties
|
|
31
|
-
// End section: command_properties
|
|
32
9
|
constructor(input) {
|
|
33
|
-
// Start section: command_constructor
|
|
34
10
|
super();
|
|
35
11
|
this.input = input;
|
|
36
|
-
// End section: command_constructor
|
|
37
12
|
}
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
42
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
43
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,38 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Associates the specified tags to a resource with the specified
|
|
10
|
-
* <code>resourceArn</code>. If existing tags on a resource are not specified in the
|
|
11
|
-
* request parameters, they are not changed. When a resource is deleted, the tags
|
|
12
|
-
* associated with that resource are deleted as well.</p>
|
|
13
|
-
* @example
|
|
14
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
-
* ```javascript
|
|
16
|
-
* import { ECSClient, TagResourceCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
17
|
-
* // const { ECSClient, TagResourceCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
18
|
-
* const client = new ECSClient(config);
|
|
19
|
-
* const command = new TagResourceCommand(input);
|
|
20
|
-
* const response = await client.send(command);
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @see {@link TagResourceCommandInput} for command's `input` shape.
|
|
24
|
-
* @see {@link TagResourceCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link ECSClientResolvedConfig | config} for command's `input` shape.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
8
|
class TagResourceCommand extends smithy_client_1.Command {
|
|
29
|
-
// Start section: command_properties
|
|
30
|
-
// End section: command_properties
|
|
31
9
|
constructor(input) {
|
|
32
|
-
// Start section: command_constructor
|
|
33
10
|
super();
|
|
34
11
|
this.input = input;
|
|
35
|
-
// End section: command_constructor
|
|
36
12
|
}
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
40
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
41
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
42
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Deletes specified tags from a resource.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { ECSClient, UntagResourceCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
14
|
-
* // const { ECSClient, UntagResourceCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
15
|
-
* const client = new ECSClient(config);
|
|
16
|
-
* const command = new UntagResourceCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link UntagResourceCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link UntagResourceCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link ECSClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class UntagResourceCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Modifies the parameters for a capacity provider.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { ECSClient, UpdateCapacityProviderCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
14
|
-
* // const { ECSClient, UpdateCapacityProviderCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
15
|
-
* const client = new ECSClient(config);
|
|
16
|
-
* const command = new UpdateCapacityProviderCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link UpdateCapacityProviderCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link UpdateCapacityProviderCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link ECSClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class UpdateCapacityProviderCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Updates the cluster.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { ECSClient, UpdateClusterCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
14
|
-
* // const { ECSClient, UpdateClusterCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
15
|
-
* const client = new ECSClient(config);
|
|
16
|
-
* const command = new UpdateClusterCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link UpdateClusterCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link UpdateClusterCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link ECSClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class UpdateClusterCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Modifies the settings to use for a cluster.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { ECSClient, UpdateClusterSettingsCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
14
|
-
* // const { ECSClient, UpdateClusterSettingsCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
15
|
-
* const client = new ECSClient(config);
|
|
16
|
-
* const command = new UpdateClusterSettingsCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link UpdateClusterSettingsCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link UpdateClusterSettingsCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link ECSClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class UpdateClusterSettingsCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,50 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Updates the Amazon ECS container agent on a specified container instance. Updating the
|
|
10
|
-
* Amazon ECS container agent does not interrupt running tasks or services on the container
|
|
11
|
-
* instance. The process for updating the agent differs depending on whether your container
|
|
12
|
-
* instance was launched with the Amazon ECS-optimized AMI or another operating system.</p>
|
|
13
|
-
* <note>
|
|
14
|
-
* <p>The <code>UpdateContainerAgent</code> API isn't supported for container instances
|
|
15
|
-
* using the Amazon ECS-optimized Amazon Linux 2 (arm64) AMI. To update the container agent,
|
|
16
|
-
* you can update the <code>ecs-init</code> package which will update the agent. For
|
|
17
|
-
* more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/agent-update-ecs-ami.html">Updating the
|
|
18
|
-
* Amazon ECS container agent</a> in the
|
|
19
|
-
* <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
20
|
-
* </note>
|
|
21
|
-
* <p>The <code>UpdateContainerAgent</code> API requires an Amazon ECS-optimized AMI or Amazon
|
|
22
|
-
* Linux AMI with the <code>ecs-init</code> service installed and running. For help
|
|
23
|
-
* updating the Amazon ECS container agent on other operating systems, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html#manually_update_agent">Manually updating the Amazon ECS container agent</a> in the
|
|
24
|
-
* <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
25
|
-
* @example
|
|
26
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
27
|
-
* ```javascript
|
|
28
|
-
* import { ECSClient, UpdateContainerAgentCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
29
|
-
* // const { ECSClient, UpdateContainerAgentCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
30
|
-
* const client = new ECSClient(config);
|
|
31
|
-
* const command = new UpdateContainerAgentCommand(input);
|
|
32
|
-
* const response = await client.send(command);
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @see {@link UpdateContainerAgentCommandInput} for command's `input` shape.
|
|
36
|
-
* @see {@link UpdateContainerAgentCommandOutput} for command's `response` shape.
|
|
37
|
-
* @see {@link ECSClientResolvedConfig | config} for command's `input` shape.
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
8
|
class UpdateContainerAgentCommand extends smithy_client_1.Command {
|
|
41
|
-
// Start section: command_properties
|
|
42
|
-
// End section: command_properties
|
|
43
9
|
constructor(input) {
|
|
44
|
-
// Start section: command_constructor
|
|
45
10
|
super();
|
|
46
11
|
this.input = input;
|
|
47
|
-
// End section: command_constructor
|
|
48
12
|
}
|
|
49
|
-
/**
|
|
50
|
-
* @internal
|
|
51
|
-
*/
|
|
52
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
53
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
54
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,83 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Modifies the status of an Amazon ECS container instance.</p>
|
|
10
|
-
* <p>Once a container instance has reached an <code>ACTIVE</code> state, you can change the
|
|
11
|
-
* status of a container instance to <code>DRAINING</code> to manually remove an instance
|
|
12
|
-
* from a cluster, for example to perform system updates, update the Docker daemon, or
|
|
13
|
-
* scale down the cluster size.</p>
|
|
14
|
-
* <important>
|
|
15
|
-
* <p>A container instance cannot be changed to <code>DRAINING</code> until it has
|
|
16
|
-
* reached an <code>ACTIVE</code> status. If the instance is in any other status, an
|
|
17
|
-
* error will be received.</p>
|
|
18
|
-
* </important>
|
|
19
|
-
* <p>When you set a container instance to <code>DRAINING</code>, Amazon ECS prevents new tasks
|
|
20
|
-
* from being scheduled for placement on the container instance and replacement service
|
|
21
|
-
* tasks are started on other container instances in the cluster if the resources are
|
|
22
|
-
* available. Service tasks on the container instance that are in the <code>PENDING</code>
|
|
23
|
-
* state are stopped immediately.</p>
|
|
24
|
-
* <p>Service tasks on the container instance that are in the <code>RUNNING</code> state are
|
|
25
|
-
* stopped and replaced according to the service's deployment configuration parameters,
|
|
26
|
-
* <code>minimumHealthyPercent</code> and <code>maximumPercent</code>. You can change
|
|
27
|
-
* the deployment configuration of your service using <a>UpdateService</a>.</p>
|
|
28
|
-
* <ul>
|
|
29
|
-
* <li>
|
|
30
|
-
* <p>If <code>minimumHealthyPercent</code> is below 100%, the scheduler can ignore
|
|
31
|
-
* <code>desiredCount</code> temporarily during task replacement. For example,
|
|
32
|
-
* <code>desiredCount</code> is four tasks, a minimum of 50% allows the
|
|
33
|
-
* scheduler to stop two existing tasks before starting two new tasks. If the
|
|
34
|
-
* minimum is 100%, the service scheduler can't remove existing tasks until the
|
|
35
|
-
* replacement tasks are considered healthy. Tasks for services that do not use a
|
|
36
|
-
* load balancer are considered healthy if they are in the <code>RUNNING</code>
|
|
37
|
-
* state. Tasks for services that use a load balancer are considered healthy if
|
|
38
|
-
* they are in the <code>RUNNING</code> state and the container instance they are
|
|
39
|
-
* hosted on is reported as healthy by the load balancer.</p>
|
|
40
|
-
* </li>
|
|
41
|
-
* <li>
|
|
42
|
-
* <p>The <code>maximumPercent</code> parameter represents an upper limit on the
|
|
43
|
-
* number of running tasks during task replacement, which enables you to define the
|
|
44
|
-
* replacement batch size. For example, if <code>desiredCount</code> is four tasks,
|
|
45
|
-
* a maximum of 200% starts four new tasks before stopping the four tasks to be
|
|
46
|
-
* drained, provided that the cluster resources required to do this are available.
|
|
47
|
-
* If the maximum is 100%, then replacement tasks can't start until the draining
|
|
48
|
-
* tasks have stopped.</p>
|
|
49
|
-
* </li>
|
|
50
|
-
* </ul>
|
|
51
|
-
* <p>Any <code>PENDING</code> or <code>RUNNING</code> tasks that do not belong to a service
|
|
52
|
-
* are not affected. You must wait for them to finish or stop them manually.</p>
|
|
53
|
-
* <p>A container instance has completed draining when it has no more <code>RUNNING</code>
|
|
54
|
-
* tasks. You can verify this using <a>ListTasks</a>.</p>
|
|
55
|
-
* <p>When a container instance has been drained, you can set a container instance to
|
|
56
|
-
* <code>ACTIVE</code> status and once it has reached that status the Amazon ECS scheduler
|
|
57
|
-
* can begin scheduling tasks on the instance again.</p>
|
|
58
|
-
* @example
|
|
59
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
60
|
-
* ```javascript
|
|
61
|
-
* import { ECSClient, UpdateContainerInstancesStateCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
62
|
-
* // const { ECSClient, UpdateContainerInstancesStateCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
63
|
-
* const client = new ECSClient(config);
|
|
64
|
-
* const command = new UpdateContainerInstancesStateCommand(input);
|
|
65
|
-
* const response = await client.send(command);
|
|
66
|
-
* ```
|
|
67
|
-
*
|
|
68
|
-
* @see {@link UpdateContainerInstancesStateCommandInput} for command's `input` shape.
|
|
69
|
-
* @see {@link UpdateContainerInstancesStateCommandOutput} for command's `response` shape.
|
|
70
|
-
* @see {@link ECSClientResolvedConfig | config} for command's `input` shape.
|
|
71
|
-
*
|
|
72
|
-
*/
|
|
73
8
|
class UpdateContainerInstancesStateCommand extends smithy_client_1.Command {
|
|
74
|
-
// Start section: command_properties
|
|
75
|
-
// End section: command_properties
|
|
76
9
|
constructor(input) {
|
|
77
|
-
// Start section: command_constructor
|
|
78
10
|
super();
|
|
79
11
|
this.input = input;
|
|
80
|
-
// End section: command_constructor
|
|
81
12
|
}
|
|
82
|
-
/**
|
|
83
|
-
* @internal
|
|
84
|
-
*/
|
|
85
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
86
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
87
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,143 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <important>
|
|
10
|
-
* <p>Updating the task placement strategies and constraints on an Amazon ECS service remains
|
|
11
|
-
* in preview and is a Beta Service as defined by and subject to the Beta Service
|
|
12
|
-
* Participation Service Terms located at <a href="https://aws.amazon.com/service-terms">https://aws.amazon.com/service-terms</a> ("Beta Terms"). These Beta Terms
|
|
13
|
-
* apply to your participation in this preview.</p>
|
|
14
|
-
* </important>
|
|
15
|
-
* <p>Modifies the parameters of a service.</p>
|
|
16
|
-
* <p>For services using the rolling update (<code>ECS</code>) deployment controller, the
|
|
17
|
-
* desired count, deployment configuration, network configuration, task placement
|
|
18
|
-
* constraints and strategies, or task definition used can be updated.</p>
|
|
19
|
-
* <p>For services using the blue/green (<code>CODE_DEPLOY</code>) deployment controller,
|
|
20
|
-
* only the desired count, deployment configuration, task placement constraints and
|
|
21
|
-
* strategies, and health check grace period can be updated using this API. If the network
|
|
22
|
-
* configuration, platform version, or task definition need to be updated, a new CodeDeploy
|
|
23
|
-
* deployment should be created. For more information, see <a href="https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_CreateDeployment.html">CreateDeployment</a> in the <i>CodeDeploy API Reference</i>.</p>
|
|
24
|
-
* <p>For services using an external deployment controller, you can update only the desired
|
|
25
|
-
* count, task placement constraints and strategies, and health check grace period using
|
|
26
|
-
* this API. If the launch type, load balancer, network configuration, platform version, or
|
|
27
|
-
* task definition need to be updated, you should create a new task set. For more
|
|
28
|
-
* information, see <a>CreateTaskSet</a>.</p>
|
|
29
|
-
* <p>You can add to or subtract from the number of instantiations of a task definition in a
|
|
30
|
-
* service by specifying the cluster that the service is running in and a new
|
|
31
|
-
* <code>desiredCount</code> parameter.</p>
|
|
32
|
-
* <p>If you have updated the Docker image of your application, you can create a new task
|
|
33
|
-
* definition with that image and deploy it to your service. The service scheduler uses the
|
|
34
|
-
* minimum healthy percent and maximum percent parameters (in the service's deployment
|
|
35
|
-
* configuration) to determine the deployment strategy.</p>
|
|
36
|
-
* <note>
|
|
37
|
-
* <p>If your updated Docker image uses the same tag as what is in the existing task
|
|
38
|
-
* definition for your service (for example, <code>my_image:latest</code>), you do not
|
|
39
|
-
* need to create a new revision of your task definition. You can update the service
|
|
40
|
-
* using the <code>forceNewDeployment</code> option. The new tasks launched by the
|
|
41
|
-
* deployment pull the current image/tag combination from your repository when they
|
|
42
|
-
* start.</p>
|
|
43
|
-
* </note>
|
|
44
|
-
* <p>You can also update the deployment configuration of a service. When a deployment is
|
|
45
|
-
* triggered by updating the task definition of a service, the service scheduler uses the
|
|
46
|
-
* deployment configuration parameters, <code>minimumHealthyPercent</code> and
|
|
47
|
-
* <code>maximumPercent</code>, to determine the deployment strategy.</p>
|
|
48
|
-
* <ul>
|
|
49
|
-
* <li>
|
|
50
|
-
* <p>If <code>minimumHealthyPercent</code> is below 100%, the scheduler can ignore
|
|
51
|
-
* <code>desiredCount</code> temporarily during a deployment. For example, if
|
|
52
|
-
* <code>desiredCount</code> is four tasks, a minimum of 50% allows the
|
|
53
|
-
* scheduler to stop two existing tasks before starting two new tasks. Tasks for
|
|
54
|
-
* services that do not use a load balancer are considered healthy if they are in
|
|
55
|
-
* the <code>RUNNING</code> state. Tasks for services that use a load balancer are
|
|
56
|
-
* considered healthy if they are in the <code>RUNNING</code> state and the
|
|
57
|
-
* container instance they are hosted on is reported as healthy by the load
|
|
58
|
-
* balancer.</p>
|
|
59
|
-
* </li>
|
|
60
|
-
* <li>
|
|
61
|
-
* <p>The <code>maximumPercent</code> parameter represents an upper limit on the
|
|
62
|
-
* number of running tasks during a deployment, which enables you to define the
|
|
63
|
-
* deployment batch size. For example, if <code>desiredCount</code> is four tasks,
|
|
64
|
-
* a maximum of 200% starts four new tasks before stopping the four older tasks
|
|
65
|
-
* (provided that the cluster resources required to do this are available).</p>
|
|
66
|
-
* </li>
|
|
67
|
-
* </ul>
|
|
68
|
-
* <p>When <a>UpdateService</a> stops a task during a deployment, the equivalent
|
|
69
|
-
* of <code>docker stop</code> is issued to the containers running in the task. This
|
|
70
|
-
* results in a <code>SIGTERM</code> and a 30-second timeout, after which
|
|
71
|
-
* <code>SIGKILL</code> is sent and the containers are forcibly stopped. If the
|
|
72
|
-
* container handles the <code>SIGTERM</code> gracefully and exits within 30 seconds from
|
|
73
|
-
* receiving it, no <code>SIGKILL</code> is sent.</p>
|
|
74
|
-
* <p>When the service scheduler launches new tasks, it determines task placement in your
|
|
75
|
-
* cluster with the following logic:</p>
|
|
76
|
-
* <ul>
|
|
77
|
-
* <li>
|
|
78
|
-
* <p>Determine which of the container instances in your cluster can support your
|
|
79
|
-
* service's task definition (for example, they have the required CPU, memory,
|
|
80
|
-
* ports, and container instance attributes).</p>
|
|
81
|
-
* </li>
|
|
82
|
-
* <li>
|
|
83
|
-
* <p>By default, the service scheduler attempts to balance tasks across
|
|
84
|
-
* Availability Zones in this manner (although you can choose a different placement
|
|
85
|
-
* strategy):</p>
|
|
86
|
-
* <ul>
|
|
87
|
-
* <li>
|
|
88
|
-
* <p>Sort the valid container instances by the fewest number of running
|
|
89
|
-
* tasks for this service in the same Availability Zone as the instance.
|
|
90
|
-
* For example, if zone A has one running service task and zones B and C
|
|
91
|
-
* each have zero, valid container instances in either zone B or C are
|
|
92
|
-
* considered optimal for placement.</p>
|
|
93
|
-
* </li>
|
|
94
|
-
* <li>
|
|
95
|
-
* <p>Place the new service task on a valid container instance in an optimal
|
|
96
|
-
* Availability Zone (based on the previous steps), favoring container
|
|
97
|
-
* instances with the fewest number of running tasks for this
|
|
98
|
-
* service.</p>
|
|
99
|
-
* </li>
|
|
100
|
-
* </ul>
|
|
101
|
-
* </li>
|
|
102
|
-
* </ul>
|
|
103
|
-
* <p>When the service scheduler stops running tasks, it attempts to maintain balance across
|
|
104
|
-
* the Availability Zones in your cluster using the following logic: </p>
|
|
105
|
-
* <ul>
|
|
106
|
-
* <li>
|
|
107
|
-
* <p>Sort the container instances by the largest number of running tasks for this
|
|
108
|
-
* service in the same Availability Zone as the instance. For example, if zone A
|
|
109
|
-
* has one running service task and zones B and C each have two, container
|
|
110
|
-
* instances in either zone B or C are considered optimal for termination.</p>
|
|
111
|
-
* </li>
|
|
112
|
-
* <li>
|
|
113
|
-
* <p>Stop the task on a container instance in an optimal Availability Zone (based
|
|
114
|
-
* on the previous steps), favoring container instances with the largest number of
|
|
115
|
-
* running tasks for this service.</p>
|
|
116
|
-
* </li>
|
|
117
|
-
* </ul>
|
|
118
|
-
* @example
|
|
119
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
120
|
-
* ```javascript
|
|
121
|
-
* import { ECSClient, UpdateServiceCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
122
|
-
* // const { ECSClient, UpdateServiceCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
123
|
-
* const client = new ECSClient(config);
|
|
124
|
-
* const command = new UpdateServiceCommand(input);
|
|
125
|
-
* const response = await client.send(command);
|
|
126
|
-
* ```
|
|
127
|
-
*
|
|
128
|
-
* @see {@link UpdateServiceCommandInput} for command's `input` shape.
|
|
129
|
-
* @see {@link UpdateServiceCommandOutput} for command's `response` shape.
|
|
130
|
-
* @see {@link ECSClientResolvedConfig | config} for command's `input` shape.
|
|
131
|
-
*
|
|
132
|
-
*/
|
|
133
8
|
class UpdateServiceCommand extends smithy_client_1.Command {
|
|
134
|
-
// Start section: command_properties
|
|
135
|
-
// End section: command_properties
|
|
136
9
|
constructor(input) {
|
|
137
|
-
// Start section: command_constructor
|
|
138
10
|
super();
|
|
139
11
|
this.input = input;
|
|
140
|
-
// End section: command_constructor
|
|
141
12
|
}
|
|
142
|
-
/**
|
|
143
|
-
* @internal
|
|
144
|
-
*/
|
|
145
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
146
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
147
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,39 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Modifies which task set in a service is the primary task set. Any parameters that are
|
|
10
|
-
* updated on the primary task set in a service will transition to the service. This is
|
|
11
|
-
* used when a service uses the <code>EXTERNAL</code> deployment controller type. For more
|
|
12
|
-
* information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html">Amazon ECS Deployment
|
|
13
|
-
* Types</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
14
|
-
* @example
|
|
15
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
16
|
-
* ```javascript
|
|
17
|
-
* import { ECSClient, UpdateServicePrimaryTaskSetCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
18
|
-
* // const { ECSClient, UpdateServicePrimaryTaskSetCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
19
|
-
* const client = new ECSClient(config);
|
|
20
|
-
* const command = new UpdateServicePrimaryTaskSetCommand(input);
|
|
21
|
-
* const response = await client.send(command);
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @see {@link UpdateServicePrimaryTaskSetCommandInput} for command's `input` shape.
|
|
25
|
-
* @see {@link UpdateServicePrimaryTaskSetCommandOutput} for command's `response` shape.
|
|
26
|
-
* @see {@link ECSClientResolvedConfig | config} for command's `input` shape.
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
8
|
class UpdateServicePrimaryTaskSetCommand extends smithy_client_1.Command {
|
|
30
|
-
// Start section: command_properties
|
|
31
|
-
// End section: command_properties
|
|
32
9
|
constructor(input) {
|
|
33
|
-
// Start section: command_constructor
|
|
34
10
|
super();
|
|
35
11
|
this.input = input;
|
|
36
|
-
// End section: command_constructor
|
|
37
12
|
}
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
42
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
43
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Modifies a task set. This is used when a service uses the <code>EXTERNAL</code>
|
|
10
|
-
* deployment controller type. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html">Amazon ECS Deployment
|
|
11
|
-
* Types</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { ECSClient, UpdateTaskSetCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
16
|
-
* // const { ECSClient, UpdateTaskSetCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
17
|
-
* const client = new ECSClient(config);
|
|
18
|
-
* const command = new UpdateTaskSetCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link UpdateTaskSetCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link UpdateTaskSetCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link ECSClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
8
|
class UpdateTaskSetCommand extends smithy_client_1.Command {
|
|
28
|
-
// Start section: command_properties
|
|
29
|
-
// End section: command_properties
|
|
30
9
|
constructor(input) {
|
|
31
|
-
// Start section: command_constructor
|
|
32
10
|
super();
|
|
33
11
|
this.input = input;
|
|
34
|
-
// End section: command_constructor
|
|
35
12
|
}
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
40
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
41
15
|
const stack = clientStack.concat(this.middlewareStack);
|