@aws-sdk/client-ecs 3.298.0 → 3.300.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/dist-types/commands/CreateCapacityProviderCommand.d.ts +20 -0
- package/dist-types/commands/CreateClusterCommand.d.ts +41 -0
- package/dist-types/commands/CreateServiceCommand.d.ts +114 -0
- package/dist-types/commands/CreateTaskSetCommand.d.ts +53 -0
- package/dist-types/commands/DeleteAccountSettingCommand.d.ts +4 -0
- package/dist-types/commands/DeleteAttributesCommand.d.ts +11 -0
- package/dist-types/commands/DeleteCapacityProviderCommand.d.ts +3 -0
- package/dist-types/commands/DeleteClusterCommand.d.ts +3 -0
- package/dist-types/commands/DeleteServiceCommand.d.ts +5 -0
- package/dist-types/commands/DeleteTaskDefinitionsCommand.d.ts +5 -0
- package/dist-types/commands/DeleteTaskSetCommand.d.ts +6 -0
- package/dist-types/commands/DeregisterContainerInstanceCommand.d.ts +5 -0
- package/dist-types/commands/DeregisterTaskDefinitionCommand.d.ts +3 -0
- package/dist-types/commands/DescribeCapacityProvidersCommand.d.ts +10 -0
- package/dist-types/commands/DescribeClustersCommand.d.ts +8 -0
- package/dist-types/commands/DescribeContainerInstancesCommand.d.ts +9 -0
- package/dist-types/commands/DescribeServicesCommand.d.ts +9 -0
- package/dist-types/commands/DescribeTaskDefinitionCommand.d.ts +6 -0
- package/dist-types/commands/DescribeTaskSetsCommand.d.ts +10 -0
- package/dist-types/commands/DescribeTasksCommand.d.ts +9 -0
- package/dist-types/commands/DiscoverPollEndpointCommand.d.ts +4 -0
- package/dist-types/commands/ExecuteCommandCommand.d.ts +7 -0
- package/dist-types/commands/GetTaskProtectionCommand.d.ts +6 -0
- package/dist-types/commands/ListAccountSettingsCommand.d.ts +8 -0
- package/dist-types/commands/ListAttributesCommand.d.ts +8 -0
- package/dist-types/commands/ListClustersCommand.d.ts +4 -0
- package/dist-types/commands/ListContainerInstancesCommand.d.ts +7 -0
- package/dist-types/commands/ListServicesByNamespaceCommand.d.ts +5 -0
- package/dist-types/commands/ListServicesCommand.d.ts +7 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -0
- package/dist-types/commands/ListTaskDefinitionFamiliesCommand.d.ts +6 -0
- package/dist-types/commands/ListTaskDefinitionsCommand.d.ts +7 -0
- package/dist-types/commands/ListTasksCommand.d.ts +11 -0
- package/dist-types/commands/PutAccountSettingCommand.d.ts +5 -0
- package/dist-types/commands/PutAccountSettingDefaultCommand.d.ts +4 -0
- package/dist-types/commands/PutAttributesCommand.d.ts +11 -0
- package/dist-types/commands/PutClusterCapacityProvidersCommand.d.ts +13 -0
- package/dist-types/commands/RegisterContainerInstanceCommand.d.ts +43 -0
- package/dist-types/commands/RegisterTaskDefinitionCommand.d.ts +260 -0
- package/dist-types/commands/RunTaskCommand.d.ts +93 -0
- package/dist-types/commands/StartTaskCommand.d.ts +74 -0
- package/dist-types/commands/StopTaskCommand.d.ts +5 -0
- package/dist-types/commands/SubmitAttachmentStateChangesCommand.d.ts +9 -0
- package/dist-types/commands/SubmitContainerStateChangeCommand.d.ts +19 -0
- package/dist-types/commands/SubmitTaskStateChangeCommand.d.ts +43 -0
- package/dist-types/commands/TagResourceCommand.d.ts +9 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -0
- package/dist-types/commands/UpdateCapacityProviderCommand.d.ts +13 -0
- package/dist-types/commands/UpdateClusterCommand.d.ts +25 -0
- package/dist-types/commands/UpdateClusterSettingsCommand.d.ts +9 -0
- package/dist-types/commands/UpdateContainerAgentCommand.d.ts +4 -0
- package/dist-types/commands/UpdateContainerInstancesStateCommand.d.ts +7 -0
- package/dist-types/commands/UpdateServiceCommand.d.ts +102 -0
- package/dist-types/commands/UpdateServicePrimaryTaskSetCommand.d.ts +5 -0
- package/dist-types/commands/UpdateTaskProtectionCommand.d.ts +8 -0
- package/dist-types/commands/UpdateTaskSetCommand.d.ts +9 -0
- package/package.json +12 -12
|
@@ -32,6 +32,26 @@ export interface CreateCapacityProviderCommandOutput extends CreateCapacityProvi
|
|
|
32
32
|
* import { ECSClient, CreateCapacityProviderCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
33
33
|
* // const { ECSClient, CreateCapacityProviderCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
34
34
|
* const client = new ECSClient(config);
|
|
35
|
+
* const input = {
|
|
36
|
+
* name: "STRING_VALUE", // required
|
|
37
|
+
* autoScalingGroupProvider: {
|
|
38
|
+
* autoScalingGroupArn: "STRING_VALUE", // required
|
|
39
|
+
* managedScaling: {
|
|
40
|
+
* status: "ENABLED" || "DISABLED",
|
|
41
|
+
* targetCapacity: Number("int"),
|
|
42
|
+
* minimumScalingStepSize: Number("int"),
|
|
43
|
+
* maximumScalingStepSize: Number("int"),
|
|
44
|
+
* instanceWarmupPeriod: Number("int"),
|
|
45
|
+
* },
|
|
46
|
+
* managedTerminationProtection: "ENABLED" || "DISABLED",
|
|
47
|
+
* },
|
|
48
|
+
* tags: [
|
|
49
|
+
* {
|
|
50
|
+
* key: "STRING_VALUE",
|
|
51
|
+
* value: "STRING_VALUE",
|
|
52
|
+
* },
|
|
53
|
+
* ],
|
|
54
|
+
* };
|
|
35
55
|
* const command = new CreateCapacityProviderCommand(input);
|
|
36
56
|
* const response = await client.send(command);
|
|
37
57
|
* ```
|
|
@@ -36,6 +36,47 @@ export interface CreateClusterCommandOutput extends CreateClusterResponse, __Met
|
|
|
36
36
|
* import { ECSClient, CreateClusterCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
37
37
|
* // const { ECSClient, CreateClusterCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
38
38
|
* const client = new ECSClient(config);
|
|
39
|
+
* const input = {
|
|
40
|
+
* clusterName: "STRING_VALUE",
|
|
41
|
+
* tags: [
|
|
42
|
+
* {
|
|
43
|
+
* key: "STRING_VALUE",
|
|
44
|
+
* value: "STRING_VALUE",
|
|
45
|
+
* },
|
|
46
|
+
* ],
|
|
47
|
+
* settings: [
|
|
48
|
+
* {
|
|
49
|
+
* name: "containerInsights",
|
|
50
|
+
* value: "STRING_VALUE",
|
|
51
|
+
* },
|
|
52
|
+
* ],
|
|
53
|
+
* configuration: {
|
|
54
|
+
* executeCommandConfiguration: {
|
|
55
|
+
* kmsKeyId: "STRING_VALUE",
|
|
56
|
+
* logging: "NONE" || "DEFAULT" || "OVERRIDE",
|
|
57
|
+
* logConfiguration: {
|
|
58
|
+
* cloudWatchLogGroupName: "STRING_VALUE",
|
|
59
|
+
* cloudWatchEncryptionEnabled: true || false,
|
|
60
|
+
* s3BucketName: "STRING_VALUE",
|
|
61
|
+
* s3EncryptionEnabled: true || false,
|
|
62
|
+
* s3KeyPrefix: "STRING_VALUE",
|
|
63
|
+
* },
|
|
64
|
+
* },
|
|
65
|
+
* },
|
|
66
|
+
* capacityProviders: [
|
|
67
|
+
* "STRING_VALUE",
|
|
68
|
+
* ],
|
|
69
|
+
* defaultCapacityProviderStrategy: [
|
|
70
|
+
* {
|
|
71
|
+
* capacityProvider: "STRING_VALUE", // required
|
|
72
|
+
* weight: Number("int"),
|
|
73
|
+
* base: Number("int"),
|
|
74
|
+
* },
|
|
75
|
+
* ],
|
|
76
|
+
* serviceConnectDefaults: {
|
|
77
|
+
* namespace: "STRING_VALUE", // required
|
|
78
|
+
* },
|
|
79
|
+
* };
|
|
39
80
|
* const command = new CreateClusterCommand(input);
|
|
40
81
|
* const response = await client.send(command);
|
|
41
82
|
* ```
|
|
@@ -102,6 +102,120 @@ export interface CreateServiceCommandOutput extends CreateServiceResponse, __Met
|
|
|
102
102
|
* import { ECSClient, CreateServiceCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
103
103
|
* // const { ECSClient, CreateServiceCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
104
104
|
* const client = new ECSClient(config);
|
|
105
|
+
* const input = {
|
|
106
|
+
* cluster: "STRING_VALUE",
|
|
107
|
+
* serviceName: "STRING_VALUE", // required
|
|
108
|
+
* taskDefinition: "STRING_VALUE",
|
|
109
|
+
* loadBalancers: [
|
|
110
|
+
* {
|
|
111
|
+
* targetGroupArn: "STRING_VALUE",
|
|
112
|
+
* loadBalancerName: "STRING_VALUE",
|
|
113
|
+
* containerName: "STRING_VALUE",
|
|
114
|
+
* containerPort: Number("int"),
|
|
115
|
+
* },
|
|
116
|
+
* ],
|
|
117
|
+
* serviceRegistries: [
|
|
118
|
+
* {
|
|
119
|
+
* registryArn: "STRING_VALUE",
|
|
120
|
+
* port: Number("int"),
|
|
121
|
+
* containerName: "STRING_VALUE",
|
|
122
|
+
* containerPort: Number("int"),
|
|
123
|
+
* },
|
|
124
|
+
* ],
|
|
125
|
+
* desiredCount: Number("int"),
|
|
126
|
+
* clientToken: "STRING_VALUE",
|
|
127
|
+
* launchType: "EC2" || "FARGATE" || "EXTERNAL",
|
|
128
|
+
* capacityProviderStrategy: [
|
|
129
|
+
* {
|
|
130
|
+
* capacityProvider: "STRING_VALUE", // required
|
|
131
|
+
* weight: Number("int"),
|
|
132
|
+
* base: Number("int"),
|
|
133
|
+
* },
|
|
134
|
+
* ],
|
|
135
|
+
* platformVersion: "STRING_VALUE",
|
|
136
|
+
* role: "STRING_VALUE",
|
|
137
|
+
* deploymentConfiguration: {
|
|
138
|
+
* deploymentCircuitBreaker: {
|
|
139
|
+
* enable: true || false, // required
|
|
140
|
+
* rollback: true || false, // required
|
|
141
|
+
* },
|
|
142
|
+
* maximumPercent: Number("int"),
|
|
143
|
+
* minimumHealthyPercent: Number("int"),
|
|
144
|
+
* alarms: {
|
|
145
|
+
* alarmNames: [ // required
|
|
146
|
+
* "STRING_VALUE",
|
|
147
|
+
* ],
|
|
148
|
+
* enable: true || false, // required
|
|
149
|
+
* rollback: true || false, // required
|
|
150
|
+
* },
|
|
151
|
+
* },
|
|
152
|
+
* placementConstraints: [
|
|
153
|
+
* {
|
|
154
|
+
* type: "distinctInstance" || "memberOf",
|
|
155
|
+
* expression: "STRING_VALUE",
|
|
156
|
+
* },
|
|
157
|
+
* ],
|
|
158
|
+
* placementStrategy: [
|
|
159
|
+
* {
|
|
160
|
+
* type: "random" || "spread" || "binpack",
|
|
161
|
+
* field: "STRING_VALUE",
|
|
162
|
+
* },
|
|
163
|
+
* ],
|
|
164
|
+
* networkConfiguration: {
|
|
165
|
+
* awsvpcConfiguration: {
|
|
166
|
+
* subnets: [ // required
|
|
167
|
+
* "STRING_VALUE",
|
|
168
|
+
* ],
|
|
169
|
+
* securityGroups: [
|
|
170
|
+
* "STRING_VALUE",
|
|
171
|
+
* ],
|
|
172
|
+
* assignPublicIp: "ENABLED" || "DISABLED",
|
|
173
|
+
* },
|
|
174
|
+
* },
|
|
175
|
+
* healthCheckGracePeriodSeconds: Number("int"),
|
|
176
|
+
* schedulingStrategy: "REPLICA" || "DAEMON",
|
|
177
|
+
* deploymentController: {
|
|
178
|
+
* type: "ECS" || "CODE_DEPLOY" || "EXTERNAL", // required
|
|
179
|
+
* },
|
|
180
|
+
* tags: [
|
|
181
|
+
* {
|
|
182
|
+
* key: "STRING_VALUE",
|
|
183
|
+
* value: "STRING_VALUE",
|
|
184
|
+
* },
|
|
185
|
+
* ],
|
|
186
|
+
* enableECSManagedTags: true || false,
|
|
187
|
+
* propagateTags: "TASK_DEFINITION" || "SERVICE" || "NONE",
|
|
188
|
+
* enableExecuteCommand: true || false,
|
|
189
|
+
* serviceConnectConfiguration: {
|
|
190
|
+
* enabled: true || false, // required
|
|
191
|
+
* namespace: "STRING_VALUE",
|
|
192
|
+
* services: [
|
|
193
|
+
* {
|
|
194
|
+
* portName: "STRING_VALUE", // required
|
|
195
|
+
* discoveryName: "STRING_VALUE",
|
|
196
|
+
* clientAliases: [
|
|
197
|
+
* {
|
|
198
|
+
* port: Number("int"), // required
|
|
199
|
+
* dnsName: "STRING_VALUE",
|
|
200
|
+
* },
|
|
201
|
+
* ],
|
|
202
|
+
* ingressPortOverride: Number("int"),
|
|
203
|
+
* },
|
|
204
|
+
* ],
|
|
205
|
+
* logConfiguration: {
|
|
206
|
+
* logDriver: "json-file" || "syslog" || "journald" || "gelf" || "fluentd" || "awslogs" || "splunk" || "awsfirelens", // required
|
|
207
|
+
* options: {
|
|
208
|
+
* "<keys>": "STRING_VALUE",
|
|
209
|
+
* },
|
|
210
|
+
* secretOptions: [
|
|
211
|
+
* {
|
|
212
|
+
* name: "STRING_VALUE", // required
|
|
213
|
+
* valueFrom: "STRING_VALUE", // required
|
|
214
|
+
* },
|
|
215
|
+
* ],
|
|
216
|
+
* },
|
|
217
|
+
* },
|
|
218
|
+
* };
|
|
105
219
|
* const command = new CreateServiceCommand(input);
|
|
106
220
|
* const response = await client.send(command);
|
|
107
221
|
* ```
|
|
@@ -29,6 +29,59 @@ export interface CreateTaskSetCommandOutput extends CreateTaskSetResponse, __Met
|
|
|
29
29
|
* import { ECSClient, CreateTaskSetCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
30
30
|
* // const { ECSClient, CreateTaskSetCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
31
31
|
* const client = new ECSClient(config);
|
|
32
|
+
* const input = {
|
|
33
|
+
* service: "STRING_VALUE", // required
|
|
34
|
+
* cluster: "STRING_VALUE", // required
|
|
35
|
+
* externalId: "STRING_VALUE",
|
|
36
|
+
* taskDefinition: "STRING_VALUE", // required
|
|
37
|
+
* networkConfiguration: {
|
|
38
|
+
* awsvpcConfiguration: {
|
|
39
|
+
* subnets: [ // required
|
|
40
|
+
* "STRING_VALUE",
|
|
41
|
+
* ],
|
|
42
|
+
* securityGroups: [
|
|
43
|
+
* "STRING_VALUE",
|
|
44
|
+
* ],
|
|
45
|
+
* assignPublicIp: "ENABLED" || "DISABLED",
|
|
46
|
+
* },
|
|
47
|
+
* },
|
|
48
|
+
* loadBalancers: [
|
|
49
|
+
* {
|
|
50
|
+
* targetGroupArn: "STRING_VALUE",
|
|
51
|
+
* loadBalancerName: "STRING_VALUE",
|
|
52
|
+
* containerName: "STRING_VALUE",
|
|
53
|
+
* containerPort: Number("int"),
|
|
54
|
+
* },
|
|
55
|
+
* ],
|
|
56
|
+
* serviceRegistries: [
|
|
57
|
+
* {
|
|
58
|
+
* registryArn: "STRING_VALUE",
|
|
59
|
+
* port: Number("int"),
|
|
60
|
+
* containerName: "STRING_VALUE",
|
|
61
|
+
* containerPort: Number("int"),
|
|
62
|
+
* },
|
|
63
|
+
* ],
|
|
64
|
+
* launchType: "EC2" || "FARGATE" || "EXTERNAL",
|
|
65
|
+
* capacityProviderStrategy: [
|
|
66
|
+
* {
|
|
67
|
+
* capacityProvider: "STRING_VALUE", // required
|
|
68
|
+
* weight: Number("int"),
|
|
69
|
+
* base: Number("int"),
|
|
70
|
+
* },
|
|
71
|
+
* ],
|
|
72
|
+
* platformVersion: "STRING_VALUE",
|
|
73
|
+
* scale: {
|
|
74
|
+
* value: Number("double"),
|
|
75
|
+
* unit: "PERCENT",
|
|
76
|
+
* },
|
|
77
|
+
* clientToken: "STRING_VALUE",
|
|
78
|
+
* tags: [
|
|
79
|
+
* {
|
|
80
|
+
* key: "STRING_VALUE",
|
|
81
|
+
* value: "STRING_VALUE",
|
|
82
|
+
* },
|
|
83
|
+
* ],
|
|
84
|
+
* };
|
|
32
85
|
* const command = new CreateTaskSetCommand(input);
|
|
33
86
|
* const response = await client.send(command);
|
|
34
87
|
* ```
|
|
@@ -27,6 +27,10 @@ export interface DeleteAccountSettingCommandOutput extends DeleteAccountSettingR
|
|
|
27
27
|
* import { ECSClient, DeleteAccountSettingCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
28
28
|
* // const { ECSClient, DeleteAccountSettingCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
29
29
|
* const client = new ECSClient(config);
|
|
30
|
+
* const input = {
|
|
31
|
+
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights", // required
|
|
32
|
+
* principalArn: "STRING_VALUE",
|
|
33
|
+
* };
|
|
30
34
|
* const command = new DeleteAccountSettingCommand(input);
|
|
31
35
|
* const response = await client.send(command);
|
|
32
36
|
* ```
|
|
@@ -26,6 +26,17 @@ export interface DeleteAttributesCommandOutput extends DeleteAttributesResponse,
|
|
|
26
26
|
* import { ECSClient, DeleteAttributesCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
27
27
|
* // const { ECSClient, DeleteAttributesCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
28
28
|
* const client = new ECSClient(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* cluster: "STRING_VALUE",
|
|
31
|
+
* attributes: [ // required
|
|
32
|
+
* {
|
|
33
|
+
* name: "STRING_VALUE", // required
|
|
34
|
+
* value: "STRING_VALUE",
|
|
35
|
+
* targetType: "container-instance",
|
|
36
|
+
* targetId: "STRING_VALUE",
|
|
37
|
+
* },
|
|
38
|
+
* ],
|
|
39
|
+
* };
|
|
29
40
|
* const command = new DeleteAttributesCommand(input);
|
|
30
41
|
* const response = await client.send(command);
|
|
31
42
|
* ```
|
|
@@ -40,6 +40,9 @@ export interface DeleteCapacityProviderCommandOutput extends DeleteCapacityProvi
|
|
|
40
40
|
* import { ECSClient, DeleteCapacityProviderCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
41
41
|
* // const { ECSClient, DeleteCapacityProviderCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
42
42
|
* const client = new ECSClient(config);
|
|
43
|
+
* const input = {
|
|
44
|
+
* capacityProvider: "STRING_VALUE", // required
|
|
45
|
+
* };
|
|
43
46
|
* const command = new DeleteCapacityProviderCommand(input);
|
|
44
47
|
* const response = await client.send(command);
|
|
45
48
|
* ```
|
|
@@ -31,6 +31,9 @@ export interface DeleteClusterCommandOutput extends DeleteClusterResponse, __Met
|
|
|
31
31
|
* import { ECSClient, DeleteClusterCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
32
32
|
* // const { ECSClient, DeleteClusterCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
33
33
|
* const client = new ECSClient(config);
|
|
34
|
+
* const input = {
|
|
35
|
+
* cluster: "STRING_VALUE", // required
|
|
36
|
+
* };
|
|
34
37
|
* const command = new DeleteClusterCommand(input);
|
|
35
38
|
* const response = await client.send(command);
|
|
36
39
|
* ```
|
|
@@ -46,6 +46,11 @@ export interface DeleteServiceCommandOutput extends DeleteServiceResponse, __Met
|
|
|
46
46
|
* import { ECSClient, DeleteServiceCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
47
47
|
* // const { ECSClient, DeleteServiceCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
48
48
|
* const client = new ECSClient(config);
|
|
49
|
+
* const input = {
|
|
50
|
+
* cluster: "STRING_VALUE",
|
|
51
|
+
* service: "STRING_VALUE", // required
|
|
52
|
+
* force: true || false,
|
|
53
|
+
* };
|
|
49
54
|
* const command = new DeleteServiceCommand(input);
|
|
50
55
|
* const response = await client.send(command);
|
|
51
56
|
* ```
|
|
@@ -39,6 +39,11 @@ export interface DeleteTaskDefinitionsCommandOutput extends DeleteTaskDefinition
|
|
|
39
39
|
* import { ECSClient, DeleteTaskDefinitionsCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
40
40
|
* // const { ECSClient, DeleteTaskDefinitionsCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
41
41
|
* const client = new ECSClient(config);
|
|
42
|
+
* const input = {
|
|
43
|
+
* taskDefinitions: [ // required
|
|
44
|
+
* "STRING_VALUE",
|
|
45
|
+
* ],
|
|
46
|
+
* };
|
|
42
47
|
* const command = new DeleteTaskDefinitionsCommand(input);
|
|
43
48
|
* const response = await client.send(command);
|
|
44
49
|
* ```
|
|
@@ -27,6 +27,12 @@ export interface DeleteTaskSetCommandOutput extends DeleteTaskSetResponse, __Met
|
|
|
27
27
|
* import { ECSClient, DeleteTaskSetCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
28
28
|
* // const { ECSClient, DeleteTaskSetCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
29
29
|
* const client = new ECSClient(config);
|
|
30
|
+
* const input = {
|
|
31
|
+
* cluster: "STRING_VALUE", // required
|
|
32
|
+
* service: "STRING_VALUE", // required
|
|
33
|
+
* taskSet: "STRING_VALUE", // required
|
|
34
|
+
* force: true || false,
|
|
35
|
+
* };
|
|
30
36
|
* const command = new DeleteTaskSetCommand(input);
|
|
31
37
|
* const response = await client.send(command);
|
|
32
38
|
* ```
|
|
@@ -39,6 +39,11 @@ export interface DeregisterContainerInstanceCommandOutput extends DeregisterCont
|
|
|
39
39
|
* import { ECSClient, DeregisterContainerInstanceCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
40
40
|
* // const { ECSClient, DeregisterContainerInstanceCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
41
41
|
* const client = new ECSClient(config);
|
|
42
|
+
* const input = {
|
|
43
|
+
* cluster: "STRING_VALUE",
|
|
44
|
+
* containerInstance: "STRING_VALUE", // required
|
|
45
|
+
* force: true || false,
|
|
46
|
+
* };
|
|
42
47
|
* const command = new DeregisterContainerInstanceCommand(input);
|
|
43
48
|
* const response = await client.send(command);
|
|
44
49
|
* ```
|
|
@@ -43,6 +43,9 @@ export interface DeregisterTaskDefinitionCommandOutput extends DeregisterTaskDef
|
|
|
43
43
|
* import { ECSClient, DeregisterTaskDefinitionCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
44
44
|
* // const { ECSClient, DeregisterTaskDefinitionCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
45
45
|
* const client = new ECSClient(config);
|
|
46
|
+
* const input = {
|
|
47
|
+
* taskDefinition: "STRING_VALUE", // required
|
|
48
|
+
* };
|
|
46
49
|
* const command = new DeregisterTaskDefinitionCommand(input);
|
|
47
50
|
* const response = await client.send(command);
|
|
48
51
|
* ```
|
|
@@ -26,6 +26,16 @@ export interface DescribeCapacityProvidersCommandOutput extends DescribeCapacity
|
|
|
26
26
|
* import { ECSClient, DescribeCapacityProvidersCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
27
27
|
* // const { ECSClient, DescribeCapacityProvidersCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
28
28
|
* const client = new ECSClient(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* capacityProviders: [
|
|
31
|
+
* "STRING_VALUE",
|
|
32
|
+
* ],
|
|
33
|
+
* include: [
|
|
34
|
+
* "TAGS",
|
|
35
|
+
* ],
|
|
36
|
+
* maxResults: Number("int"),
|
|
37
|
+
* nextToken: "STRING_VALUE",
|
|
38
|
+
* };
|
|
29
39
|
* const command = new DescribeCapacityProvidersCommand(input);
|
|
30
40
|
* const response = await client.send(command);
|
|
31
41
|
* ```
|
|
@@ -26,6 +26,14 @@ export interface DescribeClustersCommandOutput extends DescribeClustersResponse,
|
|
|
26
26
|
* import { ECSClient, DescribeClustersCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
27
27
|
* // const { ECSClient, DescribeClustersCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
28
28
|
* const client = new ECSClient(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* clusters: [
|
|
31
|
+
* "STRING_VALUE",
|
|
32
|
+
* ],
|
|
33
|
+
* include: [
|
|
34
|
+
* "ATTACHMENTS" || "CONFIGURATIONS" || "SETTINGS" || "STATISTICS" || "TAGS",
|
|
35
|
+
* ],
|
|
36
|
+
* };
|
|
29
37
|
* const command = new DescribeClustersCommand(input);
|
|
30
38
|
* const response = await client.send(command);
|
|
31
39
|
* ```
|
|
@@ -27,6 +27,15 @@ export interface DescribeContainerInstancesCommandOutput extends DescribeContain
|
|
|
27
27
|
* import { ECSClient, DescribeContainerInstancesCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
28
28
|
* // const { ECSClient, DescribeContainerInstancesCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
29
29
|
* const client = new ECSClient(config);
|
|
30
|
+
* const input = {
|
|
31
|
+
* cluster: "STRING_VALUE",
|
|
32
|
+
* containerInstances: [ // required
|
|
33
|
+
* "STRING_VALUE",
|
|
34
|
+
* ],
|
|
35
|
+
* include: [
|
|
36
|
+
* "TAGS" || "CONTAINER_INSTANCE_HEALTH",
|
|
37
|
+
* ],
|
|
38
|
+
* };
|
|
30
39
|
* const command = new DescribeContainerInstancesCommand(input);
|
|
31
40
|
* const response = await client.send(command);
|
|
32
41
|
* ```
|
|
@@ -26,6 +26,15 @@ export interface DescribeServicesCommandOutput extends DescribeServicesResponse,
|
|
|
26
26
|
* import { ECSClient, DescribeServicesCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
27
27
|
* // const { ECSClient, DescribeServicesCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
28
28
|
* const client = new ECSClient(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* cluster: "STRING_VALUE",
|
|
31
|
+
* services: [ // required
|
|
32
|
+
* "STRING_VALUE",
|
|
33
|
+
* ],
|
|
34
|
+
* include: [
|
|
35
|
+
* "TAGS",
|
|
36
|
+
* ],
|
|
37
|
+
* };
|
|
29
38
|
* const command = new DescribeServicesCommand(input);
|
|
30
39
|
* const response = await client.send(command);
|
|
31
40
|
* ```
|
|
@@ -33,6 +33,12 @@ export interface DescribeTaskDefinitionCommandOutput extends DescribeTaskDefinit
|
|
|
33
33
|
* import { ECSClient, DescribeTaskDefinitionCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
34
34
|
* // const { ECSClient, DescribeTaskDefinitionCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
35
35
|
* const client = new ECSClient(config);
|
|
36
|
+
* const input = {
|
|
37
|
+
* taskDefinition: "STRING_VALUE", // required
|
|
38
|
+
* include: [
|
|
39
|
+
* "TAGS",
|
|
40
|
+
* ],
|
|
41
|
+
* };
|
|
36
42
|
* const command = new DescribeTaskDefinitionCommand(input);
|
|
37
43
|
* const response = await client.send(command);
|
|
38
44
|
* ```
|
|
@@ -29,6 +29,16 @@ export interface DescribeTaskSetsCommandOutput extends DescribeTaskSetsResponse,
|
|
|
29
29
|
* import { ECSClient, DescribeTaskSetsCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
30
30
|
* // const { ECSClient, DescribeTaskSetsCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
31
31
|
* const client = new ECSClient(config);
|
|
32
|
+
* const input = {
|
|
33
|
+
* cluster: "STRING_VALUE", // required
|
|
34
|
+
* service: "STRING_VALUE", // required
|
|
35
|
+
* taskSets: [
|
|
36
|
+
* "STRING_VALUE",
|
|
37
|
+
* ],
|
|
38
|
+
* include: [
|
|
39
|
+
* "TAGS",
|
|
40
|
+
* ],
|
|
41
|
+
* };
|
|
32
42
|
* const command = new DescribeTaskSetsCommand(input);
|
|
33
43
|
* const response = await client.send(command);
|
|
34
44
|
* ```
|
|
@@ -27,6 +27,15 @@ export interface DescribeTasksCommandOutput extends DescribeTasksResponse, __Met
|
|
|
27
27
|
* import { ECSClient, DescribeTasksCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
28
28
|
* // const { ECSClient, DescribeTasksCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
29
29
|
* const client = new ECSClient(config);
|
|
30
|
+
* const input = {
|
|
31
|
+
* cluster: "STRING_VALUE",
|
|
32
|
+
* tasks: [ // required
|
|
33
|
+
* "STRING_VALUE",
|
|
34
|
+
* ],
|
|
35
|
+
* include: [
|
|
36
|
+
* "TAGS",
|
|
37
|
+
* ],
|
|
38
|
+
* };
|
|
30
39
|
* const command = new DescribeTasksCommand(input);
|
|
31
40
|
* const response = await client.send(command);
|
|
32
41
|
* ```
|
|
@@ -29,6 +29,10 @@ export interface DiscoverPollEndpointCommandOutput extends DiscoverPollEndpointR
|
|
|
29
29
|
* import { ECSClient, DiscoverPollEndpointCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
30
30
|
* // const { ECSClient, DiscoverPollEndpointCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
31
31
|
* const client = new ECSClient(config);
|
|
32
|
+
* const input = {
|
|
33
|
+
* containerInstance: "STRING_VALUE",
|
|
34
|
+
* cluster: "STRING_VALUE",
|
|
35
|
+
* };
|
|
32
36
|
* const command = new DiscoverPollEndpointCommand(input);
|
|
33
37
|
* const response = await client.send(command);
|
|
34
38
|
* ```
|
|
@@ -32,6 +32,13 @@ export interface ExecuteCommandCommandOutput extends ExecuteCommandResponse, __M
|
|
|
32
32
|
* import { ECSClient, ExecuteCommandCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
33
33
|
* // const { ECSClient, ExecuteCommandCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
34
34
|
* const client = new ECSClient(config);
|
|
35
|
+
* const input = {
|
|
36
|
+
* cluster: "STRING_VALUE",
|
|
37
|
+
* container: "STRING_VALUE",
|
|
38
|
+
* command: "STRING_VALUE", // required
|
|
39
|
+
* interactive: true || false, // required
|
|
40
|
+
* task: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
35
42
|
* const command = new ExecuteCommandCommand(input);
|
|
36
43
|
* const response = await client.send(command);
|
|
37
44
|
* ```
|
|
@@ -26,6 +26,12 @@ export interface GetTaskProtectionCommandOutput extends GetTaskProtectionRespons
|
|
|
26
26
|
* import { ECSClient, GetTaskProtectionCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
27
27
|
* // const { ECSClient, GetTaskProtectionCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
28
28
|
* const client = new ECSClient(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* cluster: "STRING_VALUE", // required
|
|
31
|
+
* tasks: [
|
|
32
|
+
* "STRING_VALUE",
|
|
33
|
+
* ],
|
|
34
|
+
* };
|
|
29
35
|
* const command = new GetTaskProtectionCommand(input);
|
|
30
36
|
* const response = await client.send(command);
|
|
31
37
|
* ```
|
|
@@ -26,6 +26,14 @@ export interface ListAccountSettingsCommandOutput extends ListAccountSettingsRes
|
|
|
26
26
|
* import { ECSClient, ListAccountSettingsCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
27
27
|
* // const { ECSClient, ListAccountSettingsCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
28
28
|
* const client = new ECSClient(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights",
|
|
31
|
+
* value: "STRING_VALUE",
|
|
32
|
+
* principalArn: "STRING_VALUE",
|
|
33
|
+
* effectiveSettings: true || false,
|
|
34
|
+
* nextToken: "STRING_VALUE",
|
|
35
|
+
* maxResults: Number("int"),
|
|
36
|
+
* };
|
|
29
37
|
* const command = new ListAccountSettingsCommand(input);
|
|
30
38
|
* const response = await client.send(command);
|
|
31
39
|
* ```
|
|
@@ -32,6 +32,14 @@ export interface ListAttributesCommandOutput extends ListAttributesResponse, __M
|
|
|
32
32
|
* import { ECSClient, ListAttributesCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
33
33
|
* // const { ECSClient, ListAttributesCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
34
34
|
* const client = new ECSClient(config);
|
|
35
|
+
* const input = {
|
|
36
|
+
* cluster: "STRING_VALUE",
|
|
37
|
+
* targetType: "container-instance", // required
|
|
38
|
+
* attributeName: "STRING_VALUE",
|
|
39
|
+
* attributeValue: "STRING_VALUE",
|
|
40
|
+
* nextToken: "STRING_VALUE",
|
|
41
|
+
* maxResults: Number("int"),
|
|
42
|
+
* };
|
|
35
43
|
* const command = new ListAttributesCommand(input);
|
|
36
44
|
* const response = await client.send(command);
|
|
37
45
|
* ```
|
|
@@ -26,6 +26,10 @@ export interface ListClustersCommandOutput extends ListClustersResponse, __Metad
|
|
|
26
26
|
* import { ECSClient, ListClustersCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
27
27
|
* // const { ECSClient, ListClustersCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
28
28
|
* const client = new ECSClient(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* nextToken: "STRING_VALUE",
|
|
31
|
+
* maxResults: Number("int"),
|
|
32
|
+
* };
|
|
29
33
|
* const command = new ListClustersCommand(input);
|
|
30
34
|
* const response = await client.send(command);
|
|
31
35
|
* ```
|
|
@@ -28,6 +28,13 @@ export interface ListContainerInstancesCommandOutput extends ListContainerInstan
|
|
|
28
28
|
* import { ECSClient, ListContainerInstancesCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
29
29
|
* // const { ECSClient, ListContainerInstancesCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
30
30
|
* const client = new ECSClient(config);
|
|
31
|
+
* const input = {
|
|
32
|
+
* cluster: "STRING_VALUE",
|
|
33
|
+
* filter: "STRING_VALUE",
|
|
34
|
+
* nextToken: "STRING_VALUE",
|
|
35
|
+
* maxResults: Number("int"),
|
|
36
|
+
* status: "ACTIVE" || "DRAINING" || "REGISTERING" || "DEREGISTERING" || "REGISTRATION_FAILED",
|
|
37
|
+
* };
|
|
31
38
|
* const command = new ListContainerInstancesCommand(input);
|
|
32
39
|
* const response = await client.send(command);
|
|
33
40
|
* ```
|
|
@@ -30,6 +30,11 @@ export interface ListServicesByNamespaceCommandOutput extends ListServicesByName
|
|
|
30
30
|
* import { ECSClient, ListServicesByNamespaceCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
31
31
|
* // const { ECSClient, ListServicesByNamespaceCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
32
32
|
* const client = new ECSClient(config);
|
|
33
|
+
* const input = {
|
|
34
|
+
* namespace: "STRING_VALUE", // required
|
|
35
|
+
* nextToken: "STRING_VALUE",
|
|
36
|
+
* maxResults: Number("int"),
|
|
37
|
+
* };
|
|
33
38
|
* const command = new ListServicesByNamespaceCommand(input);
|
|
34
39
|
* const response = await client.send(command);
|
|
35
40
|
* ```
|
|
@@ -27,6 +27,13 @@ export interface ListServicesCommandOutput extends ListServicesResponse, __Metad
|
|
|
27
27
|
* import { ECSClient, ListServicesCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
28
28
|
* // const { ECSClient, ListServicesCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
29
29
|
* const client = new ECSClient(config);
|
|
30
|
+
* const input = {
|
|
31
|
+
* cluster: "STRING_VALUE",
|
|
32
|
+
* nextToken: "STRING_VALUE",
|
|
33
|
+
* maxResults: Number("int"),
|
|
34
|
+
* launchType: "EC2" || "FARGATE" || "EXTERNAL",
|
|
35
|
+
* schedulingStrategy: "REPLICA" || "DAEMON",
|
|
36
|
+
* };
|
|
30
37
|
* const command = new ListServicesCommand(input);
|
|
31
38
|
* const response = await client.send(command);
|
|
32
39
|
* ```
|
|
@@ -26,6 +26,9 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
|
|
|
26
26
|
* import { ECSClient, ListTagsForResourceCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
27
27
|
* // const { ECSClient, ListTagsForResourceCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
28
28
|
* const client = new ECSClient(config);
|
|
29
|
+
* const input = {
|
|
30
|
+
* resourceArn: "STRING_VALUE", // required
|
|
31
|
+
* };
|
|
29
32
|
* const command = new ListTagsForResourceCommand(input);
|
|
30
33
|
* const response = await client.send(command);
|
|
31
34
|
* ```
|
|
@@ -32,6 +32,12 @@ export interface ListTaskDefinitionFamiliesCommandOutput extends ListTaskDefinit
|
|
|
32
32
|
* import { ECSClient, ListTaskDefinitionFamiliesCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
33
33
|
* // const { ECSClient, ListTaskDefinitionFamiliesCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
34
34
|
* const client = new ECSClient(config);
|
|
35
|
+
* const input = {
|
|
36
|
+
* familyPrefix: "STRING_VALUE",
|
|
37
|
+
* status: "ACTIVE" || "INACTIVE" || "ALL",
|
|
38
|
+
* nextToken: "STRING_VALUE",
|
|
39
|
+
* maxResults: Number("int"),
|
|
40
|
+
* };
|
|
35
41
|
* const command = new ListTaskDefinitionFamiliesCommand(input);
|
|
36
42
|
* const response = await client.send(command);
|
|
37
43
|
* ```
|