@aws-sdk/client-ecs 3.1021.0 → 3.1022.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 (119) hide show
  1. package/README.md +91 -7
  2. package/dist-cjs/index.js +530 -33
  3. package/dist-cjs/models/errors.js +37 -11
  4. package/dist-cjs/schemas/schemas_0.js +508 -100
  5. package/dist-es/ECS.js +34 -0
  6. package/dist-es/commands/CreateDaemonCommand.js +16 -0
  7. package/dist-es/commands/DeleteDaemonCommand.js +16 -0
  8. package/dist-es/commands/DeleteDaemonTaskDefinitionCommand.js +16 -0
  9. package/dist-es/commands/DescribeDaemonCommand.js +16 -0
  10. package/dist-es/commands/DescribeDaemonDeploymentsCommand.js +16 -0
  11. package/dist-es/commands/DescribeDaemonRevisionsCommand.js +16 -0
  12. package/dist-es/commands/DescribeDaemonTaskDefinitionCommand.js +16 -0
  13. package/dist-es/commands/ListDaemonDeploymentsCommand.js +16 -0
  14. package/dist-es/commands/ListDaemonTaskDefinitionsCommand.js +16 -0
  15. package/dist-es/commands/ListDaemonsCommand.js +16 -0
  16. package/dist-es/commands/RegisterDaemonTaskDefinitionCommand.js +16 -0
  17. package/dist-es/commands/UpdateDaemonCommand.js +16 -0
  18. package/dist-es/commands/index.js +12 -0
  19. package/dist-es/index.js +1 -0
  20. package/dist-es/models/enums.js +72 -33
  21. package/dist-es/models/errors.js +32 -8
  22. package/dist-es/models/models_1.js +1 -0
  23. package/dist-es/schemas/schemas_0.js +500 -93
  24. package/dist-es/waiters/index.js +5 -0
  25. package/dist-es/waiters/waitForDaemonActive.js +40 -0
  26. package/dist-es/waiters/waitForDaemonDeploymentStopped.js +54 -0
  27. package/dist-es/waiters/waitForDaemonDeploymentSuccessful.js +99 -0
  28. package/dist-es/waiters/waitForDaemonTaskDefinitionActive.js +49 -0
  29. package/dist-es/waiters/waitForDaemonTaskDefinitionDeleted.js +31 -0
  30. package/dist-types/ECS.d.ts +116 -0
  31. package/dist-types/ECSClient.d.ts +14 -2
  32. package/dist-types/commands/CreateDaemonCommand.d.ts +150 -0
  33. package/dist-types/commands/CreateTaskSetCommand.d.ts +1 -1
  34. package/dist-types/commands/DeleteDaemonCommand.d.ts +121 -0
  35. package/dist-types/commands/DeleteDaemonTaskDefinitionCommand.d.ts +101 -0
  36. package/dist-types/commands/DeleteTaskDefinitionsCommand.d.ts +1 -0
  37. package/dist-types/commands/DeleteTaskSetCommand.d.ts +1 -1
  38. package/dist-types/commands/DeregisterContainerInstanceCommand.d.ts +1 -1
  39. package/dist-types/commands/DeregisterTaskDefinitionCommand.d.ts +1 -0
  40. package/dist-types/commands/DescribeContainerInstancesCommand.d.ts +1 -1
  41. package/dist-types/commands/DescribeDaemonCommand.d.ts +148 -0
  42. package/dist-types/commands/DescribeDaemonDeploymentsCommand.d.ts +229 -0
  43. package/dist-types/commands/DescribeDaemonRevisionsCommand.d.ts +155 -0
  44. package/dist-types/commands/DescribeDaemonTaskDefinitionCommand.d.ts +286 -0
  45. package/dist-types/commands/DescribeTaskDefinitionCommand.d.ts +1 -0
  46. package/dist-types/commands/DescribeTaskSetsCommand.d.ts +1 -1
  47. package/dist-types/commands/DescribeTasksCommand.d.ts +1 -1
  48. package/dist-types/commands/GetTaskProtectionCommand.d.ts +1 -1
  49. package/dist-types/commands/ListDaemonDeploymentsCommand.d.ts +145 -0
  50. package/dist-types/commands/ListDaemonTaskDefinitionsCommand.d.ts +129 -0
  51. package/dist-types/commands/ListDaemonsCommand.d.ts +133 -0
  52. package/dist-types/commands/ListTaskDefinitionsCommand.d.ts +2 -1
  53. package/dist-types/commands/ListTasksCommand.d.ts +1 -0
  54. package/dist-types/commands/RegisterContainerInstanceCommand.d.ts +1 -1
  55. package/dist-types/commands/RegisterDaemonTaskDefinitionCommand.d.ts +277 -0
  56. package/dist-types/commands/RegisterTaskDefinitionCommand.d.ts +2 -1
  57. package/dist-types/commands/RunTaskCommand.d.ts +1 -1
  58. package/dist-types/commands/StartTaskCommand.d.ts +1 -1
  59. package/dist-types/commands/StopTaskCommand.d.ts +1 -1
  60. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  61. package/dist-types/commands/UpdateContainerAgentCommand.d.ts +1 -1
  62. package/dist-types/commands/UpdateContainerInstancesStateCommand.d.ts +1 -1
  63. package/dist-types/commands/UpdateDaemonCommand.d.ts +149 -0
  64. package/dist-types/commands/UpdateTaskProtectionCommand.d.ts +1 -1
  65. package/dist-types/commands/UpdateTaskSetCommand.d.ts +1 -1
  66. package/dist-types/commands/index.d.ts +12 -0
  67. package/dist-types/index.d.ts +1 -0
  68. package/dist-types/models/enums.d.ts +155 -60
  69. package/dist-types/models/errors.d.ts +32 -8
  70. package/dist-types/models/models_0.d.ts +2630 -2613
  71. package/dist-types/models/models_1.d.ts +1245 -0
  72. package/dist-types/schemas/schemas_0.d.ts +58 -0
  73. package/dist-types/ts3.4/ECS.d.ts +251 -0
  74. package/dist-types/ts3.4/ECSClient.d.ts +72 -0
  75. package/dist-types/ts3.4/commands/CreateDaemonCommand.d.ts +47 -0
  76. package/dist-types/ts3.4/commands/CreateTaskSetCommand.d.ts +1 -1
  77. package/dist-types/ts3.4/commands/DeleteDaemonCommand.d.ts +47 -0
  78. package/dist-types/ts3.4/commands/DeleteDaemonTaskDefinitionCommand.d.ts +51 -0
  79. package/dist-types/ts3.4/commands/DeleteTaskSetCommand.d.ts +1 -1
  80. package/dist-types/ts3.4/commands/DescribeDaemonCommand.d.ts +50 -0
  81. package/dist-types/ts3.4/commands/DescribeDaemonDeploymentsCommand.d.ts +51 -0
  82. package/dist-types/ts3.4/commands/DescribeDaemonRevisionsCommand.d.ts +51 -0
  83. package/dist-types/ts3.4/commands/DescribeDaemonTaskDefinitionCommand.d.ts +51 -0
  84. package/dist-types/ts3.4/commands/DescribeTaskSetsCommand.d.ts +1 -1
  85. package/dist-types/ts3.4/commands/DescribeTasksCommand.d.ts +1 -1
  86. package/dist-types/ts3.4/commands/GetTaskProtectionCommand.d.ts +1 -1
  87. package/dist-types/ts3.4/commands/ListDaemonDeploymentsCommand.d.ts +51 -0
  88. package/dist-types/ts3.4/commands/ListDaemonTaskDefinitionsCommand.d.ts +51 -0
  89. package/dist-types/ts3.4/commands/ListDaemonsCommand.d.ts +47 -0
  90. package/dist-types/ts3.4/commands/ListTaskDefinitionsCommand.d.ts +2 -4
  91. package/dist-types/ts3.4/commands/RegisterDaemonTaskDefinitionCommand.d.ts +51 -0
  92. package/dist-types/ts3.4/commands/RegisterTaskDefinitionCommand.d.ts +1 -1
  93. package/dist-types/ts3.4/commands/RunTaskCommand.d.ts +1 -1
  94. package/dist-types/ts3.4/commands/StartTaskCommand.d.ts +1 -1
  95. package/dist-types/ts3.4/commands/StopTaskCommand.d.ts +1 -1
  96. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  97. package/dist-types/ts3.4/commands/UpdateDaemonCommand.d.ts +47 -0
  98. package/dist-types/ts3.4/commands/UpdateTaskProtectionCommand.d.ts +1 -1
  99. package/dist-types/ts3.4/commands/UpdateTaskSetCommand.d.ts +1 -1
  100. package/dist-types/ts3.4/commands/index.d.ts +12 -0
  101. package/dist-types/ts3.4/index.d.ts +1 -0
  102. package/dist-types/ts3.4/models/enums.d.ts +92 -40
  103. package/dist-types/ts3.4/models/errors.d.ts +21 -7
  104. package/dist-types/ts3.4/models/models_0.d.ts +338 -324
  105. package/dist-types/ts3.4/models/models_1.d.ts +322 -0
  106. package/dist-types/ts3.4/schemas/schemas_0.d.ts +58 -0
  107. package/dist-types/ts3.4/waiters/index.d.ts +5 -0
  108. package/dist-types/ts3.4/waiters/waitForDaemonActive.d.ts +11 -0
  109. package/dist-types/ts3.4/waiters/waitForDaemonDeploymentStopped.d.ts +11 -0
  110. package/dist-types/ts3.4/waiters/waitForDaemonDeploymentSuccessful.d.ts +11 -0
  111. package/dist-types/ts3.4/waiters/waitForDaemonTaskDefinitionActive.d.ts +11 -0
  112. package/dist-types/ts3.4/waiters/waitForDaemonTaskDefinitionDeleted.d.ts +11 -0
  113. package/dist-types/waiters/index.d.ts +5 -0
  114. package/dist-types/waiters/waitForDaemonActive.d.ts +14 -0
  115. package/dist-types/waiters/waitForDaemonDeploymentStopped.d.ts +14 -0
  116. package/dist-types/waiters/waitForDaemonDeploymentSuccessful.d.ts +14 -0
  117. package/dist-types/waiters/waitForDaemonTaskDefinitionActive.d.ts +14 -0
  118. package/dist-types/waiters/waitForDaemonTaskDefinitionDeleted.d.ts +14 -0
  119. package/package.json +1 -1
