@aws-sdk/client-ecs 3.325.0 → 3.327.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-cjs/models/models_0.js +14 -14
- package/dist-cjs/protocols/Aws_json1_1.js +6 -0
- package/dist-es/models/models_0.js +12 -12
- package/dist-es/protocols/Aws_json1_1.js +6 -0
- package/dist-types/commands/CreateCapacityProviderCommand.d.ts +29 -0
- package/dist-types/commands/CreateClusterCommand.d.ts +75 -0
- package/dist-types/commands/CreateServiceCommand.d.ts +236 -0
- package/dist-types/commands/CreateTaskSetCommand.d.ts +69 -0
- package/dist-types/commands/DeleteAccountSettingCommand.d.ts +10 -0
- package/dist-types/commands/DeleteAttributesCommand.d.ts +13 -0
- package/dist-types/commands/DeleteCapacityProviderCommand.d.ts +29 -0
- package/dist-types/commands/DeleteClusterCommand.d.ts +72 -0
- package/dist-types/commands/DeleteServiceCommand.d.ts +236 -0
- package/dist-types/commands/DeleteTaskDefinitionsCommand.d.ts +275 -0
- package/dist-types/commands/DeleteTaskSetCommand.d.ts +69 -0
- package/dist-types/commands/DeregisterContainerInstanceCommand.d.ts +85 -0
- package/dist-types/commands/DeregisterTaskDefinitionCommand.d.ts +266 -0
- package/dist-types/commands/DescribeCapacityProvidersCommand.d.ts +39 -0
- package/dist-types/commands/DescribeClustersCommand.d.ts +81 -0
- package/dist-types/commands/DescribeContainerInstancesCommand.d.ts +94 -0
- package/dist-types/commands/DescribeServicesCommand.d.ts +245 -0
- package/dist-types/commands/DescribeTaskDefinitionCommand.d.ts +272 -0
- package/dist-types/commands/DescribeTaskSetsCommand.d.ts +78 -0
- package/dist-types/commands/DescribeTasksCommand.d.ts +170 -0
- package/dist-types/commands/DiscoverPollEndpointCommand.d.ts +8 -0
- package/dist-types/commands/ExecuteCommandCommand.d.ts +15 -0
- package/dist-types/commands/GetTaskProtectionCommand.d.ts +19 -0
- package/dist-types/commands/ListAccountSettingsCommand.d.ts +13 -0
- package/dist-types/commands/ListAttributesCommand.d.ts +14 -0
- package/dist-types/commands/ListClustersCommand.d.ts +9 -0
- package/dist-types/commands/ListContainerInstancesCommand.d.ts +9 -0
- package/dist-types/commands/ListServicesByNamespaceCommand.d.ts +9 -0
- package/dist-types/commands/ListServicesCommand.d.ts +9 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +11 -0
- package/dist-types/commands/ListTaskDefinitionFamiliesCommand.d.ts +9 -0
- package/dist-types/commands/ListTaskDefinitionsCommand.d.ts +9 -0
- package/dist-types/commands/ListTasksCommand.d.ts +9 -0
- package/dist-types/commands/PutAccountSettingCommand.d.ts +10 -0
- package/dist-types/commands/PutAccountSettingDefaultCommand.d.ts +10 -0
- package/dist-types/commands/PutAttributesCommand.d.ts +13 -0
- package/dist-types/commands/PutClusterCapacityProvidersCommand.d.ts +72 -0
- package/dist-types/commands/RegisterContainerInstanceCommand.d.ts +85 -0
- package/dist-types/commands/RegisterTaskDefinitionCommand.d.ts +272 -0
- package/dist-types/commands/RunTaskCommand.d.ts +170 -0
- package/dist-types/commands/StartTaskCommand.d.ts +170 -0
- package/dist-types/commands/StopTaskCommand.d.ts +161 -0
- package/dist-types/commands/SubmitAttachmentStateChangesCommand.d.ts +6 -0
- package/dist-types/commands/SubmitContainerStateChangeCommand.d.ts +6 -0
- package/dist-types/commands/SubmitTaskStateChangeCommand.d.ts +6 -0
- package/dist-types/commands/TagResourceCommand.d.ts +4 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +4 -0
- package/dist-types/commands/UpdateCapacityProviderCommand.d.ts +29 -0
- package/dist-types/commands/UpdateClusterCommand.d.ts +75 -0
- package/dist-types/commands/UpdateClusterSettingsCommand.d.ts +72 -0
- package/dist-types/commands/UpdateContainerAgentCommand.d.ts +85 -0
- package/dist-types/commands/UpdateContainerInstancesStateCommand.d.ts +94 -0
- package/dist-types/commands/UpdateServiceCommand.d.ts +236 -0
- package/dist-types/commands/UpdateServicePrimaryTaskSetCommand.d.ts +69 -0
- package/dist-types/commands/UpdateTaskProtectionCommand.d.ts +19 -0
- package/dist-types/commands/UpdateTaskSetCommand.d.ts +69 -0
- package/dist-types/models/models_0.d.ts +12 -12
- package/dist-types/ts3.4/models/models_0.d.ts +7 -7
- package/package.json +7 -7
|
@@ -151,6 +151,174 @@ export interface RunTaskCommandOutput extends RunTaskResponse, __MetadataBearer
|
|
|
151
151
|
* };
|
|
152
152
|
* const command = new RunTaskCommand(input);
|
|
153
153
|
* const response = await client.send(command);
|
|
154
|
+
* // { // RunTaskResponse
|
|
155
|
+
* // tasks: [ // Tasks
|
|
156
|
+
* // { // Task
|
|
157
|
+
* // attachments: [ // Attachments
|
|
158
|
+
* // { // Attachment
|
|
159
|
+
* // id: "STRING_VALUE",
|
|
160
|
+
* // type: "STRING_VALUE",
|
|
161
|
+
* // status: "STRING_VALUE",
|
|
162
|
+
* // details: [ // AttachmentDetails
|
|
163
|
+
* // { // KeyValuePair
|
|
164
|
+
* // name: "STRING_VALUE",
|
|
165
|
+
* // value: "STRING_VALUE",
|
|
166
|
+
* // },
|
|
167
|
+
* // ],
|
|
168
|
+
* // },
|
|
169
|
+
* // ],
|
|
170
|
+
* // attributes: [ // Attributes
|
|
171
|
+
* // { // Attribute
|
|
172
|
+
* // name: "STRING_VALUE", // required
|
|
173
|
+
* // value: "STRING_VALUE",
|
|
174
|
+
* // targetType: "container-instance",
|
|
175
|
+
* // targetId: "STRING_VALUE",
|
|
176
|
+
* // },
|
|
177
|
+
* // ],
|
|
178
|
+
* // availabilityZone: "STRING_VALUE",
|
|
179
|
+
* // capacityProviderName: "STRING_VALUE",
|
|
180
|
+
* // clusterArn: "STRING_VALUE",
|
|
181
|
+
* // connectivity: "CONNECTED" || "DISCONNECTED",
|
|
182
|
+
* // connectivityAt: new Date("TIMESTAMP"),
|
|
183
|
+
* // containerInstanceArn: "STRING_VALUE",
|
|
184
|
+
* // containers: [ // Containers
|
|
185
|
+
* // { // Container
|
|
186
|
+
* // containerArn: "STRING_VALUE",
|
|
187
|
+
* // taskArn: "STRING_VALUE",
|
|
188
|
+
* // name: "STRING_VALUE",
|
|
189
|
+
* // image: "STRING_VALUE",
|
|
190
|
+
* // imageDigest: "STRING_VALUE",
|
|
191
|
+
* // runtimeId: "STRING_VALUE",
|
|
192
|
+
* // lastStatus: "STRING_VALUE",
|
|
193
|
+
* // exitCode: Number("int"),
|
|
194
|
+
* // reason: "STRING_VALUE",
|
|
195
|
+
* // networkBindings: [ // NetworkBindings
|
|
196
|
+
* // { // NetworkBinding
|
|
197
|
+
* // bindIP: "STRING_VALUE",
|
|
198
|
+
* // containerPort: Number("int"),
|
|
199
|
+
* // hostPort: Number("int"),
|
|
200
|
+
* // protocol: "tcp" || "udp",
|
|
201
|
+
* // containerPortRange: "STRING_VALUE",
|
|
202
|
+
* // hostPortRange: "STRING_VALUE",
|
|
203
|
+
* // },
|
|
204
|
+
* // ],
|
|
205
|
+
* // networkInterfaces: [ // NetworkInterfaces
|
|
206
|
+
* // { // NetworkInterface
|
|
207
|
+
* // attachmentId: "STRING_VALUE",
|
|
208
|
+
* // privateIpv4Address: "STRING_VALUE",
|
|
209
|
+
* // ipv6Address: "STRING_VALUE",
|
|
210
|
+
* // },
|
|
211
|
+
* // ],
|
|
212
|
+
* // healthStatus: "HEALTHY" || "UNHEALTHY" || "UNKNOWN",
|
|
213
|
+
* // managedAgents: [ // ManagedAgents
|
|
214
|
+
* // { // ManagedAgent
|
|
215
|
+
* // lastStartedAt: new Date("TIMESTAMP"),
|
|
216
|
+
* // name: "ExecuteCommandAgent",
|
|
217
|
+
* // reason: "STRING_VALUE",
|
|
218
|
+
* // lastStatus: "STRING_VALUE",
|
|
219
|
+
* // },
|
|
220
|
+
* // ],
|
|
221
|
+
* // cpu: "STRING_VALUE",
|
|
222
|
+
* // memory: "STRING_VALUE",
|
|
223
|
+
* // memoryReservation: "STRING_VALUE",
|
|
224
|
+
* // gpuIds: [ // GpuIds
|
|
225
|
+
* // "STRING_VALUE",
|
|
226
|
+
* // ],
|
|
227
|
+
* // },
|
|
228
|
+
* // ],
|
|
229
|
+
* // cpu: "STRING_VALUE",
|
|
230
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
231
|
+
* // desiredStatus: "STRING_VALUE",
|
|
232
|
+
* // enableExecuteCommand: true || false,
|
|
233
|
+
* // executionStoppedAt: new Date("TIMESTAMP"),
|
|
234
|
+
* // group: "STRING_VALUE",
|
|
235
|
+
* // healthStatus: "HEALTHY" || "UNHEALTHY" || "UNKNOWN",
|
|
236
|
+
* // inferenceAccelerators: [ // InferenceAccelerators
|
|
237
|
+
* // { // InferenceAccelerator
|
|
238
|
+
* // deviceName: "STRING_VALUE", // required
|
|
239
|
+
* // deviceType: "STRING_VALUE", // required
|
|
240
|
+
* // },
|
|
241
|
+
* // ],
|
|
242
|
+
* // lastStatus: "STRING_VALUE",
|
|
243
|
+
* // launchType: "EC2" || "FARGATE" || "EXTERNAL",
|
|
244
|
+
* // memory: "STRING_VALUE",
|
|
245
|
+
* // overrides: { // TaskOverride
|
|
246
|
+
* // containerOverrides: [ // ContainerOverrides
|
|
247
|
+
* // { // ContainerOverride
|
|
248
|
+
* // name: "STRING_VALUE",
|
|
249
|
+
* // command: [ // StringList
|
|
250
|
+
* // "STRING_VALUE",
|
|
251
|
+
* // ],
|
|
252
|
+
* // environment: [ // EnvironmentVariables
|
|
253
|
+
* // {
|
|
254
|
+
* // name: "STRING_VALUE",
|
|
255
|
+
* // value: "STRING_VALUE",
|
|
256
|
+
* // },
|
|
257
|
+
* // ],
|
|
258
|
+
* // environmentFiles: [ // EnvironmentFiles
|
|
259
|
+
* // { // EnvironmentFile
|
|
260
|
+
* // value: "STRING_VALUE", // required
|
|
261
|
+
* // type: "s3", // required
|
|
262
|
+
* // },
|
|
263
|
+
* // ],
|
|
264
|
+
* // cpu: Number("int"),
|
|
265
|
+
* // memory: Number("int"),
|
|
266
|
+
* // memoryReservation: Number("int"),
|
|
267
|
+
* // resourceRequirements: [ // ResourceRequirements
|
|
268
|
+
* // { // ResourceRequirement
|
|
269
|
+
* // value: "STRING_VALUE", // required
|
|
270
|
+
* // type: "GPU" || "InferenceAccelerator", // required
|
|
271
|
+
* // },
|
|
272
|
+
* // ],
|
|
273
|
+
* // },
|
|
274
|
+
* // ],
|
|
275
|
+
* // cpu: "STRING_VALUE",
|
|
276
|
+
* // inferenceAcceleratorOverrides: [ // InferenceAcceleratorOverrides
|
|
277
|
+
* // { // InferenceAcceleratorOverride
|
|
278
|
+
* // deviceName: "STRING_VALUE",
|
|
279
|
+
* // deviceType: "STRING_VALUE",
|
|
280
|
+
* // },
|
|
281
|
+
* // ],
|
|
282
|
+
* // executionRoleArn: "STRING_VALUE",
|
|
283
|
+
* // memory: "STRING_VALUE",
|
|
284
|
+
* // taskRoleArn: "STRING_VALUE",
|
|
285
|
+
* // ephemeralStorage: { // EphemeralStorage
|
|
286
|
+
* // sizeInGiB: Number("int"), // required
|
|
287
|
+
* // },
|
|
288
|
+
* // },
|
|
289
|
+
* // platformVersion: "STRING_VALUE",
|
|
290
|
+
* // platformFamily: "STRING_VALUE",
|
|
291
|
+
* // pullStartedAt: new Date("TIMESTAMP"),
|
|
292
|
+
* // pullStoppedAt: new Date("TIMESTAMP"),
|
|
293
|
+
* // startedAt: new Date("TIMESTAMP"),
|
|
294
|
+
* // startedBy: "STRING_VALUE",
|
|
295
|
+
* // stopCode: "TaskFailedToStart" || "EssentialContainerExited" || "UserInitiated" || "ServiceSchedulerInitiated" || "SpotInterruption" || "TerminationNotice",
|
|
296
|
+
* // stoppedAt: new Date("TIMESTAMP"),
|
|
297
|
+
* // stoppedReason: "STRING_VALUE",
|
|
298
|
+
* // stoppingAt: new Date("TIMESTAMP"),
|
|
299
|
+
* // tags: [ // Tags
|
|
300
|
+
* // { // Tag
|
|
301
|
+
* // key: "STRING_VALUE",
|
|
302
|
+
* // value: "STRING_VALUE",
|
|
303
|
+
* // },
|
|
304
|
+
* // ],
|
|
305
|
+
* // taskArn: "STRING_VALUE",
|
|
306
|
+
* // taskDefinitionArn: "STRING_VALUE",
|
|
307
|
+
* // version: Number("long"),
|
|
308
|
+
* // ephemeralStorage: {
|
|
309
|
+
* // sizeInGiB: Number("int"), // required
|
|
310
|
+
* // },
|
|
311
|
+
* // },
|
|
312
|
+
* // ],
|
|
313
|
+
* // failures: [ // Failures
|
|
314
|
+
* // { // Failure
|
|
315
|
+
* // arn: "STRING_VALUE",
|
|
316
|
+
* // reason: "STRING_VALUE",
|
|
317
|
+
* // detail: "STRING_VALUE",
|
|
318
|
+
* // },
|
|
319
|
+
* // ],
|
|
320
|
+
* // };
|
|
321
|
+
*
|
|
154
322
|
* ```
|
|
155
323
|
*
|
|
156
324
|
* @param RunTaskCommandInput - {@link RunTaskCommandInput}
|
|
@@ -191,6 +359,8 @@ export interface RunTaskCommandOutput extends RunTaskResponse, __MetadataBearer
|
|
|
191
359
|
* @throws {@link UnsupportedFeatureException} (client fault)
|
|
192
360
|
* <p>The specified task isn't supported in this Region.</p>
|
|
193
361
|
*
|
|
362
|
+
* @throws {@link ECSServiceException}
|
|
363
|
+
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
194
364
|
*
|
|
195
365
|
* @example To run a task on your default cluster
|
|
196
366
|
* ```javascript
|
|
@@ -106,6 +106,174 @@ export interface StartTaskCommandOutput extends StartTaskResponse, __MetadataBea
|
|
|
106
106
|
* };
|
|
107
107
|
* const command = new StartTaskCommand(input);
|
|
108
108
|
* const response = await client.send(command);
|
|
109
|
+
* // { // StartTaskResponse
|
|
110
|
+
* // tasks: [ // Tasks
|
|
111
|
+
* // { // Task
|
|
112
|
+
* // attachments: [ // Attachments
|
|
113
|
+
* // { // Attachment
|
|
114
|
+
* // id: "STRING_VALUE",
|
|
115
|
+
* // type: "STRING_VALUE",
|
|
116
|
+
* // status: "STRING_VALUE",
|
|
117
|
+
* // details: [ // AttachmentDetails
|
|
118
|
+
* // { // KeyValuePair
|
|
119
|
+
* // name: "STRING_VALUE",
|
|
120
|
+
* // value: "STRING_VALUE",
|
|
121
|
+
* // },
|
|
122
|
+
* // ],
|
|
123
|
+
* // },
|
|
124
|
+
* // ],
|
|
125
|
+
* // attributes: [ // Attributes
|
|
126
|
+
* // { // Attribute
|
|
127
|
+
* // name: "STRING_VALUE", // required
|
|
128
|
+
* // value: "STRING_VALUE",
|
|
129
|
+
* // targetType: "container-instance",
|
|
130
|
+
* // targetId: "STRING_VALUE",
|
|
131
|
+
* // },
|
|
132
|
+
* // ],
|
|
133
|
+
* // availabilityZone: "STRING_VALUE",
|
|
134
|
+
* // capacityProviderName: "STRING_VALUE",
|
|
135
|
+
* // clusterArn: "STRING_VALUE",
|
|
136
|
+
* // connectivity: "CONNECTED" || "DISCONNECTED",
|
|
137
|
+
* // connectivityAt: new Date("TIMESTAMP"),
|
|
138
|
+
* // containerInstanceArn: "STRING_VALUE",
|
|
139
|
+
* // containers: [ // Containers
|
|
140
|
+
* // { // Container
|
|
141
|
+
* // containerArn: "STRING_VALUE",
|
|
142
|
+
* // taskArn: "STRING_VALUE",
|
|
143
|
+
* // name: "STRING_VALUE",
|
|
144
|
+
* // image: "STRING_VALUE",
|
|
145
|
+
* // imageDigest: "STRING_VALUE",
|
|
146
|
+
* // runtimeId: "STRING_VALUE",
|
|
147
|
+
* // lastStatus: "STRING_VALUE",
|
|
148
|
+
* // exitCode: Number("int"),
|
|
149
|
+
* // reason: "STRING_VALUE",
|
|
150
|
+
* // networkBindings: [ // NetworkBindings
|
|
151
|
+
* // { // NetworkBinding
|
|
152
|
+
* // bindIP: "STRING_VALUE",
|
|
153
|
+
* // containerPort: Number("int"),
|
|
154
|
+
* // hostPort: Number("int"),
|
|
155
|
+
* // protocol: "tcp" || "udp",
|
|
156
|
+
* // containerPortRange: "STRING_VALUE",
|
|
157
|
+
* // hostPortRange: "STRING_VALUE",
|
|
158
|
+
* // },
|
|
159
|
+
* // ],
|
|
160
|
+
* // networkInterfaces: [ // NetworkInterfaces
|
|
161
|
+
* // { // NetworkInterface
|
|
162
|
+
* // attachmentId: "STRING_VALUE",
|
|
163
|
+
* // privateIpv4Address: "STRING_VALUE",
|
|
164
|
+
* // ipv6Address: "STRING_VALUE",
|
|
165
|
+
* // },
|
|
166
|
+
* // ],
|
|
167
|
+
* // healthStatus: "HEALTHY" || "UNHEALTHY" || "UNKNOWN",
|
|
168
|
+
* // managedAgents: [ // ManagedAgents
|
|
169
|
+
* // { // ManagedAgent
|
|
170
|
+
* // lastStartedAt: new Date("TIMESTAMP"),
|
|
171
|
+
* // name: "ExecuteCommandAgent",
|
|
172
|
+
* // reason: "STRING_VALUE",
|
|
173
|
+
* // lastStatus: "STRING_VALUE",
|
|
174
|
+
* // },
|
|
175
|
+
* // ],
|
|
176
|
+
* // cpu: "STRING_VALUE",
|
|
177
|
+
* // memory: "STRING_VALUE",
|
|
178
|
+
* // memoryReservation: "STRING_VALUE",
|
|
179
|
+
* // gpuIds: [ // GpuIds
|
|
180
|
+
* // "STRING_VALUE",
|
|
181
|
+
* // ],
|
|
182
|
+
* // },
|
|
183
|
+
* // ],
|
|
184
|
+
* // cpu: "STRING_VALUE",
|
|
185
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
186
|
+
* // desiredStatus: "STRING_VALUE",
|
|
187
|
+
* // enableExecuteCommand: true || false,
|
|
188
|
+
* // executionStoppedAt: new Date("TIMESTAMP"),
|
|
189
|
+
* // group: "STRING_VALUE",
|
|
190
|
+
* // healthStatus: "HEALTHY" || "UNHEALTHY" || "UNKNOWN",
|
|
191
|
+
* // inferenceAccelerators: [ // InferenceAccelerators
|
|
192
|
+
* // { // InferenceAccelerator
|
|
193
|
+
* // deviceName: "STRING_VALUE", // required
|
|
194
|
+
* // deviceType: "STRING_VALUE", // required
|
|
195
|
+
* // },
|
|
196
|
+
* // ],
|
|
197
|
+
* // lastStatus: "STRING_VALUE",
|
|
198
|
+
* // launchType: "EC2" || "FARGATE" || "EXTERNAL",
|
|
199
|
+
* // memory: "STRING_VALUE",
|
|
200
|
+
* // overrides: { // TaskOverride
|
|
201
|
+
* // containerOverrides: [ // ContainerOverrides
|
|
202
|
+
* // { // ContainerOverride
|
|
203
|
+
* // name: "STRING_VALUE",
|
|
204
|
+
* // command: [ // StringList
|
|
205
|
+
* // "STRING_VALUE",
|
|
206
|
+
* // ],
|
|
207
|
+
* // environment: [ // EnvironmentVariables
|
|
208
|
+
* // {
|
|
209
|
+
* // name: "STRING_VALUE",
|
|
210
|
+
* // value: "STRING_VALUE",
|
|
211
|
+
* // },
|
|
212
|
+
* // ],
|
|
213
|
+
* // environmentFiles: [ // EnvironmentFiles
|
|
214
|
+
* // { // EnvironmentFile
|
|
215
|
+
* // value: "STRING_VALUE", // required
|
|
216
|
+
* // type: "s3", // required
|
|
217
|
+
* // },
|
|
218
|
+
* // ],
|
|
219
|
+
* // cpu: Number("int"),
|
|
220
|
+
* // memory: Number("int"),
|
|
221
|
+
* // memoryReservation: Number("int"),
|
|
222
|
+
* // resourceRequirements: [ // ResourceRequirements
|
|
223
|
+
* // { // ResourceRequirement
|
|
224
|
+
* // value: "STRING_VALUE", // required
|
|
225
|
+
* // type: "GPU" || "InferenceAccelerator", // required
|
|
226
|
+
* // },
|
|
227
|
+
* // ],
|
|
228
|
+
* // },
|
|
229
|
+
* // ],
|
|
230
|
+
* // cpu: "STRING_VALUE",
|
|
231
|
+
* // inferenceAcceleratorOverrides: [ // InferenceAcceleratorOverrides
|
|
232
|
+
* // { // InferenceAcceleratorOverride
|
|
233
|
+
* // deviceName: "STRING_VALUE",
|
|
234
|
+
* // deviceType: "STRING_VALUE",
|
|
235
|
+
* // },
|
|
236
|
+
* // ],
|
|
237
|
+
* // executionRoleArn: "STRING_VALUE",
|
|
238
|
+
* // memory: "STRING_VALUE",
|
|
239
|
+
* // taskRoleArn: "STRING_VALUE",
|
|
240
|
+
* // ephemeralStorage: { // EphemeralStorage
|
|
241
|
+
* // sizeInGiB: Number("int"), // required
|
|
242
|
+
* // },
|
|
243
|
+
* // },
|
|
244
|
+
* // platformVersion: "STRING_VALUE",
|
|
245
|
+
* // platformFamily: "STRING_VALUE",
|
|
246
|
+
* // pullStartedAt: new Date("TIMESTAMP"),
|
|
247
|
+
* // pullStoppedAt: new Date("TIMESTAMP"),
|
|
248
|
+
* // startedAt: new Date("TIMESTAMP"),
|
|
249
|
+
* // startedBy: "STRING_VALUE",
|
|
250
|
+
* // stopCode: "TaskFailedToStart" || "EssentialContainerExited" || "UserInitiated" || "ServiceSchedulerInitiated" || "SpotInterruption" || "TerminationNotice",
|
|
251
|
+
* // stoppedAt: new Date("TIMESTAMP"),
|
|
252
|
+
* // stoppedReason: "STRING_VALUE",
|
|
253
|
+
* // stoppingAt: new Date("TIMESTAMP"),
|
|
254
|
+
* // tags: [ // Tags
|
|
255
|
+
* // { // Tag
|
|
256
|
+
* // key: "STRING_VALUE",
|
|
257
|
+
* // value: "STRING_VALUE",
|
|
258
|
+
* // },
|
|
259
|
+
* // ],
|
|
260
|
+
* // taskArn: "STRING_VALUE",
|
|
261
|
+
* // taskDefinitionArn: "STRING_VALUE",
|
|
262
|
+
* // version: Number("long"),
|
|
263
|
+
* // ephemeralStorage: {
|
|
264
|
+
* // sizeInGiB: Number("int"), // required
|
|
265
|
+
* // },
|
|
266
|
+
* // },
|
|
267
|
+
* // ],
|
|
268
|
+
* // failures: [ // Failures
|
|
269
|
+
* // { // Failure
|
|
270
|
+
* // arn: "STRING_VALUE",
|
|
271
|
+
* // reason: "STRING_VALUE",
|
|
272
|
+
* // detail: "STRING_VALUE",
|
|
273
|
+
* // },
|
|
274
|
+
* // ],
|
|
275
|
+
* // };
|
|
276
|
+
*
|
|
109
277
|
* ```
|
|
110
278
|
*
|
|
111
279
|
* @param StartTaskCommandInput - {@link StartTaskCommandInput}
|
|
@@ -129,6 +297,8 @@ export interface StartTaskCommandOutput extends StartTaskResponse, __MetadataBea
|
|
|
129
297
|
* @throws {@link ServerException} (server fault)
|
|
130
298
|
* <p>These errors are usually caused by a server issue.</p>
|
|
131
299
|
*
|
|
300
|
+
* @throws {@link ECSServiceException}
|
|
301
|
+
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
132
302
|
*
|
|
133
303
|
*/
|
|
134
304
|
export declare class StartTaskCommand extends $Command<StartTaskCommandInput, StartTaskCommandOutput, ECSClientResolvedConfig> {
|
|
@@ -45,6 +45,165 @@ export interface StopTaskCommandOutput extends StopTaskResponse, __MetadataBeare
|
|
|
45
45
|
* };
|
|
46
46
|
* const command = new StopTaskCommand(input);
|
|
47
47
|
* const response = await client.send(command);
|
|
48
|
+
* // { // StopTaskResponse
|
|
49
|
+
* // task: { // Task
|
|
50
|
+
* // attachments: [ // Attachments
|
|
51
|
+
* // { // Attachment
|
|
52
|
+
* // id: "STRING_VALUE",
|
|
53
|
+
* // type: "STRING_VALUE",
|
|
54
|
+
* // status: "STRING_VALUE",
|
|
55
|
+
* // details: [ // AttachmentDetails
|
|
56
|
+
* // { // KeyValuePair
|
|
57
|
+
* // name: "STRING_VALUE",
|
|
58
|
+
* // value: "STRING_VALUE",
|
|
59
|
+
* // },
|
|
60
|
+
* // ],
|
|
61
|
+
* // },
|
|
62
|
+
* // ],
|
|
63
|
+
* // attributes: [ // Attributes
|
|
64
|
+
* // { // Attribute
|
|
65
|
+
* // name: "STRING_VALUE", // required
|
|
66
|
+
* // value: "STRING_VALUE",
|
|
67
|
+
* // targetType: "container-instance",
|
|
68
|
+
* // targetId: "STRING_VALUE",
|
|
69
|
+
* // },
|
|
70
|
+
* // ],
|
|
71
|
+
* // availabilityZone: "STRING_VALUE",
|
|
72
|
+
* // capacityProviderName: "STRING_VALUE",
|
|
73
|
+
* // clusterArn: "STRING_VALUE",
|
|
74
|
+
* // connectivity: "CONNECTED" || "DISCONNECTED",
|
|
75
|
+
* // connectivityAt: new Date("TIMESTAMP"),
|
|
76
|
+
* // containerInstanceArn: "STRING_VALUE",
|
|
77
|
+
* // containers: [ // Containers
|
|
78
|
+
* // { // Container
|
|
79
|
+
* // containerArn: "STRING_VALUE",
|
|
80
|
+
* // taskArn: "STRING_VALUE",
|
|
81
|
+
* // name: "STRING_VALUE",
|
|
82
|
+
* // image: "STRING_VALUE",
|
|
83
|
+
* // imageDigest: "STRING_VALUE",
|
|
84
|
+
* // runtimeId: "STRING_VALUE",
|
|
85
|
+
* // lastStatus: "STRING_VALUE",
|
|
86
|
+
* // exitCode: Number("int"),
|
|
87
|
+
* // reason: "STRING_VALUE",
|
|
88
|
+
* // networkBindings: [ // NetworkBindings
|
|
89
|
+
* // { // NetworkBinding
|
|
90
|
+
* // bindIP: "STRING_VALUE",
|
|
91
|
+
* // containerPort: Number("int"),
|
|
92
|
+
* // hostPort: Number("int"),
|
|
93
|
+
* // protocol: "tcp" || "udp",
|
|
94
|
+
* // containerPortRange: "STRING_VALUE",
|
|
95
|
+
* // hostPortRange: "STRING_VALUE",
|
|
96
|
+
* // },
|
|
97
|
+
* // ],
|
|
98
|
+
* // networkInterfaces: [ // NetworkInterfaces
|
|
99
|
+
* // { // NetworkInterface
|
|
100
|
+
* // attachmentId: "STRING_VALUE",
|
|
101
|
+
* // privateIpv4Address: "STRING_VALUE",
|
|
102
|
+
* // ipv6Address: "STRING_VALUE",
|
|
103
|
+
* // },
|
|
104
|
+
* // ],
|
|
105
|
+
* // healthStatus: "HEALTHY" || "UNHEALTHY" || "UNKNOWN",
|
|
106
|
+
* // managedAgents: [ // ManagedAgents
|
|
107
|
+
* // { // ManagedAgent
|
|
108
|
+
* // lastStartedAt: new Date("TIMESTAMP"),
|
|
109
|
+
* // name: "ExecuteCommandAgent",
|
|
110
|
+
* // reason: "STRING_VALUE",
|
|
111
|
+
* // lastStatus: "STRING_VALUE",
|
|
112
|
+
* // },
|
|
113
|
+
* // ],
|
|
114
|
+
* // cpu: "STRING_VALUE",
|
|
115
|
+
* // memory: "STRING_VALUE",
|
|
116
|
+
* // memoryReservation: "STRING_VALUE",
|
|
117
|
+
* // gpuIds: [ // GpuIds
|
|
118
|
+
* // "STRING_VALUE",
|
|
119
|
+
* // ],
|
|
120
|
+
* // },
|
|
121
|
+
* // ],
|
|
122
|
+
* // cpu: "STRING_VALUE",
|
|
123
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
124
|
+
* // desiredStatus: "STRING_VALUE",
|
|
125
|
+
* // enableExecuteCommand: true || false,
|
|
126
|
+
* // executionStoppedAt: new Date("TIMESTAMP"),
|
|
127
|
+
* // group: "STRING_VALUE",
|
|
128
|
+
* // healthStatus: "HEALTHY" || "UNHEALTHY" || "UNKNOWN",
|
|
129
|
+
* // inferenceAccelerators: [ // InferenceAccelerators
|
|
130
|
+
* // { // InferenceAccelerator
|
|
131
|
+
* // deviceName: "STRING_VALUE", // required
|
|
132
|
+
* // deviceType: "STRING_VALUE", // required
|
|
133
|
+
* // },
|
|
134
|
+
* // ],
|
|
135
|
+
* // lastStatus: "STRING_VALUE",
|
|
136
|
+
* // launchType: "EC2" || "FARGATE" || "EXTERNAL",
|
|
137
|
+
* // memory: "STRING_VALUE",
|
|
138
|
+
* // overrides: { // TaskOverride
|
|
139
|
+
* // containerOverrides: [ // ContainerOverrides
|
|
140
|
+
* // { // ContainerOverride
|
|
141
|
+
* // name: "STRING_VALUE",
|
|
142
|
+
* // command: [ // StringList
|
|
143
|
+
* // "STRING_VALUE",
|
|
144
|
+
* // ],
|
|
145
|
+
* // environment: [ // EnvironmentVariables
|
|
146
|
+
* // {
|
|
147
|
+
* // name: "STRING_VALUE",
|
|
148
|
+
* // value: "STRING_VALUE",
|
|
149
|
+
* // },
|
|
150
|
+
* // ],
|
|
151
|
+
* // environmentFiles: [ // EnvironmentFiles
|
|
152
|
+
* // { // EnvironmentFile
|
|
153
|
+
* // value: "STRING_VALUE", // required
|
|
154
|
+
* // type: "s3", // required
|
|
155
|
+
* // },
|
|
156
|
+
* // ],
|
|
157
|
+
* // cpu: Number("int"),
|
|
158
|
+
* // memory: Number("int"),
|
|
159
|
+
* // memoryReservation: Number("int"),
|
|
160
|
+
* // resourceRequirements: [ // ResourceRequirements
|
|
161
|
+
* // { // ResourceRequirement
|
|
162
|
+
* // value: "STRING_VALUE", // required
|
|
163
|
+
* // type: "GPU" || "InferenceAccelerator", // required
|
|
164
|
+
* // },
|
|
165
|
+
* // ],
|
|
166
|
+
* // },
|
|
167
|
+
* // ],
|
|
168
|
+
* // cpu: "STRING_VALUE",
|
|
169
|
+
* // inferenceAcceleratorOverrides: [ // InferenceAcceleratorOverrides
|
|
170
|
+
* // { // InferenceAcceleratorOverride
|
|
171
|
+
* // deviceName: "STRING_VALUE",
|
|
172
|
+
* // deviceType: "STRING_VALUE",
|
|
173
|
+
* // },
|
|
174
|
+
* // ],
|
|
175
|
+
* // executionRoleArn: "STRING_VALUE",
|
|
176
|
+
* // memory: "STRING_VALUE",
|
|
177
|
+
* // taskRoleArn: "STRING_VALUE",
|
|
178
|
+
* // ephemeralStorage: { // EphemeralStorage
|
|
179
|
+
* // sizeInGiB: Number("int"), // required
|
|
180
|
+
* // },
|
|
181
|
+
* // },
|
|
182
|
+
* // platformVersion: "STRING_VALUE",
|
|
183
|
+
* // platformFamily: "STRING_VALUE",
|
|
184
|
+
* // pullStartedAt: new Date("TIMESTAMP"),
|
|
185
|
+
* // pullStoppedAt: new Date("TIMESTAMP"),
|
|
186
|
+
* // startedAt: new Date("TIMESTAMP"),
|
|
187
|
+
* // startedBy: "STRING_VALUE",
|
|
188
|
+
* // stopCode: "TaskFailedToStart" || "EssentialContainerExited" || "UserInitiated" || "ServiceSchedulerInitiated" || "SpotInterruption" || "TerminationNotice",
|
|
189
|
+
* // stoppedAt: new Date("TIMESTAMP"),
|
|
190
|
+
* // stoppedReason: "STRING_VALUE",
|
|
191
|
+
* // stoppingAt: new Date("TIMESTAMP"),
|
|
192
|
+
* // tags: [ // Tags
|
|
193
|
+
* // { // Tag
|
|
194
|
+
* // key: "STRING_VALUE",
|
|
195
|
+
* // value: "STRING_VALUE",
|
|
196
|
+
* // },
|
|
197
|
+
* // ],
|
|
198
|
+
* // taskArn: "STRING_VALUE",
|
|
199
|
+
* // taskDefinitionArn: "STRING_VALUE",
|
|
200
|
+
* // version: Number("long"),
|
|
201
|
+
* // ephemeralStorage: {
|
|
202
|
+
* // sizeInGiB: Number("int"), // required
|
|
203
|
+
* // },
|
|
204
|
+
* // },
|
|
205
|
+
* // };
|
|
206
|
+
*
|
|
48
207
|
* ```
|
|
49
208
|
*
|
|
50
209
|
* @param StopTaskCommandInput - {@link StopTaskCommandInput}
|
|
@@ -68,6 +227,8 @@ export interface StopTaskCommandOutput extends StopTaskResponse, __MetadataBeare
|
|
|
68
227
|
* @throws {@link ServerException} (server fault)
|
|
69
228
|
* <p>These errors are usually caused by a server issue.</p>
|
|
70
229
|
*
|
|
230
|
+
* @throws {@link ECSServiceException}
|
|
231
|
+
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
71
232
|
*
|
|
72
233
|
*/
|
|
73
234
|
export declare class StopTaskCommand extends $Command<StopTaskCommandInput, StopTaskCommandOutput, ECSClientResolvedConfig> {
|
|
@@ -40,6 +40,10 @@ export interface SubmitAttachmentStateChangesCommandOutput extends SubmitAttachm
|
|
|
40
40
|
* };
|
|
41
41
|
* const command = new SubmitAttachmentStateChangesCommand(input);
|
|
42
42
|
* const response = await client.send(command);
|
|
43
|
+
* // { // SubmitAttachmentStateChangesResponse
|
|
44
|
+
* // acknowledgment: "STRING_VALUE",
|
|
45
|
+
* // };
|
|
46
|
+
*
|
|
43
47
|
* ```
|
|
44
48
|
*
|
|
45
49
|
* @param SubmitAttachmentStateChangesCommandInput - {@link SubmitAttachmentStateChangesCommandInput}
|
|
@@ -63,6 +67,8 @@ export interface SubmitAttachmentStateChangesCommandOutput extends SubmitAttachm
|
|
|
63
67
|
* @throws {@link ServerException} (server fault)
|
|
64
68
|
* <p>These errors are usually caused by a server issue.</p>
|
|
65
69
|
*
|
|
70
|
+
* @throws {@link ECSServiceException}
|
|
71
|
+
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
66
72
|
*
|
|
67
73
|
*/
|
|
68
74
|
export declare class SubmitAttachmentStateChangesCommand extends $Command<SubmitAttachmentStateChangesCommandInput, SubmitAttachmentStateChangesCommandOutput, ECSClientResolvedConfig> {
|
|
@@ -50,6 +50,10 @@ export interface SubmitContainerStateChangeCommandOutput extends SubmitContainer
|
|
|
50
50
|
* };
|
|
51
51
|
* const command = new SubmitContainerStateChangeCommand(input);
|
|
52
52
|
* const response = await client.send(command);
|
|
53
|
+
* // { // SubmitContainerStateChangeResponse
|
|
54
|
+
* // acknowledgment: "STRING_VALUE",
|
|
55
|
+
* // };
|
|
56
|
+
*
|
|
53
57
|
* ```
|
|
54
58
|
*
|
|
55
59
|
* @param SubmitContainerStateChangeCommandInput - {@link SubmitContainerStateChangeCommandInput}
|
|
@@ -69,6 +73,8 @@ export interface SubmitContainerStateChangeCommandOutput extends SubmitContainer
|
|
|
69
73
|
* @throws {@link ServerException} (server fault)
|
|
70
74
|
* <p>These errors are usually caused by a server issue.</p>
|
|
71
75
|
*
|
|
76
|
+
* @throws {@link ECSServiceException}
|
|
77
|
+
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
72
78
|
*
|
|
73
79
|
*/
|
|
74
80
|
export declare class SubmitContainerStateChangeCommand extends $Command<SubmitContainerStateChangeCommandInput, SubmitContainerStateChangeCommandOutput, ECSClientResolvedConfig> {
|
|
@@ -74,6 +74,10 @@ export interface SubmitTaskStateChangeCommandOutput extends SubmitTaskStateChang
|
|
|
74
74
|
* };
|
|
75
75
|
* const command = new SubmitTaskStateChangeCommand(input);
|
|
76
76
|
* const response = await client.send(command);
|
|
77
|
+
* // { // SubmitTaskStateChangeResponse
|
|
78
|
+
* // acknowledgment: "STRING_VALUE",
|
|
79
|
+
* // };
|
|
80
|
+
*
|
|
77
81
|
* ```
|
|
78
82
|
*
|
|
79
83
|
* @param SubmitTaskStateChangeCommandInput - {@link SubmitTaskStateChangeCommandInput}
|
|
@@ -97,6 +101,8 @@ export interface SubmitTaskStateChangeCommandOutput extends SubmitTaskStateChang
|
|
|
97
101
|
* @throws {@link ServerException} (server fault)
|
|
98
102
|
* <p>These errors are usually caused by a server issue.</p>
|
|
99
103
|
*
|
|
104
|
+
* @throws {@link ECSServiceException}
|
|
105
|
+
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
100
106
|
*
|
|
101
107
|
*/
|
|
102
108
|
export declare class SubmitTaskStateChangeCommand extends $Command<SubmitTaskStateChangeCommandInput, SubmitTaskStateChangeCommandOutput, ECSClientResolvedConfig> {
|
|
@@ -40,6 +40,8 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
|
|
|
40
40
|
* };
|
|
41
41
|
* const command = new TagResourceCommand(input);
|
|
42
42
|
* const response = await client.send(command);
|
|
43
|
+
* // {};
|
|
44
|
+
*
|
|
43
45
|
* ```
|
|
44
46
|
*
|
|
45
47
|
* @param TagResourceCommandInput - {@link TagResourceCommandInput}
|
|
@@ -66,6 +68,8 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
|
|
|
66
68
|
* @throws {@link ServerException} (server fault)
|
|
67
69
|
* <p>These errors are usually caused by a server issue.</p>
|
|
68
70
|
*
|
|
71
|
+
* @throws {@link ECSServiceException}
|
|
72
|
+
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
69
73
|
*
|
|
70
74
|
* @example To tag a cluster.
|
|
71
75
|
* ```javascript
|
|
@@ -34,6 +34,8 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
|
|
|
34
34
|
* };
|
|
35
35
|
* const command = new UntagResourceCommand(input);
|
|
36
36
|
* const response = await client.send(command);
|
|
37
|
+
* // {};
|
|
38
|
+
*
|
|
37
39
|
* ```
|
|
38
40
|
*
|
|
39
41
|
* @param UntagResourceCommandInput - {@link UntagResourceCommandInput}
|
|
@@ -60,6 +62,8 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
|
|
|
60
62
|
* @throws {@link ServerException} (server fault)
|
|
61
63
|
* <p>These errors are usually caused by a server issue.</p>
|
|
62
64
|
*
|
|
65
|
+
* @throws {@link ECSServiceException}
|
|
66
|
+
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
63
67
|
*
|
|
64
68
|
* @example To untag a cluster.
|
|
65
69
|
* ```javascript
|