@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,150 @@
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 { CreateDaemonRequest, CreateDaemonResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateDaemonCommand}.
14
+ */
15
+ export interface CreateDaemonCommandInput extends CreateDaemonRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateDaemonCommand}.
21
+ */
22
+ export interface CreateDaemonCommandOutput extends CreateDaemonResponse, __MetadataBearer {
23
+ }
24
+ declare const CreateDaemonCommand_base: {
25
+ new (input: CreateDaemonCommandInput): import("@smithy/smithy-client").CommandImpl<CreateDaemonCommandInput, CreateDaemonCommandOutput, ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CreateDaemonCommandInput): import("@smithy/smithy-client").CommandImpl<CreateDaemonCommandInput, CreateDaemonCommandOutput, ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Creates a new daemon in the specified cluster and capacity providers. A daemon deploys cross-cutting software agents such as security monitoring, telemetry, and logging independently across your Amazon ECS infrastructure.</p> <p>Amazon ECS deploys exactly one daemon task on each container instance of the specified capacity providers. When a container instance registers with the cluster, Amazon ECS automatically starts daemon tasks. Amazon ECS starts a daemon task before scheduling other tasks.</p> <p>Daemons are essential for instance health - if a daemon task stops, Amazon ECS automatically drains and replaces that container instance.</p> <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, CreateDaemonCommand } from "@aws-sdk/client-ecs"; // ES Modules import
35
+ * // const { ECSClient, CreateDaemonCommand } = 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 = { // CreateDaemonRequest
40
+ * daemonName: "STRING_VALUE", // required
41
+ * clusterArn: "STRING_VALUE",
42
+ * daemonTaskDefinitionArn: "STRING_VALUE", // required
43
+ * capacityProviderArns: [ // StringList // required
44
+ * "STRING_VALUE",
45
+ * ],
46
+ * deploymentConfiguration: { // DaemonDeploymentConfiguration
47
+ * drainPercent: Number("double"),
48
+ * alarms: { // DaemonAlarmConfiguration
49
+ * alarmNames: [
50
+ * "STRING_VALUE",
51
+ * ],
52
+ * enable: true || false,
53
+ * },
54
+ * bakeTimeInMinutes: Number("int"),
55
+ * },
56
+ * tags: [ // Tags
57
+ * { // Tag
58
+ * key: "STRING_VALUE",
59
+ * value: "STRING_VALUE",
60
+ * },
61
+ * ],
62
+ * propagateTags: "DAEMON" || "NONE",
63
+ * enableECSManagedTags: true || false,
64
+ * enableExecuteCommand: true || false,
65
+ * clientToken: "STRING_VALUE",
66
+ * };
67
+ * const command = new CreateDaemonCommand(input);
68
+ * const response = await client.send(command);
69
+ * // { // CreateDaemonResponse
70
+ * // daemonArn: "STRING_VALUE",
71
+ * // status: "ACTIVE" || "DELETE_IN_PROGRESS",
72
+ * // createdAt: new Date("TIMESTAMP"),
73
+ * // deploymentArn: "STRING_VALUE",
74
+ * // };
75
+ *
76
+ * ```
77
+ *
78
+ * @param CreateDaemonCommandInput - {@link CreateDaemonCommandInput}
79
+ * @returns {@link CreateDaemonCommandOutput}
80
+ * @see {@link CreateDaemonCommandInput} for command's `input` shape.
81
+ * @see {@link CreateDaemonCommandOutput} for command's `response` shape.
82
+ * @see {@link ECSClientResolvedConfig | config} for ECSClient's `config` shape.
83
+ *
84
+ * @throws {@link AccessDeniedException} (client fault)
85
+ * <p>You don't have authorization to perform the requested action.</p>
86
+ *
87
+ * @throws {@link ClientException} (client fault)
88
+ * <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>
89
+ *
90
+ * @throws {@link ClusterNotFoundException} (client fault)
91
+ * <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>
92
+ *
93
+ * @throws {@link InvalidParameterException} (client fault)
94
+ * <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>
95
+ *
96
+ * @throws {@link PlatformUnknownException} (client fault)
97
+ * <p>The specified platform version doesn't exist.</p>
98
+ *
99
+ * @throws {@link ServerException} (server fault)
100
+ * <p>These errors are usually caused by a server issue.</p>
101
+ *
102
+ * @throws {@link UnsupportedFeatureException} (client fault)
103
+ * <p>The specified task isn't supported in this Region.</p>
104
+ *
105
+ * @throws {@link ECSServiceException}
106
+ * <p>Base exception class for all service exceptions from ECS service.</p>
107
+ *
108
+ *
109
+ * @example To create a daemon
110
+ * ```javascript
111
+ * // This example creates a daemon named my-monitoring-daemon in the specified cluster that uses the monitoring-agent daemon task definition and deploys to the specified capacity provider.
112
+ * const input = {
113
+ * capacityProviderArns: [
114
+ * "arn:aws:ecs:us-east-1:123456789012:capacity-provider/my-capacity-provider"
115
+ * ],
116
+ * clusterArn: "arn:aws:ecs:us-east-1:123456789012:cluster/my-cluster",
117
+ * daemonName: "my-monitoring-daemon",
118
+ * daemonTaskDefinitionArn: "arn:aws:ecs:us-east-1:123456789012:daemon-task-definition/monitoring-agent:1",
119
+ * deploymentConfiguration: {
120
+ * bakeTimeInMinutes: 5,
121
+ * drainPercent: 10.0
122
+ * }
123
+ * };
124
+ * const command = new CreateDaemonCommand(input);
125
+ * const response = await client.send(command);
126
+ * /* response is
127
+ * {
128
+ * createdAt: "2025-03-15T12:00:00.000Z",
129
+ * daemonArn: "arn:aws:ecs:us-east-1:123456789012:daemon/my-cluster/my-monitoring-daemon",
130
+ * deploymentArn: "arn:aws:ecs:us-east-1:123456789012:daemon-deployment/my-cluster/my-monitoring-daemon/aB1cD2eF3gH4iJ5k",
131
+ * status: "ACTIVE"
132
+ * }
133
+ * *\/
134
+ * ```
135
+ *
136
+ * @public
137
+ */
138
+ export declare class CreateDaemonCommand extends CreateDaemonCommand_base {
139
+ /** @internal type navigation helper, not in runtime. */
140
+ protected static __types: {
141
+ api: {
142
+ input: CreateDaemonRequest;
143
+ output: CreateDaemonResponse;
144
+ };
145
+ sdk: {
146
+ input: CreateDaemonCommandInput;
147
+ output: CreateDaemonCommandOutput;
148
+ };
149
+ };
150
+ }
@@ -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 { CreateTaskSetRequest, CreateTaskSetResponse } from "../models/models_0";
4
+ import type { CreateTaskSetRequest, CreateTaskSetResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -0,0 +1,121 @@
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 { DeleteDaemonRequest, DeleteDaemonResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteDaemonCommand}.
14
+ */
15
+ export interface DeleteDaemonCommandInput extends DeleteDaemonRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteDaemonCommand}.
21
+ */
22
+ export interface DeleteDaemonCommandOutput extends DeleteDaemonResponse, __MetadataBearer {
23
+ }
24
+ declare const DeleteDaemonCommand_base: {
25
+ new (input: DeleteDaemonCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteDaemonCommandInput, DeleteDaemonCommandOutput, ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeleteDaemonCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteDaemonCommandInput, DeleteDaemonCommandOutput, ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes the specified daemon. The daemon must be in an <code>ACTIVE</code> state to be deleted. Deleting a daemon stops all running daemon tasks on the associated container instances. Amazon ECS drains existing container instances and provisions new instances without the deleted daemon. Amazon ECS automatically launches replacement tasks for your Amazon ECS services.</p> <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, DeleteDaemonCommand } from "@aws-sdk/client-ecs"; // ES Modules import
35
+ * // const { ECSClient, DeleteDaemonCommand } = 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 = { // DeleteDaemonRequest
40
+ * daemonArn: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new DeleteDaemonCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // DeleteDaemonResponse
45
+ * // daemonArn: "STRING_VALUE",
46
+ * // status: "ACTIVE" || "DELETE_IN_PROGRESS",
47
+ * // createdAt: new Date("TIMESTAMP"),
48
+ * // updatedAt: new Date("TIMESTAMP"),
49
+ * // deploymentArn: "STRING_VALUE",
50
+ * // };
51
+ *
52
+ * ```
53
+ *
54
+ * @param DeleteDaemonCommandInput - {@link DeleteDaemonCommandInput}
55
+ * @returns {@link DeleteDaemonCommandOutput}
56
+ * @see {@link DeleteDaemonCommandInput} for command's `input` shape.
57
+ * @see {@link DeleteDaemonCommandOutput} for command's `response` shape.
58
+ * @see {@link ECSClientResolvedConfig | config} for ECSClient's `config` shape.
59
+ *
60
+ * @throws {@link AccessDeniedException} (client fault)
61
+ * <p>You don't have authorization to perform the requested action.</p>
62
+ *
63
+ * @throws {@link ClientException} (client fault)
64
+ * <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>
65
+ *
66
+ * @throws {@link ClusterNotFoundException} (client fault)
67
+ * <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>
68
+ *
69
+ * @throws {@link DaemonNotActiveException} (client fault)
70
+ * <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>
71
+ *
72
+ * @throws {@link DaemonNotFoundException} (client fault)
73
+ * <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>
74
+ *
75
+ * @throws {@link InvalidParameterException} (client fault)
76
+ * <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>
77
+ *
78
+ * @throws {@link ServerException} (server fault)
79
+ * <p>These errors are usually caused by a server issue.</p>
80
+ *
81
+ * @throws {@link UnsupportedFeatureException} (client fault)
82
+ * <p>The specified task isn't supported in this Region.</p>
83
+ *
84
+ * @throws {@link ECSServiceException}
85
+ * <p>Base exception class for all service exceptions from ECS service.</p>
86
+ *
87
+ *
88
+ * @example To delete a daemon
89
+ * ```javascript
90
+ * // This example deletes the my-monitoring-daemon daemon.
91
+ * const input = {
92
+ * daemonArn: "arn:aws:ecs:us-east-1:123456789012:daemon/my-cluster/my-monitoring-daemon"
93
+ * };
94
+ * const command = new DeleteDaemonCommand(input);
95
+ * const response = await client.send(command);
96
+ * /* response is
97
+ * {
98
+ * createdAt: "2025-03-15T12:00:00.000Z",
99
+ * daemonArn: "arn:aws:ecs:us-east-1:123456789012:daemon/my-cluster/my-monitoring-daemon",
100
+ * deploymentArn: "arn:aws:ecs:us-east-1:123456789012:daemon-deployment/my-cluster/my-monitoring-daemon/mN3oP4qR5sT6uV7w",
101
+ * status: "DELETE_IN_PROGRESS",
102
+ * updatedAt: "2025-03-25T09:00:00.000Z"
103
+ * }
104
+ * *\/
105
+ * ```
106
+ *
107
+ * @public
108
+ */
109
+ export declare class DeleteDaemonCommand extends DeleteDaemonCommand_base {
110
+ /** @internal type navigation helper, not in runtime. */
111
+ protected static __types: {
112
+ api: {
113
+ input: DeleteDaemonRequest;
114
+ output: DeleteDaemonResponse;
115
+ };
116
+ sdk: {
117
+ input: DeleteDaemonCommandInput;
118
+ output: DeleteDaemonCommandOutput;
119
+ };
120
+ };
121
+ }
@@ -0,0 +1,101 @@
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 { DeleteDaemonTaskDefinitionRequest, DeleteDaemonTaskDefinitionResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteDaemonTaskDefinitionCommand}.
14
+ */
15
+ export interface DeleteDaemonTaskDefinitionCommandInput extends DeleteDaemonTaskDefinitionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteDaemonTaskDefinitionCommand}.
21
+ */
22
+ export interface DeleteDaemonTaskDefinitionCommandOutput extends DeleteDaemonTaskDefinitionResponse, __MetadataBearer {
23
+ }
24
+ declare const DeleteDaemonTaskDefinitionCommand_base: {
25
+ new (input: DeleteDaemonTaskDefinitionCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteDaemonTaskDefinitionCommandInput, DeleteDaemonTaskDefinitionCommandOutput, ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeleteDaemonTaskDefinitionCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteDaemonTaskDefinitionCommandInput, DeleteDaemonTaskDefinitionCommandOutput, ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes the specified daemon task definition. After a daemon task definition is deleted, no new daemons can be created using this definition. Existing daemons that reference the deleted daemon task definition continue to run.</p> <p>A daemon task definition must be in an <code>ACTIVE</code> state to be deleted.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { ECSClient, DeleteDaemonTaskDefinitionCommand } from "@aws-sdk/client-ecs"; // ES Modules import
35
+ * // const { ECSClient, DeleteDaemonTaskDefinitionCommand } = 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 = { // DeleteDaemonTaskDefinitionRequest
40
+ * daemonTaskDefinition: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new DeleteDaemonTaskDefinitionCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // DeleteDaemonTaskDefinitionResponse
45
+ * // daemonTaskDefinitionArn: "STRING_VALUE",
46
+ * // };
47
+ *
48
+ * ```
49
+ *
50
+ * @param DeleteDaemonTaskDefinitionCommandInput - {@link DeleteDaemonTaskDefinitionCommandInput}
51
+ * @returns {@link DeleteDaemonTaskDefinitionCommandOutput}
52
+ * @see {@link DeleteDaemonTaskDefinitionCommandInput} for command's `input` shape.
53
+ * @see {@link DeleteDaemonTaskDefinitionCommandOutput} for command's `response` shape.
54
+ * @see {@link ECSClientResolvedConfig | config} for ECSClient's `config` shape.
55
+ *
56
+ * @throws {@link AccessDeniedException} (client fault)
57
+ * <p>You don't have authorization to perform the requested action.</p>
58
+ *
59
+ * @throws {@link ClientException} (client fault)
60
+ * <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>
61
+ *
62
+ * @throws {@link InvalidParameterException} (client fault)
63
+ * <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>
64
+ *
65
+ * @throws {@link ServerException} (server fault)
66
+ * <p>These errors are usually caused by a server issue.</p>
67
+ *
68
+ * @throws {@link ECSServiceException}
69
+ * <p>Base exception class for all service exceptions from ECS service.</p>
70
+ *
71
+ *
72
+ * @example To delete a daemon task definition
73
+ * ```javascript
74
+ * // This example deletes the first revision of the monitoring-agent daemon task definition.
75
+ * const input = {
76
+ * daemonTaskDefinition: "monitoring-agent:1"
77
+ * };
78
+ * const command = new DeleteDaemonTaskDefinitionCommand(input);
79
+ * const response = await client.send(command);
80
+ * /* response is
81
+ * {
82
+ * daemonTaskDefinitionArn: "arn:aws:ecs:us-east-1:123456789012:daemon-task-definition/monitoring-agent:1"
83
+ * }
84
+ * *\/
85
+ * ```
86
+ *
87
+ * @public
88
+ */
89
+ export declare class DeleteDaemonTaskDefinitionCommand extends DeleteDaemonTaskDefinitionCommand_base {
90
+ /** @internal type navigation helper, not in runtime. */
91
+ protected static __types: {
92
+ api: {
93
+ input: DeleteDaemonTaskDefinitionRequest;
94
+ output: DeleteDaemonTaskDefinitionResponse;
95
+ };
96
+ sdk: {
97
+ input: DeleteDaemonTaskDefinitionCommandInput;
98
+ output: DeleteDaemonTaskDefinitionCommandOutput;
99
+ };
100
+ };
101
+ }
@@ -311,6 +311,7 @@ declare const DeleteTaskDefinitionsCommand_base: {
311
311
  * // },
312
312
  * // registeredAt: new Date("TIMESTAMP"),
313
313
  * // deregisteredAt: new Date("TIMESTAMP"),
314
+ * // deleteRequestedAt: new Date("TIMESTAMP"),
314
315
  * // registeredBy: "STRING_VALUE",
315
316
  * // ephemeralStorage: { // EphemeralStorage
316
317
  * // 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 { DeleteTaskSetRequest, DeleteTaskSetResponse } from "../models/models_0";
4
+ import type { DeleteTaskSetRequest, DeleteTaskSetResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -116,7 +116,7 @@ declare const DeregisterContainerInstanceCommand_base: {
116
116
  * // overallStatus: "OK" || "IMPAIRED" || "INSUFFICIENT_DATA" || "INITIALIZING",
117
117
  * // details: [ // InstanceHealthCheckResultList
118
118
  * // { // InstanceHealthCheckResult
119
- * // type: "CONTAINER_RUNTIME",
119
+ * // type: "CONTAINER_RUNTIME" || "ACCELERATED_COMPUTE" || "DAEMON",
120
120
  * // status: "OK" || "IMPAIRED" || "INSUFFICIENT_DATA" || "INITIALIZING",
121
121
  * // lastUpdated: new Date("TIMESTAMP"),
122
122
  * // lastStatusChange: new Date("TIMESTAMP"),
@@ -308,6 +308,7 @@ declare const DeregisterTaskDefinitionCommand_base: {
308
308
  * // },
309
309
  * // registeredAt: new Date("TIMESTAMP"),
310
310
  * // deregisteredAt: new Date("TIMESTAMP"),
311
+ * // deleteRequestedAt: new Date("TIMESTAMP"),
311
312
  * // registeredBy: "STRING_VALUE",
312
313
  * // ephemeralStorage: { // EphemeralStorage
313
314
  * // sizeInGiB: Number("int"), // required
@@ -121,7 +121,7 @@ declare const DescribeContainerInstancesCommand_base: {
121
121
  * // overallStatus: "OK" || "IMPAIRED" || "INSUFFICIENT_DATA" || "INITIALIZING",
122
122
  * // details: [ // InstanceHealthCheckResultList
123
123
  * // { // InstanceHealthCheckResult
124
- * // type: "CONTAINER_RUNTIME",
124
+ * // type: "CONTAINER_RUNTIME" || "ACCELERATED_COMPUTE" || "DAEMON",
125
125
  * // status: "OK" || "IMPAIRED" || "INSUFFICIENT_DATA" || "INITIALIZING",
126
126
  * // lastUpdated: new Date("TIMESTAMP"),
127
127
  * // lastStatusChange: new Date("TIMESTAMP"),
@@ -0,0 +1,148 @@
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 { DescribeDaemonRequest, DescribeDaemonResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DescribeDaemonCommand}.
14
+ */
15
+ export interface DescribeDaemonCommandInput extends DescribeDaemonRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DescribeDaemonCommand}.
21
+ */
22
+ export interface DescribeDaemonCommandOutput extends DescribeDaemonResponse, __MetadataBearer {
23
+ }
24
+ declare const DescribeDaemonCommand_base: {
25
+ new (input: DescribeDaemonCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeDaemonCommandInput, DescribeDaemonCommandOutput, ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DescribeDaemonCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeDaemonCommandInput, DescribeDaemonCommandOutput, ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Describes the specified daemon.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { ECSClient, DescribeDaemonCommand } from "@aws-sdk/client-ecs"; // ES Modules import
35
+ * // const { ECSClient, DescribeDaemonCommand } = 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 = { // DescribeDaemonRequest
40
+ * daemonArn: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new DescribeDaemonCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // DescribeDaemonResponse
45
+ * // daemon: { // DaemonDetail
46
+ * // daemonArn: "STRING_VALUE",
47
+ * // clusterArn: "STRING_VALUE",
48
+ * // status: "ACTIVE" || "DELETE_IN_PROGRESS",
49
+ * // currentRevisions: [ // DaemonRevisionDetailList
50
+ * // { // DaemonRevisionDetail
51
+ * // arn: "STRING_VALUE",
52
+ * // capacityProviders: [ // DaemonCapacityProviderList
53
+ * // { // DaemonCapacityProvider
54
+ * // arn: "STRING_VALUE",
55
+ * // runningCount: Number("int"),
56
+ * // },
57
+ * // ],
58
+ * // totalRunningCount: Number("int"),
59
+ * // },
60
+ * // ],
61
+ * // deploymentArn: "STRING_VALUE",
62
+ * // createdAt: new Date("TIMESTAMP"),
63
+ * // updatedAt: new Date("TIMESTAMP"),
64
+ * // },
65
+ * // };
66
+ *
67
+ * ```
68
+ *
69
+ * @param DescribeDaemonCommandInput - {@link DescribeDaemonCommandInput}
70
+ * @returns {@link DescribeDaemonCommandOutput}
71
+ * @see {@link DescribeDaemonCommandInput} for command's `input` shape.
72
+ * @see {@link DescribeDaemonCommandOutput} for command's `response` shape.
73
+ * @see {@link ECSClientResolvedConfig | config} for ECSClient's `config` shape.
74
+ *
75
+ * @throws {@link AccessDeniedException} (client fault)
76
+ * <p>You don't have authorization to perform the requested action.</p>
77
+ *
78
+ * @throws {@link ClientException} (client fault)
79
+ * <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>
80
+ *
81
+ * @throws {@link ClusterNotFoundException} (client fault)
82
+ * <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>
83
+ *
84
+ * @throws {@link DaemonNotFoundException} (client fault)
85
+ * <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>
86
+ *
87
+ * @throws {@link InvalidParameterException} (client fault)
88
+ * <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>
89
+ *
90
+ * @throws {@link ServerException} (server fault)
91
+ * <p>These errors are usually caused by a server issue.</p>
92
+ *
93
+ * @throws {@link UnsupportedFeatureException} (client fault)
94
+ * <p>The specified task isn't supported in this Region.</p>
95
+ *
96
+ * @throws {@link ECSServiceException}
97
+ * <p>Base exception class for all service exceptions from ECS service.</p>
98
+ *
99
+ *
100
+ * @example To describe a daemon
101
+ * ```javascript
102
+ * // This example describes the my-monitoring-daemon daemon.
103
+ * const input = {
104
+ * daemonArn: "arn:aws:ecs:us-east-1:123456789012:daemon/my-cluster/my-monitoring-daemon"
105
+ * };
106
+ * const command = new DescribeDaemonCommand(input);
107
+ * const response = await client.send(command);
108
+ * /* response is
109
+ * {
110
+ * daemon: {
111
+ * clusterArn: "arn:aws:ecs:us-east-1:123456789012:cluster/my-cluster",
112
+ * createdAt: "2025-03-15T12:00:00.000Z",
113
+ * currentRevisions: [
114
+ * {
115
+ * arn: "arn:aws:ecs:us-east-1:123456789012:daemon-revision/my-cluster/my-monitoring-daemon/4980306466373577095",
116
+ * capacityProviders: [
117
+ * {
118
+ * arn: "arn:aws:ecs:us-east-1:123456789012:capacity-provider/my-capacity-provider",
119
+ * runningCount: 3
120
+ * }
121
+ * ],
122
+ * totalRunningCount: 3
123
+ * }
124
+ * ],
125
+ * daemonArn: "arn:aws:ecs:us-east-1:123456789012:daemon/my-cluster/my-monitoring-daemon",
126
+ * deploymentArn: "arn:aws:ecs:us-east-1:123456789012:daemon-deployment/my-cluster/my-monitoring-daemon/aB1cD2eF3gH4iJ5k",
127
+ * status: "ACTIVE",
128
+ * updatedAt: "2025-03-20T15:30:00.000Z"
129
+ * }
130
+ * }
131
+ * *\/
132
+ * ```
133
+ *
134
+ * @public
135
+ */
136
+ export declare class DescribeDaemonCommand extends DescribeDaemonCommand_base {
137
+ /** @internal type navigation helper, not in runtime. */
138
+ protected static __types: {
139
+ api: {
140
+ input: DescribeDaemonRequest;
141
+ output: DescribeDaemonResponse;
142
+ };
143
+ sdk: {
144
+ input: DescribeDaemonCommandInput;
145
+ output: DescribeDaemonCommandOutput;
146
+ };
147
+ };
148
+ }