@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.
Files changed (156) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist-cjs/ECS.js +0 -15
  3. package/dist-cjs/ECSClient.js +0 -20
  4. package/dist-cjs/commands/CreateCapacityProviderCommand.js +0 -30
  5. package/dist-cjs/commands/CreateClusterCommand.js +0 -35
  6. package/dist-cjs/commands/CreateServiceCommand.js +0 -129
  7. package/dist-cjs/commands/CreateTaskSetCommand.js +0 -27
  8. package/dist-cjs/commands/DeleteAccountSettingCommand.js +0 -25
  9. package/dist-cjs/commands/DeleteAttributesCommand.js +0 -24
  10. package/dist-cjs/commands/DeleteCapacityProviderCommand.js +0 -38
  11. package/dist-cjs/commands/DeleteClusterCommand.js +0 -30
  12. package/dist-cjs/commands/DeleteServiceCommand.js +0 -44
  13. package/dist-cjs/commands/DeleteTaskSetCommand.js +0 -25
  14. package/dist-cjs/commands/DeregisterContainerInstanceCommand.js +0 -36
  15. package/dist-cjs/commands/DeregisterTaskDefinitionCommand.js +0 -39
  16. package/dist-cjs/commands/DescribeCapacityProvidersCommand.js +0 -24
  17. package/dist-cjs/commands/DescribeClustersCommand.js +0 -24
  18. package/dist-cjs/commands/DescribeContainerInstancesCommand.js +0 -25
  19. package/dist-cjs/commands/DescribeServicesCommand.js +0 -24
  20. package/dist-cjs/commands/DescribeTaskDefinitionCommand.js +0 -31
  21. package/dist-cjs/commands/DescribeTaskSetsCommand.js +0 -27
  22. package/dist-cjs/commands/DescribeTasksCommand.js +0 -24
  23. package/dist-cjs/commands/DiscoverPollEndpointCommand.js +0 -28
  24. package/dist-cjs/commands/ExecuteCommandCommand.js +0 -24
  25. package/dist-cjs/commands/ListAccountSettingsCommand.js +0 -24
  26. package/dist-cjs/commands/ListAttributesCommand.js +0 -30
  27. package/dist-cjs/commands/ListClustersCommand.js +0 -24
  28. package/dist-cjs/commands/ListContainerInstancesCommand.js +0 -27
  29. package/dist-cjs/commands/ListServicesCommand.js +0 -25
  30. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -24
  31. package/dist-cjs/commands/ListTaskDefinitionFamiliesCommand.js +0 -30
  32. package/dist-cjs/commands/ListTaskDefinitionsCommand.js +0 -26
  33. package/dist-cjs/commands/ListTasksCommand.js +0 -28
  34. package/dist-cjs/commands/PutAccountSettingCommand.js +0 -47
  35. package/dist-cjs/commands/PutAccountSettingDefaultCommand.js +0 -26
  36. package/dist-cjs/commands/PutAttributesCommand.js +0 -28
  37. package/dist-cjs/commands/PutClusterCapacityProvidersCommand.js +0 -37
  38. package/dist-cjs/commands/RegisterContainerInstanceCommand.js +0 -29
  39. package/dist-cjs/commands/RegisterTaskDefinitionCommand.js +0 -41
  40. package/dist-cjs/commands/RunTaskCommand.js +0 -52
  41. package/dist-cjs/commands/StartTaskCommand.js +0 -28
  42. package/dist-cjs/commands/StopTaskCommand.js +0 -36
  43. package/dist-cjs/commands/SubmitAttachmentStateChangesCommand.js +0 -28
  44. package/dist-cjs/commands/SubmitContainerStateChangeCommand.js +0 -28
  45. package/dist-cjs/commands/SubmitTaskStateChangeCommand.js +0 -28
  46. package/dist-cjs/commands/TagResourceCommand.js +0 -27
  47. package/dist-cjs/commands/UntagResourceCommand.js +0 -24
  48. package/dist-cjs/commands/UpdateCapacityProviderCommand.js +0 -24
  49. package/dist-cjs/commands/UpdateClusterCommand.js +0 -24
  50. package/dist-cjs/commands/UpdateClusterSettingsCommand.js +0 -24
  51. package/dist-cjs/commands/UpdateContainerAgentCommand.js +0 -39
  52. package/dist-cjs/commands/UpdateContainerInstancesStateCommand.js +0 -72
  53. package/dist-cjs/commands/UpdateServiceCommand.js +0 -132
  54. package/dist-cjs/commands/UpdateServicePrimaryTaskSetCommand.js +0 -28
  55. package/dist-cjs/commands/UpdateTaskSetCommand.js +0 -26
  56. package/dist-cjs/commands/index.js +55 -0
  57. package/dist-cjs/endpoints.js +6 -1
  58. package/dist-cjs/index.js +5 -66
  59. package/dist-cjs/models/models_0.js +26 -619
  60. package/dist-cjs/pagination/ListAccountSettingsPaginator.js +0 -10
  61. package/dist-cjs/pagination/ListAttributesPaginator.js +0 -10
  62. package/dist-cjs/pagination/ListClustersPaginator.js +0 -10
  63. package/dist-cjs/pagination/ListContainerInstancesPaginator.js +0 -10
  64. package/dist-cjs/pagination/ListServicesPaginator.js +0 -10
  65. package/dist-cjs/pagination/ListTaskDefinitionFamiliesPaginator.js +0 -10
  66. package/dist-cjs/pagination/ListTaskDefinitionsPaginator.js +0 -10
  67. package/dist-cjs/pagination/ListTasksPaginator.js +0 -10
  68. package/dist-cjs/pagination/index.js +12 -0
  69. package/dist-cjs/protocols/Aws_json1_1.js +25 -5
  70. package/dist-cjs/runtimeConfig.browser.js +1 -5
  71. package/dist-cjs/runtimeConfig.js +1 -5
  72. package/dist-cjs/runtimeConfig.native.js +0 -3
  73. package/dist-cjs/runtimeConfig.shared.js +0 -3
  74. package/dist-cjs/waiters/index.js +6 -0
  75. package/dist-cjs/waiters/waitForServicesInactive.js +0 -9
  76. package/dist-cjs/waiters/waitForTasksRunning.js +0 -9
  77. package/dist-cjs/waiters/waitForTasksStopped.js +0 -9
  78. package/dist-es/commands/index.js +52 -0
  79. package/dist-es/endpoints.js +6 -1
  80. package/dist-es/index.js +5 -66
  81. package/dist-es/models/models_0.js +20 -0
  82. package/dist-es/pagination/index.js +9 -0
  83. package/dist-es/protocols/Aws_json1_1.js +22 -1
  84. package/dist-es/waiters/index.js +3 -0
  85. package/dist-types/commands/index.d.ts +52 -0
  86. package/dist-types/index.d.ts +5 -66
  87. package/dist-types/models/models_0.d.ts +170 -25
  88. package/dist-types/pagination/index.d.ts +9 -0
  89. package/dist-types/ts3.4/ECS.d.ts +53 -702
  90. package/dist-types/ts3.4/ECSClient.d.ts +24 -101
  91. package/dist-types/ts3.4/commands/CreateCapacityProviderCommand.d.ts +2 -26
  92. package/dist-types/ts3.4/commands/CreateClusterCommand.d.ts +2 -31
  93. package/dist-types/ts3.4/commands/CreateServiceCommand.d.ts +2 -125
  94. package/dist-types/ts3.4/commands/CreateTaskSetCommand.d.ts +2 -23
  95. package/dist-types/ts3.4/commands/DeleteAccountSettingCommand.d.ts +2 -21
  96. package/dist-types/ts3.4/commands/DeleteAttributesCommand.d.ts +2 -20
  97. package/dist-types/ts3.4/commands/DeleteCapacityProviderCommand.d.ts +2 -34
  98. package/dist-types/ts3.4/commands/DeleteClusterCommand.d.ts +2 -26
  99. package/dist-types/ts3.4/commands/DeleteServiceCommand.d.ts +2 -40
  100. package/dist-types/ts3.4/commands/DeleteTaskSetCommand.d.ts +2 -21
  101. package/dist-types/ts3.4/commands/DeregisterContainerInstanceCommand.d.ts +2 -32
  102. package/dist-types/ts3.4/commands/DeregisterTaskDefinitionCommand.d.ts +2 -35
  103. package/dist-types/ts3.4/commands/DescribeCapacityProvidersCommand.d.ts +2 -20
  104. package/dist-types/ts3.4/commands/DescribeClustersCommand.d.ts +2 -20
  105. package/dist-types/ts3.4/commands/DescribeContainerInstancesCommand.d.ts +2 -21
  106. package/dist-types/ts3.4/commands/DescribeServicesCommand.d.ts +2 -20
  107. package/dist-types/ts3.4/commands/DescribeTaskDefinitionCommand.d.ts +2 -27
  108. package/dist-types/ts3.4/commands/DescribeTaskSetsCommand.d.ts +2 -23
  109. package/dist-types/ts3.4/commands/DescribeTasksCommand.d.ts +2 -20
  110. package/dist-types/ts3.4/commands/DiscoverPollEndpointCommand.d.ts +2 -24
  111. package/dist-types/ts3.4/commands/ExecuteCommandCommand.d.ts +2 -20
  112. package/dist-types/ts3.4/commands/ListAccountSettingsCommand.d.ts +2 -20
  113. package/dist-types/ts3.4/commands/ListAttributesCommand.d.ts +2 -26
  114. package/dist-types/ts3.4/commands/ListClustersCommand.d.ts +2 -20
  115. package/dist-types/ts3.4/commands/ListContainerInstancesCommand.d.ts +2 -23
  116. package/dist-types/ts3.4/commands/ListServicesCommand.d.ts +2 -21
  117. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
  118. package/dist-types/ts3.4/commands/ListTaskDefinitionFamiliesCommand.d.ts +2 -26
  119. package/dist-types/ts3.4/commands/ListTaskDefinitionsCommand.d.ts +2 -22
  120. package/dist-types/ts3.4/commands/ListTasksCommand.d.ts +2 -24
  121. package/dist-types/ts3.4/commands/PutAccountSettingCommand.d.ts +2 -43
  122. package/dist-types/ts3.4/commands/PutAccountSettingDefaultCommand.d.ts +2 -22
  123. package/dist-types/ts3.4/commands/PutAttributesCommand.d.ts +2 -24
  124. package/dist-types/ts3.4/commands/PutClusterCapacityProvidersCommand.d.ts +2 -33
  125. package/dist-types/ts3.4/commands/RegisterContainerInstanceCommand.d.ts +2 -25
  126. package/dist-types/ts3.4/commands/RegisterTaskDefinitionCommand.d.ts +2 -37
  127. package/dist-types/ts3.4/commands/RunTaskCommand.d.ts +2 -48
  128. package/dist-types/ts3.4/commands/StartTaskCommand.d.ts +2 -24
  129. package/dist-types/ts3.4/commands/StopTaskCommand.d.ts +2 -32
  130. package/dist-types/ts3.4/commands/SubmitAttachmentStateChangesCommand.d.ts +2 -24
  131. package/dist-types/ts3.4/commands/SubmitContainerStateChangeCommand.d.ts +2 -24
  132. package/dist-types/ts3.4/commands/SubmitTaskStateChangeCommand.d.ts +2 -24
  133. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -23
  134. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
  135. package/dist-types/ts3.4/commands/UpdateCapacityProviderCommand.d.ts +2 -20
  136. package/dist-types/ts3.4/commands/UpdateClusterCommand.d.ts +2 -20
  137. package/dist-types/ts3.4/commands/UpdateClusterSettingsCommand.d.ts +2 -20
  138. package/dist-types/ts3.4/commands/UpdateContainerAgentCommand.d.ts +2 -35
  139. package/dist-types/ts3.4/commands/UpdateContainerInstancesStateCommand.d.ts +2 -68
  140. package/dist-types/ts3.4/commands/UpdateServiceCommand.d.ts +2 -128
  141. package/dist-types/ts3.4/commands/UpdateServicePrimaryTaskSetCommand.d.ts +2 -24
  142. package/dist-types/ts3.4/commands/UpdateTaskSetCommand.d.ts +2 -22
  143. package/dist-types/ts3.4/commands/index.d.ts +52 -0
  144. package/dist-types/ts3.4/index.d.ts +5 -66
  145. package/dist-types/ts3.4/models/models_0.d.ts +1099 -6662
  146. package/dist-types/ts3.4/pagination/index.d.ts +9 -0
  147. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  148. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  149. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  150. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  151. package/dist-types/ts3.4/waiters/index.d.ts +3 -0
  152. package/dist-types/ts3.4/waiters/waitForServicesInactive.d.ts +2 -9
  153. package/dist-types/ts3.4/waiters/waitForTasksRunning.d.ts +2 -9
  154. package/dist-types/ts3.4/waiters/waitForTasksStopped.d.ts +2 -9
  155. package/dist-types/waiters/index.d.ts +3 -0
  156. package/package.json +33 -33
