@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
|
@@ -37,6 +37,76 @@ export interface UpdateClusterSettingsCommandOutput extends UpdateClusterSetting
|
|
|
37
37
|
* };
|
|
38
38
|
* const command = new UpdateClusterSettingsCommand(input);
|
|
39
39
|
* const response = await client.send(command);
|
|
40
|
+
* // { // UpdateClusterSettingsResponse
|
|
41
|
+
* // cluster: { // Cluster
|
|
42
|
+
* // clusterArn: "STRING_VALUE",
|
|
43
|
+
* // clusterName: "STRING_VALUE",
|
|
44
|
+
* // configuration: { // ClusterConfiguration
|
|
45
|
+
* // executeCommandConfiguration: { // ExecuteCommandConfiguration
|
|
46
|
+
* // kmsKeyId: "STRING_VALUE",
|
|
47
|
+
* // logging: "NONE" || "DEFAULT" || "OVERRIDE",
|
|
48
|
+
* // logConfiguration: { // ExecuteCommandLogConfiguration
|
|
49
|
+
* // cloudWatchLogGroupName: "STRING_VALUE",
|
|
50
|
+
* // cloudWatchEncryptionEnabled: true || false,
|
|
51
|
+
* // s3BucketName: "STRING_VALUE",
|
|
52
|
+
* // s3EncryptionEnabled: true || false,
|
|
53
|
+
* // s3KeyPrefix: "STRING_VALUE",
|
|
54
|
+
* // },
|
|
55
|
+
* // },
|
|
56
|
+
* // },
|
|
57
|
+
* // status: "STRING_VALUE",
|
|
58
|
+
* // registeredContainerInstancesCount: Number("int"),
|
|
59
|
+
* // runningTasksCount: Number("int"),
|
|
60
|
+
* // pendingTasksCount: Number("int"),
|
|
61
|
+
* // activeServicesCount: Number("int"),
|
|
62
|
+
* // statistics: [ // Statistics
|
|
63
|
+
* // { // KeyValuePair
|
|
64
|
+
* // name: "STRING_VALUE",
|
|
65
|
+
* // value: "STRING_VALUE",
|
|
66
|
+
* // },
|
|
67
|
+
* // ],
|
|
68
|
+
* // tags: [ // Tags
|
|
69
|
+
* // { // Tag
|
|
70
|
+
* // key: "STRING_VALUE",
|
|
71
|
+
* // value: "STRING_VALUE",
|
|
72
|
+
* // },
|
|
73
|
+
* // ],
|
|
74
|
+
* // settings: [ // ClusterSettings
|
|
75
|
+
* // { // ClusterSetting
|
|
76
|
+
* // name: "containerInsights",
|
|
77
|
+
* // value: "STRING_VALUE",
|
|
78
|
+
* // },
|
|
79
|
+
* // ],
|
|
80
|
+
* // capacityProviders: [ // StringList
|
|
81
|
+
* // "STRING_VALUE",
|
|
82
|
+
* // ],
|
|
83
|
+
* // defaultCapacityProviderStrategy: [ // CapacityProviderStrategy
|
|
84
|
+
* // { // CapacityProviderStrategyItem
|
|
85
|
+
* // capacityProvider: "STRING_VALUE", // required
|
|
86
|
+
* // weight: Number("int"),
|
|
87
|
+
* // base: Number("int"),
|
|
88
|
+
* // },
|
|
89
|
+
* // ],
|
|
90
|
+
* // attachments: [ // Attachments
|
|
91
|
+
* // { // Attachment
|
|
92
|
+
* // id: "STRING_VALUE",
|
|
93
|
+
* // type: "STRING_VALUE",
|
|
94
|
+
* // status: "STRING_VALUE",
|
|
95
|
+
* // details: [ // AttachmentDetails
|
|
96
|
+
* // {
|
|
97
|
+
* // name: "STRING_VALUE",
|
|
98
|
+
* // value: "STRING_VALUE",
|
|
99
|
+
* // },
|
|
100
|
+
* // ],
|
|
101
|
+
* // },
|
|
102
|
+
* // ],
|
|
103
|
+
* // attachmentsStatus: "STRING_VALUE",
|
|
104
|
+
* // serviceConnectDefaults: { // ClusterServiceConnectDefaults
|
|
105
|
+
* // namespace: "STRING_VALUE",
|
|
106
|
+
* // },
|
|
107
|
+
* // },
|
|
108
|
+
* // };
|
|
109
|
+
*
|
|
40
110
|
* ```
|
|
41
111
|
*
|
|
42
112
|
* @param UpdateClusterSettingsCommandInput - {@link UpdateClusterSettingsCommandInput}
|
|
@@ -60,6 +130,8 @@ export interface UpdateClusterSettingsCommandOutput extends UpdateClusterSetting
|
|
|
60
130
|
* @throws {@link ServerException} (server fault)
|
|
61
131
|
* <p>These errors are usually caused by a server issue.</p>
|
|
62
132
|
*
|
|
133
|
+
* @throws {@link ECSServiceException}
|
|
134
|
+
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
63
135
|
*
|
|
64
136
|
*/
|
|
65
137
|
export declare class UpdateClusterSettingsCommand extends $Command<UpdateClusterSettingsCommandInput, UpdateClusterSettingsCommandOutput, ECSClientResolvedConfig> {
|
|
@@ -50,6 +50,89 @@ export interface UpdateContainerAgentCommandOutput extends UpdateContainerAgentR
|
|
|
50
50
|
* };
|
|
51
51
|
* const command = new UpdateContainerAgentCommand(input);
|
|
52
52
|
* const response = await client.send(command);
|
|
53
|
+
* // { // UpdateContainerAgentResponse
|
|
54
|
+
* // containerInstance: { // ContainerInstance
|
|
55
|
+
* // containerInstanceArn: "STRING_VALUE",
|
|
56
|
+
* // ec2InstanceId: "STRING_VALUE",
|
|
57
|
+
* // capacityProviderName: "STRING_VALUE",
|
|
58
|
+
* // version: Number("long"),
|
|
59
|
+
* // versionInfo: { // VersionInfo
|
|
60
|
+
* // agentVersion: "STRING_VALUE",
|
|
61
|
+
* // agentHash: "STRING_VALUE",
|
|
62
|
+
* // dockerVersion: "STRING_VALUE",
|
|
63
|
+
* // },
|
|
64
|
+
* // remainingResources: [ // Resources
|
|
65
|
+
* // { // Resource
|
|
66
|
+
* // name: "STRING_VALUE",
|
|
67
|
+
* // type: "STRING_VALUE",
|
|
68
|
+
* // doubleValue: Number("double"),
|
|
69
|
+
* // longValue: Number("long"),
|
|
70
|
+
* // integerValue: Number("int"),
|
|
71
|
+
* // stringSetValue: [ // StringList
|
|
72
|
+
* // "STRING_VALUE",
|
|
73
|
+
* // ],
|
|
74
|
+
* // },
|
|
75
|
+
* // ],
|
|
76
|
+
* // registeredResources: [
|
|
77
|
+
* // {
|
|
78
|
+
* // name: "STRING_VALUE",
|
|
79
|
+
* // type: "STRING_VALUE",
|
|
80
|
+
* // doubleValue: Number("double"),
|
|
81
|
+
* // longValue: Number("long"),
|
|
82
|
+
* // integerValue: Number("int"),
|
|
83
|
+
* // stringSetValue: [
|
|
84
|
+
* // "STRING_VALUE",
|
|
85
|
+
* // ],
|
|
86
|
+
* // },
|
|
87
|
+
* // ],
|
|
88
|
+
* // status: "STRING_VALUE",
|
|
89
|
+
* // statusReason: "STRING_VALUE",
|
|
90
|
+
* // agentConnected: true || false,
|
|
91
|
+
* // runningTasksCount: Number("int"),
|
|
92
|
+
* // pendingTasksCount: Number("int"),
|
|
93
|
+
* // agentUpdateStatus: "PENDING" || "STAGING" || "STAGED" || "UPDATING" || "UPDATED" || "FAILED",
|
|
94
|
+
* // attributes: [ // Attributes
|
|
95
|
+
* // { // Attribute
|
|
96
|
+
* // name: "STRING_VALUE", // required
|
|
97
|
+
* // value: "STRING_VALUE",
|
|
98
|
+
* // targetType: "container-instance",
|
|
99
|
+
* // targetId: "STRING_VALUE",
|
|
100
|
+
* // },
|
|
101
|
+
* // ],
|
|
102
|
+
* // registeredAt: new Date("TIMESTAMP"),
|
|
103
|
+
* // attachments: [ // Attachments
|
|
104
|
+
* // { // Attachment
|
|
105
|
+
* // id: "STRING_VALUE",
|
|
106
|
+
* // type: "STRING_VALUE",
|
|
107
|
+
* // status: "STRING_VALUE",
|
|
108
|
+
* // details: [ // AttachmentDetails
|
|
109
|
+
* // { // KeyValuePair
|
|
110
|
+
* // name: "STRING_VALUE",
|
|
111
|
+
* // value: "STRING_VALUE",
|
|
112
|
+
* // },
|
|
113
|
+
* // ],
|
|
114
|
+
* // },
|
|
115
|
+
* // ],
|
|
116
|
+
* // tags: [ // Tags
|
|
117
|
+
* // { // Tag
|
|
118
|
+
* // key: "STRING_VALUE",
|
|
119
|
+
* // value: "STRING_VALUE",
|
|
120
|
+
* // },
|
|
121
|
+
* // ],
|
|
122
|
+
* // healthStatus: { // ContainerInstanceHealthStatus
|
|
123
|
+
* // overallStatus: "OK" || "IMPAIRED" || "INSUFFICIENT_DATA" || "INITIALIZING",
|
|
124
|
+
* // details: [ // InstanceHealthCheckResultList
|
|
125
|
+
* // { // InstanceHealthCheckResult
|
|
126
|
+
* // type: "CONTAINER_RUNTIME",
|
|
127
|
+
* // status: "OK" || "IMPAIRED" || "INSUFFICIENT_DATA" || "INITIALIZING",
|
|
128
|
+
* // lastUpdated: new Date("TIMESTAMP"),
|
|
129
|
+
* // lastStatusChange: new Date("TIMESTAMP"),
|
|
130
|
+
* // },
|
|
131
|
+
* // ],
|
|
132
|
+
* // },
|
|
133
|
+
* // },
|
|
134
|
+
* // };
|
|
135
|
+
*
|
|
53
136
|
* ```
|
|
54
137
|
*
|
|
55
138
|
* @param UpdateContainerAgentCommandInput - {@link UpdateContainerAgentCommandInput}
|
|
@@ -91,6 +174,8 @@ export interface UpdateContainerAgentCommandOutput extends UpdateContainerAgentR
|
|
|
91
174
|
* process can get stuck in that state. However, when the agent reconnects, it resumes
|
|
92
175
|
* where it stopped previously.</p>
|
|
93
176
|
*
|
|
177
|
+
* @throws {@link ECSServiceException}
|
|
178
|
+
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
94
179
|
*
|
|
95
180
|
*/
|
|
96
181
|
export declare class UpdateContainerAgentCommand extends $Command<UpdateContainerAgentCommandInput, UpdateContainerAgentCommandOutput, ECSClientResolvedConfig> {
|
|
@@ -83,6 +83,98 @@ export interface UpdateContainerInstancesStateCommandOutput extends UpdateContai
|
|
|
83
83
|
* };
|
|
84
84
|
* const command = new UpdateContainerInstancesStateCommand(input);
|
|
85
85
|
* const response = await client.send(command);
|
|
86
|
+
* // { // UpdateContainerInstancesStateResponse
|
|
87
|
+
* // containerInstances: [ // ContainerInstances
|
|
88
|
+
* // { // ContainerInstance
|
|
89
|
+
* // containerInstanceArn: "STRING_VALUE",
|
|
90
|
+
* // ec2InstanceId: "STRING_VALUE",
|
|
91
|
+
* // capacityProviderName: "STRING_VALUE",
|
|
92
|
+
* // version: Number("long"),
|
|
93
|
+
* // versionInfo: { // VersionInfo
|
|
94
|
+
* // agentVersion: "STRING_VALUE",
|
|
95
|
+
* // agentHash: "STRING_VALUE",
|
|
96
|
+
* // dockerVersion: "STRING_VALUE",
|
|
97
|
+
* // },
|
|
98
|
+
* // remainingResources: [ // Resources
|
|
99
|
+
* // { // Resource
|
|
100
|
+
* // name: "STRING_VALUE",
|
|
101
|
+
* // type: "STRING_VALUE",
|
|
102
|
+
* // doubleValue: Number("double"),
|
|
103
|
+
* // longValue: Number("long"),
|
|
104
|
+
* // integerValue: Number("int"),
|
|
105
|
+
* // stringSetValue: [ // StringList
|
|
106
|
+
* // "STRING_VALUE",
|
|
107
|
+
* // ],
|
|
108
|
+
* // },
|
|
109
|
+
* // ],
|
|
110
|
+
* // registeredResources: [
|
|
111
|
+
* // {
|
|
112
|
+
* // name: "STRING_VALUE",
|
|
113
|
+
* // type: "STRING_VALUE",
|
|
114
|
+
* // doubleValue: Number("double"),
|
|
115
|
+
* // longValue: Number("long"),
|
|
116
|
+
* // integerValue: Number("int"),
|
|
117
|
+
* // stringSetValue: [
|
|
118
|
+
* // "STRING_VALUE",
|
|
119
|
+
* // ],
|
|
120
|
+
* // },
|
|
121
|
+
* // ],
|
|
122
|
+
* // status: "STRING_VALUE",
|
|
123
|
+
* // statusReason: "STRING_VALUE",
|
|
124
|
+
* // agentConnected: true || false,
|
|
125
|
+
* // runningTasksCount: Number("int"),
|
|
126
|
+
* // pendingTasksCount: Number("int"),
|
|
127
|
+
* // agentUpdateStatus: "PENDING" || "STAGING" || "STAGED" || "UPDATING" || "UPDATED" || "FAILED",
|
|
128
|
+
* // attributes: [ // Attributes
|
|
129
|
+
* // { // Attribute
|
|
130
|
+
* // name: "STRING_VALUE", // required
|
|
131
|
+
* // value: "STRING_VALUE",
|
|
132
|
+
* // targetType: "container-instance",
|
|
133
|
+
* // targetId: "STRING_VALUE",
|
|
134
|
+
* // },
|
|
135
|
+
* // ],
|
|
136
|
+
* // registeredAt: new Date("TIMESTAMP"),
|
|
137
|
+
* // attachments: [ // Attachments
|
|
138
|
+
* // { // Attachment
|
|
139
|
+
* // id: "STRING_VALUE",
|
|
140
|
+
* // type: "STRING_VALUE",
|
|
141
|
+
* // status: "STRING_VALUE",
|
|
142
|
+
* // details: [ // AttachmentDetails
|
|
143
|
+
* // { // KeyValuePair
|
|
144
|
+
* // name: "STRING_VALUE",
|
|
145
|
+
* // value: "STRING_VALUE",
|
|
146
|
+
* // },
|
|
147
|
+
* // ],
|
|
148
|
+
* // },
|
|
149
|
+
* // ],
|
|
150
|
+
* // tags: [ // Tags
|
|
151
|
+
* // { // Tag
|
|
152
|
+
* // key: "STRING_VALUE",
|
|
153
|
+
* // value: "STRING_VALUE",
|
|
154
|
+
* // },
|
|
155
|
+
* // ],
|
|
156
|
+
* // healthStatus: { // ContainerInstanceHealthStatus
|
|
157
|
+
* // overallStatus: "OK" || "IMPAIRED" || "INSUFFICIENT_DATA" || "INITIALIZING",
|
|
158
|
+
* // details: [ // InstanceHealthCheckResultList
|
|
159
|
+
* // { // InstanceHealthCheckResult
|
|
160
|
+
* // type: "CONTAINER_RUNTIME",
|
|
161
|
+
* // status: "OK" || "IMPAIRED" || "INSUFFICIENT_DATA" || "INITIALIZING",
|
|
162
|
+
* // lastUpdated: new Date("TIMESTAMP"),
|
|
163
|
+
* // lastStatusChange: new Date("TIMESTAMP"),
|
|
164
|
+
* // },
|
|
165
|
+
* // ],
|
|
166
|
+
* // },
|
|
167
|
+
* // },
|
|
168
|
+
* // ],
|
|
169
|
+
* // failures: [ // Failures
|
|
170
|
+
* // { // Failure
|
|
171
|
+
* // arn: "STRING_VALUE",
|
|
172
|
+
* // reason: "STRING_VALUE",
|
|
173
|
+
* // detail: "STRING_VALUE",
|
|
174
|
+
* // },
|
|
175
|
+
* // ],
|
|
176
|
+
* // };
|
|
177
|
+
*
|
|
86
178
|
* ```
|
|
87
179
|
*
|
|
88
180
|
* @param UpdateContainerInstancesStateCommandInput - {@link UpdateContainerInstancesStateCommandInput}
|
|
@@ -106,6 +198,8 @@ export interface UpdateContainerInstancesStateCommandOutput extends UpdateContai
|
|
|
106
198
|
* @throws {@link ServerException} (server fault)
|
|
107
199
|
* <p>These errors are usually caused by a server issue.</p>
|
|
108
200
|
*
|
|
201
|
+
* @throws {@link ECSServiceException}
|
|
202
|
+
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
109
203
|
*
|
|
110
204
|
*/
|
|
111
205
|
export declare class UpdateContainerInstancesStateCommand extends $Command<UpdateContainerInstancesStateCommandInput, UpdateContainerInstancesStateCommandOutput, ECSClientResolvedConfig> {
|
|
@@ -252,6 +252,240 @@ export interface UpdateServiceCommandOutput extends UpdateServiceResponse, __Met
|
|
|
252
252
|
* };
|
|
253
253
|
* const command = new UpdateServiceCommand(input);
|
|
254
254
|
* const response = await client.send(command);
|
|
255
|
+
* // { // UpdateServiceResponse
|
|
256
|
+
* // service: { // Service
|
|
257
|
+
* // serviceArn: "STRING_VALUE",
|
|
258
|
+
* // serviceName: "STRING_VALUE",
|
|
259
|
+
* // clusterArn: "STRING_VALUE",
|
|
260
|
+
* // loadBalancers: [ // LoadBalancers
|
|
261
|
+
* // { // LoadBalancer
|
|
262
|
+
* // targetGroupArn: "STRING_VALUE",
|
|
263
|
+
* // loadBalancerName: "STRING_VALUE",
|
|
264
|
+
* // containerName: "STRING_VALUE",
|
|
265
|
+
* // containerPort: Number("int"),
|
|
266
|
+
* // },
|
|
267
|
+
* // ],
|
|
268
|
+
* // serviceRegistries: [ // ServiceRegistries
|
|
269
|
+
* // { // ServiceRegistry
|
|
270
|
+
* // registryArn: "STRING_VALUE",
|
|
271
|
+
* // port: Number("int"),
|
|
272
|
+
* // containerName: "STRING_VALUE",
|
|
273
|
+
* // containerPort: Number("int"),
|
|
274
|
+
* // },
|
|
275
|
+
* // ],
|
|
276
|
+
* // status: "STRING_VALUE",
|
|
277
|
+
* // desiredCount: Number("int"),
|
|
278
|
+
* // runningCount: Number("int"),
|
|
279
|
+
* // pendingCount: Number("int"),
|
|
280
|
+
* // launchType: "EC2" || "FARGATE" || "EXTERNAL",
|
|
281
|
+
* // capacityProviderStrategy: [ // CapacityProviderStrategy
|
|
282
|
+
* // { // CapacityProviderStrategyItem
|
|
283
|
+
* // capacityProvider: "STRING_VALUE", // required
|
|
284
|
+
* // weight: Number("int"),
|
|
285
|
+
* // base: Number("int"),
|
|
286
|
+
* // },
|
|
287
|
+
* // ],
|
|
288
|
+
* // platformVersion: "STRING_VALUE",
|
|
289
|
+
* // platformFamily: "STRING_VALUE",
|
|
290
|
+
* // taskDefinition: "STRING_VALUE",
|
|
291
|
+
* // deploymentConfiguration: { // DeploymentConfiguration
|
|
292
|
+
* // deploymentCircuitBreaker: { // DeploymentCircuitBreaker
|
|
293
|
+
* // enable: true || false, // required
|
|
294
|
+
* // rollback: true || false, // required
|
|
295
|
+
* // },
|
|
296
|
+
* // maximumPercent: Number("int"),
|
|
297
|
+
* // minimumHealthyPercent: Number("int"),
|
|
298
|
+
* // alarms: { // DeploymentAlarms
|
|
299
|
+
* // alarmNames: [ // StringList // required
|
|
300
|
+
* // "STRING_VALUE",
|
|
301
|
+
* // ],
|
|
302
|
+
* // enable: true || false, // required
|
|
303
|
+
* // rollback: true || false, // required
|
|
304
|
+
* // },
|
|
305
|
+
* // },
|
|
306
|
+
* // taskSets: [ // TaskSets
|
|
307
|
+
* // { // TaskSet
|
|
308
|
+
* // id: "STRING_VALUE",
|
|
309
|
+
* // taskSetArn: "STRING_VALUE",
|
|
310
|
+
* // serviceArn: "STRING_VALUE",
|
|
311
|
+
* // clusterArn: "STRING_VALUE",
|
|
312
|
+
* // startedBy: "STRING_VALUE",
|
|
313
|
+
* // externalId: "STRING_VALUE",
|
|
314
|
+
* // status: "STRING_VALUE",
|
|
315
|
+
* // taskDefinition: "STRING_VALUE",
|
|
316
|
+
* // computedDesiredCount: Number("int"),
|
|
317
|
+
* // pendingCount: Number("int"),
|
|
318
|
+
* // runningCount: Number("int"),
|
|
319
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
320
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
321
|
+
* // launchType: "EC2" || "FARGATE" || "EXTERNAL",
|
|
322
|
+
* // capacityProviderStrategy: [
|
|
323
|
+
* // {
|
|
324
|
+
* // capacityProvider: "STRING_VALUE", // required
|
|
325
|
+
* // weight: Number("int"),
|
|
326
|
+
* // base: Number("int"),
|
|
327
|
+
* // },
|
|
328
|
+
* // ],
|
|
329
|
+
* // platformVersion: "STRING_VALUE",
|
|
330
|
+
* // platformFamily: "STRING_VALUE",
|
|
331
|
+
* // networkConfiguration: { // NetworkConfiguration
|
|
332
|
+
* // awsvpcConfiguration: { // AwsVpcConfiguration
|
|
333
|
+
* // subnets: [ // required
|
|
334
|
+
* // "STRING_VALUE",
|
|
335
|
+
* // ],
|
|
336
|
+
* // securityGroups: [
|
|
337
|
+
* // "STRING_VALUE",
|
|
338
|
+
* // ],
|
|
339
|
+
* // assignPublicIp: "ENABLED" || "DISABLED",
|
|
340
|
+
* // },
|
|
341
|
+
* // },
|
|
342
|
+
* // loadBalancers: [
|
|
343
|
+
* // {
|
|
344
|
+
* // targetGroupArn: "STRING_VALUE",
|
|
345
|
+
* // loadBalancerName: "STRING_VALUE",
|
|
346
|
+
* // containerName: "STRING_VALUE",
|
|
347
|
+
* // containerPort: Number("int"),
|
|
348
|
+
* // },
|
|
349
|
+
* // ],
|
|
350
|
+
* // serviceRegistries: [
|
|
351
|
+
* // {
|
|
352
|
+
* // registryArn: "STRING_VALUE",
|
|
353
|
+
* // port: Number("int"),
|
|
354
|
+
* // containerName: "STRING_VALUE",
|
|
355
|
+
* // containerPort: Number("int"),
|
|
356
|
+
* // },
|
|
357
|
+
* // ],
|
|
358
|
+
* // scale: { // Scale
|
|
359
|
+
* // value: Number("double"),
|
|
360
|
+
* // unit: "PERCENT",
|
|
361
|
+
* // },
|
|
362
|
+
* // stabilityStatus: "STEADY_STATE" || "STABILIZING",
|
|
363
|
+
* // stabilityStatusAt: new Date("TIMESTAMP"),
|
|
364
|
+
* // tags: [ // Tags
|
|
365
|
+
* // { // Tag
|
|
366
|
+
* // key: "STRING_VALUE",
|
|
367
|
+
* // value: "STRING_VALUE",
|
|
368
|
+
* // },
|
|
369
|
+
* // ],
|
|
370
|
+
* // },
|
|
371
|
+
* // ],
|
|
372
|
+
* // deployments: [ // Deployments
|
|
373
|
+
* // { // Deployment
|
|
374
|
+
* // id: "STRING_VALUE",
|
|
375
|
+
* // status: "STRING_VALUE",
|
|
376
|
+
* // taskDefinition: "STRING_VALUE",
|
|
377
|
+
* // desiredCount: Number("int"),
|
|
378
|
+
* // pendingCount: Number("int"),
|
|
379
|
+
* // runningCount: Number("int"),
|
|
380
|
+
* // failedTasks: Number("int"),
|
|
381
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
382
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
383
|
+
* // capacityProviderStrategy: [
|
|
384
|
+
* // {
|
|
385
|
+
* // capacityProvider: "STRING_VALUE", // required
|
|
386
|
+
* // weight: Number("int"),
|
|
387
|
+
* // base: Number("int"),
|
|
388
|
+
* // },
|
|
389
|
+
* // ],
|
|
390
|
+
* // launchType: "EC2" || "FARGATE" || "EXTERNAL",
|
|
391
|
+
* // platformVersion: "STRING_VALUE",
|
|
392
|
+
* // platformFamily: "STRING_VALUE",
|
|
393
|
+
* // networkConfiguration: {
|
|
394
|
+
* // awsvpcConfiguration: {
|
|
395
|
+
* // subnets: [ // required
|
|
396
|
+
* // "STRING_VALUE",
|
|
397
|
+
* // ],
|
|
398
|
+
* // securityGroups: [
|
|
399
|
+
* // "STRING_VALUE",
|
|
400
|
+
* // ],
|
|
401
|
+
* // assignPublicIp: "ENABLED" || "DISABLED",
|
|
402
|
+
* // },
|
|
403
|
+
* // },
|
|
404
|
+
* // rolloutState: "COMPLETED" || "FAILED" || "IN_PROGRESS",
|
|
405
|
+
* // rolloutStateReason: "STRING_VALUE",
|
|
406
|
+
* // serviceConnectConfiguration: { // ServiceConnectConfiguration
|
|
407
|
+
* // enabled: true || false, // required
|
|
408
|
+
* // namespace: "STRING_VALUE",
|
|
409
|
+
* // services: [ // ServiceConnectServiceList
|
|
410
|
+
* // { // ServiceConnectService
|
|
411
|
+
* // portName: "STRING_VALUE", // required
|
|
412
|
+
* // discoveryName: "STRING_VALUE",
|
|
413
|
+
* // clientAliases: [ // ServiceConnectClientAliasList
|
|
414
|
+
* // { // ServiceConnectClientAlias
|
|
415
|
+
* // port: Number("int"), // required
|
|
416
|
+
* // dnsName: "STRING_VALUE",
|
|
417
|
+
* // },
|
|
418
|
+
* // ],
|
|
419
|
+
* // ingressPortOverride: Number("int"),
|
|
420
|
+
* // },
|
|
421
|
+
* // ],
|
|
422
|
+
* // logConfiguration: { // LogConfiguration
|
|
423
|
+
* // logDriver: "json-file" || "syslog" || "journald" || "gelf" || "fluentd" || "awslogs" || "splunk" || "awsfirelens", // required
|
|
424
|
+
* // options: { // LogConfigurationOptionsMap
|
|
425
|
+
* // "<keys>": "STRING_VALUE",
|
|
426
|
+
* // },
|
|
427
|
+
* // secretOptions: [ // SecretList
|
|
428
|
+
* // { // Secret
|
|
429
|
+
* // name: "STRING_VALUE", // required
|
|
430
|
+
* // valueFrom: "STRING_VALUE", // required
|
|
431
|
+
* // },
|
|
432
|
+
* // ],
|
|
433
|
+
* // },
|
|
434
|
+
* // },
|
|
435
|
+
* // serviceConnectResources: [ // ServiceConnectServiceResourceList
|
|
436
|
+
* // { // ServiceConnectServiceResource
|
|
437
|
+
* // discoveryName: "STRING_VALUE",
|
|
438
|
+
* // discoveryArn: "STRING_VALUE",
|
|
439
|
+
* // },
|
|
440
|
+
* // ],
|
|
441
|
+
* // },
|
|
442
|
+
* // ],
|
|
443
|
+
* // roleArn: "STRING_VALUE",
|
|
444
|
+
* // events: [ // ServiceEvents
|
|
445
|
+
* // { // ServiceEvent
|
|
446
|
+
* // id: "STRING_VALUE",
|
|
447
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
448
|
+
* // message: "STRING_VALUE",
|
|
449
|
+
* // },
|
|
450
|
+
* // ],
|
|
451
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
452
|
+
* // placementConstraints: [ // PlacementConstraints
|
|
453
|
+
* // { // PlacementConstraint
|
|
454
|
+
* // type: "distinctInstance" || "memberOf",
|
|
455
|
+
* // expression: "STRING_VALUE",
|
|
456
|
+
* // },
|
|
457
|
+
* // ],
|
|
458
|
+
* // placementStrategy: [ // PlacementStrategies
|
|
459
|
+
* // { // PlacementStrategy
|
|
460
|
+
* // type: "random" || "spread" || "binpack",
|
|
461
|
+
* // field: "STRING_VALUE",
|
|
462
|
+
* // },
|
|
463
|
+
* // ],
|
|
464
|
+
* // networkConfiguration: {
|
|
465
|
+
* // awsvpcConfiguration: {
|
|
466
|
+
* // subnets: "<StringList>", // required
|
|
467
|
+
* // securityGroups: "<StringList>",
|
|
468
|
+
* // assignPublicIp: "ENABLED" || "DISABLED",
|
|
469
|
+
* // },
|
|
470
|
+
* // },
|
|
471
|
+
* // healthCheckGracePeriodSeconds: Number("int"),
|
|
472
|
+
* // schedulingStrategy: "REPLICA" || "DAEMON",
|
|
473
|
+
* // deploymentController: { // DeploymentController
|
|
474
|
+
* // type: "ECS" || "CODE_DEPLOY" || "EXTERNAL", // required
|
|
475
|
+
* // },
|
|
476
|
+
* // tags: [
|
|
477
|
+
* // {
|
|
478
|
+
* // key: "STRING_VALUE",
|
|
479
|
+
* // value: "STRING_VALUE",
|
|
480
|
+
* // },
|
|
481
|
+
* // ],
|
|
482
|
+
* // createdBy: "STRING_VALUE",
|
|
483
|
+
* // enableECSManagedTags: true || false,
|
|
484
|
+
* // propagateTags: "TASK_DEFINITION" || "SERVICE" || "NONE",
|
|
485
|
+
* // enableExecuteCommand: true || false,
|
|
486
|
+
* // },
|
|
487
|
+
* // };
|
|
488
|
+
*
|
|
255
489
|
* ```
|
|
256
490
|
*
|
|
257
491
|
* @param UpdateServiceCommandInput - {@link UpdateServiceCommandInput}
|
|
@@ -296,6 +530,8 @@ export interface UpdateServiceCommandOutput extends UpdateServiceResponse, __Met
|
|
|
296
530
|
* <p>The specified service wasn't found. You can view your available services with <a>ListServices</a>. Amazon ECS services are cluster specific and Region
|
|
297
531
|
* specific.</p>
|
|
298
532
|
*
|
|
533
|
+
* @throws {@link ECSServiceException}
|
|
534
|
+
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
299
535
|
*
|
|
300
536
|
* @example To change the task definition used in a service
|
|
301
537
|
* ```javascript
|
|
@@ -37,6 +37,73 @@ export interface UpdateServicePrimaryTaskSetCommandOutput extends UpdateServiceP
|
|
|
37
37
|
* };
|
|
38
38
|
* const command = new UpdateServicePrimaryTaskSetCommand(input);
|
|
39
39
|
* const response = await client.send(command);
|
|
40
|
+
* // { // UpdateServicePrimaryTaskSetResponse
|
|
41
|
+
* // taskSet: { // TaskSet
|
|
42
|
+
* // id: "STRING_VALUE",
|
|
43
|
+
* // taskSetArn: "STRING_VALUE",
|
|
44
|
+
* // serviceArn: "STRING_VALUE",
|
|
45
|
+
* // clusterArn: "STRING_VALUE",
|
|
46
|
+
* // startedBy: "STRING_VALUE",
|
|
47
|
+
* // externalId: "STRING_VALUE",
|
|
48
|
+
* // status: "STRING_VALUE",
|
|
49
|
+
* // taskDefinition: "STRING_VALUE",
|
|
50
|
+
* // computedDesiredCount: Number("int"),
|
|
51
|
+
* // pendingCount: Number("int"),
|
|
52
|
+
* // runningCount: Number("int"),
|
|
53
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
54
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
55
|
+
* // launchType: "EC2" || "FARGATE" || "EXTERNAL",
|
|
56
|
+
* // capacityProviderStrategy: [ // CapacityProviderStrategy
|
|
57
|
+
* // { // CapacityProviderStrategyItem
|
|
58
|
+
* // capacityProvider: "STRING_VALUE", // required
|
|
59
|
+
* // weight: Number("int"),
|
|
60
|
+
* // base: Number("int"),
|
|
61
|
+
* // },
|
|
62
|
+
* // ],
|
|
63
|
+
* // platformVersion: "STRING_VALUE",
|
|
64
|
+
* // platformFamily: "STRING_VALUE",
|
|
65
|
+
* // networkConfiguration: { // NetworkConfiguration
|
|
66
|
+
* // awsvpcConfiguration: { // AwsVpcConfiguration
|
|
67
|
+
* // subnets: [ // StringList // required
|
|
68
|
+
* // "STRING_VALUE",
|
|
69
|
+
* // ],
|
|
70
|
+
* // securityGroups: [
|
|
71
|
+
* // "STRING_VALUE",
|
|
72
|
+
* // ],
|
|
73
|
+
* // assignPublicIp: "ENABLED" || "DISABLED",
|
|
74
|
+
* // },
|
|
75
|
+
* // },
|
|
76
|
+
* // loadBalancers: [ // LoadBalancers
|
|
77
|
+
* // { // LoadBalancer
|
|
78
|
+
* // targetGroupArn: "STRING_VALUE",
|
|
79
|
+
* // loadBalancerName: "STRING_VALUE",
|
|
80
|
+
* // containerName: "STRING_VALUE",
|
|
81
|
+
* // containerPort: Number("int"),
|
|
82
|
+
* // },
|
|
83
|
+
* // ],
|
|
84
|
+
* // serviceRegistries: [ // ServiceRegistries
|
|
85
|
+
* // { // ServiceRegistry
|
|
86
|
+
* // registryArn: "STRING_VALUE",
|
|
87
|
+
* // port: Number("int"),
|
|
88
|
+
* // containerName: "STRING_VALUE",
|
|
89
|
+
* // containerPort: Number("int"),
|
|
90
|
+
* // },
|
|
91
|
+
* // ],
|
|
92
|
+
* // scale: { // Scale
|
|
93
|
+
* // value: Number("double"),
|
|
94
|
+
* // unit: "PERCENT",
|
|
95
|
+
* // },
|
|
96
|
+
* // stabilityStatus: "STEADY_STATE" || "STABILIZING",
|
|
97
|
+
* // stabilityStatusAt: new Date("TIMESTAMP"),
|
|
98
|
+
* // tags: [ // Tags
|
|
99
|
+
* // { // Tag
|
|
100
|
+
* // key: "STRING_VALUE",
|
|
101
|
+
* // value: "STRING_VALUE",
|
|
102
|
+
* // },
|
|
103
|
+
* // ],
|
|
104
|
+
* // },
|
|
105
|
+
* // };
|
|
106
|
+
*
|
|
40
107
|
* ```
|
|
41
108
|
*
|
|
42
109
|
* @param UpdateServicePrimaryTaskSetCommandInput - {@link UpdateServicePrimaryTaskSetCommandInput}
|
|
@@ -78,6 +145,8 @@ export interface UpdateServicePrimaryTaskSetCommandOutput extends UpdateServiceP
|
|
|
78
145
|
* @throws {@link UnsupportedFeatureException} (client fault)
|
|
79
146
|
* <p>The specified task isn't supported in this Region.</p>
|
|
80
147
|
*
|
|
148
|
+
* @throws {@link ECSServiceException}
|
|
149
|
+
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
81
150
|
*
|
|
82
151
|
*/
|
|
83
152
|
export declare class UpdateServicePrimaryTaskSetCommand extends $Command<UpdateServicePrimaryTaskSetCommandInput, UpdateServicePrimaryTaskSetCommandOutput, ECSClientResolvedConfig> {
|
|
@@ -62,6 +62,23 @@ export interface UpdateTaskProtectionCommandOutput extends UpdateTaskProtectionR
|
|
|
62
62
|
* };
|
|
63
63
|
* const command = new UpdateTaskProtectionCommand(input);
|
|
64
64
|
* const response = await client.send(command);
|
|
65
|
+
* // { // UpdateTaskProtectionResponse
|
|
66
|
+
* // protectedTasks: [ // ProtectedTasks
|
|
67
|
+
* // { // ProtectedTask
|
|
68
|
+
* // taskArn: "STRING_VALUE",
|
|
69
|
+
* // protectionEnabled: true || false,
|
|
70
|
+
* // expirationDate: new Date("TIMESTAMP"),
|
|
71
|
+
* // },
|
|
72
|
+
* // ],
|
|
73
|
+
* // failures: [ // Failures
|
|
74
|
+
* // { // Failure
|
|
75
|
+
* // arn: "STRING_VALUE",
|
|
76
|
+
* // reason: "STRING_VALUE",
|
|
77
|
+
* // detail: "STRING_VALUE",
|
|
78
|
+
* // },
|
|
79
|
+
* // ],
|
|
80
|
+
* // };
|
|
81
|
+
*
|
|
65
82
|
* ```
|
|
66
83
|
*
|
|
67
84
|
* @param UpdateTaskProtectionCommandInput - {@link UpdateTaskProtectionCommandInput}
|
|
@@ -94,6 +111,8 @@ export interface UpdateTaskProtectionCommandOutput extends UpdateTaskProtectionR
|
|
|
94
111
|
* @throws {@link UnsupportedFeatureException} (client fault)
|
|
95
112
|
* <p>The specified task isn't supported in this Region.</p>
|
|
96
113
|
*
|
|
114
|
+
* @throws {@link ECSServiceException}
|
|
115
|
+
* <p>Base exception class for all service exceptions from ECS service.</p>
|
|
97
116
|
*
|
|
98
117
|
* @example To set task scale-in protection for a task for 60 minutes
|
|
99
118
|
* ```javascript
|