@aws-sdk/client-ecs 3.1020.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 +6 -6
@@ -0,0 +1,229 @@
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 { DescribeDaemonDeploymentsRequest, DescribeDaemonDeploymentsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DescribeDaemonDeploymentsCommand}.
14
+ */
15
+ export interface DescribeDaemonDeploymentsCommandInput extends DescribeDaemonDeploymentsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DescribeDaemonDeploymentsCommand}.
21
+ */
22
+ export interface DescribeDaemonDeploymentsCommandOutput extends DescribeDaemonDeploymentsResponse, __MetadataBearer {
23
+ }
24
+ declare const DescribeDaemonDeploymentsCommand_base: {
25
+ new (input: DescribeDaemonDeploymentsCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeDaemonDeploymentsCommandInput, DescribeDaemonDeploymentsCommandOutput, ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DescribeDaemonDeploymentsCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeDaemonDeploymentsCommandInput, DescribeDaemonDeploymentsCommandOutput, ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Describes one or more of your daemon deployments.</p> <p>A daemon deployment orchestrates the progressive rollout of daemon task updates across container instances managed by the daemon's capacity providers. Each deployment includes circuit breaker and alarm-based rollback capabilities.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { ECSClient, DescribeDaemonDeploymentsCommand } from "@aws-sdk/client-ecs"; // ES Modules import
35
+ * // const { ECSClient, DescribeDaemonDeploymentsCommand } = 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 = { // DescribeDaemonDeploymentsRequest
40
+ * daemonDeploymentArns: [ // StringList // required
41
+ * "STRING_VALUE",
42
+ * ],
43
+ * };
44
+ * const command = new DescribeDaemonDeploymentsCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // DescribeDaemonDeploymentsResponse
47
+ * // failures: [ // Failures
48
+ * // { // Failure
49
+ * // arn: "STRING_VALUE",
50
+ * // reason: "STRING_VALUE",
51
+ * // detail: "STRING_VALUE",
52
+ * // },
53
+ * // ],
54
+ * // daemonDeployments: [ // DaemonDeploymentList
55
+ * // { // DaemonDeployment
56
+ * // daemonDeploymentArn: "STRING_VALUE",
57
+ * // clusterArn: "STRING_VALUE",
58
+ * // status: "PENDING" || "SUCCESSFUL" || "STOPPED" || "STOP_REQUESTED" || "IN_PROGRESS" || "ROLLBACK_IN_PROGRESS" || "ROLLBACK_SUCCESSFUL" || "ROLLBACK_FAILED",
59
+ * // statusReason: "STRING_VALUE",
60
+ * // targetDaemonRevision: { // DaemonDeploymentRevisionDetail
61
+ * // arn: "STRING_VALUE",
62
+ * // capacityProviders: [ // DaemonDeploymentCapacityProviderList
63
+ * // { // DaemonDeploymentCapacityProvider
64
+ * // arn: "STRING_VALUE",
65
+ * // runningInstanceCount: Number("int"),
66
+ * // drainingInstanceCount: Number("int"),
67
+ * // },
68
+ * // ],
69
+ * // totalRunningInstanceCount: Number("int"),
70
+ * // totalDrainingInstanceCount: Number("int"),
71
+ * // },
72
+ * // sourceDaemonRevisions: [ // DaemonDeploymentRevisionDetailList
73
+ * // {
74
+ * // arn: "STRING_VALUE",
75
+ * // capacityProviders: [
76
+ * // {
77
+ * // arn: "STRING_VALUE",
78
+ * // runningInstanceCount: Number("int"),
79
+ * // drainingInstanceCount: Number("int"),
80
+ * // },
81
+ * // ],
82
+ * // totalRunningInstanceCount: Number("int"),
83
+ * // totalDrainingInstanceCount: Number("int"),
84
+ * // },
85
+ * // ],
86
+ * // circuitBreaker: { // DaemonCircuitBreaker
87
+ * // failureCount: Number("int"),
88
+ * // status: "TRIGGERED" || "MONITORING" || "MONITORING_COMPLETE" || "DISABLED",
89
+ * // threshold: Number("int"),
90
+ * // },
91
+ * // alarms: { // DaemonDeploymentAlarms
92
+ * // status: "TRIGGERED" || "MONITORING" || "MONITORING_COMPLETE" || "DISABLED",
93
+ * // alarmNames: [ // StringList
94
+ * // "STRING_VALUE",
95
+ * // ],
96
+ * // triggeredAlarmNames: [
97
+ * // "STRING_VALUE",
98
+ * // ],
99
+ * // },
100
+ * // rollback: { // DaemonRollback
101
+ * // reason: "STRING_VALUE",
102
+ * // startedAt: new Date("TIMESTAMP"),
103
+ * // rollbackTargetDaemonRevisionArn: "STRING_VALUE",
104
+ * // rollbackCapacityProviders: [
105
+ * // "STRING_VALUE",
106
+ * // ],
107
+ * // },
108
+ * // deploymentConfiguration: { // DaemonDeploymentConfiguration
109
+ * // drainPercent: Number("double"),
110
+ * // alarms: { // DaemonAlarmConfiguration
111
+ * // alarmNames: [
112
+ * // "STRING_VALUE",
113
+ * // ],
114
+ * // enable: true || false,
115
+ * // },
116
+ * // bakeTimeInMinutes: Number("int"),
117
+ * // },
118
+ * // createdAt: new Date("TIMESTAMP"),
119
+ * // startedAt: new Date("TIMESTAMP"),
120
+ * // stoppedAt: new Date("TIMESTAMP"),
121
+ * // finishedAt: new Date("TIMESTAMP"),
122
+ * // },
123
+ * // ],
124
+ * // };
125
+ *
126
+ * ```
127
+ *
128
+ * @param DescribeDaemonDeploymentsCommandInput - {@link DescribeDaemonDeploymentsCommandInput}
129
+ * @returns {@link DescribeDaemonDeploymentsCommandOutput}
130
+ * @see {@link DescribeDaemonDeploymentsCommandInput} for command's `input` shape.
131
+ * @see {@link DescribeDaemonDeploymentsCommandOutput} for command's `response` shape.
132
+ * @see {@link ECSClientResolvedConfig | config} for ECSClient's `config` shape.
133
+ *
134
+ * @throws {@link AccessDeniedException} (client fault)
135
+ * <p>You don't have authorization to perform the requested action.</p>
136
+ *
137
+ * @throws {@link ClientException} (client fault)
138
+ * <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>
139
+ *
140
+ * @throws {@link ClusterNotFoundException} (client fault)
141
+ * <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>
142
+ *
143
+ * @throws {@link InvalidParameterException} (client fault)
144
+ * <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>
145
+ *
146
+ * @throws {@link ServerException} (server fault)
147
+ * <p>These errors are usually caused by a server issue.</p>
148
+ *
149
+ * @throws {@link UnsupportedFeatureException} (client fault)
150
+ * <p>The specified task isn't supported in this Region.</p>
151
+ *
152
+ * @throws {@link ECSServiceException}
153
+ * <p>Base exception class for all service exceptions from ECS service.</p>
154
+ *
155
+ *
156
+ * @example To describe daemon deployments
157
+ * ```javascript
158
+ * // This example describes a daemon deployment for the my-monitoring-daemon daemon.
159
+ * const input = {
160
+ * daemonDeploymentArns: [
161
+ * "arn:aws:ecs:us-east-1:123456789012:daemon-deployment/my-cluster/my-monitoring-daemon/aB1cD2eF3gH4iJ5k"
162
+ * ]
163
+ * };
164
+ * const command = new DescribeDaemonDeploymentsCommand(input);
165
+ * const response = await client.send(command);
166
+ * /* response is
167
+ * {
168
+ * daemonDeployments: [
169
+ * {
170
+ * alarms: {
171
+ * alarmNames: [],
172
+ * status: "DISABLED",
173
+ * triggeredAlarmNames: []
174
+ * },
175
+ * circuitBreaker: {
176
+ * failureCount: 0,
177
+ * status: "MONITORING_COMPLETE",
178
+ * threshold: 10
179
+ * },
180
+ * clusterArn: "arn:aws:ecs:us-east-1:123456789012:cluster/my-cluster",
181
+ * createdAt: "2025-03-15T12:00:00.000Z",
182
+ * daemonDeploymentArn: "arn:aws:ecs:us-east-1:123456789012:daemon-deployment/my-cluster/my-monitoring-daemon/aB1cD2eF3gH4iJ5k",
183
+ * deploymentConfiguration: {
184
+ * alarms: {
185
+ * alarmNames: [],
186
+ * enable: false
187
+ * },
188
+ * bakeTimeInMinutes: 5,
189
+ * drainPercent: 10.0
190
+ * },
191
+ * finishedAt: "2025-03-15T12:15:00.000Z",
192
+ * sourceDaemonRevisions: [],
193
+ * startedAt: "2025-03-15T12:00:05.000Z",
194
+ * status: "SUCCESSFUL",
195
+ * statusReason: "Deployment completed successfully.",
196
+ * targetDaemonRevision: {
197
+ * arn: "arn:aws:ecs:us-east-1:123456789012:daemon-revision/my-cluster/my-monitoring-daemon/4980306466373577095",
198
+ * capacityProviders: [
199
+ * {
200
+ * arn: "arn:aws:ecs:us-east-1:123456789012:capacity-provider/my-capacity-provider",
201
+ * drainingInstanceCount: 0,
202
+ * runningInstanceCount: 3
203
+ * }
204
+ * ],
205
+ * totalDrainingInstanceCount: 0,
206
+ * totalRunningInstanceCount: 3
207
+ * }
208
+ * }
209
+ * ],
210
+ * failures: []
211
+ * }
212
+ * *\/
213
+ * ```
214
+ *
215
+ * @public
216
+ */
217
+ export declare class DescribeDaemonDeploymentsCommand extends DescribeDaemonDeploymentsCommand_base {
218
+ /** @internal type navigation helper, not in runtime. */
219
+ protected static __types: {
220
+ api: {
221
+ input: DescribeDaemonDeploymentsRequest;
222
+ output: DescribeDaemonDeploymentsResponse;
223
+ };
224
+ sdk: {
225
+ input: DescribeDaemonDeploymentsCommandInput;
226
+ output: DescribeDaemonDeploymentsCommandOutput;
227
+ };
228
+ };
229
+ }
@@ -0,0 +1,155 @@
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 { DescribeDaemonRevisionsRequest, DescribeDaemonRevisionsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DescribeDaemonRevisionsCommand}.
14
+ */
15
+ export interface DescribeDaemonRevisionsCommandInput extends DescribeDaemonRevisionsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DescribeDaemonRevisionsCommand}.
21
+ */
22
+ export interface DescribeDaemonRevisionsCommandOutput extends DescribeDaemonRevisionsResponse, __MetadataBearer {
23
+ }
24
+ declare const DescribeDaemonRevisionsCommand_base: {
25
+ new (input: DescribeDaemonRevisionsCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeDaemonRevisionsCommandInput, DescribeDaemonRevisionsCommandOutput, ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DescribeDaemonRevisionsCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeDaemonRevisionsCommandInput, DescribeDaemonRevisionsCommandOutput, ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Describes one or more of your daemon revisions.</p> <p>A daemon revision is a snapshot of a daemon's configuration at the time a deployment was initiated. It captures the daemon task definition, container images, tag propagation, and execute command settings. Daemon revisions are immutable.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { ECSClient, DescribeDaemonRevisionsCommand } from "@aws-sdk/client-ecs"; // ES Modules import
35
+ * // const { ECSClient, DescribeDaemonRevisionsCommand } = 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 = { // DescribeDaemonRevisionsRequest
40
+ * daemonRevisionArns: [ // StringList // required
41
+ * "STRING_VALUE",
42
+ * ],
43
+ * };
44
+ * const command = new DescribeDaemonRevisionsCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // DescribeDaemonRevisionsResponse
47
+ * // daemonRevisions: [ // DaemonRevisions
48
+ * // { // DaemonRevision
49
+ * // daemonRevisionArn: "STRING_VALUE",
50
+ * // clusterArn: "STRING_VALUE",
51
+ * // daemonArn: "STRING_VALUE",
52
+ * // daemonTaskDefinitionArn: "STRING_VALUE",
53
+ * // createdAt: new Date("TIMESTAMP"),
54
+ * // containerImages: [ // DaemonContainerImages
55
+ * // { // DaemonContainerImage
56
+ * // containerName: "STRING_VALUE",
57
+ * // imageDigest: "STRING_VALUE",
58
+ * // image: "STRING_VALUE",
59
+ * // },
60
+ * // ],
61
+ * // propagateTags: "DAEMON" || "NONE",
62
+ * // enableECSManagedTags: true || false,
63
+ * // enableExecuteCommand: true || false,
64
+ * // },
65
+ * // ],
66
+ * // failures: [ // Failures
67
+ * // { // Failure
68
+ * // arn: "STRING_VALUE",
69
+ * // reason: "STRING_VALUE",
70
+ * // detail: "STRING_VALUE",
71
+ * // },
72
+ * // ],
73
+ * // };
74
+ *
75
+ * ```
76
+ *
77
+ * @param DescribeDaemonRevisionsCommandInput - {@link DescribeDaemonRevisionsCommandInput}
78
+ * @returns {@link DescribeDaemonRevisionsCommandOutput}
79
+ * @see {@link DescribeDaemonRevisionsCommandInput} for command's `input` shape.
80
+ * @see {@link DescribeDaemonRevisionsCommandOutput} for command's `response` shape.
81
+ * @see {@link ECSClientResolvedConfig | config} for ECSClient's `config` shape.
82
+ *
83
+ * @throws {@link AccessDeniedException} (client fault)
84
+ * <p>You don't have authorization to perform the requested action.</p>
85
+ *
86
+ * @throws {@link ClientException} (client fault)
87
+ * <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>
88
+ *
89
+ * @throws {@link ClusterNotFoundException} (client fault)
90
+ * <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>
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 ServerException} (server fault)
96
+ * <p>These errors are usually caused by a server issue.</p>
97
+ *
98
+ * @throws {@link UnsupportedFeatureException} (client fault)
99
+ * <p>The specified task isn't supported in this Region.</p>
100
+ *
101
+ * @throws {@link ECSServiceException}
102
+ * <p>Base exception class for all service exceptions from ECS service.</p>
103
+ *
104
+ *
105
+ * @example To describe daemon revisions
106
+ * ```javascript
107
+ * // This example describes a daemon revision for the my-monitoring-daemon daemon.
108
+ * const input = {
109
+ * daemonRevisionArns: [
110
+ * "arn:aws:ecs:us-east-1:123456789012:daemon-revision/my-cluster/my-monitoring-daemon/4980306466373577095"
111
+ * ]
112
+ * };
113
+ * const command = new DescribeDaemonRevisionsCommand(input);
114
+ * const response = await client.send(command);
115
+ * /* response is
116
+ * {
117
+ * daemonRevisions: [
118
+ * {
119
+ * clusterArn: "arn:aws:ecs:us-east-1:123456789012:cluster/my-cluster",
120
+ * containerImages: [
121
+ * {
122
+ * containerName: "cloudwatch-agent",
123
+ * image: "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:latest",
124
+ * imageDigest: "sha256:a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2"
125
+ * }
126
+ * ],
127
+ * createdAt: "2025-03-15T12:00:00.000Z",
128
+ * daemonArn: "arn:aws:ecs:us-east-1:123456789012:daemon/my-cluster/my-monitoring-daemon",
129
+ * daemonRevisionArn: "arn:aws:ecs:us-east-1:123456789012:daemon-revision/my-cluster/my-monitoring-daemon/4980306466373577095",
130
+ * daemonTaskDefinitionArn: "arn:aws:ecs:us-east-1:123456789012:daemon-task-definition/monitoring-agent:1",
131
+ * enableECSManagedTags: false,
132
+ * enableExecuteCommand: false,
133
+ * propagateTags: "NONE"
134
+ * }
135
+ * ],
136
+ * failures: []
137
+ * }
138
+ * *\/
139
+ * ```
140
+ *
141
+ * @public
142
+ */
143
+ export declare class DescribeDaemonRevisionsCommand extends DescribeDaemonRevisionsCommand_base {
144
+ /** @internal type navigation helper, not in runtime. */
145
+ protected static __types: {
146
+ api: {
147
+ input: DescribeDaemonRevisionsRequest;
148
+ output: DescribeDaemonRevisionsResponse;
149
+ };
150
+ sdk: {
151
+ input: DescribeDaemonRevisionsCommandInput;
152
+ output: DescribeDaemonRevisionsCommandOutput;
153
+ };
154
+ };
155
+ }
@@ -0,0 +1,286 @@
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 { DescribeDaemonTaskDefinitionRequest, DescribeDaemonTaskDefinitionResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DescribeDaemonTaskDefinitionCommand}.
14
+ */
15
+ export interface DescribeDaemonTaskDefinitionCommandInput extends DescribeDaemonTaskDefinitionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DescribeDaemonTaskDefinitionCommand}.
21
+ */
22
+ export interface DescribeDaemonTaskDefinitionCommandOutput extends DescribeDaemonTaskDefinitionResponse, __MetadataBearer {
23
+ }
24
+ declare const DescribeDaemonTaskDefinitionCommand_base: {
25
+ new (input: DescribeDaemonTaskDefinitionCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeDaemonTaskDefinitionCommandInput, DescribeDaemonTaskDefinitionCommandOutput, ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DescribeDaemonTaskDefinitionCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeDaemonTaskDefinitionCommandInput, DescribeDaemonTaskDefinitionCommandOutput, ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Describes a daemon task definition. You can specify a <code>family</code> and <code>revision</code> to find information about a specific daemon task definition, or you can simply specify the family to find the latest <code>ACTIVE</code> revision in that family.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { ECSClient, DescribeDaemonTaskDefinitionCommand } from "@aws-sdk/client-ecs"; // ES Modules import
35
+ * // const { ECSClient, DescribeDaemonTaskDefinitionCommand } = 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 = { // DescribeDaemonTaskDefinitionRequest
40
+ * daemonTaskDefinition: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new DescribeDaemonTaskDefinitionCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // DescribeDaemonTaskDefinitionResponse
45
+ * // daemonTaskDefinition: { // DaemonTaskDefinition
46
+ * // daemonTaskDefinitionArn: "STRING_VALUE",
47
+ * // family: "STRING_VALUE",
48
+ * // revision: Number("int"),
49
+ * // taskRoleArn: "STRING_VALUE",
50
+ * // executionRoleArn: "STRING_VALUE",
51
+ * // containerDefinitions: [ // DaemonContainerDefinitionList
52
+ * // { // DaemonContainerDefinition
53
+ * // name: "STRING_VALUE",
54
+ * // image: "STRING_VALUE", // required
55
+ * // memory: Number("int"),
56
+ * // memoryReservation: Number("int"),
57
+ * // repositoryCredentials: { // RepositoryCredentials
58
+ * // credentialsParameter: "STRING_VALUE", // required
59
+ * // },
60
+ * // healthCheck: { // HealthCheck
61
+ * // command: [ // StringList // required
62
+ * // "STRING_VALUE",
63
+ * // ],
64
+ * // interval: Number("int"),
65
+ * // timeout: Number("int"),
66
+ * // retries: Number("int"),
67
+ * // startPeriod: Number("int"),
68
+ * // },
69
+ * // cpu: Number("int"),
70
+ * // essential: true || false,
71
+ * // entryPoint: [
72
+ * // "STRING_VALUE",
73
+ * // ],
74
+ * // command: [
75
+ * // "STRING_VALUE",
76
+ * // ],
77
+ * // workingDirectory: "STRING_VALUE",
78
+ * // environmentFiles: [ // EnvironmentFiles
79
+ * // { // EnvironmentFile
80
+ * // value: "STRING_VALUE", // required
81
+ * // type: "s3", // required
82
+ * // },
83
+ * // ],
84
+ * // environment: [ // EnvironmentVariables
85
+ * // { // KeyValuePair
86
+ * // name: "STRING_VALUE",
87
+ * // value: "STRING_VALUE",
88
+ * // },
89
+ * // ],
90
+ * // secrets: [ // SecretList
91
+ * // { // Secret
92
+ * // name: "STRING_VALUE", // required
93
+ * // valueFrom: "STRING_VALUE", // required
94
+ * // },
95
+ * // ],
96
+ * // readonlyRootFilesystem: true || false,
97
+ * // mountPoints: [ // MountPointList
98
+ * // { // MountPoint
99
+ * // sourceVolume: "STRING_VALUE",
100
+ * // containerPath: "STRING_VALUE",
101
+ * // readOnly: true || false,
102
+ * // },
103
+ * // ],
104
+ * // logConfiguration: { // LogConfiguration
105
+ * // logDriver: "json-file" || "syslog" || "journald" || "gelf" || "fluentd" || "awslogs" || "splunk" || "awsfirelens", // required
106
+ * // options: { // LogConfigurationOptionsMap
107
+ * // "<keys>": "STRING_VALUE",
108
+ * // },
109
+ * // secretOptions: [
110
+ * // {
111
+ * // name: "STRING_VALUE", // required
112
+ * // valueFrom: "STRING_VALUE", // required
113
+ * // },
114
+ * // ],
115
+ * // },
116
+ * // firelensConfiguration: { // FirelensConfiguration
117
+ * // type: "fluentd" || "fluentbit", // required
118
+ * // options: { // FirelensConfigurationOptionsMap
119
+ * // "<keys>": "STRING_VALUE",
120
+ * // },
121
+ * // },
122
+ * // privileged: true || false,
123
+ * // user: "STRING_VALUE",
124
+ * // ulimits: [ // UlimitList
125
+ * // { // Ulimit
126
+ * // name: "core" || "cpu" || "data" || "fsize" || "locks" || "memlock" || "msgqueue" || "nice" || "nofile" || "nproc" || "rss" || "rtprio" || "rttime" || "sigpending" || "stack", // required
127
+ * // softLimit: Number("int"), // required
128
+ * // hardLimit: Number("int"), // required
129
+ * // },
130
+ * // ],
131
+ * // linuxParameters: { // DaemonLinuxParameters
132
+ * // capabilities: { // KernelCapabilities
133
+ * // add: "<StringList>",
134
+ * // drop: "<StringList>",
135
+ * // },
136
+ * // devices: [ // DevicesList
137
+ * // { // Device
138
+ * // hostPath: "STRING_VALUE", // required
139
+ * // containerPath: "STRING_VALUE",
140
+ * // permissions: [ // DeviceCgroupPermissions
141
+ * // "read" || "write" || "mknod",
142
+ * // ],
143
+ * // },
144
+ * // ],
145
+ * // initProcessEnabled: true || false,
146
+ * // tmpfs: [ // TmpfsList
147
+ * // { // Tmpfs
148
+ * // containerPath: "STRING_VALUE", // required
149
+ * // size: Number("int"), // required
150
+ * // mountOptions: "<StringList>",
151
+ * // },
152
+ * // ],
153
+ * // },
154
+ * // dependsOn: [ // ContainerDependencies
155
+ * // { // ContainerDependency
156
+ * // containerName: "STRING_VALUE", // required
157
+ * // condition: "START" || "COMPLETE" || "SUCCESS" || "HEALTHY", // required
158
+ * // },
159
+ * // ],
160
+ * // startTimeout: Number("int"),
161
+ * // stopTimeout: Number("int"),
162
+ * // systemControls: [ // SystemControls
163
+ * // { // SystemControl
164
+ * // namespace: "STRING_VALUE",
165
+ * // value: "STRING_VALUE",
166
+ * // },
167
+ * // ],
168
+ * // interactive: true || false,
169
+ * // pseudoTerminal: true || false,
170
+ * // restartPolicy: { // ContainerRestartPolicy
171
+ * // enabled: true || false, // required
172
+ * // ignoredExitCodes: [ // IntegerList
173
+ * // Number("int"),
174
+ * // ],
175
+ * // restartAttemptPeriod: Number("int"),
176
+ * // },
177
+ * // },
178
+ * // ],
179
+ * // volumes: [ // DaemonVolumeList
180
+ * // { // DaemonVolume
181
+ * // name: "STRING_VALUE",
182
+ * // host: { // HostVolumeProperties
183
+ * // sourcePath: "STRING_VALUE",
184
+ * // },
185
+ * // },
186
+ * // ],
187
+ * // cpu: "STRING_VALUE",
188
+ * // memory: "STRING_VALUE",
189
+ * // status: "ACTIVE" || "DELETE_IN_PROGRESS" || "DELETED",
190
+ * // registeredAt: new Date("TIMESTAMP"),
191
+ * // deleteRequestedAt: new Date("TIMESTAMP"),
192
+ * // registeredBy: "STRING_VALUE",
193
+ * // },
194
+ * // };
195
+ *
196
+ * ```
197
+ *
198
+ * @param DescribeDaemonTaskDefinitionCommandInput - {@link DescribeDaemonTaskDefinitionCommandInput}
199
+ * @returns {@link DescribeDaemonTaskDefinitionCommandOutput}
200
+ * @see {@link DescribeDaemonTaskDefinitionCommandInput} for command's `input` shape.
201
+ * @see {@link DescribeDaemonTaskDefinitionCommandOutput} for command's `response` shape.
202
+ * @see {@link ECSClientResolvedConfig | config} for ECSClient's `config` shape.
203
+ *
204
+ * @throws {@link AccessDeniedException} (client fault)
205
+ * <p>You don't have authorization to perform the requested action.</p>
206
+ *
207
+ * @throws {@link ClientException} (client fault)
208
+ * <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>
209
+ *
210
+ * @throws {@link InvalidParameterException} (client fault)
211
+ * <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>
212
+ *
213
+ * @throws {@link ServerException} (server fault)
214
+ * <p>These errors are usually caused by a server issue.</p>
215
+ *
216
+ * @throws {@link ECSServiceException}
217
+ * <p>Base exception class for all service exceptions from ECS service.</p>
218
+ *
219
+ *
220
+ * @example To describe a daemon task definition
221
+ * ```javascript
222
+ * // This example describes the first revision of the monitoring-agent daemon task definition.
223
+ * const input = {
224
+ * daemonTaskDefinition: "monitoring-agent:1"
225
+ * };
226
+ * const command = new DescribeDaemonTaskDefinitionCommand(input);
227
+ * const response = await client.send(command);
228
+ * /* response is
229
+ * {
230
+ * daemonTaskDefinition: {
231
+ * containerDefinitions: [
232
+ * {
233
+ * cpu: 128,
234
+ * environment: [
235
+ * {
236
+ * name: "USE_DEFAULT_CONFIG",
237
+ * value: "true"
238
+ * }
239
+ * ],
240
+ * essential: true,
241
+ * image: "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:latest",
242
+ * logConfiguration: {
243
+ * logDriver: "awslogs",
244
+ * options: {
245
+ * awslogs-group: "/ecs/daemon/monitoring-agent",
246
+ * awslogs-region: "us-east-1",
247
+ * awslogs-stream-prefix: "ecs"
248
+ * }
249
+ * },
250
+ * memory: 256,
251
+ * mountPoints: [],
252
+ * name: "cloudwatch-agent",
253
+ * secrets: []
254
+ * }
255
+ * ],
256
+ * cpu: "128",
257
+ * daemonTaskDefinitionArn: "arn:aws:ecs:us-east-1:123456789012:daemon-task-definition/monitoring-agent:1",
258
+ * executionRoleArn: "arn:aws:iam::123456789012:role/ecsTaskExecutionRole",
259
+ * family: "monitoring-agent",
260
+ * memory: "256",
261
+ * registeredAt: "2025-03-15T10:30:00.000Z",
262
+ * registeredBy: "arn:aws:iam::123456789012:user/admin",
263
+ * revision: 1,
264
+ * status: "ACTIVE",
265
+ * taskRoleArn: "arn:aws:iam::123456789012:role/ecsDaemonTaskRole",
266
+ * volumes: []
267
+ * }
268
+ * }
269
+ * *\/
270
+ * ```
271
+ *
272
+ * @public
273
+ */
274
+ export declare class DescribeDaemonTaskDefinitionCommand extends DescribeDaemonTaskDefinitionCommand_base {
275
+ /** @internal type navigation helper, not in runtime. */
276
+ protected static __types: {
277
+ api: {
278
+ input: DescribeDaemonTaskDefinitionRequest;
279
+ output: DescribeDaemonTaskDefinitionResponse;
280
+ };
281
+ sdk: {
282
+ input: DescribeDaemonTaskDefinitionCommandInput;
283
+ output: DescribeDaemonTaskDefinitionCommandOutput;
284
+ };
285
+ };
286
+ }