@@ -0,0 +1,277 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECSClient";
4
+ import type { RegisterDaemonTaskDefinitionRequest, RegisterDaemonTaskDefinitionResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link RegisterDaemonTaskDefinitionCommand}.
14
+ */
15
+ export interface RegisterDaemonTaskDefinitionCommandInput extends RegisterDaemonTaskDefinitionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link RegisterDaemonTaskDefinitionCommand}.
21
+ */
22
+ export interface RegisterDaemonTaskDefinitionCommandOutput extends RegisterDaemonTaskDefinitionResponse, __MetadataBearer {
23
+ }
24
+ declare const RegisterDaemonTaskDefinitionCommand_base: {
25
+ new (input: RegisterDaemonTaskDefinitionCommandInput): import("@smithy/smithy-client").CommandImpl<RegisterDaemonTaskDefinitionCommandInput, RegisterDaemonTaskDefinitionCommandOutput, ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: RegisterDaemonTaskDefinitionCommandInput): import("@smithy/smithy-client").CommandImpl<RegisterDaemonTaskDefinitionCommandInput, RegisterDaemonTaskDefinitionCommandOutput, ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Registers a new daemon task definition from the supplied <code>family</code> and <code>containerDefinitions</code>. Optionally, you can add data volumes to your containers with the <code>volumes</code> parameter. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/daemon-task-definitions.html">Daemon task definitions</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p> <p>A daemon task definition is a template that describes the containers that form a daemon. Daemons deploy cross-cutting software agents such as security monitoring, telemetry, and logging across your Amazon ECS infrastructure.</p> <p>Each time you call <code>RegisterDaemonTaskDefinition</code>, a new revision of the daemon task definition is created. You can't modify a revision after you register it.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { ECSClient, RegisterDaemonTaskDefinitionCommand } from "@aws-sdk/client-ecs"; // ES Modules import
35
+ * // const { ECSClient, RegisterDaemonTaskDefinitionCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
36
+ * // import type { ECSClientConfig } from "@aws-sdk/client-ecs";
37
+ * const config = {}; // type is ECSClientConfig
38
+ * const client = new ECSClient(config);
39
+ * const input = { // RegisterDaemonTaskDefinitionRequest
40
+ * family: "STRING_VALUE", // required
41
+ * taskRoleArn: "STRING_VALUE",
42
+ * executionRoleArn: "STRING_VALUE",
43
+ * containerDefinitions: [ // DaemonContainerDefinitionList // required
44
+ * { // DaemonContainerDefinition
45
+ * name: "STRING_VALUE",
46
+ * image: "STRING_VALUE", // required
47
+ * memory: Number("int"),
48
+ * memoryReservation: Number("int"),
49
+ * repositoryCredentials: { // RepositoryCredentials
50
+ * credentialsParameter: "STRING_VALUE", // required
51
+ * },
52
+ * healthCheck: { // HealthCheck
53
+ * command: [ // StringList // required
54
+ * "STRING_VALUE",
55
+ * ],
56
+ * interval: Number("int"),
57
+ * timeout: Number("int"),
58
+ * retries: Number("int"),
59
+ * startPeriod: Number("int"),
60
+ * },
61
+ * cpu: Number("int"),
62
+ * essential: true || false,
63
+ * entryPoint: [
64
+ * "STRING_VALUE",
65
+ * ],
66
+ * command: [
67
+ * "STRING_VALUE",
68
+ * ],
69
+ * workingDirectory: "STRING_VALUE",
70
+ * environmentFiles: [ // EnvironmentFiles
71
+ * { // EnvironmentFile
72
+ * value: "STRING_VALUE", // required
73
+ * type: "s3", // required
74
+ * },
75
+ * ],
76
+ * environment: [ // EnvironmentVariables
77
+ * { // KeyValuePair
78
+ * name: "STRING_VALUE",
79
+ * value: "STRING_VALUE",
80
+ * },
81
+ * ],
82
+ * secrets: [ // SecretList
83
+ * { // Secret
84
+ * name: "STRING_VALUE", // required
85
+ * valueFrom: "STRING_VALUE", // required
86
+ * },
87
+ * ],
88
+ * readonlyRootFilesystem: true || false,
89
+ * mountPoints: [ // MountPointList
90
+ * { // MountPoint
91
+ * sourceVolume: "STRING_VALUE",
92
+ * containerPath: "STRING_VALUE",
93
+ * readOnly: true || false,
94
+ * },
95
+ * ],
96
+ * logConfiguration: { // LogConfiguration
97
+ * logDriver: "json-file" || "syslog" || "journald" || "gelf" || "fluentd" || "awslogs" || "splunk" || "awsfirelens", // required
98
+ * options: { // LogConfigurationOptionsMap
99
+ * "<keys>": "STRING_VALUE",
100
+ * },
101
+ * secretOptions: [
102
+ * {
103
+ * name: "STRING_VALUE", // required
104
+ * valueFrom: "STRING_VALUE", // required
105
+ * },
106
+ * ],
107
+ * },
108
+ * firelensConfiguration: { // FirelensConfiguration
109
+ * type: "fluentd" || "fluentbit", // required
110
+ * options: { // FirelensConfigurationOptionsMap
111
+ * "<keys>": "STRING_VALUE",
112
+ * },
113
+ * },
114
+ * privileged: true || false,
115
+ * user: "STRING_VALUE",
116
+ * ulimits: [ // UlimitList
117
+ * { // Ulimit
118
+ * name: "core" || "cpu" || "data" || "fsize" || "locks" || "memlock" || "msgqueue" || "nice" || "nofile" || "nproc" || "rss" || "rtprio" || "rttime" || "sigpending" || "stack", // required
119
+ * softLimit: Number("int"), // required
120
+ * hardLimit: Number("int"), // required
121
+ * },
122
+ * ],
123
+ * linuxParameters: { // DaemonLinuxParameters
124
+ * capabilities: { // KernelCapabilities
125
+ * add: "<StringList>",
126
+ * drop: "<StringList>",
127
+ * },
128
+ * devices: [ // DevicesList
129
+ * { // Device
130
+ * hostPath: "STRING_VALUE", // required
131
+ * containerPath: "STRING_VALUE",
132
+ * permissions: [ // DeviceCgroupPermissions
133
+ * "read" || "write" || "mknod",
134
+ * ],
135
+ * },
136
+ * ],
137
+ * initProcessEnabled: true || false,
138
+ * tmpfs: [ // TmpfsList
139
+ * { // Tmpfs
140
+ * containerPath: "STRING_VALUE", // required
141
+ * size: Number("int"), // required
142
+ * mountOptions: "<StringList>",
143
+ * },
144
+ * ],
145
+ * },
146
+ * dependsOn: [ // ContainerDependencies
147
+ * { // ContainerDependency
148
+ * containerName: "STRING_VALUE", // required
149
+ * condition: "START" || "COMPLETE" || "SUCCESS" || "HEALTHY", // required
150
+ * },
151
+ * ],
152
+ * startTimeout: Number("int"),
153
+ * stopTimeout: Number("int"),
154
+ * systemControls: [ // SystemControls
155
+ * { // SystemControl
156
+ * namespace: "STRING_VALUE",
157
+ * value: "STRING_VALUE",
158
+ * },
159
+ * ],
160
+ * interactive: true || false,
161
+ * pseudoTerminal: true || false,
162
+ * restartPolicy: { // ContainerRestartPolicy
163
+ * enabled: true || false, // required
164
+ * ignoredExitCodes: [ // IntegerList
165
+ * Number("int"),
166
+ * ],
167
+ * restartAttemptPeriod: Number("int"),
168
+ * },
169
+ * },
170
+ * ],
171
+ * cpu: "STRING_VALUE",
172
+ * memory: "STRING_VALUE",
173
+ * volumes: [ // DaemonVolumeList
174
+ * { // DaemonVolume
175
+ * name: "STRING_VALUE",
176
+ * host: { // HostVolumeProperties
177
+ * sourcePath: "STRING_VALUE",
178
+ * },
179
+ * },
180
+ * ],
181
+ * tags: [ // Tags
182
+ * { // Tag
183
+ * key: "STRING_VALUE",
184
+ * value: "STRING_VALUE",
185
+ * },
186
+ * ],
187
+ * };
188
+ * const command = new RegisterDaemonTaskDefinitionCommand(input);
189
+ * const response = await client.send(command);
190
+ * // { // RegisterDaemonTaskDefinitionResponse
191
+ * // daemonTaskDefinitionArn: "STRING_VALUE",
192
+ * // };
193
+ *
194
+ * ```
195
+ *
196
+ * @param RegisterDaemonTaskDefinitionCommandInput - {@link RegisterDaemonTaskDefinitionCommandInput}
197
+ * @returns {@link RegisterDaemonTaskDefinitionCommandOutput}
198
+ * @see {@link RegisterDaemonTaskDefinitionCommandInput} for command's `input` shape.
199
+ * @see {@link RegisterDaemonTaskDefinitionCommandOutput} for command's `response` shape.
200
+ * @see {@link ECSClientResolvedConfig | config} for ECSClient's `config` shape.
201
+ *
202
+ * @throws {@link AccessDeniedException} (client fault)
203
+ * <p>You don't have authorization to perform the requested action.</p>
204
+ *
205
+ * @throws {@link ClientException} (client fault)
206
+ * <p>These errors are usually caused by a client action. This client action might be using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Or, it might be specifying an identifier that isn't valid.</p>
207
+ *
208
+ * @throws {@link InvalidParameterException} (client fault)
209
+ * <p>The specified parameter isn't valid. Review the available parameters for the API request.</p> <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS service event messages</a>. </p>
210
+ *
211
+ * @throws {@link LimitExceededException} (client fault)
212
+ * <p>The limit for the resource was exceeded.</p>
213
+ *
214
+ * @throws {@link ServerException} (server fault)
215
+ * <p>These errors are usually caused by a server issue.</p>
216
+ *
217
+ * @throws {@link ECSServiceException}
218
+ * <p>Base exception class for all service exceptions from ECS service.</p>
219
+ *
220
+ *
221
+ * @example To register a daemon task definition
222
+ * ```javascript
223
+ * // This example registers a daemon task definition in the monitoring-agent family with a single container that runs a CloudWatch agent.
224
+ * const input = {
225
+ * containerDefinitions: [
226
+ * {
227
+ * cpu: 128,
228
+ * environment: [
229
+ * {
230
+ * name: "USE_DEFAULT_CONFIG",
231
+ * value: "true"
232
+ * }
233
+ * ],
234
+ * essential: true,
235
+ * image: "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:latest",
236
+ * logConfiguration: {
237
+ * logDriver: "awslogs",
238
+ * options: {
239
+ * awslogs-group: "/ecs/daemon/monitoring-agent",
240
+ * awslogs-region: "us-east-1",
241
+ * awslogs-stream-prefix: "ecs"
242
+ * }
243
+ * },
244
+ * memory: 256,
245
+ * name: "cloudwatch-agent"
246
+ * }
247
+ * ],
248
+ * cpu: "128",
249
+ * executionRoleArn: "arn:aws:iam::123456789012:role/ecsTaskExecutionRole",
250
+ * family: "monitoring-agent",
251
+ * memory: "256",
252
+ * taskRoleArn: "arn:aws:iam::123456789012:role/ecsDaemonTaskRole"
253
+ * };
254
+ * const command = new RegisterDaemonTaskDefinitionCommand(input);
255
+ * const response = await client.send(command);
256
+ * /* response is
257
+ * {
258
+ * daemonTaskDefinitionArn: "arn:aws:ecs:us-east-1:123456789012:daemon-task-definition/monitoring-agent:1"
259
+ * }
260
+ * *\/
261
+ * ```
262
+ *
263
+ * @public
264
+ */
265
+ export declare class RegisterDaemonTaskDefinitionCommand extends RegisterDaemonTaskDefinitionCommand_base {
266
+ /** @internal type navigation helper, not in runtime. */
267
+ protected static __types: {
268
+ api: {
269
+ input: RegisterDaemonTaskDefinitionRequest;
270
+ output: RegisterDaemonTaskDefinitionResponse;
271
+ };
272
+ sdk: {
273
+ input: RegisterDaemonTaskDefinitionCommandInput;
274
+ output: RegisterDaemonTaskDefinitionCommandOutput;
275
+ };
276
+ };
277
+ }
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import type { ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECSClient";
4
- import type { RegisterTaskDefinitionRequest, RegisterTaskDefinitionResponse } from "../models/models_0";
4
+ import type { RegisterTaskDefinitionRequest, RegisterTaskDefinitionResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -566,6 +566,7 @@ declare const RegisterTaskDefinitionCommand_base: {
566
566
  * // },
567
567
  * // registeredAt: new Date("TIMESTAMP"),
568
568
  * // deregisteredAt: new Date("TIMESTAMP"),
569
+ * // deleteRequestedAt: new Date("TIMESTAMP"),
569
570
  * // registeredBy: "STRING_VALUE",
570
571
  * // ephemeralStorage: { // EphemeralStorage
571
572
  * // sizeInGiB: Number("int"), // required
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import type { ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECSClient";
4
- import type { RunTaskRequest, RunTaskResponse } from "../models/models_0";
4
+ import type { RunTaskRequest, RunTaskResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import type { ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECSClient";
4
- import type { StartTaskRequest, StartTaskResponse } from "../models/models_0";
4
+ import type { StartTaskRequest, StartTaskResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import type { ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECSClient";
4
- import type { StopTaskRequest, StopTaskResponse } from "../models/models_0";
4
+ import type { StopTaskRequest, StopTaskResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import type { ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECSClient";
4
- import type { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
4
+ import type { UntagResourceRequest, UntagResourceResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -115,7 +115,7 @@ declare const UpdateContainerAgentCommand_base: {
115
115
  * // overallStatus: "OK" || "IMPAIRED" || "INSUFFICIENT_DATA" || "INITIALIZING",
116
116
  * // details: [ // InstanceHealthCheckResultList
117
117
  * // { // InstanceHealthCheckResult
118
- * // type: "CONTAINER_RUNTIME",
118
+ * // type: "CONTAINER_RUNTIME" || "ACCELERATED_COMPUTE" || "DAEMON",
119
119
  * // status: "OK" || "IMPAIRED" || "INSUFFICIENT_DATA" || "INITIALIZING",
120
120
  * // lastUpdated: new Date("TIMESTAMP"),
121
121
  * // lastStatusChange: new Date("TIMESTAMP"),
@@ -119,7 +119,7 @@ declare const UpdateContainerInstancesStateCommand_base: {
119
119
  * // overallStatus: "OK" || "IMPAIRED" || "INSUFFICIENT_DATA" || "INITIALIZING",
120
120
  * // details: [ // InstanceHealthCheckResultList
121
121
  * // { // InstanceHealthCheckResult
122
- * // type: "CONTAINER_RUNTIME",
122
+ * // type: "CONTAINER_RUNTIME" || "ACCELERATED_COMPUTE" || "DAEMON",
123
123
  * // status: "OK" || "IMPAIRED" || "INSUFFICIENT_DATA" || "INITIALIZING",
124
124
  * // lastUpdated: new Date("TIMESTAMP"),
125
125
  * // lastStatusChange: new Date("TIMESTAMP"),
@@ -0,0 +1,149 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECSClient";
4
+ import type { UpdateDaemonRequest, UpdateDaemonResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateDaemonCommand}.
14
+ */
15
+ export interface UpdateDaemonCommandInput extends UpdateDaemonRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateDaemonCommand}.
21
+ */
22
+ export interface UpdateDaemonCommandOutput extends UpdateDaemonResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateDaemonCommand_base: {
25
+ new (input: UpdateDaemonCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateDaemonCommandInput, UpdateDaemonCommandOutput, ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateDaemonCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateDaemonCommandInput, UpdateDaemonCommandOutput, ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Updates the specified daemon. When you update a daemon, a new deployment is triggered that progressively rolls out the changes to the container instances associated with the daemon's capacity providers. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/daemon-deployments.html">Daemon deployments</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p> <p>Amazon ECS drains existing container instances and provisions new instances with the updated daemon. Amazon ECS automatically launches replacement tasks for your services.</p> <important> <p>Updating a daemon triggers a rolling deployment that drains and replaces container instances. Plan updates during maintenance windows to minimize impact on running services.</p> </important> <note> <p>ECS Managed Daemons is only supported for Amazon ECS Managed Instances Capacity Providers.</p> </note>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { ECSClient, UpdateDaemonCommand } from "@aws-sdk/client-ecs"; // ES Modules import
35
+ * // const { ECSClient, UpdateDaemonCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
36
+ * // import type { ECSClientConfig } from "@aws-sdk/client-ecs";
37
+ * const config = {}; // type is ECSClientConfig
38
+ * const client = new ECSClient(config);
39
+ * const input = { // UpdateDaemonRequest
40
+ * daemonArn: "STRING_VALUE", // required
41
+ * daemonTaskDefinitionArn: "STRING_VALUE", // required
42
+ * capacityProviderArns: [ // StringList // required
43
+ * "STRING_VALUE",
44
+ * ],
45
+ * deploymentConfiguration: { // DaemonDeploymentConfiguration
46
+ * drainPercent: Number("double"),
47
+ * alarms: { // DaemonAlarmConfiguration
48
+ * alarmNames: [
49
+ * "STRING_VALUE",
50
+ * ],
51
+ * enable: true || false,
52
+ * },
53
+ * bakeTimeInMinutes: Number("int"),
54
+ * },
55
+ * propagateTags: "DAEMON" || "NONE",
56
+ * enableECSManagedTags: true || false,
57
+ * enableExecuteCommand: true || false,
58
+ * };
59
+ * const command = new UpdateDaemonCommand(input);
60
+ * const response = await client.send(command);
61
+ * // { // UpdateDaemonResponse
62
+ * // daemonArn: "STRING_VALUE",
63
+ * // status: "ACTIVE" || "DELETE_IN_PROGRESS",
64
+ * // createdAt: new Date("TIMESTAMP"),
65
+ * // updatedAt: new Date("TIMESTAMP"),
66
+ * // deploymentArn: "STRING_VALUE",
67
+ * // };
68
+ *
69
+ * ```
70
+ *
71
+ * @param UpdateDaemonCommandInput - {@link UpdateDaemonCommandInput}
72
+ * @returns {@link UpdateDaemonCommandOutput}
73
+ * @see {@link UpdateDaemonCommandInput} for command's `input` shape.
74
+ * @see {@link UpdateDaemonCommandOutput} for command's `response` shape.
75
+ * @see {@link ECSClientResolvedConfig | config} for ECSClient's `config` shape.
76
+ *
77
+ * @throws {@link AccessDeniedException} (client fault)
78
+ * <p>You don't have authorization to perform the requested action.</p>
79
+ *
80
+ * @throws {@link ClientException} (client fault)
81
+ * <p>These errors are usually caused by a client action. This client action might be using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Or, it might be specifying an identifier that isn't valid.</p>
82
+ *
83
+ * @throws {@link ClusterNotFoundException} (client fault)
84
+ * <p>The specified cluster wasn't found. You can view your available clusters with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListClusters.html">ListClusters</a>. Amazon ECS clusters are Region specific.</p>
85
+ *
86
+ * @throws {@link DaemonNotActiveException} (client fault)
87
+ * <p>The specified daemon isn't active. You can't update a daemon that's inactive. If you have previously deleted a daemon, you can re-create it with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateDaemon.html">CreateDaemon</a>.</p>
88
+ *
89
+ * @throws {@link DaemonNotFoundException} (client fault)
90
+ * <p>The specified daemon wasn't found. You can view your available daemons with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListDaemons.html">ListDaemons</a>. Amazon ECS daemons are cluster specific and Region specific.</p>
91
+ *
92
+ * @throws {@link InvalidParameterException} (client fault)
93
+ * <p>The specified parameter isn't valid. Review the available parameters for the API request.</p> <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS service event messages</a>. </p>
94
+ *
95
+ * @throws {@link PlatformUnknownException} (client fault)
96
+ * <p>The specified platform version doesn't exist.</p>
97
+ *
98
+ * @throws {@link ServerException} (server fault)
99
+ * <p>These errors are usually caused by a server issue.</p>
100
+ *
101
+ * @throws {@link UnsupportedFeatureException} (client fault)
102
+ * <p>The specified task isn't supported in this Region.</p>
103
+ *
104
+ * @throws {@link ECSServiceException}
105
+ * <p>Base exception class for all service exceptions from ECS service.</p>
106
+ *
107
+ *
108
+ * @example To update a daemon
109
+ * ```javascript
110
+ * // This example updates the my-monitoring-daemon daemon to use a new daemon task definition revision.
111
+ * const input = {
112
+ * capacityProviderArns: [
113
+ * "arn:aws:ecs:us-east-1:123456789012:capacity-provider/my-capacity-provider"
114
+ * ],
115
+ * daemonArn: "arn:aws:ecs:us-east-1:123456789012:daemon/my-cluster/my-monitoring-daemon",
116
+ * daemonTaskDefinitionArn: "arn:aws:ecs:us-east-1:123456789012:daemon-task-definition/monitoring-agent:2",
117
+ * deploymentConfiguration: {
118
+ * bakeTimeInMinutes: 5,
119
+ * drainPercent: 10.0
120
+ * }
121
+ * };
122
+ * const command = new UpdateDaemonCommand(input);
123
+ * const response = await client.send(command);
124
+ * /* response is
125
+ * {
126
+ * createdAt: "2025-03-15T12:00:00.000Z",
127
+ * daemonArn: "arn:aws:ecs:us-east-1:123456789012:daemon/my-cluster/my-monitoring-daemon",
128
+ * deploymentArn: "arn:aws:ecs:us-east-1:123456789012:daemon-deployment/my-cluster/my-monitoring-daemon/xY9zA8bC7dE6fG5h",
129
+ * status: "ACTIVE",
130
+ * updatedAt: "2025-03-20T15:30:00.000Z"
131
+ * }
132
+ * *\/
133
+ * ```
134
+ *
135
+ * @public
136
+ */
137
+ export declare class UpdateDaemonCommand extends UpdateDaemonCommand_base {
138
+ /** @internal type navigation helper, not in runtime. */
139
+ protected static __types: {
140
+ api: {
141
+ input: UpdateDaemonRequest;
142
+ output: UpdateDaemonResponse;
143
+ };
144
+ sdk: {
145
+ input: UpdateDaemonCommandInput;
146
+ output: UpdateDaemonCommandOutput;
147
+ };
148
+ };
149
+ }
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import type { ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECSClient";
4
- import type { UpdateTaskProtectionRequest, UpdateTaskProtectionResponse } from "../models/models_0";
4
+ import type { UpdateTaskProtectionRequest, UpdateTaskProtectionResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import type { ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECSClient";
4
- import type { UpdateTaskSetRequest, UpdateTaskSetResponse } from "../models/models_0";
4
+ import type { UpdateTaskSetRequest, UpdateTaskSetResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,5 +1,6 @@
1
1
  export * from "./CreateCapacityProviderCommand";
2
2
  export * from "./CreateClusterCommand";
3
+ export * from "./CreateDaemonCommand";
3
4
  export * from "./CreateExpressGatewayServiceCommand";
4
5
  export * from "./CreateServiceCommand";
5
6
  export * from "./CreateTaskSetCommand";
@@ -7,6 +8,8 @@ export * from "./DeleteAccountSettingCommand";
7
8
  export * from "./DeleteAttributesCommand";
8
9
  export * from "./DeleteCapacityProviderCommand";
9
10
  export * from "./DeleteClusterCommand";
11
+ export * from "./DeleteDaemonCommand";
12
+ export * from "./DeleteDaemonTaskDefinitionCommand";
10
13
  export * from "./DeleteExpressGatewayServiceCommand";
11
14
  export * from "./DeleteServiceCommand";
12
15
  export * from "./DeleteTaskDefinitionsCommand";
@@ -16,6 +19,10 @@ export * from "./DeregisterTaskDefinitionCommand";
16
19
  export * from "./DescribeCapacityProvidersCommand";
17
20
  export * from "./DescribeClustersCommand";
18
21
  export * from "./DescribeContainerInstancesCommand";
22
+ export * from "./DescribeDaemonCommand";
23
+ export * from "./DescribeDaemonDeploymentsCommand";
24
+ export * from "./DescribeDaemonRevisionsCommand";
25
+ export * from "./DescribeDaemonTaskDefinitionCommand";
19
26
  export * from "./DescribeExpressGatewayServiceCommand";
20
27
  export * from "./DescribeServiceDeploymentsCommand";
21
28
  export * from "./DescribeServiceRevisionsCommand";
@@ -30,6 +37,9 @@ export * from "./ListAccountSettingsCommand";
30
37
  export * from "./ListAttributesCommand";
31
38
  export * from "./ListClustersCommand";
32
39
  export * from "./ListContainerInstancesCommand";
40
+ export * from "./ListDaemonDeploymentsCommand";
41
+ export * from "./ListDaemonTaskDefinitionsCommand";
42
+ export * from "./ListDaemonsCommand";
33
43
  export * from "./ListServiceDeploymentsCommand";
34
44
  export * from "./ListServicesByNamespaceCommand";
35
45
  export * from "./ListServicesCommand";
@@ -42,6 +52,7 @@ export * from "./PutAccountSettingDefaultCommand";
42
52
  export * from "./PutAttributesCommand";
43
53
  export * from "./PutClusterCapacityProvidersCommand";
44
54
  export * from "./RegisterContainerInstanceCommand";
55
+ export * from "./RegisterDaemonTaskDefinitionCommand";
45
56
  export * from "./RegisterTaskDefinitionCommand";
46
57
  export * from "./RunTaskCommand";
47
58
  export * from "./StartTaskCommand";
@@ -57,6 +68,7 @@ export * from "./UpdateClusterCommand";
57
68
  export * from "./UpdateClusterSettingsCommand";
58
69
  export * from "./UpdateContainerAgentCommand";
59
70
  export * from "./UpdateContainerInstancesStateCommand";
71
+ export * from "./UpdateDaemonCommand";
60
72
  export * from "./UpdateExpressGatewayServiceCommand";
61
73
  export * from "./UpdateServiceCommand";
62
74
  export * from "./UpdateServicePrimaryTaskSetCommand";
@@ -15,4 +15,5 @@ export * from "./waiters";
15
15
  export * from "./models/enums";
16
16
  export * from "./models/errors";
17
17
  export * from "./models/models_0";
18
+ export * from "./models/models_1";
18
19
  export { ECSServiceException } from "./models/ECSServiceException";