@aws-sdk/client-ecs 3.321.1 → 3.326.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 +29 -0
- package/dist-types/commands/CreateClusterCommand.d.ts +72 -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 +72 -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 +4 -2
- package/package.json +16 -16
|
@@ -54,6 +54,76 @@ export interface PutClusterCapacityProvidersCommandOutput extends PutClusterCapa
|
|
|
54
54
|
* };
|
|
55
55
|
* const command = new PutClusterCapacityProvidersCommand(input);
|
|
56
56
|
* const response = await client.send(command);
|
|
57
|
+
* // { // PutClusterCapacityProvidersResponse
|
|
58
|
+
* // cluster: { // Cluster
|
|
59
|
+
* // clusterArn: "STRING_VALUE",
|
|
60
|
+
* // clusterName: "STRING_VALUE",
|
|
61
|
+
* // configuration: { // ClusterConfiguration
|
|
62
|
+
* // executeCommandConfiguration: { // ExecuteCommandConfiguration
|
|
63
|
+
* // kmsKeyId: "STRING_VALUE",
|
|
64
|
+
* // logging: "NONE" || "DEFAULT" || "OVERRIDE",
|
|
65
|
+
* // logConfiguration: { // ExecuteCommandLogConfiguration
|
|
66
|
+
* // cloudWatchLogGroupName: "STRING_VALUE",
|
|
67
|
+
* // cloudWatchEncryptionEnabled: true || false,
|
|
68
|
+
* // s3BucketName: "STRING_VALUE",
|
|
69
|
+
* // s3EncryptionEnabled: true || false,
|
|
70
|
+
* // s3KeyPrefix: "STRING_VALUE",
|
|
71
|
+
* // },
|
|
72
|
+
* // },
|
|
73
|
+
* // },
|
|
74
|
+
* // status: "STRING_VALUE",
|
|
75
|
+
* // registeredContainerInstancesCount: Number("int"),
|
|
76
|
+
* // runningTasksCount: Number("int"),
|
|
77
|
+
* // pendingTasksCount: Number("int"),
|
|
78
|
+
* // activeServicesCount: Number("int"),
|
|
79
|
+
* // statistics: [ // Statistics
|
|
80
|
+
* // { // KeyValuePair
|
|
81
|
+
* // name: "STRING_VALUE",
|
|
82
|
+
* // value: "STRING_VALUE",
|
|
83
|
+
* // },
|
|
84
|
+
* // ],
|
|
85
|
+
* // tags: [ // Tags
|
|
86
|
+
* // { // Tag
|
|
87
|
+
* // key: "STRING_VALUE",
|
|
88
|
+
* // value: "STRING_VALUE",
|
|
89
|
+
* // },
|
|
90
|
+
* // ],
|
|
91
|
+
* // settings: [ // ClusterSettings
|
|
92
|
+
* // { // ClusterSetting
|
|
93
|
+
* // name: "containerInsights",
|
|
94
|
+
* // value: "STRING_VALUE",
|
|
95
|
+
* // },
|
|
96
|
+
* // ],
|
|
97
|
+
* // capacityProviders: [ // StringList
|
|
98
|
+
* // "STRING_VALUE",
|
|
99
|
+
* // ],
|
|
100
|
+
* // defaultCapacityProviderStrategy: [ // CapacityProviderStrategy
|
|
101
|
+
* // { // CapacityProviderStrategyItem
|
|
102
|
+
* // capacityProvider: "STRING_VALUE", // required
|
|
103
|
+
* // weight: Number("int"),
|
|
104
|
+
* // base: Number("int"),
|
|
105
|
+
* // },
|
|
106
|
+
* // ],
|
|
107
|
+
* // attachments: [ // Attachments
|
|
108
|
+
* // { // Attachment
|
|
109
|
+
* // id: "STRING_VALUE",
|
|
110
|
+
* // type: "STRING_VALUE",
|
|
111
|
+
* // status: "STRING_VALUE",
|
|
112
|
+
* // details: [ // AttachmentDetails
|
|
113
|
+
* // {
|
|
114
|
+
* // name: "STRING_VALUE",
|
|
115
|
+
* // value: "STRING_VALUE",
|
|
116
|
+
* // },
|
|
117
|
+
* // ],
|
|
118
|
+
* // },
|
|
119
|
+
* // ],
|
|
120
|
+
* // attachmentsStatus: "STRING_VALUE",
|
|
121
|
+
* // serviceConnectDefaults: { // ClusterServiceConnectDefaults
|
|
122
|
+
* // namespace: "STRING_VALUE",
|
|
123
|
+
* // },
|
|
124
|
+
* // },
|
|
125
|
+
* // };
|
|
126
|
+
*
|
|
57
127
|
* ```
|
|
58
128
|
*
|
|
59
129
|
* @param PutClusterCapacityProvidersCommandInput - {@link PutClusterCapacityProvidersCommandInput}
|
|
@@ -87,6 +157,8 @@ export interface PutClusterCapacityProvidersCommandOutput extends PutClusterCapa
|
|
|
87
157
|
* process can get stuck in that state. However, when the agent reconnects, it resumes
|
|
88
158
|
* where it stopped previously.</p>
|
|
89
159
|
*
|
|
160
|
+
* @throws {@link ECSServiceException}
|
|
161
|
+
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
90
162
|
*
|
|
91
163
|
*/
|
|
92
164
|
export declare class PutClusterCapacityProvidersCommand extends $Command<PutClusterCapacityProvidersCommandInput, PutClusterCapacityProvidersCommandOutput, ECSClientResolvedConfig> {
|
|
@@ -75,6 +75,89 @@ export interface RegisterContainerInstanceCommandOutput extends RegisterContaine
|
|
|
75
75
|
* };
|
|
76
76
|
* const command = new RegisterContainerInstanceCommand(input);
|
|
77
77
|
* const response = await client.send(command);
|
|
78
|
+
* // { // RegisterContainerInstanceResponse
|
|
79
|
+
* // containerInstance: { // ContainerInstance
|
|
80
|
+
* // containerInstanceArn: "STRING_VALUE",
|
|
81
|
+
* // ec2InstanceId: "STRING_VALUE",
|
|
82
|
+
* // capacityProviderName: "STRING_VALUE",
|
|
83
|
+
* // version: Number("long"),
|
|
84
|
+
* // versionInfo: { // VersionInfo
|
|
85
|
+
* // agentVersion: "STRING_VALUE",
|
|
86
|
+
* // agentHash: "STRING_VALUE",
|
|
87
|
+
* // dockerVersion: "STRING_VALUE",
|
|
88
|
+
* // },
|
|
89
|
+
* // remainingResources: [ // Resources
|
|
90
|
+
* // { // Resource
|
|
91
|
+
* // name: "STRING_VALUE",
|
|
92
|
+
* // type: "STRING_VALUE",
|
|
93
|
+
* // doubleValue: Number("double"),
|
|
94
|
+
* // longValue: Number("long"),
|
|
95
|
+
* // integerValue: Number("int"),
|
|
96
|
+
* // stringSetValue: [ // StringList
|
|
97
|
+
* // "STRING_VALUE",
|
|
98
|
+
* // ],
|
|
99
|
+
* // },
|
|
100
|
+
* // ],
|
|
101
|
+
* // registeredResources: [
|
|
102
|
+
* // {
|
|
103
|
+
* // name: "STRING_VALUE",
|
|
104
|
+
* // type: "STRING_VALUE",
|
|
105
|
+
* // doubleValue: Number("double"),
|
|
106
|
+
* // longValue: Number("long"),
|
|
107
|
+
* // integerValue: Number("int"),
|
|
108
|
+
* // stringSetValue: [
|
|
109
|
+
* // "STRING_VALUE",
|
|
110
|
+
* // ],
|
|
111
|
+
* // },
|
|
112
|
+
* // ],
|
|
113
|
+
* // status: "STRING_VALUE",
|
|
114
|
+
* // statusReason: "STRING_VALUE",
|
|
115
|
+
* // agentConnected: true || false,
|
|
116
|
+
* // runningTasksCount: Number("int"),
|
|
117
|
+
* // pendingTasksCount: Number("int"),
|
|
118
|
+
* // agentUpdateStatus: "PENDING" || "STAGING" || "STAGED" || "UPDATING" || "UPDATED" || "FAILED",
|
|
119
|
+
* // attributes: [ // Attributes
|
|
120
|
+
* // { // Attribute
|
|
121
|
+
* // name: "STRING_VALUE", // required
|
|
122
|
+
* // value: "STRING_VALUE",
|
|
123
|
+
* // targetType: "container-instance",
|
|
124
|
+
* // targetId: "STRING_VALUE",
|
|
125
|
+
* // },
|
|
126
|
+
* // ],
|
|
127
|
+
* // registeredAt: new Date("TIMESTAMP"),
|
|
128
|
+
* // attachments: [ // Attachments
|
|
129
|
+
* // { // Attachment
|
|
130
|
+
* // id: "STRING_VALUE",
|
|
131
|
+
* // type: "STRING_VALUE",
|
|
132
|
+
* // status: "STRING_VALUE",
|
|
133
|
+
* // details: [ // AttachmentDetails
|
|
134
|
+
* // { // KeyValuePair
|
|
135
|
+
* // name: "STRING_VALUE",
|
|
136
|
+
* // value: "STRING_VALUE",
|
|
137
|
+
* // },
|
|
138
|
+
* // ],
|
|
139
|
+
* // },
|
|
140
|
+
* // ],
|
|
141
|
+
* // tags: [ // Tags
|
|
142
|
+
* // { // Tag
|
|
143
|
+
* // key: "STRING_VALUE",
|
|
144
|
+
* // value: "STRING_VALUE",
|
|
145
|
+
* // },
|
|
146
|
+
* // ],
|
|
147
|
+
* // healthStatus: { // ContainerInstanceHealthStatus
|
|
148
|
+
* // overallStatus: "OK" || "IMPAIRED" || "INSUFFICIENT_DATA" || "INITIALIZING",
|
|
149
|
+
* // details: [ // InstanceHealthCheckResultList
|
|
150
|
+
* // { // InstanceHealthCheckResult
|
|
151
|
+
* // type: "CONTAINER_RUNTIME",
|
|
152
|
+
* // status: "OK" || "IMPAIRED" || "INSUFFICIENT_DATA" || "INITIALIZING",
|
|
153
|
+
* // lastUpdated: new Date("TIMESTAMP"),
|
|
154
|
+
* // lastStatusChange: new Date("TIMESTAMP"),
|
|
155
|
+
* // },
|
|
156
|
+
* // ],
|
|
157
|
+
* // },
|
|
158
|
+
* // },
|
|
159
|
+
* // };
|
|
160
|
+
*
|
|
78
161
|
* ```
|
|
79
162
|
*
|
|
80
163
|
* @param RegisterContainerInstanceCommandInput - {@link RegisterContainerInstanceCommandInput}
|
|
@@ -95,6 +178,8 @@ export interface RegisterContainerInstanceCommandOutput extends RegisterContaine
|
|
|
95
178
|
* @throws {@link ServerException} (server fault)
|
|
96
179
|
* <p>These errors are usually caused by a server issue.</p>
|
|
97
180
|
*
|
|
181
|
+
* @throws {@link ECSServiceException}
|
|
182
|
+
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
98
183
|
*
|
|
99
184
|
*/
|
|
100
185
|
export declare class RegisterContainerInstanceCommand extends $Command<RegisterContainerInstanceCommandInput, RegisterContainerInstanceCommandOutput, ECSClientResolvedConfig> {
|
|
@@ -295,6 +295,276 @@ export interface RegisterTaskDefinitionCommandOutput extends RegisterTaskDefinit
|
|
|
295
295
|
* };
|
|
296
296
|
* const command = new RegisterTaskDefinitionCommand(input);
|
|
297
297
|
* const response = await client.send(command);
|
|
298
|
+
* // { // RegisterTaskDefinitionResponse
|
|
299
|
+
* // taskDefinition: { // TaskDefinition
|
|
300
|
+
* // taskDefinitionArn: "STRING_VALUE",
|
|
301
|
+
* // containerDefinitions: [ // ContainerDefinitions
|
|
302
|
+
* // { // ContainerDefinition
|
|
303
|
+
* // name: "STRING_VALUE",
|
|
304
|
+
* // image: "STRING_VALUE",
|
|
305
|
+
* // repositoryCredentials: { // RepositoryCredentials
|
|
306
|
+
* // credentialsParameter: "STRING_VALUE", // required
|
|
307
|
+
* // },
|
|
308
|
+
* // cpu: Number("int"),
|
|
309
|
+
* // memory: Number("int"),
|
|
310
|
+
* // memoryReservation: Number("int"),
|
|
311
|
+
* // links: [ // StringList
|
|
312
|
+
* // "STRING_VALUE",
|
|
313
|
+
* // ],
|
|
314
|
+
* // portMappings: [ // PortMappingList
|
|
315
|
+
* // { // PortMapping
|
|
316
|
+
* // containerPort: Number("int"),
|
|
317
|
+
* // hostPort: Number("int"),
|
|
318
|
+
* // protocol: "tcp" || "udp",
|
|
319
|
+
* // name: "STRING_VALUE",
|
|
320
|
+
* // appProtocol: "http" || "http2" || "grpc",
|
|
321
|
+
* // containerPortRange: "STRING_VALUE",
|
|
322
|
+
* // },
|
|
323
|
+
* // ],
|
|
324
|
+
* // essential: true || false,
|
|
325
|
+
* // entryPoint: [
|
|
326
|
+
* // "STRING_VALUE",
|
|
327
|
+
* // ],
|
|
328
|
+
* // command: [
|
|
329
|
+
* // "STRING_VALUE",
|
|
330
|
+
* // ],
|
|
331
|
+
* // environment: [ // EnvironmentVariables
|
|
332
|
+
* // { // KeyValuePair
|
|
333
|
+
* // name: "STRING_VALUE",
|
|
334
|
+
* // value: "STRING_VALUE",
|
|
335
|
+
* // },
|
|
336
|
+
* // ],
|
|
337
|
+
* // environmentFiles: [ // EnvironmentFiles
|
|
338
|
+
* // { // EnvironmentFile
|
|
339
|
+
* // value: "STRING_VALUE", // required
|
|
340
|
+
* // type: "s3", // required
|
|
341
|
+
* // },
|
|
342
|
+
* // ],
|
|
343
|
+
* // mountPoints: [ // MountPointList
|
|
344
|
+
* // { // MountPoint
|
|
345
|
+
* // sourceVolume: "STRING_VALUE",
|
|
346
|
+
* // containerPath: "STRING_VALUE",
|
|
347
|
+
* // readOnly: true || false,
|
|
348
|
+
* // },
|
|
349
|
+
* // ],
|
|
350
|
+
* // volumesFrom: [ // VolumeFromList
|
|
351
|
+
* // { // VolumeFrom
|
|
352
|
+
* // sourceContainer: "STRING_VALUE",
|
|
353
|
+
* // readOnly: true || false,
|
|
354
|
+
* // },
|
|
355
|
+
* // ],
|
|
356
|
+
* // linuxParameters: { // LinuxParameters
|
|
357
|
+
* // capabilities: { // KernelCapabilities
|
|
358
|
+
* // add: [
|
|
359
|
+
* // "STRING_VALUE",
|
|
360
|
+
* // ],
|
|
361
|
+
* // drop: [
|
|
362
|
+
* // "STRING_VALUE",
|
|
363
|
+
* // ],
|
|
364
|
+
* // },
|
|
365
|
+
* // devices: [ // DevicesList
|
|
366
|
+
* // { // Device
|
|
367
|
+
* // hostPath: "STRING_VALUE", // required
|
|
368
|
+
* // containerPath: "STRING_VALUE",
|
|
369
|
+
* // permissions: [ // DeviceCgroupPermissions
|
|
370
|
+
* // "read" || "write" || "mknod",
|
|
371
|
+
* // ],
|
|
372
|
+
* // },
|
|
373
|
+
* // ],
|
|
374
|
+
* // initProcessEnabled: true || false,
|
|
375
|
+
* // sharedMemorySize: Number("int"),
|
|
376
|
+
* // tmpfs: [ // TmpfsList
|
|
377
|
+
* // { // Tmpfs
|
|
378
|
+
* // containerPath: "STRING_VALUE", // required
|
|
379
|
+
* // size: Number("int"), // required
|
|
380
|
+
* // mountOptions: "<StringList>",
|
|
381
|
+
* // },
|
|
382
|
+
* // ],
|
|
383
|
+
* // maxSwap: Number("int"),
|
|
384
|
+
* // swappiness: Number("int"),
|
|
385
|
+
* // },
|
|
386
|
+
* // secrets: [ // SecretList
|
|
387
|
+
* // { // Secret
|
|
388
|
+
* // name: "STRING_VALUE", // required
|
|
389
|
+
* // valueFrom: "STRING_VALUE", // required
|
|
390
|
+
* // },
|
|
391
|
+
* // ],
|
|
392
|
+
* // dependsOn: [ // ContainerDependencies
|
|
393
|
+
* // { // ContainerDependency
|
|
394
|
+
* // containerName: "STRING_VALUE", // required
|
|
395
|
+
* // condition: "START" || "COMPLETE" || "SUCCESS" || "HEALTHY", // required
|
|
396
|
+
* // },
|
|
397
|
+
* // ],
|
|
398
|
+
* // startTimeout: Number("int"),
|
|
399
|
+
* // stopTimeout: Number("int"),
|
|
400
|
+
* // hostname: "STRING_VALUE",
|
|
401
|
+
* // user: "STRING_VALUE",
|
|
402
|
+
* // workingDirectory: "STRING_VALUE",
|
|
403
|
+
* // disableNetworking: true || false,
|
|
404
|
+
* // privileged: true || false,
|
|
405
|
+
* // readonlyRootFilesystem: true || false,
|
|
406
|
+
* // dnsServers: "<StringList>",
|
|
407
|
+
* // dnsSearchDomains: "<StringList>",
|
|
408
|
+
* // extraHosts: [ // HostEntryList
|
|
409
|
+
* // { // HostEntry
|
|
410
|
+
* // hostname: "STRING_VALUE", // required
|
|
411
|
+
* // ipAddress: "STRING_VALUE", // required
|
|
412
|
+
* // },
|
|
413
|
+
* // ],
|
|
414
|
+
* // dockerSecurityOptions: "<StringList>",
|
|
415
|
+
* // interactive: true || false,
|
|
416
|
+
* // pseudoTerminal: true || false,
|
|
417
|
+
* // dockerLabels: { // DockerLabelsMap
|
|
418
|
+
* // "<keys>": "STRING_VALUE",
|
|
419
|
+
* // },
|
|
420
|
+
* // ulimits: [ // UlimitList
|
|
421
|
+
* // { // Ulimit
|
|
422
|
+
* // name: "core" || "cpu" || "data" || "fsize" || "locks" || "memlock" || "msgqueue" || "nice" || "nofile" || "nproc" || "rss" || "rtprio" || "rttime" || "sigpending" || "stack", // required
|
|
423
|
+
* // softLimit: Number("int"), // required
|
|
424
|
+
* // hardLimit: Number("int"), // required
|
|
425
|
+
* // },
|
|
426
|
+
* // ],
|
|
427
|
+
* // logConfiguration: { // LogConfiguration
|
|
428
|
+
* // logDriver: "json-file" || "syslog" || "journald" || "gelf" || "fluentd" || "awslogs" || "splunk" || "awsfirelens", // required
|
|
429
|
+
* // options: { // LogConfigurationOptionsMap
|
|
430
|
+
* // "<keys>": "STRING_VALUE",
|
|
431
|
+
* // },
|
|
432
|
+
* // secretOptions: [
|
|
433
|
+
* // {
|
|
434
|
+
* // name: "STRING_VALUE", // required
|
|
435
|
+
* // valueFrom: "STRING_VALUE", // required
|
|
436
|
+
* // },
|
|
437
|
+
* // ],
|
|
438
|
+
* // },
|
|
439
|
+
* // healthCheck: { // HealthCheck
|
|
440
|
+
* // command: "<StringList>", // required
|
|
441
|
+
* // interval: Number("int"),
|
|
442
|
+
* // timeout: Number("int"),
|
|
443
|
+
* // retries: Number("int"),
|
|
444
|
+
* // startPeriod: Number("int"),
|
|
445
|
+
* // },
|
|
446
|
+
* // systemControls: [ // SystemControls
|
|
447
|
+
* // { // SystemControl
|
|
448
|
+
* // namespace: "STRING_VALUE",
|
|
449
|
+
* // value: "STRING_VALUE",
|
|
450
|
+
* // },
|
|
451
|
+
* // ],
|
|
452
|
+
* // resourceRequirements: [ // ResourceRequirements
|
|
453
|
+
* // { // ResourceRequirement
|
|
454
|
+
* // value: "STRING_VALUE", // required
|
|
455
|
+
* // type: "GPU" || "InferenceAccelerator", // required
|
|
456
|
+
* // },
|
|
457
|
+
* // ],
|
|
458
|
+
* // firelensConfiguration: { // FirelensConfiguration
|
|
459
|
+
* // type: "fluentd" || "fluentbit", // required
|
|
460
|
+
* // options: { // FirelensConfigurationOptionsMap
|
|
461
|
+
* // "<keys>": "STRING_VALUE",
|
|
462
|
+
* // },
|
|
463
|
+
* // },
|
|
464
|
+
* // },
|
|
465
|
+
* // ],
|
|
466
|
+
* // family: "STRING_VALUE",
|
|
467
|
+
* // taskRoleArn: "STRING_VALUE",
|
|
468
|
+
* // executionRoleArn: "STRING_VALUE",
|
|
469
|
+
* // networkMode: "bridge" || "host" || "awsvpc" || "none",
|
|
470
|
+
* // revision: Number("int"),
|
|
471
|
+
* // volumes: [ // VolumeList
|
|
472
|
+
* // { // Volume
|
|
473
|
+
* // name: "STRING_VALUE",
|
|
474
|
+
* // host: { // HostVolumeProperties
|
|
475
|
+
* // sourcePath: "STRING_VALUE",
|
|
476
|
+
* // },
|
|
477
|
+
* // dockerVolumeConfiguration: { // DockerVolumeConfiguration
|
|
478
|
+
* // scope: "task" || "shared",
|
|
479
|
+
* // autoprovision: true || false,
|
|
480
|
+
* // driver: "STRING_VALUE",
|
|
481
|
+
* // driverOpts: { // StringMap
|
|
482
|
+
* // "<keys>": "STRING_VALUE",
|
|
483
|
+
* // },
|
|
484
|
+
* // labels: {
|
|
485
|
+
* // "<keys>": "STRING_VALUE",
|
|
486
|
+
* // },
|
|
487
|
+
* // },
|
|
488
|
+
* // efsVolumeConfiguration: { // EFSVolumeConfiguration
|
|
489
|
+
* // fileSystemId: "STRING_VALUE", // required
|
|
490
|
+
* // rootDirectory: "STRING_VALUE",
|
|
491
|
+
* // transitEncryption: "ENABLED" || "DISABLED",
|
|
492
|
+
* // transitEncryptionPort: Number("int"),
|
|
493
|
+
* // authorizationConfig: { // EFSAuthorizationConfig
|
|
494
|
+
* // accessPointId: "STRING_VALUE",
|
|
495
|
+
* // iam: "ENABLED" || "DISABLED",
|
|
496
|
+
* // },
|
|
497
|
+
* // },
|
|
498
|
+
* // fsxWindowsFileServerVolumeConfiguration: { // FSxWindowsFileServerVolumeConfiguration
|
|
499
|
+
* // fileSystemId: "STRING_VALUE", // required
|
|
500
|
+
* // rootDirectory: "STRING_VALUE", // required
|
|
501
|
+
* // authorizationConfig: { // FSxWindowsFileServerAuthorizationConfig
|
|
502
|
+
* // credentialsParameter: "STRING_VALUE", // required
|
|
503
|
+
* // domain: "STRING_VALUE", // required
|
|
504
|
+
* // },
|
|
505
|
+
* // },
|
|
506
|
+
* // },
|
|
507
|
+
* // ],
|
|
508
|
+
* // status: "ACTIVE" || "INACTIVE" || "DELETE_IN_PROGRESS",
|
|
509
|
+
* // requiresAttributes: [ // RequiresAttributes
|
|
510
|
+
* // { // Attribute
|
|
511
|
+
* // name: "STRING_VALUE", // required
|
|
512
|
+
* // value: "STRING_VALUE",
|
|
513
|
+
* // targetType: "container-instance",
|
|
514
|
+
* // targetId: "STRING_VALUE",
|
|
515
|
+
* // },
|
|
516
|
+
* // ],
|
|
517
|
+
* // placementConstraints: [ // TaskDefinitionPlacementConstraints
|
|
518
|
+
* // { // TaskDefinitionPlacementConstraint
|
|
519
|
+
* // type: "memberOf",
|
|
520
|
+
* // expression: "STRING_VALUE",
|
|
521
|
+
* // },
|
|
522
|
+
* // ],
|
|
523
|
+
* // compatibilities: [ // CompatibilityList
|
|
524
|
+
* // "EC2" || "FARGATE" || "EXTERNAL",
|
|
525
|
+
* // ],
|
|
526
|
+
* // runtimePlatform: { // RuntimePlatform
|
|
527
|
+
* // cpuArchitecture: "X86_64" || "ARM64",
|
|
528
|
+
* // 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",
|
|
529
|
+
* // },
|
|
530
|
+
* // requiresCompatibilities: [
|
|
531
|
+
* // "EC2" || "FARGATE" || "EXTERNAL",
|
|
532
|
+
* // ],
|
|
533
|
+
* // cpu: "STRING_VALUE",
|
|
534
|
+
* // memory: "STRING_VALUE",
|
|
535
|
+
* // inferenceAccelerators: [ // InferenceAccelerators
|
|
536
|
+
* // { // InferenceAccelerator
|
|
537
|
+
* // deviceName: "STRING_VALUE", // required
|
|
538
|
+
* // deviceType: "STRING_VALUE", // required
|
|
539
|
+
* // },
|
|
540
|
+
* // ],
|
|
541
|
+
* // pidMode: "host" || "task",
|
|
542
|
+
* // ipcMode: "host" || "task" || "none",
|
|
543
|
+
* // proxyConfiguration: { // ProxyConfiguration
|
|
544
|
+
* // type: "APPMESH",
|
|
545
|
+
* // containerName: "STRING_VALUE", // required
|
|
546
|
+
* // properties: [ // ProxyConfigurationProperties
|
|
547
|
+
* // {
|
|
548
|
+
* // name: "STRING_VALUE",
|
|
549
|
+
* // value: "STRING_VALUE",
|
|
550
|
+
* // },
|
|
551
|
+
* // ],
|
|
552
|
+
* // },
|
|
553
|
+
* // registeredAt: new Date("TIMESTAMP"),
|
|
554
|
+
* // deregisteredAt: new Date("TIMESTAMP"),
|
|
555
|
+
* // registeredBy: "STRING_VALUE",
|
|
556
|
+
* // ephemeralStorage: { // EphemeralStorage
|
|
557
|
+
* // sizeInGiB: Number("int"), // required
|
|
558
|
+
* // },
|
|
559
|
+
* // },
|
|
560
|
+
* // tags: [ // Tags
|
|
561
|
+
* // { // Tag
|
|
562
|
+
* // key: "STRING_VALUE",
|
|
563
|
+
* // value: "STRING_VALUE",
|
|
564
|
+
* // },
|
|
565
|
+
* // ],
|
|
566
|
+
* // };
|
|
567
|
+
*
|
|
298
568
|
* ```
|
|
299
569
|
*
|
|
300
570
|
* @param RegisterTaskDefinitionCommandInput - {@link RegisterTaskDefinitionCommandInput}
|
|
@@ -315,6 +585,8 @@ export interface RegisterTaskDefinitionCommandOutput extends RegisterTaskDefinit
|
|
|
315
585
|
* @throws {@link ServerException} (server fault)
|
|
316
586
|
* <p>These errors are usually caused by a server issue.</p>
|
|
317
587
|
*
|
|
588
|
+
* @throws {@link ECSServiceException}
|
|
589
|
+
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
318
590
|
*
|
|
319
591
|
* @example To register a task definition
|
|
320
592
|
* ```javascript
|
|
@@ -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
|