@aws-sdk/client-ecs 3.299.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 +8 -8
|
@@ -28,6 +28,13 @@ export interface ListTaskDefinitionsCommandOutput extends ListTaskDefinitionsRes
|
|
|
28
28
|
* import { ECSClient, ListTaskDefinitionsCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
29
29
|
* // const { ECSClient, ListTaskDefinitionsCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
30
30
|
* const client = new ECSClient(config);
|
|
31
|
+
* const input = {
|
|
32
|
+
* familyPrefix: "STRING_VALUE",
|
|
33
|
+
* status: "ACTIVE" || "INACTIVE" || "DELETE_IN_PROGRESS",
|
|
34
|
+
* sort: "ASC" || "DESC",
|
|
35
|
+
* nextToken: "STRING_VALUE",
|
|
36
|
+
* maxResults: Number("int"),
|
|
37
|
+
* };
|
|
31
38
|
* const command = new ListTaskDefinitionsCommand(input);
|
|
32
39
|
* const response = await client.send(command);
|
|
33
40
|
* ```
|
|
@@ -30,6 +30,17 @@ export interface ListTasksCommandOutput extends ListTasksResponse, __MetadataBea
|
|
|
30
30
|
* import { ECSClient, ListTasksCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
31
31
|
* // const { ECSClient, ListTasksCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
32
32
|
* const client = new ECSClient(config);
|
|
33
|
+
* const input = {
|
|
34
|
+
* cluster: "STRING_VALUE",
|
|
35
|
+
* containerInstance: "STRING_VALUE",
|
|
36
|
+
* family: "STRING_VALUE",
|
|
37
|
+
* nextToken: "STRING_VALUE",
|
|
38
|
+
* maxResults: Number("int"),
|
|
39
|
+
* startedBy: "STRING_VALUE",
|
|
40
|
+
* serviceName: "STRING_VALUE",
|
|
41
|
+
* desiredStatus: "RUNNING" || "PENDING" || "STOPPED",
|
|
42
|
+
* launchType: "EC2" || "FARGATE" || "EXTERNAL",
|
|
43
|
+
* };
|
|
33
44
|
* const command = new ListTasksCommand(input);
|
|
34
45
|
* const response = await client.send(command);
|
|
35
46
|
* ```
|
|
@@ -49,6 +49,11 @@ export interface PutAccountSettingCommandOutput extends PutAccountSettingRespons
|
|
|
49
49
|
* import { ECSClient, PutAccountSettingCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
50
50
|
* // const { ECSClient, PutAccountSettingCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
51
51
|
* const client = new ECSClient(config);
|
|
52
|
+
* const input = {
|
|
53
|
+
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights", // required
|
|
54
|
+
* value: "STRING_VALUE", // required
|
|
55
|
+
* principalArn: "STRING_VALUE",
|
|
56
|
+
* };
|
|
52
57
|
* const command = new PutAccountSettingCommand(input);
|
|
53
58
|
* const response = await client.send(command);
|
|
54
59
|
* ```
|
|
@@ -28,6 +28,10 @@ export interface PutAccountSettingDefaultCommandOutput extends PutAccountSetting
|
|
|
28
28
|
* import { ECSClient, PutAccountSettingDefaultCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
29
29
|
* // const { ECSClient, PutAccountSettingDefaultCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
30
30
|
* const client = new ECSClient(config);
|
|
31
|
+
* const input = {
|
|
32
|
+
* name: "serviceLongArnFormat" || "taskLongArnFormat" || "containerInstanceLongArnFormat" || "awsvpcTrunking" || "containerInsights", // required
|
|
33
|
+
* value: "STRING_VALUE", // required
|
|
34
|
+
* };
|
|
31
35
|
* const command = new PutAccountSettingDefaultCommand(input);
|
|
32
36
|
* const response = await client.send(command);
|
|
33
37
|
* ```
|
|
@@ -29,6 +29,17 @@ export interface PutAttributesCommandOutput extends PutAttributesResponse, __Met
|
|
|
29
29
|
* import { ECSClient, PutAttributesCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
30
30
|
* // const { ECSClient, PutAttributesCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
31
31
|
* const client = new ECSClient(config);
|
|
32
|
+
* const input = {
|
|
33
|
+
* cluster: "STRING_VALUE",
|
|
34
|
+
* attributes: [ // required
|
|
35
|
+
* {
|
|
36
|
+
* name: "STRING_VALUE", // required
|
|
37
|
+
* value: "STRING_VALUE",
|
|
38
|
+
* targetType: "container-instance",
|
|
39
|
+
* targetId: "STRING_VALUE",
|
|
40
|
+
* },
|
|
41
|
+
* ],
|
|
42
|
+
* };
|
|
32
43
|
* const command = new PutAttributesCommand(input);
|
|
33
44
|
* const response = await client.send(command);
|
|
34
45
|
* ```
|
|
@@ -39,6 +39,19 @@ export interface PutClusterCapacityProvidersCommandOutput extends PutClusterCapa
|
|
|
39
39
|
* import { ECSClient, PutClusterCapacityProvidersCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
40
40
|
* // const { ECSClient, PutClusterCapacityProvidersCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
41
41
|
* const client = new ECSClient(config);
|
|
42
|
+
* const input = {
|
|
43
|
+
* cluster: "STRING_VALUE", // required
|
|
44
|
+
* capacityProviders: [ // required
|
|
45
|
+
* "STRING_VALUE",
|
|
46
|
+
* ],
|
|
47
|
+
* defaultCapacityProviderStrategy: [ // required
|
|
48
|
+
* {
|
|
49
|
+
* capacityProvider: "STRING_VALUE", // required
|
|
50
|
+
* weight: Number("int"),
|
|
51
|
+
* base: Number("int"),
|
|
52
|
+
* },
|
|
53
|
+
* ],
|
|
54
|
+
* };
|
|
42
55
|
* const command = new PutClusterCapacityProvidersCommand(input);
|
|
43
56
|
* const response = await client.send(command);
|
|
44
57
|
* ```
|
|
@@ -30,6 +30,49 @@ export interface RegisterContainerInstanceCommandOutput extends RegisterContaine
|
|
|
30
30
|
* import { ECSClient, RegisterContainerInstanceCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
31
31
|
* // const { ECSClient, RegisterContainerInstanceCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
32
32
|
* const client = new ECSClient(config);
|
|
33
|
+
* const input = {
|
|
34
|
+
* cluster: "STRING_VALUE",
|
|
35
|
+
* instanceIdentityDocument: "STRING_VALUE",
|
|
36
|
+
* instanceIdentityDocumentSignature: "STRING_VALUE",
|
|
37
|
+
* totalResources: [
|
|
38
|
+
* {
|
|
39
|
+
* name: "STRING_VALUE",
|
|
40
|
+
* type: "STRING_VALUE",
|
|
41
|
+
* doubleValue: Number("double"),
|
|
42
|
+
* longValue: Number("long"),
|
|
43
|
+
* integerValue: Number("int"),
|
|
44
|
+
* stringSetValue: [
|
|
45
|
+
* "STRING_VALUE",
|
|
46
|
+
* ],
|
|
47
|
+
* },
|
|
48
|
+
* ],
|
|
49
|
+
* versionInfo: {
|
|
50
|
+
* agentVersion: "STRING_VALUE",
|
|
51
|
+
* agentHash: "STRING_VALUE",
|
|
52
|
+
* dockerVersion: "STRING_VALUE",
|
|
53
|
+
* },
|
|
54
|
+
* containerInstanceArn: "STRING_VALUE",
|
|
55
|
+
* attributes: [
|
|
56
|
+
* {
|
|
57
|
+
* name: "STRING_VALUE", // required
|
|
58
|
+
* value: "STRING_VALUE",
|
|
59
|
+
* targetType: "container-instance",
|
|
60
|
+
* targetId: "STRING_VALUE",
|
|
61
|
+
* },
|
|
62
|
+
* ],
|
|
63
|
+
* platformDevices: [
|
|
64
|
+
* {
|
|
65
|
+
* id: "STRING_VALUE", // required
|
|
66
|
+
* type: "GPU", // required
|
|
67
|
+
* },
|
|
68
|
+
* ],
|
|
69
|
+
* tags: [
|
|
70
|
+
* {
|
|
71
|
+
* key: "STRING_VALUE",
|
|
72
|
+
* value: "STRING_VALUE",
|
|
73
|
+
* },
|
|
74
|
+
* ],
|
|
75
|
+
* };
|
|
33
76
|
* const command = new RegisterContainerInstanceCommand(input);
|
|
34
77
|
* const response = await client.send(command);
|
|
35
78
|
* ```
|
|
@@ -43,6 +43,266 @@ export interface RegisterTaskDefinitionCommandOutput extends RegisterTaskDefinit
|
|
|
43
43
|
* import { ECSClient, RegisterTaskDefinitionCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
44
44
|
* // const { ECSClient, RegisterTaskDefinitionCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
45
45
|
* const client = new ECSClient(config);
|
|
46
|
+
* const input = {
|
|
47
|
+
* family: "STRING_VALUE", // required
|
|
48
|
+
* taskRoleArn: "STRING_VALUE",
|
|
49
|
+
* executionRoleArn: "STRING_VALUE",
|
|
50
|
+
* networkMode: "bridge" || "host" || "awsvpc" || "none",
|
|
51
|
+
* containerDefinitions: [ // required
|
|
52
|
+
* {
|
|
53
|
+
* name: "STRING_VALUE",
|
|
54
|
+
* image: "STRING_VALUE",
|
|
55
|
+
* repositoryCredentials: {
|
|
56
|
+
* credentialsParameter: "STRING_VALUE", // required
|
|
57
|
+
* },
|
|
58
|
+
* cpu: Number("int"),
|
|
59
|
+
* memory: Number("int"),
|
|
60
|
+
* memoryReservation: Number("int"),
|
|
61
|
+
* links: [
|
|
62
|
+
* "STRING_VALUE",
|
|
63
|
+
* ],
|
|
64
|
+
* portMappings: [
|
|
65
|
+
* {
|
|
66
|
+
* containerPort: Number("int"),
|
|
67
|
+
* hostPort: Number("int"),
|
|
68
|
+
* protocol: "tcp" || "udp",
|
|
69
|
+
* name: "STRING_VALUE",
|
|
70
|
+
* appProtocol: "http" || "http2" || "grpc",
|
|
71
|
+
* containerPortRange: "STRING_VALUE",
|
|
72
|
+
* },
|
|
73
|
+
* ],
|
|
74
|
+
* essential: true || false,
|
|
75
|
+
* entryPoint: [
|
|
76
|
+
* "STRING_VALUE",
|
|
77
|
+
* ],
|
|
78
|
+
* command: [
|
|
79
|
+
* "STRING_VALUE",
|
|
80
|
+
* ],
|
|
81
|
+
* environment: [
|
|
82
|
+
* {
|
|
83
|
+
* name: "STRING_VALUE",
|
|
84
|
+
* value: "STRING_VALUE",
|
|
85
|
+
* },
|
|
86
|
+
* ],
|
|
87
|
+
* environmentFiles: [
|
|
88
|
+
* {
|
|
89
|
+
* value: "STRING_VALUE", // required
|
|
90
|
+
* type: "s3", // required
|
|
91
|
+
* },
|
|
92
|
+
* ],
|
|
93
|
+
* mountPoints: [
|
|
94
|
+
* {
|
|
95
|
+
* sourceVolume: "STRING_VALUE",
|
|
96
|
+
* containerPath: "STRING_VALUE",
|
|
97
|
+
* readOnly: true || false,
|
|
98
|
+
* },
|
|
99
|
+
* ],
|
|
100
|
+
* volumesFrom: [
|
|
101
|
+
* {
|
|
102
|
+
* sourceContainer: "STRING_VALUE",
|
|
103
|
+
* readOnly: true || false,
|
|
104
|
+
* },
|
|
105
|
+
* ],
|
|
106
|
+
* linuxParameters: {
|
|
107
|
+
* capabilities: {
|
|
108
|
+
* add: [
|
|
109
|
+
* "STRING_VALUE",
|
|
110
|
+
* ],
|
|
111
|
+
* drop: [
|
|
112
|
+
* "STRING_VALUE",
|
|
113
|
+
* ],
|
|
114
|
+
* },
|
|
115
|
+
* devices: [
|
|
116
|
+
* {
|
|
117
|
+
* hostPath: "STRING_VALUE", // required
|
|
118
|
+
* containerPath: "STRING_VALUE",
|
|
119
|
+
* permissions: [
|
|
120
|
+
* "read" || "write" || "mknod",
|
|
121
|
+
* ],
|
|
122
|
+
* },
|
|
123
|
+
* ],
|
|
124
|
+
* initProcessEnabled: true || false,
|
|
125
|
+
* sharedMemorySize: Number("int"),
|
|
126
|
+
* tmpfs: [
|
|
127
|
+
* {
|
|
128
|
+
* containerPath: "STRING_VALUE", // required
|
|
129
|
+
* size: Number("int"), // required
|
|
130
|
+
* mountOptions: [
|
|
131
|
+
* "<StringList>",
|
|
132
|
+
* ],
|
|
133
|
+
* },
|
|
134
|
+
* ],
|
|
135
|
+
* maxSwap: Number("int"),
|
|
136
|
+
* swappiness: Number("int"),
|
|
137
|
+
* },
|
|
138
|
+
* secrets: [
|
|
139
|
+
* {
|
|
140
|
+
* name: "STRING_VALUE", // required
|
|
141
|
+
* valueFrom: "STRING_VALUE", // required
|
|
142
|
+
* },
|
|
143
|
+
* ],
|
|
144
|
+
* dependsOn: [
|
|
145
|
+
* {
|
|
146
|
+
* containerName: "STRING_VALUE", // required
|
|
147
|
+
* condition: "START" || "COMPLETE" || "SUCCESS" || "HEALTHY", // required
|
|
148
|
+
* },
|
|
149
|
+
* ],
|
|
150
|
+
* startTimeout: Number("int"),
|
|
151
|
+
* stopTimeout: Number("int"),
|
|
152
|
+
* hostname: "STRING_VALUE",
|
|
153
|
+
* user: "STRING_VALUE",
|
|
154
|
+
* workingDirectory: "STRING_VALUE",
|
|
155
|
+
* disableNetworking: true || false,
|
|
156
|
+
* privileged: true || false,
|
|
157
|
+
* readonlyRootFilesystem: true || false,
|
|
158
|
+
* dnsServers: [
|
|
159
|
+
* "<StringList>",
|
|
160
|
+
* ],
|
|
161
|
+
* dnsSearchDomains: [
|
|
162
|
+
* "<StringList>",
|
|
163
|
+
* ],
|
|
164
|
+
* extraHosts: [
|
|
165
|
+
* {
|
|
166
|
+
* hostname: "STRING_VALUE", // required
|
|
167
|
+
* ipAddress: "STRING_VALUE", // required
|
|
168
|
+
* },
|
|
169
|
+
* ],
|
|
170
|
+
* dockerSecurityOptions: [
|
|
171
|
+
* "<StringList>",
|
|
172
|
+
* ],
|
|
173
|
+
* interactive: true || false,
|
|
174
|
+
* pseudoTerminal: true || false,
|
|
175
|
+
* dockerLabels: {
|
|
176
|
+
* "<keys>": "STRING_VALUE",
|
|
177
|
+
* },
|
|
178
|
+
* ulimits: [
|
|
179
|
+
* {
|
|
180
|
+
* name: "core" || "cpu" || "data" || "fsize" || "locks" || "memlock" || "msgqueue" || "nice" || "nofile" || "nproc" || "rss" || "rtprio" || "rttime" || "sigpending" || "stack", // required
|
|
181
|
+
* softLimit: Number("int"), // required
|
|
182
|
+
* hardLimit: Number("int"), // required
|
|
183
|
+
* },
|
|
184
|
+
* ],
|
|
185
|
+
* logConfiguration: {
|
|
186
|
+
* logDriver: "json-file" || "syslog" || "journald" || "gelf" || "fluentd" || "awslogs" || "splunk" || "awsfirelens", // required
|
|
187
|
+
* options: {
|
|
188
|
+
* "<keys>": "STRING_VALUE",
|
|
189
|
+
* },
|
|
190
|
+
* secretOptions: [
|
|
191
|
+
* {
|
|
192
|
+
* name: "STRING_VALUE", // required
|
|
193
|
+
* valueFrom: "STRING_VALUE", // required
|
|
194
|
+
* },
|
|
195
|
+
* ],
|
|
196
|
+
* },
|
|
197
|
+
* healthCheck: {
|
|
198
|
+
* command: [ // required
|
|
199
|
+
* "<StringList>",
|
|
200
|
+
* ],
|
|
201
|
+
* interval: Number("int"),
|
|
202
|
+
* timeout: Number("int"),
|
|
203
|
+
* retries: Number("int"),
|
|
204
|
+
* startPeriod: Number("int"),
|
|
205
|
+
* },
|
|
206
|
+
* systemControls: [
|
|
207
|
+
* {
|
|
208
|
+
* namespace: "STRING_VALUE",
|
|
209
|
+
* value: "STRING_VALUE",
|
|
210
|
+
* },
|
|
211
|
+
* ],
|
|
212
|
+
* resourceRequirements: [
|
|
213
|
+
* {
|
|
214
|
+
* value: "STRING_VALUE", // required
|
|
215
|
+
* type: "GPU" || "InferenceAccelerator", // required
|
|
216
|
+
* },
|
|
217
|
+
* ],
|
|
218
|
+
* firelensConfiguration: {
|
|
219
|
+
* type: "fluentd" || "fluentbit", // required
|
|
220
|
+
* options: {
|
|
221
|
+
* "<keys>": "STRING_VALUE",
|
|
222
|
+
* },
|
|
223
|
+
* },
|
|
224
|
+
* },
|
|
225
|
+
* ],
|
|
226
|
+
* volumes: [
|
|
227
|
+
* {
|
|
228
|
+
* name: "STRING_VALUE",
|
|
229
|
+
* host: {
|
|
230
|
+
* sourcePath: "STRING_VALUE",
|
|
231
|
+
* },
|
|
232
|
+
* dockerVolumeConfiguration: {
|
|
233
|
+
* scope: "task" || "shared",
|
|
234
|
+
* autoprovision: true || false,
|
|
235
|
+
* driver: "STRING_VALUE",
|
|
236
|
+
* driverOpts: {
|
|
237
|
+
* "<keys>": "STRING_VALUE",
|
|
238
|
+
* },
|
|
239
|
+
* labels: {
|
|
240
|
+
* "<keys>": "STRING_VALUE",
|
|
241
|
+
* },
|
|
242
|
+
* },
|
|
243
|
+
* efsVolumeConfiguration: {
|
|
244
|
+
* fileSystemId: "STRING_VALUE", // required
|
|
245
|
+
* rootDirectory: "STRING_VALUE",
|
|
246
|
+
* transitEncryption: "ENABLED" || "DISABLED",
|
|
247
|
+
* transitEncryptionPort: Number("int"),
|
|
248
|
+
* authorizationConfig: {
|
|
249
|
+
* accessPointId: "STRING_VALUE",
|
|
250
|
+
* iam: "ENABLED" || "DISABLED",
|
|
251
|
+
* },
|
|
252
|
+
* },
|
|
253
|
+
* fsxWindowsFileServerVolumeConfiguration: {
|
|
254
|
+
* fileSystemId: "STRING_VALUE", // required
|
|
255
|
+
* rootDirectory: "STRING_VALUE", // required
|
|
256
|
+
* authorizationConfig: {
|
|
257
|
+
* credentialsParameter: "STRING_VALUE", // required
|
|
258
|
+
* domain: "STRING_VALUE", // required
|
|
259
|
+
* },
|
|
260
|
+
* },
|
|
261
|
+
* },
|
|
262
|
+
* ],
|
|
263
|
+
* placementConstraints: [
|
|
264
|
+
* {
|
|
265
|
+
* type: "memberOf",
|
|
266
|
+
* expression: "STRING_VALUE",
|
|
267
|
+
* },
|
|
268
|
+
* ],
|
|
269
|
+
* requiresCompatibilities: [
|
|
270
|
+
* "EC2" || "FARGATE" || "EXTERNAL",
|
|
271
|
+
* ],
|
|
272
|
+
* cpu: "STRING_VALUE",
|
|
273
|
+
* memory: "STRING_VALUE",
|
|
274
|
+
* tags: [
|
|
275
|
+
* {
|
|
276
|
+
* key: "STRING_VALUE",
|
|
277
|
+
* value: "STRING_VALUE",
|
|
278
|
+
* },
|
|
279
|
+
* ],
|
|
280
|
+
* pidMode: "host" || "task",
|
|
281
|
+
* ipcMode: "host" || "task" || "none",
|
|
282
|
+
* proxyConfiguration: {
|
|
283
|
+
* type: "APPMESH",
|
|
284
|
+
* containerName: "STRING_VALUE", // required
|
|
285
|
+
* properties: [
|
|
286
|
+
* {
|
|
287
|
+
* name: "STRING_VALUE",
|
|
288
|
+
* value: "STRING_VALUE",
|
|
289
|
+
* },
|
|
290
|
+
* ],
|
|
291
|
+
* },
|
|
292
|
+
* inferenceAccelerators: [
|
|
293
|
+
* {
|
|
294
|
+
* deviceName: "STRING_VALUE", // required
|
|
295
|
+
* deviceType: "STRING_VALUE", // required
|
|
296
|
+
* },
|
|
297
|
+
* ],
|
|
298
|
+
* ephemeralStorage: {
|
|
299
|
+
* sizeInGiB: Number("int"), // required
|
|
300
|
+
* },
|
|
301
|
+
* runtimePlatform: {
|
|
302
|
+
* cpuArchitecture: "X86_64" || "ARM64",
|
|
303
|
+
* operatingSystemFamily: "WINDOWS_SERVER_2019_FULL" || "WINDOWS_SERVER_2019_CORE" || "WINDOWS_SERVER_2016_FULL" || "WINDOWS_SERVER_2004_CORE" || "WINDOWS_SERVER_2022_CORE" || "WINDOWS_SERVER_2022_FULL" || "WINDOWS_SERVER_20H2_CORE" || "LINUX",
|
|
304
|
+
* },
|
|
305
|
+
* };
|
|
46
306
|
* const command = new RegisterTaskDefinitionCommand(input);
|
|
47
307
|
* const response = await client.send(command);
|
|
48
308
|
* ```
|
|
@@ -53,6 +53,99 @@ export interface RunTaskCommandOutput extends RunTaskResponse, __MetadataBearer
|
|
|
53
53
|
* import { ECSClient, RunTaskCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
54
54
|
* // const { ECSClient, RunTaskCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
55
55
|
* const client = new ECSClient(config);
|
|
56
|
+
* const input = {
|
|
57
|
+
* capacityProviderStrategy: [
|
|
58
|
+
* {
|
|
59
|
+
* capacityProvider: "STRING_VALUE", // required
|
|
60
|
+
* weight: Number("int"),
|
|
61
|
+
* base: Number("int"),
|
|
62
|
+
* },
|
|
63
|
+
* ],
|
|
64
|
+
* cluster: "STRING_VALUE",
|
|
65
|
+
* count: Number("int"),
|
|
66
|
+
* enableECSManagedTags: true || false,
|
|
67
|
+
* enableExecuteCommand: true || false,
|
|
68
|
+
* group: "STRING_VALUE",
|
|
69
|
+
* launchType: "EC2" || "FARGATE" || "EXTERNAL",
|
|
70
|
+
* networkConfiguration: {
|
|
71
|
+
* awsvpcConfiguration: {
|
|
72
|
+
* subnets: [ // required
|
|
73
|
+
* "STRING_VALUE",
|
|
74
|
+
* ],
|
|
75
|
+
* securityGroups: [
|
|
76
|
+
* "STRING_VALUE",
|
|
77
|
+
* ],
|
|
78
|
+
* assignPublicIp: "ENABLED" || "DISABLED",
|
|
79
|
+
* },
|
|
80
|
+
* },
|
|
81
|
+
* overrides: {
|
|
82
|
+
* containerOverrides: [
|
|
83
|
+
* {
|
|
84
|
+
* name: "STRING_VALUE",
|
|
85
|
+
* command: [
|
|
86
|
+
* "STRING_VALUE",
|
|
87
|
+
* ],
|
|
88
|
+
* environment: [
|
|
89
|
+
* {
|
|
90
|
+
* name: "STRING_VALUE",
|
|
91
|
+
* value: "STRING_VALUE",
|
|
92
|
+
* },
|
|
93
|
+
* ],
|
|
94
|
+
* environmentFiles: [
|
|
95
|
+
* {
|
|
96
|
+
* value: "STRING_VALUE", // required
|
|
97
|
+
* type: "s3", // required
|
|
98
|
+
* },
|
|
99
|
+
* ],
|
|
100
|
+
* cpu: Number("int"),
|
|
101
|
+
* memory: Number("int"),
|
|
102
|
+
* memoryReservation: Number("int"),
|
|
103
|
+
* resourceRequirements: [
|
|
104
|
+
* {
|
|
105
|
+
* value: "STRING_VALUE", // required
|
|
106
|
+
* type: "GPU" || "InferenceAccelerator", // required
|
|
107
|
+
* },
|
|
108
|
+
* ],
|
|
109
|
+
* },
|
|
110
|
+
* ],
|
|
111
|
+
* cpu: "STRING_VALUE",
|
|
112
|
+
* inferenceAcceleratorOverrides: [
|
|
113
|
+
* {
|
|
114
|
+
* deviceName: "STRING_VALUE",
|
|
115
|
+
* deviceType: "STRING_VALUE",
|
|
116
|
+
* },
|
|
117
|
+
* ],
|
|
118
|
+
* executionRoleArn: "STRING_VALUE",
|
|
119
|
+
* memory: "STRING_VALUE",
|
|
120
|
+
* taskRoleArn: "STRING_VALUE",
|
|
121
|
+
* ephemeralStorage: {
|
|
122
|
+
* sizeInGiB: Number("int"), // required
|
|
123
|
+
* },
|
|
124
|
+
* },
|
|
125
|
+
* placementConstraints: [
|
|
126
|
+
* {
|
|
127
|
+
* type: "distinctInstance" || "memberOf",
|
|
128
|
+
* expression: "STRING_VALUE",
|
|
129
|
+
* },
|
|
130
|
+
* ],
|
|
131
|
+
* placementStrategy: [
|
|
132
|
+
* {
|
|
133
|
+
* type: "random" || "spread" || "binpack",
|
|
134
|
+
* field: "STRING_VALUE",
|
|
135
|
+
* },
|
|
136
|
+
* ],
|
|
137
|
+
* platformVersion: "STRING_VALUE",
|
|
138
|
+
* propagateTags: "TASK_DEFINITION" || "SERVICE" || "NONE",
|
|
139
|
+
* referenceId: "STRING_VALUE",
|
|
140
|
+
* startedBy: "STRING_VALUE",
|
|
141
|
+
* tags: [
|
|
142
|
+
* {
|
|
143
|
+
* key: "STRING_VALUE",
|
|
144
|
+
* value: "STRING_VALUE",
|
|
145
|
+
* },
|
|
146
|
+
* ],
|
|
147
|
+
* taskDefinition: "STRING_VALUE", // required
|
|
148
|
+
* };
|
|
56
149
|
* const command = new RunTaskCommand(input);
|
|
57
150
|
* const response = await client.send(command);
|
|
58
151
|
* ```
|
|
@@ -29,6 +29,80 @@ export interface StartTaskCommandOutput extends StartTaskResponse, __MetadataBea
|
|
|
29
29
|
* import { ECSClient, StartTaskCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
30
30
|
* // const { ECSClient, StartTaskCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
31
31
|
* const client = new ECSClient(config);
|
|
32
|
+
* const input = {
|
|
33
|
+
* cluster: "STRING_VALUE",
|
|
34
|
+
* containerInstances: [ // required
|
|
35
|
+
* "STRING_VALUE",
|
|
36
|
+
* ],
|
|
37
|
+
* enableECSManagedTags: true || false,
|
|
38
|
+
* enableExecuteCommand: true || false,
|
|
39
|
+
* group: "STRING_VALUE",
|
|
40
|
+
* networkConfiguration: {
|
|
41
|
+
* awsvpcConfiguration: {
|
|
42
|
+
* subnets: [ // required
|
|
43
|
+
* "STRING_VALUE",
|
|
44
|
+
* ],
|
|
45
|
+
* securityGroups: [
|
|
46
|
+
* "STRING_VALUE",
|
|
47
|
+
* ],
|
|
48
|
+
* assignPublicIp: "ENABLED" || "DISABLED",
|
|
49
|
+
* },
|
|
50
|
+
* },
|
|
51
|
+
* overrides: {
|
|
52
|
+
* containerOverrides: [
|
|
53
|
+
* {
|
|
54
|
+
* name: "STRING_VALUE",
|
|
55
|
+
* command: [
|
|
56
|
+
* "<StringList>",
|
|
57
|
+
* ],
|
|
58
|
+
* environment: [
|
|
59
|
+
* {
|
|
60
|
+
* name: "STRING_VALUE",
|
|
61
|
+
* value: "STRING_VALUE",
|
|
62
|
+
* },
|
|
63
|
+
* ],
|
|
64
|
+
* environmentFiles: [
|
|
65
|
+
* {
|
|
66
|
+
* value: "STRING_VALUE", // required
|
|
67
|
+
* type: "s3", // required
|
|
68
|
+
* },
|
|
69
|
+
* ],
|
|
70
|
+
* cpu: Number("int"),
|
|
71
|
+
* memory: Number("int"),
|
|
72
|
+
* memoryReservation: Number("int"),
|
|
73
|
+
* resourceRequirements: [
|
|
74
|
+
* {
|
|
75
|
+
* value: "STRING_VALUE", // required
|
|
76
|
+
* type: "GPU" || "InferenceAccelerator", // required
|
|
77
|
+
* },
|
|
78
|
+
* ],
|
|
79
|
+
* },
|
|
80
|
+
* ],
|
|
81
|
+
* cpu: "STRING_VALUE",
|
|
82
|
+
* inferenceAcceleratorOverrides: [
|
|
83
|
+
* {
|
|
84
|
+
* deviceName: "STRING_VALUE",
|
|
85
|
+
* deviceType: "STRING_VALUE",
|
|
86
|
+
* },
|
|
87
|
+
* ],
|
|
88
|
+
* executionRoleArn: "STRING_VALUE",
|
|
89
|
+
* memory: "STRING_VALUE",
|
|
90
|
+
* taskRoleArn: "STRING_VALUE",
|
|
91
|
+
* ephemeralStorage: {
|
|
92
|
+
* sizeInGiB: Number("int"), // required
|
|
93
|
+
* },
|
|
94
|
+
* },
|
|
95
|
+
* propagateTags: "TASK_DEFINITION" || "SERVICE" || "NONE",
|
|
96
|
+
* referenceId: "STRING_VALUE",
|
|
97
|
+
* startedBy: "STRING_VALUE",
|
|
98
|
+
* tags: [
|
|
99
|
+
* {
|
|
100
|
+
* key: "STRING_VALUE",
|
|
101
|
+
* value: "STRING_VALUE",
|
|
102
|
+
* },
|
|
103
|
+
* ],
|
|
104
|
+
* taskDefinition: "STRING_VALUE", // required
|
|
105
|
+
* };
|
|
32
106
|
* const command = new StartTaskCommand(input);
|
|
33
107
|
* const response = await client.send(command);
|
|
34
108
|
* ```
|
|
@@ -38,6 +38,11 @@ export interface StopTaskCommandOutput extends StopTaskResponse, __MetadataBeare
|
|
|
38
38
|
* import { ECSClient, StopTaskCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
39
39
|
* // const { ECSClient, StopTaskCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
40
40
|
* const client = new ECSClient(config);
|
|
41
|
+
* const input = {
|
|
42
|
+
* cluster: "STRING_VALUE",
|
|
43
|
+
* task: "STRING_VALUE", // required
|
|
44
|
+
* reason: "STRING_VALUE",
|
|
45
|
+
* };
|
|
41
46
|
* const command = new StopTaskCommand(input);
|
|
42
47
|
* const response = await client.send(command);
|
|
43
48
|
* ```
|
|
@@ -29,6 +29,15 @@ export interface SubmitAttachmentStateChangesCommandOutput extends SubmitAttachm
|
|
|
29
29
|
* import { ECSClient, SubmitAttachmentStateChangesCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
30
30
|
* // const { ECSClient, SubmitAttachmentStateChangesCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
31
31
|
* const client = new ECSClient(config);
|
|
32
|
+
* const input = {
|
|
33
|
+
* cluster: "STRING_VALUE",
|
|
34
|
+
* attachments: [ // required
|
|
35
|
+
* {
|
|
36
|
+
* attachmentArn: "STRING_VALUE", // required
|
|
37
|
+
* status: "STRING_VALUE", // required
|
|
38
|
+
* },
|
|
39
|
+
* ],
|
|
40
|
+
* };
|
|
32
41
|
* const command = new SubmitAttachmentStateChangesCommand(input);
|
|
33
42
|
* const response = await client.send(command);
|
|
34
43
|
* ```
|
|
@@ -29,6 +29,25 @@ export interface SubmitContainerStateChangeCommandOutput extends SubmitContainer
|
|
|
29
29
|
* import { ECSClient, SubmitContainerStateChangeCommand } from "@aws-sdk/client-ecs"; // ES Modules import
|
|
30
30
|
* // const { ECSClient, SubmitContainerStateChangeCommand } = require("@aws-sdk/client-ecs"); // CommonJS import
|
|
31
31
|
* const client = new ECSClient(config);
|
|
32
|
+
* const input = {
|
|
33
|
+
* cluster: "STRING_VALUE",
|
|
34
|
+
* task: "STRING_VALUE",
|
|
35
|
+
* containerName: "STRING_VALUE",
|
|
36
|
+
* runtimeId: "STRING_VALUE",
|
|
37
|
+
* status: "STRING_VALUE",
|
|
38
|
+
* exitCode: Number("int"),
|
|
39
|
+
* reason: "STRING_VALUE",
|
|
40
|
+
* networkBindings: [
|
|
41
|
+
* {
|
|
42
|
+
* bindIP: "STRING_VALUE",
|
|
43
|
+
* containerPort: Number("int"),
|
|
44
|
+
* hostPort: Number("int"),
|
|
45
|
+
* protocol: "tcp" || "udp",
|
|
46
|
+
* containerPortRange: "STRING_VALUE",
|
|
47
|
+
* hostPortRange: "STRING_VALUE",
|
|
48
|
+
* },
|
|
49
|
+
* ],
|
|
50
|
+
* };
|
|
32
51
|
* const command = new SubmitContainerStateChangeCommand(input);
|
|
33
52
|
* const response = await client.send(command);
|
|
34
53
|
* ```
|