@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.
- package/README.md +91 -7
- package/dist-cjs/index.js +530 -33
- package/dist-cjs/models/errors.js +37 -11
- package/dist-cjs/schemas/schemas_0.js +508 -100
- package/dist-es/ECS.js +34 -0
- package/dist-es/commands/CreateDaemonCommand.js +16 -0
- package/dist-es/commands/DeleteDaemonCommand.js +16 -0
- package/dist-es/commands/DeleteDaemonTaskDefinitionCommand.js +16 -0
- package/dist-es/commands/DescribeDaemonCommand.js +16 -0
- package/dist-es/commands/DescribeDaemonDeploymentsCommand.js +16 -0
- package/dist-es/commands/DescribeDaemonRevisionsCommand.js +16 -0
- package/dist-es/commands/DescribeDaemonTaskDefinitionCommand.js +16 -0
- package/dist-es/commands/ListDaemonDeploymentsCommand.js +16 -0
- package/dist-es/commands/ListDaemonTaskDefinitionsCommand.js +16 -0
- package/dist-es/commands/ListDaemonsCommand.js +16 -0
- package/dist-es/commands/RegisterDaemonTaskDefinitionCommand.js +16 -0
- package/dist-es/commands/UpdateDaemonCommand.js +16 -0
- package/dist-es/commands/index.js +12 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/enums.js +72 -33
- package/dist-es/models/errors.js +32 -8
- package/dist-es/models/models_1.js +1 -0
- package/dist-es/schemas/schemas_0.js +500 -93
- package/dist-es/waiters/index.js +5 -0
- package/dist-es/waiters/waitForDaemonActive.js +40 -0
- package/dist-es/waiters/waitForDaemonDeploymentStopped.js +54 -0
- package/dist-es/waiters/waitForDaemonDeploymentSuccessful.js +99 -0
- package/dist-es/waiters/waitForDaemonTaskDefinitionActive.js +49 -0
- package/dist-es/waiters/waitForDaemonTaskDefinitionDeleted.js +31 -0
- package/dist-types/ECS.d.ts +116 -0
- package/dist-types/ECSClient.d.ts +14 -2
- package/dist-types/commands/CreateDaemonCommand.d.ts +150 -0
- package/dist-types/commands/CreateTaskSetCommand.d.ts +1 -1
- package/dist-types/commands/DeleteDaemonCommand.d.ts +121 -0
- package/dist-types/commands/DeleteDaemonTaskDefinitionCommand.d.ts +101 -0
- package/dist-types/commands/DeleteTaskDefinitionsCommand.d.ts +1 -0
- package/dist-types/commands/DeleteTaskSetCommand.d.ts +1 -1
- package/dist-types/commands/DeregisterContainerInstanceCommand.d.ts +1 -1
- package/dist-types/commands/DeregisterTaskDefinitionCommand.d.ts +1 -0
- package/dist-types/commands/DescribeContainerInstancesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDaemonCommand.d.ts +148 -0
- package/dist-types/commands/DescribeDaemonDeploymentsCommand.d.ts +229 -0
- package/dist-types/commands/DescribeDaemonRevisionsCommand.d.ts +155 -0
- package/dist-types/commands/DescribeDaemonTaskDefinitionCommand.d.ts +286 -0
- package/dist-types/commands/DescribeTaskDefinitionCommand.d.ts +1 -0
- package/dist-types/commands/DescribeTaskSetsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTasksCommand.d.ts +1 -1
- package/dist-types/commands/GetTaskProtectionCommand.d.ts +1 -1
- package/dist-types/commands/ListDaemonDeploymentsCommand.d.ts +145 -0
- package/dist-types/commands/ListDaemonTaskDefinitionsCommand.d.ts +129 -0
- package/dist-types/commands/ListDaemonsCommand.d.ts +133 -0
- package/dist-types/commands/ListTaskDefinitionsCommand.d.ts +2 -1
- package/dist-types/commands/ListTasksCommand.d.ts +1 -0
- package/dist-types/commands/RegisterContainerInstanceCommand.d.ts +1 -1
- package/dist-types/commands/RegisterDaemonTaskDefinitionCommand.d.ts +277 -0
- package/dist-types/commands/RegisterTaskDefinitionCommand.d.ts +2 -1
- package/dist-types/commands/RunTaskCommand.d.ts +1 -1
- package/dist-types/commands/StartTaskCommand.d.ts +1 -1
- package/dist-types/commands/StopTaskCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateContainerAgentCommand.d.ts +1 -1
- package/dist-types/commands/UpdateContainerInstancesStateCommand.d.ts +1 -1
- package/dist-types/commands/UpdateDaemonCommand.d.ts +149 -0
- package/dist-types/commands/UpdateTaskProtectionCommand.d.ts +1 -1
- package/dist-types/commands/UpdateTaskSetCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +12 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +155 -60
- package/dist-types/models/errors.d.ts +32 -8
- package/dist-types/models/models_0.d.ts +2630 -2613
- package/dist-types/models/models_1.d.ts +1245 -0
- package/dist-types/schemas/schemas_0.d.ts +58 -0
- package/dist-types/ts3.4/ECS.d.ts +251 -0
- package/dist-types/ts3.4/ECSClient.d.ts +72 -0
- package/dist-types/ts3.4/commands/CreateDaemonCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreateTaskSetCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteDaemonCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteDaemonTaskDefinitionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteTaskSetCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeDaemonCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DescribeDaemonDeploymentsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeDaemonRevisionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeDaemonTaskDefinitionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeTaskSetsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeTasksCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetTaskProtectionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListDaemonDeploymentsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListDaemonTaskDefinitionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListDaemonsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListTaskDefinitionsCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/RegisterDaemonTaskDefinitionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/RegisterTaskDefinitionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/RunTaskCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartTaskCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StopTaskCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateDaemonCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateTaskProtectionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateTaskSetCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +12 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +92 -40
- package/dist-types/ts3.4/models/errors.d.ts +21 -7
- package/dist-types/ts3.4/models/models_0.d.ts +338 -324
- package/dist-types/ts3.4/models/models_1.d.ts +322 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +58 -0
- package/dist-types/ts3.4/waiters/index.d.ts +5 -0
- package/dist-types/ts3.4/waiters/waitForDaemonActive.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForDaemonDeploymentStopped.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForDaemonDeploymentSuccessful.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForDaemonTaskDefinitionActive.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForDaemonTaskDefinitionDeleted.d.ts +11 -0
- package/dist-types/waiters/index.d.ts +5 -0
- package/dist-types/waiters/waitForDaemonActive.d.ts +14 -0
- package/dist-types/waiters/waitForDaemonDeploymentStopped.d.ts +14 -0
- package/dist-types/waiters/waitForDaemonDeploymentSuccessful.d.ts +14 -0
- package/dist-types/waiters/waitForDaemonTaskDefinitionActive.d.ts +14 -0
- package/dist-types/waiters/waitForDaemonTaskDefinitionDeleted.d.ts +14 -0
- package/package.json +1 -1
|
@@ -311,6 +311,7 @@ declare const DescribeTaskDefinitionCommand_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 { DescribeTaskSetsRequest, DescribeTaskSetsResponse } from "../models/
|
|
4
|
+
import type { DescribeTaskSetsRequest, DescribeTaskSetsResponse } 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 { DescribeTasksRequest, DescribeTasksResponse } from "../models/
|
|
4
|
+
import type { DescribeTasksRequest, DescribeTasksResponse } 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 { GetTaskProtectionRequest, GetTaskProtectionResponse } from "../models/
|
|
4
|
+
import type { GetTaskProtectionRequest, GetTaskProtectionResponse } from "../models/models_1";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -0,0 +1,145 @@
|
|
|
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 { ListDaemonDeploymentsRequest, ListDaemonDeploymentsResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListDaemonDeploymentsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListDaemonDeploymentsCommandInput extends ListDaemonDeploymentsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListDaemonDeploymentsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListDaemonDeploymentsCommandOutput extends ListDaemonDeploymentsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListDaemonDeploymentsCommand_base: {
|
|
25
|
+
new (input: ListDaemonDeploymentsCommandInput): import("@smithy/smithy-client").CommandImpl<ListDaemonDeploymentsCommandInput, ListDaemonDeploymentsCommandOutput, ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: ListDaemonDeploymentsCommandInput): import("@smithy/smithy-client").CommandImpl<ListDaemonDeploymentsCommandInput, ListDaemonDeploymentsCommandOutput, ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Returns a list of daemon deployments for a specified daemon. You can filter the results by status or creation time.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ECSClient, ListDaemonDeploymentsCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
35
|
+
* // const { ECSClient, ListDaemonDeploymentsCommand } = 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 = { // ListDaemonDeploymentsRequest
|
|
40
|
+
* daemonArn: "STRING_VALUE", // required
|
|
41
|
+
* status: [ // DaemonDeploymentStatusList
|
|
42
|
+
* "PENDING" || "SUCCESSFUL" || "STOPPED" || "STOP_REQUESTED" || "IN_PROGRESS" || "ROLLBACK_IN_PROGRESS" || "ROLLBACK_SUCCESSFUL" || "ROLLBACK_FAILED",
|
|
43
|
+
* ],
|
|
44
|
+
* createdAt: { // CreatedAt
|
|
45
|
+
* before: new Date("TIMESTAMP"),
|
|
46
|
+
* after: new Date("TIMESTAMP"),
|
|
47
|
+
* },
|
|
48
|
+
* maxResults: Number("int"),
|
|
49
|
+
* nextToken: "STRING_VALUE",
|
|
50
|
+
* };
|
|
51
|
+
* const command = new ListDaemonDeploymentsCommand(input);
|
|
52
|
+
* const response = await client.send(command);
|
|
53
|
+
* // { // ListDaemonDeploymentsResponse
|
|
54
|
+
* // nextToken: "STRING_VALUE",
|
|
55
|
+
* // daemonDeployments: [ // DaemonDeploymentSummaryList
|
|
56
|
+
* // { // DaemonDeploymentSummary
|
|
57
|
+
* // daemonDeploymentArn: "STRING_VALUE",
|
|
58
|
+
* // daemonArn: "STRING_VALUE",
|
|
59
|
+
* // clusterArn: "STRING_VALUE",
|
|
60
|
+
* // status: "PENDING" || "SUCCESSFUL" || "STOPPED" || "STOP_REQUESTED" || "IN_PROGRESS" || "ROLLBACK_IN_PROGRESS" || "ROLLBACK_SUCCESSFUL" || "ROLLBACK_FAILED",
|
|
61
|
+
* // statusReason: "STRING_VALUE",
|
|
62
|
+
* // targetDaemonRevisionArn: "STRING_VALUE",
|
|
63
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
64
|
+
* // startedAt: new Date("TIMESTAMP"),
|
|
65
|
+
* // stoppedAt: new Date("TIMESTAMP"),
|
|
66
|
+
* // finishedAt: new Date("TIMESTAMP"),
|
|
67
|
+
* // },
|
|
68
|
+
* // ],
|
|
69
|
+
* // };
|
|
70
|
+
*
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* @param ListDaemonDeploymentsCommandInput - {@link ListDaemonDeploymentsCommandInput}
|
|
74
|
+
* @returns {@link ListDaemonDeploymentsCommandOutput}
|
|
75
|
+
* @see {@link ListDaemonDeploymentsCommandInput} for command's `input` shape.
|
|
76
|
+
* @see {@link ListDaemonDeploymentsCommandOutput} for command's `response` shape.
|
|
77
|
+
* @see {@link ECSClientResolvedConfig | config} for ECSClient's `config` shape.
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
80
|
+
* <p>You don't have authorization to perform the requested action.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ClientException} (client fault)
|
|
83
|
+
* <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>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ClusterNotFoundException} (client fault)
|
|
86
|
+
* <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>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
89
|
+
* <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>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link ServerException} (server fault)
|
|
92
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link UnsupportedFeatureException} (client fault)
|
|
95
|
+
* <p>The specified task isn't supported in this Region.</p>
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link ECSServiceException}
|
|
98
|
+
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
99
|
+
*
|
|
100
|
+
*
|
|
101
|
+
* @example To list daemon deployments
|
|
102
|
+
* ```javascript
|
|
103
|
+
* // This example lists all successful daemon deployments for the my-monitoring-daemon daemon.
|
|
104
|
+
* const input = {
|
|
105
|
+
* daemonArn: "arn:aws:ecs:us-east-1:123456789012:daemon/my-cluster/my-monitoring-daemon",
|
|
106
|
+
* status: [
|
|
107
|
+
* "SUCCESSFUL"
|
|
108
|
+
* ]
|
|
109
|
+
* };
|
|
110
|
+
* const command = new ListDaemonDeploymentsCommand(input);
|
|
111
|
+
* const response = await client.send(command);
|
|
112
|
+
* /* response is
|
|
113
|
+
* {
|
|
114
|
+
* daemonDeployments: [
|
|
115
|
+
* {
|
|
116
|
+
* clusterArn: "arn:aws:ecs:us-east-1:123456789012:cluster/my-cluster",
|
|
117
|
+
* createdAt: "2025-03-15T12:00:00.000Z",
|
|
118
|
+
* daemonArn: "arn:aws:ecs:us-east-1:123456789012:daemon/my-cluster/my-monitoring-daemon",
|
|
119
|
+
* daemonDeploymentArn: "arn:aws:ecs:us-east-1:123456789012:daemon-deployment/my-cluster/my-monitoring-daemon/aB1cD2eF3gH4iJ5k",
|
|
120
|
+
* finishedAt: "2025-03-15T12:15:00.000Z",
|
|
121
|
+
* startedAt: "2025-03-15T12:00:05.000Z",
|
|
122
|
+
* status: "SUCCESSFUL",
|
|
123
|
+
* statusReason: "Deployment completed successfully.",
|
|
124
|
+
* targetDaemonRevisionArn: "arn:aws:ecs:us-east-1:123456789012:daemon-revision/my-cluster/my-monitoring-daemon/4980306466373577095"
|
|
125
|
+
* }
|
|
126
|
+
* ]
|
|
127
|
+
* }
|
|
128
|
+
* *\/
|
|
129
|
+
* ```
|
|
130
|
+
*
|
|
131
|
+
* @public
|
|
132
|
+
*/
|
|
133
|
+
export declare class ListDaemonDeploymentsCommand extends ListDaemonDeploymentsCommand_base {
|
|
134
|
+
/** @internal type navigation helper, not in runtime. */
|
|
135
|
+
protected static __types: {
|
|
136
|
+
api: {
|
|
137
|
+
input: ListDaemonDeploymentsRequest;
|
|
138
|
+
output: ListDaemonDeploymentsResponse;
|
|
139
|
+
};
|
|
140
|
+
sdk: {
|
|
141
|
+
input: ListDaemonDeploymentsCommandInput;
|
|
142
|
+
output: ListDaemonDeploymentsCommandOutput;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
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 { ListDaemonTaskDefinitionsRequest, ListDaemonTaskDefinitionsResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListDaemonTaskDefinitionsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListDaemonTaskDefinitionsCommandInput extends ListDaemonTaskDefinitionsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListDaemonTaskDefinitionsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListDaemonTaskDefinitionsCommandOutput extends ListDaemonTaskDefinitionsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListDaemonTaskDefinitionsCommand_base: {
|
|
25
|
+
new (input: ListDaemonTaskDefinitionsCommandInput): import("@smithy/smithy-client").CommandImpl<ListDaemonTaskDefinitionsCommandInput, ListDaemonTaskDefinitionsCommandOutput, ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListDaemonTaskDefinitionsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListDaemonTaskDefinitionsCommandInput, ListDaemonTaskDefinitionsCommandOutput, ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Returns a list of daemon task definitions that are registered to your account. You can filter the results by family name, status, or both to find daemon task definitions that match your criteria.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ECSClient, ListDaemonTaskDefinitionsCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
35
|
+
* // const { ECSClient, ListDaemonTaskDefinitionsCommand } = 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 = { // ListDaemonTaskDefinitionsRequest
|
|
40
|
+
* familyPrefix: "STRING_VALUE",
|
|
41
|
+
* family: "STRING_VALUE",
|
|
42
|
+
* revision: "LAST_REGISTERED",
|
|
43
|
+
* status: "ACTIVE" || "DELETE_IN_PROGRESS" || "ALL",
|
|
44
|
+
* sort: "ASC" || "DESC",
|
|
45
|
+
* nextToken: "STRING_VALUE",
|
|
46
|
+
* maxResults: Number("int"),
|
|
47
|
+
* };
|
|
48
|
+
* const command = new ListDaemonTaskDefinitionsCommand(input);
|
|
49
|
+
* const response = await client.send(command);
|
|
50
|
+
* // { // ListDaemonTaskDefinitionsResponse
|
|
51
|
+
* // daemonTaskDefinitions: [ // DaemonTaskDefinitionSummaries
|
|
52
|
+
* // { // DaemonTaskDefinitionSummary
|
|
53
|
+
* // arn: "STRING_VALUE",
|
|
54
|
+
* // registeredAt: new Date("TIMESTAMP"),
|
|
55
|
+
* // registeredBy: "STRING_VALUE",
|
|
56
|
+
* // deleteRequestedAt: new Date("TIMESTAMP"),
|
|
57
|
+
* // status: "ACTIVE" || "DELETE_IN_PROGRESS" || "DELETED",
|
|
58
|
+
* // },
|
|
59
|
+
* // ],
|
|
60
|
+
* // nextToken: "STRING_VALUE",
|
|
61
|
+
* // };
|
|
62
|
+
*
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* @param ListDaemonTaskDefinitionsCommandInput - {@link ListDaemonTaskDefinitionsCommandInput}
|
|
66
|
+
* @returns {@link ListDaemonTaskDefinitionsCommandOutput}
|
|
67
|
+
* @see {@link ListDaemonTaskDefinitionsCommandInput} for command's `input` shape.
|
|
68
|
+
* @see {@link ListDaemonTaskDefinitionsCommandOutput} for command's `response` shape.
|
|
69
|
+
* @see {@link ECSClientResolvedConfig | config} for ECSClient's `config` shape.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
72
|
+
* <p>You don't have authorization to perform the requested action.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ClientException} (client fault)
|
|
75
|
+
* <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>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
78
|
+
* <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>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ServerException} (server fault)
|
|
81
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link ECSServiceException}
|
|
84
|
+
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
85
|
+
*
|
|
86
|
+
*
|
|
87
|
+
* @example To list daemon task definitions
|
|
88
|
+
* ```javascript
|
|
89
|
+
* // This example lists all daemon task definitions in your account that start with the monitoring prefix.
|
|
90
|
+
* const input = {
|
|
91
|
+
* familyPrefix: "monitoring"
|
|
92
|
+
* };
|
|
93
|
+
* const command = new ListDaemonTaskDefinitionsCommand(input);
|
|
94
|
+
* const response = await client.send(command);
|
|
95
|
+
* /* response is
|
|
96
|
+
* {
|
|
97
|
+
* daemonTaskDefinitions: [
|
|
98
|
+
* {
|
|
99
|
+
* arn: "arn:aws:ecs:us-east-1:123456789012:daemon-task-definition/monitoring-agent:2",
|
|
100
|
+
* registeredAt: "2025-03-20T14:00:00.000Z",
|
|
101
|
+
* registeredBy: "arn:aws:iam::123456789012:user/admin",
|
|
102
|
+
* status: "ACTIVE"
|
|
103
|
+
* },
|
|
104
|
+
* {
|
|
105
|
+
* arn: "arn:aws:ecs:us-east-1:123456789012:daemon-task-definition/monitoring-agent:1",
|
|
106
|
+
* registeredAt: "2025-03-15T10:30:00.000Z",
|
|
107
|
+
* registeredBy: "arn:aws:iam::123456789012:user/admin",
|
|
108
|
+
* status: "ACTIVE"
|
|
109
|
+
* }
|
|
110
|
+
* ]
|
|
111
|
+
* }
|
|
112
|
+
* *\/
|
|
113
|
+
* ```
|
|
114
|
+
*
|
|
115
|
+
* @public
|
|
116
|
+
*/
|
|
117
|
+
export declare class ListDaemonTaskDefinitionsCommand extends ListDaemonTaskDefinitionsCommand_base {
|
|
118
|
+
/** @internal type navigation helper, not in runtime. */
|
|
119
|
+
protected static __types: {
|
|
120
|
+
api: {
|
|
121
|
+
input: ListDaemonTaskDefinitionsRequest;
|
|
122
|
+
output: ListDaemonTaskDefinitionsResponse;
|
|
123
|
+
};
|
|
124
|
+
sdk: {
|
|
125
|
+
input: ListDaemonTaskDefinitionsCommandInput;
|
|
126
|
+
output: ListDaemonTaskDefinitionsCommandOutput;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
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 { ListDaemonsRequest, ListDaemonsResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListDaemonsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListDaemonsCommandInput extends ListDaemonsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListDaemonsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListDaemonsCommandOutput extends ListDaemonsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListDaemonsCommand_base: {
|
|
25
|
+
new (input: ListDaemonsCommandInput): import("@smithy/smithy-client").CommandImpl<ListDaemonsCommandInput, ListDaemonsCommandOutput, ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListDaemonsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListDaemonsCommandInput, ListDaemonsCommandOutput, ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Returns a list of daemons. You can filter the results by cluster or capacity provider.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ECSClient, ListDaemonsCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
35
|
+
* // const { ECSClient, ListDaemonsCommand } = 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 = { // ListDaemonsRequest
|
|
40
|
+
* clusterArn: "STRING_VALUE",
|
|
41
|
+
* capacityProviderArns: [ // StringList
|
|
42
|
+
* "STRING_VALUE",
|
|
43
|
+
* ],
|
|
44
|
+
* maxResults: Number("int"),
|
|
45
|
+
* nextToken: "STRING_VALUE",
|
|
46
|
+
* };
|
|
47
|
+
* const command = new ListDaemonsCommand(input);
|
|
48
|
+
* const response = await client.send(command);
|
|
49
|
+
* // { // ListDaemonsResponse
|
|
50
|
+
* // daemonSummariesList: [ // DaemonSummariesList
|
|
51
|
+
* // { // DaemonSummary
|
|
52
|
+
* // daemonArn: "STRING_VALUE",
|
|
53
|
+
* // status: "ACTIVE" || "DELETE_IN_PROGRESS",
|
|
54
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
55
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
56
|
+
* // },
|
|
57
|
+
* // ],
|
|
58
|
+
* // nextToken: "STRING_VALUE",
|
|
59
|
+
* // };
|
|
60
|
+
*
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* @param ListDaemonsCommandInput - {@link ListDaemonsCommandInput}
|
|
64
|
+
* @returns {@link ListDaemonsCommandOutput}
|
|
65
|
+
* @see {@link ListDaemonsCommandInput} for command's `input` shape.
|
|
66
|
+
* @see {@link ListDaemonsCommandOutput} for command's `response` shape.
|
|
67
|
+
* @see {@link ECSClientResolvedConfig | config} for ECSClient's `config` shape.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
70
|
+
* <p>You don't have authorization to perform the requested action.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ClientException} (client fault)
|
|
73
|
+
* <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>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ClusterNotFoundException} (client fault)
|
|
76
|
+
* <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>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
79
|
+
* <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>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ServerException} (server fault)
|
|
82
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link UnsupportedFeatureException} (client fault)
|
|
85
|
+
* <p>The specified task isn't supported in this Region.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link ECSServiceException}
|
|
88
|
+
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
89
|
+
*
|
|
90
|
+
*
|
|
91
|
+
* @example To list daemons in a cluster
|
|
92
|
+
* ```javascript
|
|
93
|
+
* // This example lists all daemons in the specified cluster.
|
|
94
|
+
* const input = {
|
|
95
|
+
* clusterArn: "arn:aws:ecs:us-east-1:123456789012:cluster/my-cluster"
|
|
96
|
+
* };
|
|
97
|
+
* const command = new ListDaemonsCommand(input);
|
|
98
|
+
* const response = await client.send(command);
|
|
99
|
+
* /* response is
|
|
100
|
+
* {
|
|
101
|
+
* daemonSummariesList: [
|
|
102
|
+
* {
|
|
103
|
+
* createdAt: "2025-03-15T12:00:00.000Z",
|
|
104
|
+
* daemonArn: "arn:aws:ecs:us-east-1:123456789012:daemon/my-cluster/my-monitoring-daemon",
|
|
105
|
+
* status: "ACTIVE",
|
|
106
|
+
* updatedAt: "2025-03-20T15:30:00.000Z"
|
|
107
|
+
* },
|
|
108
|
+
* {
|
|
109
|
+
* createdAt: "2025-03-16T09:00:00.000Z",
|
|
110
|
+
* daemonArn: "arn:aws:ecs:us-east-1:123456789012:daemon/my-cluster/my-logging-daemon",
|
|
111
|
+
* status: "ACTIVE",
|
|
112
|
+
* updatedAt: "2025-03-16T09:00:00.000Z"
|
|
113
|
+
* }
|
|
114
|
+
* ]
|
|
115
|
+
* }
|
|
116
|
+
* *\/
|
|
117
|
+
* ```
|
|
118
|
+
*
|
|
119
|
+
* @public
|
|
120
|
+
*/
|
|
121
|
+
export declare class ListDaemonsCommand extends ListDaemonsCommand_base {
|
|
122
|
+
/** @internal type navigation helper, not in runtime. */
|
|
123
|
+
protected static __types: {
|
|
124
|
+
api: {
|
|
125
|
+
input: ListDaemonsRequest;
|
|
126
|
+
output: ListDaemonsResponse;
|
|
127
|
+
};
|
|
128
|
+
sdk: {
|
|
129
|
+
input: ListDaemonsCommandInput;
|
|
130
|
+
output: ListDaemonsCommandOutput;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
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 { ListTaskDefinitionsRequest
|
|
4
|
+
import type { ListTaskDefinitionsRequest } from "../models/models_0";
|
|
5
|
+
import type { ListTaskDefinitionsResponse } from "../models/models_1";
|
|
5
6
|
/**
|
|
6
7
|
* @public
|
|
7
8
|
*/
|
|
@@ -46,6 +46,7 @@ declare const ListTasksCommand_base: {
|
|
|
46
46
|
* serviceName: "STRING_VALUE",
|
|
47
47
|
* desiredStatus: "RUNNING" || "PENDING" || "STOPPED",
|
|
48
48
|
* launchType: "EC2" || "FARGATE" || "EXTERNAL" || "MANAGED_INSTANCES",
|
|
49
|
+
* daemonName: "STRING_VALUE",
|
|
49
50
|
* };
|
|
50
51
|
* const command = new ListTasksCommand(input);
|
|
51
52
|
* const response = await client.send(command);
|
|
@@ -154,7 +154,7 @@ declare const RegisterContainerInstanceCommand_base: {
|
|
|
154
154
|
* // overallStatus: "OK" || "IMPAIRED" || "INSUFFICIENT_DATA" || "INITIALIZING",
|
|
155
155
|
* // details: [ // InstanceHealthCheckResultList
|
|
156
156
|
* // { // InstanceHealthCheckResult
|
|
157
|
-
* // type: "CONTAINER_RUNTIME",
|
|
157
|
+
* // type: "CONTAINER_RUNTIME" || "ACCELERATED_COMPUTE" || "DAEMON",
|
|
158
158
|
* // status: "OK" || "IMPAIRED" || "INSUFFICIENT_DATA" || "INITIALIZING",
|
|
159
159
|
* // lastUpdated: new Date("TIMESTAMP"),
|
|
160
160
|
* // lastStatusChange: new Date("TIMESTAMP"),
|