@@ -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>List the tags for an Amazon ECS 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, ListTagsForResourceCommand } from "@aws-sdk/client-ecs"; // ES Modules import
14
- * // const { ECSClient, ListTagsForResourceCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
15
- * const client = new ECSClient(config);
16
- * const command = new ListTagsForResourceCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
21
- * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
22
- * @see {@link ECSClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class ListTagsForResourceCommand 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,41 +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>Returns a list of task definition families that are registered to your account (which
10
- * may include task definition families that no longer have any <code>ACTIVE</code> task
11
- * definition revisions).</p>
12
- * <p>You can filter out task definition families that do not contain any
13
- * <code>ACTIVE</code> task definition revisions by setting the <code>status</code>
14
- * parameter to <code>ACTIVE</code>. You can also filter the results with the
15
- * <code>familyPrefix</code> parameter.</p>
16
- * @example
17
- * Use a bare-bones client and the command you need to make an API call.
18
- * ```javascript
19
- * import { ECSClient, ListTaskDefinitionFamiliesCommand } from "@aws-sdk/client-ecs"; // ES Modules import
20
- * // const { ECSClient, ListTaskDefinitionFamiliesCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
21
- * const client = new ECSClient(config);
22
- * const command = new ListTaskDefinitionFamiliesCommand(input);
23
- * const response = await client.send(command);
24
- * ```
25
- *
26
- * @see {@link ListTaskDefinitionFamiliesCommandInput} for command's `input` shape.
27
- * @see {@link ListTaskDefinitionFamiliesCommandOutput} for command's `response` shape.
28
- * @see {@link ECSClientResolvedConfig | config} for command's `input` shape.
29
- *
30
- */
31
8
  class ListTaskDefinitionFamiliesCommand extends smithy_client_1.Command {
32
- // Start section: command_properties
33
- // End section: command_properties
34
9
  constructor(input) {
35
- // Start section: command_constructor
36
10
  super();
37
11
  this.input = input;
38
- // End section: command_constructor
39
12
  }
40
- /**
41
- * @internal
42
- */
43
13
  resolveMiddleware(clientStack, configuration, options) {
44
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
45
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>Returns a list of task definitions that are registered to your account. You can filter
10
- * the results by family name with the <code>familyPrefix</code> parameter or by status
11
- * with the <code>status</code> parameter.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { ECSClient, ListTaskDefinitionsCommand } from "@aws-sdk/client-ecs"; // ES Modules import
16
- * // const { ECSClient, ListTaskDefinitionsCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
17
- * const client = new ECSClient(config);
18
- * const command = new ListTaskDefinitionsCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link ListTaskDefinitionsCommandInput} for command's `input` shape.
23
- * @see {@link ListTaskDefinitionsCommandOutput} for command's `response` shape.
24
- * @see {@link ECSClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
8
  class ListTaskDefinitionsCommand 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);
@@ -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>Returns a list of tasks. You can filter the results by cluster, task definition
10
- * family, container instance, launch type, what IAM principal started the task, or by the
11
- * desired status of the task.</p>
12
- * <p>Recently stopped tasks might appear in the returned results. Currently, stopped tasks
13
- * appear in the returned results for at least one hour.</p>
14
- * @example
15
- * Use a bare-bones client and the command you need to make an API call.
16
- * ```javascript
17
- * import { ECSClient, ListTasksCommand } from "@aws-sdk/client-ecs"; // ES Modules import
18
- * // const { ECSClient, ListTasksCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
19
- * const client = new ECSClient(config);
20
- * const command = new ListTasksCommand(input);
21
- * const response = await client.send(command);
22
- * ```
23
- *
24
- * @see {@link ListTasksCommandInput} for command's `input` shape.
25
- * @see {@link ListTasksCommandOutput} for command's `response` shape.
26
- * @see {@link ECSClientResolvedConfig | config} for command's `input` shape.
27
- *
28
- */
29
8
  class ListTasksCommand 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,58 +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 an account setting. Account settings are set on a per-Region basis.</p>
10
- * <p>If you change the account setting for the root user, the default settings for all of
11
- * the IAM users and roles for which no individual account setting has been specified are
12
- * reset. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-account-settings.html">Account
13
- * Settings</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
14
- * <p>When <code>serviceLongArnFormat</code>, <code>taskLongArnFormat</code>, or
15
- * <code>containerInstanceLongArnFormat</code> are specified, the Amazon Resource Name
16
- * (ARN) and resource ID format of the resource type for a specified IAM user, IAM role, or
17
- * the root user for an account is affected. The opt-in and opt-out account setting must be
18
- * set for each Amazon ECS resource separately. The ARN and resource ID format of a resource
19
- * will be defined by the opt-in status of the IAM user or role that created the resource.
20
- * You must enable this setting to use Amazon ECS features such as resource tagging.</p>
21
- * <p>When <code>awsvpcTrunking</code> is specified, the elastic network interface (ENI)
22
- * limit for any new container instances that support the feature is changed. If
23
- * <code>awsvpcTrunking</code> is enabled, any new container instances that support the
24
- * feature are launched have the increased ENI limits available to them. For more
25
- * information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container-instance-eni.html">Elastic Network
26
- * Interface Trunking</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
27
- * <p>When <code>containerInsights</code> is specified, the default setting indicating
28
- * whether CloudWatch Container Insights is enabled for your clusters is changed. If
29
- * <code>containerInsights</code> is enabled, any new clusters that are created will
30
- * have Container Insights enabled unless you disable it during cluster creation. For more
31
- * information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cloudwatch-container-insights.html">CloudWatch
32
- * Container Insights</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
33
- * @example
34
- * Use a bare-bones client and the command you need to make an API call.
35
- * ```javascript
36
- * import { ECSClient, PutAccountSettingCommand } from "@aws-sdk/client-ecs"; // ES Modules import
37
- * // const { ECSClient, PutAccountSettingCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
38
- * const client = new ECSClient(config);
39
- * const command = new PutAccountSettingCommand(input);
40
- * const response = await client.send(command);
41
- * ```
42
- *
43
- * @see {@link PutAccountSettingCommandInput} for command's `input` shape.
44
- * @see {@link PutAccountSettingCommandOutput} for command's `response` shape.
45
- * @see {@link ECSClientResolvedConfig | config} for command's `input` shape.
46
- *
47
- */
48
8
  class PutAccountSettingCommand extends smithy_client_1.Command {
49
- // Start section: command_properties
50
- // End section: command_properties
51
9
  constructor(input) {
52
- // Start section: command_constructor
53
10
  super();
54
11
  this.input = input;
55
- // End section: command_constructor
56
12
  }
57
- /**
58
- * @internal
59
- */
60
13
  resolveMiddleware(clientStack, configuration, options) {
61
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
62
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 an account setting for all IAM users on an account for whom no individual
10
- * account setting has been specified. Account settings are set on a per-Region
11
- * basis.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { ECSClient, PutAccountSettingDefaultCommand } from "@aws-sdk/client-ecs"; // ES Modules import
16
- * // const { ECSClient, PutAccountSettingDefaultCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
17
- * const client = new ECSClient(config);
18
- * const command = new PutAccountSettingDefaultCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link PutAccountSettingDefaultCommandInput} for command's `input` shape.
23
- * @see {@link PutAccountSettingDefaultCommandOutput} for command's `response` shape.
24
- * @see {@link ECSClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
8
  class PutAccountSettingDefaultCommand 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);
@@ -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>Create or update an attribute on an Amazon ECS resource. If the attribute does not exist,
10
- * it is created. If the attribute exists, its value is replaced with the specified value.
11
- * To delete an attribute, use <a>DeleteAttributes</a>. For more information,
12
- * see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html#attributes">Attributes</a> in the
13
- * <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, PutAttributesCommand } from "@aws-sdk/client-ecs"; // ES Modules import
18
- * // const { ECSClient, PutAttributesCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
19
- * const client = new ECSClient(config);
20
- * const command = new PutAttributesCommand(input);
21
- * const response = await client.send(command);
22
- * ```
23
- *
24
- * @see {@link PutAttributesCommandInput} for command's `input` shape.
25
- * @see {@link PutAttributesCommandOutput} for command's `response` shape.
26
- * @see {@link ECSClientResolvedConfig | config} for command's `input` shape.
27
- *
28
- */
29
8
  class PutAttributesCommand 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,48 +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 available capacity providers and the default capacity provider strategy
10
- * for a cluster.</p>
11
- * <p>You must specify both the available capacity providers and a default capacity provider
12
- * strategy for the cluster. If the specified cluster has existing capacity providers
13
- * associated with it, you must specify all existing capacity providers in addition to any
14
- * new ones you want to add. Any existing capacity providers associated with a cluster that
15
- * are omitted from a <a>PutClusterCapacityProviders</a> API call will be
16
- * disassociated with the cluster. You can only disassociate an existing capacity provider
17
- * from a cluster if it's not being used by any existing tasks.</p>
18
- * <p>When creating a service or running a task on a cluster, if no capacity provider or
19
- * launch type is specified, then the cluster's default capacity provider strategy is used.
20
- * It is recommended to define a default capacity provider strategy for your cluster,
21
- * however you may specify an empty array (<code>[]</code>) to bypass defining a default
22
- * strategy.</p>
23
- * @example
24
- * Use a bare-bones client and the command you need to make an API call.
25
- * ```javascript
26
- * import { ECSClient, PutClusterCapacityProvidersCommand } from "@aws-sdk/client-ecs"; // ES Modules import
27
- * // const { ECSClient, PutClusterCapacityProvidersCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
28
- * const client = new ECSClient(config);
29
- * const command = new PutClusterCapacityProvidersCommand(input);
30
- * const response = await client.send(command);
31
- * ```
32
- *
33
- * @see {@link PutClusterCapacityProvidersCommandInput} for command's `input` shape.
34
- * @see {@link PutClusterCapacityProvidersCommandOutput} for command's `response` shape.
35
- * @see {@link ECSClientResolvedConfig | config} for command's `input` shape.
36
- *
37
- */
38
8
  class PutClusterCapacityProvidersCommand extends smithy_client_1.Command {
39
- // Start section: command_properties
40
- // End section: command_properties
41
9
  constructor(input) {
42
- // Start section: command_constructor
43
10
  super();
44
11
  this.input = input;
45
- // End section: command_constructor
46
12
  }
47
- /**
48
- * @internal
49
- */
50
13
  resolveMiddleware(clientStack, configuration, options) {
51
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
52
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,40 +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>Registers an EC2
13
- * instance into the specified cluster. This instance becomes available to place containers
14
- * on.</p>
15
- * @example
16
- * Use a bare-bones client and the command you need to make an API call.
17
- * ```javascript
18
- * import { ECSClient, RegisterContainerInstanceCommand } from "@aws-sdk/client-ecs"; // ES Modules import
19
- * // const { ECSClient, RegisterContainerInstanceCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
20
- * const client = new ECSClient(config);
21
- * const command = new RegisterContainerInstanceCommand(input);
22
- * const response = await client.send(command);
23
- * ```
24
- *
25
- * @see {@link RegisterContainerInstanceCommandInput} for command's `input` shape.
26
- * @see {@link RegisterContainerInstanceCommandOutput} for command's `response` shape.
27
- * @see {@link ECSClientResolvedConfig | config} for command's `input` shape.
28
- *
29
- */
30
8
  class RegisterContainerInstanceCommand extends smithy_client_1.Command {
31
- // Start section: command_properties
32
- // End section: command_properties
33
9
  constructor(input) {
34
- // Start section: command_constructor
35
10
  super();
36
11
  this.input = input;
37
- // End section: command_constructor
38
12
  }
39
- /**
40
- * @internal
41
- */
42
13
  resolveMiddleware(clientStack, configuration, options) {
43
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
44
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,52 +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>Registers a new task definition from the supplied <code>family</code> and
10
- * <code>containerDefinitions</code>. Optionally, you can add data volumes to your
11
- * containers with the <code>volumes</code> parameter. For more information about task
12
- * definition parameters and defaults, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html">Amazon ECS Task
13
- * Definitions</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
14
- * <p>You can specify an IAM role for your task with the <code>taskRoleArn</code> parameter.
15
- * When you specify an IAM role for a task, its containers can then use the latest versions
16
- * of the CLI or SDKs to make API requests to the Amazon Web Services services that are specified in
17
- * the IAM policy associated with the role. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html">IAM
18
- * Roles for Tasks</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
19
- * <p>You can specify a Docker networking mode for the containers in your task definition
20
- * with the <code>networkMode</code> parameter. The available network modes correspond to
21
- * those described in <a href="https://docs.docker.com/engine/reference/run/#/network-settings">Network
22
- * settings</a> in the Docker run reference. If you specify the <code>awsvpc</code>
23
- * network mode, the task is allocated an elastic network interface, and you must specify a
24
- * <a>NetworkConfiguration</a> when you create a service or run a task with
25
- * the task definition. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html">Task Networking</a>
26
- * in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { ECSClient, RegisterTaskDefinitionCommand } from "@aws-sdk/client-ecs"; // ES Modules import
31
- * // const { ECSClient, RegisterTaskDefinitionCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
32
- * const client = new ECSClient(config);
33
- * const command = new RegisterTaskDefinitionCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link RegisterTaskDefinitionCommandInput} for command's `input` shape.
38
- * @see {@link RegisterTaskDefinitionCommandOutput} for command's `response` shape.
39
- * @see {@link ECSClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
42
8
  class RegisterTaskDefinitionCommand extends smithy_client_1.Command {
43
- // Start section: command_properties
44
- // End section: command_properties
45
9
  constructor(input) {
46
- // Start section: command_constructor
47
10
  super();
48
11
  this.input = input;
49
- // End section: command_constructor
50
12
  }
51
- /**
52
- * @internal
53
- */
54
13
  resolveMiddleware(clientStack, configuration, options) {
55
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
56
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,63 +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>Starts a new task using the specified task definition.</p>
10
- * <p>You can allow Amazon ECS to place tasks for you, or you can customize how Amazon ECS places
11
- * tasks using placement constraints and placement strategies. For more information, see
12
- * <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/scheduling_tasks.html">Scheduling Tasks</a> in the
13
- * <i>Amazon Elastic Container Service Developer Guide</i>.</p>
14
- * <p>Alternatively, you can use <a>StartTask</a> to use your own scheduler or
15
- * place tasks manually on specific container instances.</p>
16
- * <p>The Amazon ECS API follows an eventual consistency model, due to the distributed nature of
17
- * the system supporting the API. This means that the result of an API command you run that
18
- * affects your Amazon ECS resources might not be immediately visible to all subsequent commands
19
- * you run. Keep this in mind when you carry out an API command that immediately follows a
20
- * previous API command.</p>
21
- * <p>To manage eventual consistency, you can do the following:</p>
22
- * <ul>
23
- * <li>
24
- * <p>Confirm the state of the resource before you run a command to modify it. Run
25
- * the DescribeTasks command using an exponential backoff algorithm to ensure that
26
- * you allow enough time for the previous command to propagate through the system.
27
- * To do this, run the DescribeTasks command repeatedly, starting with a couple of
28
- * seconds of wait time and increasing gradually up to five minutes of wait
29
- * time.</p>
30
- * </li>
31
- * <li>
32
- * <p>Add wait time between subsequent commands, even if the DescribeTasks command
33
- * returns an accurate response. Apply an exponential backoff algorithm starting
34
- * with a couple of seconds of wait time, and increase gradually up to about five
35
- * minutes of wait time.</p>
36
- * </li>
37
- * </ul>
38
- * @example
39
- * Use a bare-bones client and the command you need to make an API call.
40
- * ```javascript
41
- * import { ECSClient, RunTaskCommand } from "@aws-sdk/client-ecs"; // ES Modules import
42
- * // const { ECSClient, RunTaskCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
43
- * const client = new ECSClient(config);
44
- * const command = new RunTaskCommand(input);
45
- * const response = await client.send(command);
46
- * ```
47
- *
48
- * @see {@link RunTaskCommandInput} for command's `input` shape.
49
- * @see {@link RunTaskCommandOutput} for command's `response` shape.
50
- * @see {@link ECSClientResolvedConfig | config} for command's `input` shape.
51
- *
52
- */
53
8
  class RunTaskCommand extends smithy_client_1.Command {
54
- // Start section: command_properties
55
- // End section: command_properties
56
9
  constructor(input) {
57
- // Start section: command_constructor
58
10
  super();
59
11
  this.input = input;
60
- // End section: command_constructor
61
12
  }
62
- /**
63
- * @internal
64
- */
65
13
  resolveMiddleware(clientStack, configuration, options) {
66
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
67
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>Starts a new task from the specified task definition on the specified container
10
- * instance or instances.</p>
11
- * <p>Alternatively, you can use <a>RunTask</a> to place tasks for you. For more
12
- * information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/scheduling_tasks.html">Scheduling Tasks</a> in the
13
- * <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, StartTaskCommand } from "@aws-sdk/client-ecs"; // ES Modules import
18
- * // const { ECSClient, StartTaskCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
19
- * const client = new ECSClient(config);
20
- * const command = new StartTaskCommand(input);
21
- * const response = await client.send(command);
22
- * ```
23
- *
24
- * @see {@link StartTaskCommandInput} for command's `input` shape.
25
- * @see {@link StartTaskCommandOutput} for command's `response` shape.
26
- * @see {@link ECSClientResolvedConfig | config} for command's `input` shape.
27
- *
28
- */
29
8
  class StartTaskCommand 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,47 +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>Stops a running task. Any tags associated with the task will be deleted.</p>
10
- * <p>When <a>StopTask</a> is called on a task, the equivalent of <code>docker
11
- * stop</code> is issued to the containers running in the task. This results in a
12
- * <code>SIGTERM</code> value and a default 30-second timeout, after which the
13
- * <code>SIGKILL</code> value is sent and the containers are forcibly stopped. If the
14
- * container handles the <code>SIGTERM</code> value gracefully and exits within 30 seconds
15
- * from receiving it, no <code>SIGKILL</code> value is sent.</p>
16
- * <note>
17
- * <p>The default 30-second timeout can be configured on the Amazon ECS container agent with
18
- * the <code>ECS_CONTAINER_STOP_TIMEOUT</code> variable. For more information, see
19
- * <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html">Amazon ECS Container Agent Configuration</a> in the
20
- * <i>Amazon Elastic Container Service Developer Guide</i>.</p>
21
- * </note>
22
- * @example
23
- * Use a bare-bones client and the command you need to make an API call.
24
- * ```javascript
25
- * import { ECSClient, StopTaskCommand } from "@aws-sdk/client-ecs"; // ES Modules import
26
- * // const { ECSClient, StopTaskCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
27
- * const client = new ECSClient(config);
28
- * const command = new StopTaskCommand(input);
29
- * const response = await client.send(command);
30
- * ```
31
- *
32
- * @see {@link StopTaskCommandInput} for command's `input` shape.
33
- * @see {@link StopTaskCommandOutput} for command's `response` shape.
34
- * @see {@link ECSClientResolvedConfig | config} for command's `input` shape.
35
- *
36
- */
37
8
  class StopTaskCommand extends smithy_client_1.Command {
38
- // Start section: command_properties
39
- // End section: command_properties
40
9
  constructor(input) {
41
- // Start section: command_constructor
42
10
  super();
43
11
  this.input = input;
44
- // End section: command_constructor
45
12
  }
46
- /**
47
- * @internal
48
- */
49
13
  resolveMiddleware(clientStack, configuration, options) {
50
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
51
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
13
- * acknowledge that an attachment 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, SubmitAttachmentStateChangesCommand } from "@aws-sdk/client-ecs"; // ES Modules import
18
- * // const { ECSClient, SubmitAttachmentStateChangesCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
19
- * const client = new ECSClient(config);
20
- * const command = new SubmitAttachmentStateChangesCommand(input);
21
- * const response = await client.send(command);
22
- * ```
23
- *
24
- * @see {@link SubmitAttachmentStateChangesCommandInput} for command's `input` shape.
25
- * @see {@link SubmitAttachmentStateChangesCommandOutput} for command's `response` shape.
26
- * @see {@link ECSClientResolvedConfig | config} for command's `input` shape.
27
- *
28
- */
29
8
  class SubmitAttachmentStateChangesCommand 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);