@aws-sdk/client-ecs 3.844.0 → 3.845.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.
Files changed (27) hide show
  1. package/dist-cjs/index.js +148 -4
  2. package/dist-es/models/models_0.js +25 -0
  3. package/dist-es/protocols/Aws_json1_1.js +121 -4
  4. package/dist-types/commands/CreateServiceCommand.d.ts +164 -39
  5. package/dist-types/commands/CreateTaskSetCommand.d.ts +12 -0
  6. package/dist-types/commands/DeleteServiceCommand.d.ts +32 -0
  7. package/dist-types/commands/DeleteTaskSetCommand.d.ts +6 -0
  8. package/dist-types/commands/DescribeServiceDeploymentsCommand.d.ts +13 -0
  9. package/dist-types/commands/DescribeServiceRevisionsCommand.d.ts +22 -0
  10. package/dist-types/commands/DescribeServicesCommand.d.ts +32 -0
  11. package/dist-types/commands/DescribeTaskSetsCommand.d.ts +6 -0
  12. package/dist-types/commands/StopTaskCommand.d.ts +2 -1
  13. package/dist-types/commands/SubmitAttachmentStateChangesCommand.d.ts +1 -1
  14. package/dist-types/commands/SubmitContainerStateChangeCommand.d.ts +1 -1
  15. package/dist-types/commands/SubmitTaskStateChangeCommand.d.ts +1 -1
  16. package/dist-types/commands/UpdateServiceCommand.d.ts +61 -0
  17. package/dist-types/commands/UpdateServicePrimaryTaskSetCommand.d.ts +6 -0
  18. package/dist-types/commands/UpdateTaskSetCommand.d.ts +6 -0
  19. package/dist-types/models/models_0.d.ts +420 -272
  20. package/dist-types/models/models_1.d.ts +246 -1
  21. package/dist-types/ts3.4/commands/StopTaskCommand.d.ts +2 -1
  22. package/dist-types/ts3.4/commands/SubmitAttachmentStateChangesCommand.d.ts +1 -1
  23. package/dist-types/ts3.4/commands/SubmitContainerStateChangeCommand.d.ts +1 -1
  24. package/dist-types/ts3.4/commands/SubmitTaskStateChangeCommand.d.ts +1 -1
  25. package/dist-types/ts3.4/models/models_0.d.ts +68 -57
  26. package/dist-types/ts3.4/models/models_1.d.ts +62 -0
  27. package/package.json +11 -11
@@ -1,6 +1,246 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { ECSServiceException as __BaseException } from "./ECSServiceException";
3
- import { AvailabilityZoneRebalancing, CapacityProvider, CapacityProviderStrategyItem, Cluster, ClusterConfiguration, ClusterServiceConnectDefaultsRequest, ClusterSetting, ContainerInstance, ContainerInstanceStatus, DeploymentConfiguration, Failure, LoadBalancer, ManagedDraining, ManagedScaling, ManagedTerminationProtection, NetworkConfiguration, PlacementConstraint, PlacementStrategy, PropagateTags, ProtectedTask, Scale, Service, ServiceConnectConfiguration, ServiceRegistry, ServiceVolumeConfiguration, Tag, TaskSet, VpcLatticeConfiguration } from "./models_0";
3
+ import { AvailabilityZoneRebalancing, CapacityProvider, CapacityProviderStrategyItem, Cluster, ClusterConfiguration, ClusterServiceConnectDefaultsRequest, ClusterSetting, ContainerInstance, ContainerInstanceStatus, DeploymentConfiguration, DeploymentController, Failure, LoadBalancer, ManagedAgentName, ManagedDraining, ManagedScaling, ManagedTerminationProtection, NetworkBinding, NetworkConfiguration, PlacementConstraint, PlacementStrategy, PropagateTags, ProtectedTask, Scale, Service, ServiceConnectConfiguration, ServiceRegistry, ServiceVolumeConfiguration, Tag, Task, TaskSet, VpcLatticeConfiguration } from "./models_0";
4
+ /**
5
+ * @public
6
+ */
7
+ export interface StopTaskResponse {
8
+ /**
9
+ * <p>The task that was stopped.</p>
10
+ * @public
11
+ */
12
+ task?: Task | undefined;
13
+ }
14
+ /**
15
+ * <p>An object representing a change in state for a task attachment.</p>
16
+ * @public
17
+ */
18
+ export interface AttachmentStateChange {
19
+ /**
20
+ * <p>The Amazon Resource Name (ARN) of the attachment.</p>
21
+ * @public
22
+ */
23
+ attachmentArn: string | undefined;
24
+ /**
25
+ * <p>The status of the attachment.</p>
26
+ * @public
27
+ */
28
+ status: string | undefined;
29
+ }
30
+ /**
31
+ * @public
32
+ */
33
+ export interface SubmitAttachmentStateChangesRequest {
34
+ /**
35
+ * <p>The short name or full ARN of the cluster that hosts the container instance the
36
+ * attachment belongs to.</p>
37
+ * @public
38
+ */
39
+ cluster?: string | undefined;
40
+ /**
41
+ * <p>Any attachments associated with the state change request.</p>
42
+ * @public
43
+ */
44
+ attachments: AttachmentStateChange[] | undefined;
45
+ }
46
+ /**
47
+ * @public
48
+ */
49
+ export interface SubmitAttachmentStateChangesResponse {
50
+ /**
51
+ * <p>Acknowledgement of the state change.</p>
52
+ * @public
53
+ */
54
+ acknowledgment?: string | undefined;
55
+ }
56
+ /**
57
+ * @public
58
+ */
59
+ export interface SubmitContainerStateChangeRequest {
60
+ /**
61
+ * <p>The short name or full ARN of the cluster that hosts the container.</p>
62
+ * @public
63
+ */
64
+ cluster?: string | undefined;
65
+ /**
66
+ * <p>The task ID or full Amazon Resource Name (ARN) of the task that hosts the container.</p>
67
+ * @public
68
+ */
69
+ task?: string | undefined;
70
+ /**
71
+ * <p>The name of the container.</p>
72
+ * @public
73
+ */
74
+ containerName?: string | undefined;
75
+ /**
76
+ * <p>The ID of the Docker container.</p>
77
+ * @public
78
+ */
79
+ runtimeId?: string | undefined;
80
+ /**
81
+ * <p>The status of the state change request.</p>
82
+ * @public
83
+ */
84
+ status?: string | undefined;
85
+ /**
86
+ * <p>The exit code that's returned for the state change request.</p>
87
+ * @public
88
+ */
89
+ exitCode?: number | undefined;
90
+ /**
91
+ * <p>The reason for the state change request.</p>
92
+ * @public
93
+ */
94
+ reason?: string | undefined;
95
+ /**
96
+ * <p>The network bindings of the container.</p>
97
+ * @public
98
+ */
99
+ networkBindings?: NetworkBinding[] | undefined;
100
+ }
101
+ /**
102
+ * @public
103
+ */
104
+ export interface SubmitContainerStateChangeResponse {
105
+ /**
106
+ * <p>Acknowledgement of the state change.</p>
107
+ * @public
108
+ */
109
+ acknowledgment?: string | undefined;
110
+ }
111
+ /**
112
+ * <p>An object that represents a change in state for a container.</p>
113
+ * @public
114
+ */
115
+ export interface ContainerStateChange {
116
+ /**
117
+ * <p>The name of the container.</p>
118
+ * @public
119
+ */
120
+ containerName?: string | undefined;
121
+ /**
122
+ * <p>The container image SHA 256 digest.</p>
123
+ * @public
124
+ */
125
+ imageDigest?: string | undefined;
126
+ /**
127
+ * <p>The ID of the Docker container.</p>
128
+ * @public
129
+ */
130
+ runtimeId?: string | undefined;
131
+ /**
132
+ * <p>The exit code for the container, if the state change is a result of the container
133
+ * exiting.</p>
134
+ * @public
135
+ */
136
+ exitCode?: number | undefined;
137
+ /**
138
+ * <p>Any network bindings that are associated with the container.</p>
139
+ * @public
140
+ */
141
+ networkBindings?: NetworkBinding[] | undefined;
142
+ /**
143
+ * <p>The reason for the state change.</p>
144
+ * @public
145
+ */
146
+ reason?: string | undefined;
147
+ /**
148
+ * <p>The status of the container.</p>
149
+ * @public
150
+ */
151
+ status?: string | undefined;
152
+ }
153
+ /**
154
+ * <p>An object representing a change in state for a managed agent.</p>
155
+ * @public
156
+ */
157
+ export interface ManagedAgentStateChange {
158
+ /**
159
+ * <p>The name of the container that's associated with the managed agent.</p>
160
+ * @public
161
+ */
162
+ containerName: string | undefined;
163
+ /**
164
+ * <p>The name of the managed agent.</p>
165
+ * @public
166
+ */
167
+ managedAgentName: ManagedAgentName | undefined;
168
+ /**
169
+ * <p>The status of the managed agent.</p>
170
+ * @public
171
+ */
172
+ status: string | undefined;
173
+ /**
174
+ * <p>The reason for the status of the managed agent.</p>
175
+ * @public
176
+ */
177
+ reason?: string | undefined;
178
+ }
179
+ /**
180
+ * @public
181
+ */
182
+ export interface SubmitTaskStateChangeRequest {
183
+ /**
184
+ * <p>The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task.</p>
185
+ * @public
186
+ */
187
+ cluster?: string | undefined;
188
+ /**
189
+ * <p>The task ID or full ARN of the task in the state change request.</p>
190
+ * @public
191
+ */
192
+ task?: string | undefined;
193
+ /**
194
+ * <p>The status of the state change request.</p>
195
+ * @public
196
+ */
197
+ status?: string | undefined;
198
+ /**
199
+ * <p>The reason for the state change request.</p>
200
+ * @public
201
+ */
202
+ reason?: string | undefined;
203
+ /**
204
+ * <p>Any containers that's associated with the state change request.</p>
205
+ * @public
206
+ */
207
+ containers?: ContainerStateChange[] | undefined;
208
+ /**
209
+ * <p>Any attachments associated with the state change request.</p>
210
+ * @public
211
+ */
212
+ attachments?: AttachmentStateChange[] | undefined;
213
+ /**
214
+ * <p>The details for the managed agent that's associated with the task.</p>
215
+ * @public
216
+ */
217
+ managedAgents?: ManagedAgentStateChange[] | undefined;
218
+ /**
219
+ * <p>The Unix timestamp for the time when the container image pull started.</p>
220
+ * @public
221
+ */
222
+ pullStartedAt?: Date | undefined;
223
+ /**
224
+ * <p>The Unix timestamp for the time when the container image pull completed.</p>
225
+ * @public
226
+ */
227
+ pullStoppedAt?: Date | undefined;
228
+ /**
229
+ * <p>The Unix timestamp for the time when the task execution stopped.</p>
230
+ * @public
231
+ */
232
+ executionStoppedAt?: Date | undefined;
233
+ }
234
+ /**
235
+ * @public
236
+ */
237
+ export interface SubmitTaskStateChangeResponse {
238
+ /**
239
+ * <p>Acknowledgement of the state change.</p>
240
+ * @public
241
+ */
242
+ acknowledgment?: string | undefined;
243
+ }
4
244
  /**
5
245
  * @public
6
246
  */
@@ -458,6 +698,11 @@ export interface UpdateServiceRequest {
458
698
  * @public
459
699
  */
460
700
  healthCheckGracePeriodSeconds?: number | undefined;
701
+ /**
702
+ * <p>The deployment controller to use for the service. </p>
703
+ * @public
704
+ */
705
+ deploymentController?: DeploymentController | undefined;
461
706
  /**
462
707
  * <p>If <code>true</code>, this enables execute command functionality on all task
463
708
  * containers.</p>
@@ -5,7 +5,8 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../ECSClient";
8
- import { StopTaskRequest, StopTaskResponse } from "../models/models_0";
8
+ import { StopTaskRequest } from "../models/models_0";
9
+ import { StopTaskResponse } from "../models/models_1";
9
10
  export { __MetadataBearer };
10
11
  export { $Command };
11
12
  export interface StopTaskCommandInput extends StopTaskRequest {}
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  SubmitAttachmentStateChangesRequest,
10
10
  SubmitAttachmentStateChangesResponse,
11
- } from "../models/models_0";
11
+ } from "../models/models_1";
12
12
  export { __MetadataBearer };
13
13
  export { $Command };
14
14
  export interface SubmitAttachmentStateChangesCommandInput
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  SubmitContainerStateChangeRequest,
10
10
  SubmitContainerStateChangeResponse,
11
- } from "../models/models_0";
11
+ } from "../models/models_1";
12
12
  export { __MetadataBearer };
13
13
  export { $Command };
14
14
  export interface SubmitContainerStateChangeCommandInput
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  SubmitTaskStateChangeRequest,
10
10
  SubmitTaskStateChangeResponse,
11
- } from "../models/models_0";
11
+ } from "../models/models_1";
12
12
  export { __MetadataBearer };
13
13
  export { $Command };
14
14
  export interface SubmitTaskStateChangeCommandInput
@@ -1,4 +1,5 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { DocumentType as __DocumentType } from "@smithy/types";
2
3
  import { ECSServiceException as __BaseException } from "./ECSServiceException";
3
4
  export declare class AccessDeniedException extends __BaseException {
4
5
  readonly name: "AccessDeniedException";
@@ -7,6 +8,12 @@ export declare class AccessDeniedException extends __BaseException {
7
8
  opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
8
9
  );
9
10
  }
11
+ export interface AdvancedConfiguration {
12
+ alternateTargetGroupArn?: string | undefined;
13
+ productionListenerRule?: string | undefined;
14
+ testListenerRule?: string | undefined;
15
+ roleArn?: string | undefined;
16
+ }
10
17
  export declare const AgentUpdateStatus: {
11
18
  readonly FAILED: "FAILED";
12
19
  readonly PENDING: "PENDING";
@@ -232,11 +239,37 @@ export interface DeploymentCircuitBreaker {
232
239
  enable: boolean | undefined;
233
240
  rollback: boolean | undefined;
234
241
  }
242
+ export declare const DeploymentLifecycleHookStage: {
243
+ readonly POST_PRODUCTION_TRAFFIC_SHIFT: "POST_PRODUCTION_TRAFFIC_SHIFT";
244
+ readonly POST_SCALE_UP: "POST_SCALE_UP";
245
+ readonly POST_TEST_TRAFFIC_SHIFT: "POST_TEST_TRAFFIC_SHIFT";
246
+ readonly PRE_SCALE_UP: "PRE_SCALE_UP";
247
+ readonly PRODUCTION_TRAFFIC_SHIFT: "PRODUCTION_TRAFFIC_SHIFT";
248
+ readonly RECONCILE_SERVICE: "RECONCILE_SERVICE";
249
+ readonly TEST_TRAFFIC_SHIFT: "TEST_TRAFFIC_SHIFT";
250
+ };
251
+ export type DeploymentLifecycleHookStage =
252
+ (typeof DeploymentLifecycleHookStage)[keyof typeof DeploymentLifecycleHookStage];
253
+ export interface DeploymentLifecycleHook {
254
+ hookTargetArn?: string | undefined;
255
+ roleArn?: string | undefined;
256
+ lifecycleStages?: DeploymentLifecycleHookStage[] | undefined;
257
+ hookDetails?: __DocumentType | undefined;
258
+ }
259
+ export declare const DeploymentStrategy: {
260
+ readonly BLUE_GREEN: "BLUE_GREEN";
261
+ readonly ROLLING: "ROLLING";
262
+ };
263
+ export type DeploymentStrategy =
264
+ (typeof DeploymentStrategy)[keyof typeof DeploymentStrategy];
235
265
  export interface DeploymentConfiguration {
236
266
  deploymentCircuitBreaker?: DeploymentCircuitBreaker | undefined;
237
267
  maximumPercent?: number | undefined;
238
268
  minimumHealthyPercent?: number | undefined;
239
269
  alarms?: DeploymentAlarms | undefined;
270
+ strategy?: DeploymentStrategy | undefined;
271
+ bakeTimeInMinutes?: number | undefined;
272
+ lifecycleHooks?: DeploymentLifecycleHook[] | undefined;
240
273
  }
241
274
  export declare const DeploymentControllerType: {
242
275
  readonly CODE_DEPLOY: "CODE_DEPLOY";
@@ -259,6 +292,7 @@ export interface LoadBalancer {
259
292
  loadBalancerName?: string | undefined;
260
293
  containerName?: string | undefined;
261
294
  containerPort?: number | undefined;
295
+ advancedConfiguration?: AdvancedConfiguration | undefined;
262
296
  }
263
297
  export declare const AssignPublicIp: {
264
298
  readonly DISABLED: "DISABLED";
@@ -327,9 +361,20 @@ export interface LogConfiguration {
327
361
  options?: Record<string, string> | undefined;
328
362
  secretOptions?: Secret[] | undefined;
329
363
  }
364
+ export interface ServiceConnectTestTrafficHeaderMatchRules {
365
+ exact: string | undefined;
366
+ }
367
+ export interface ServiceConnectTestTrafficHeaderRules {
368
+ name: string | undefined;
369
+ value?: ServiceConnectTestTrafficHeaderMatchRules | undefined;
370
+ }
371
+ export interface ServiceConnectTestTrafficRules {
372
+ header: ServiceConnectTestTrafficHeaderRules | undefined;
373
+ }
330
374
  export interface ServiceConnectClientAlias {
331
375
  port: number | undefined;
332
376
  dnsName?: string | undefined;
377
+ testTrafficRules?: ServiceConnectTestTrafficRules | undefined;
333
378
  }
334
379
  export interface TimeoutConfiguration {
335
380
  idleTimeoutSeconds?: number | undefined;
@@ -1235,6 +1280,20 @@ export interface ServiceDeploymentCircuitBreaker {
1235
1280
  failureCount?: number | undefined;
1236
1281
  threshold?: number | undefined;
1237
1282
  }
1283
+ export declare const ServiceDeploymentLifecycleStage: {
1284
+ readonly BAKE_TIME: "BAKE_TIME";
1285
+ readonly CLEAN_UP: "CLEAN_UP";
1286
+ readonly POST_PRODUCTION_TRAFFIC_SHIFT: "POST_PRODUCTION_TRAFFIC_SHIFT";
1287
+ readonly POST_SCALE_UP: "POST_SCALE_UP";
1288
+ readonly POST_TEST_TRAFFIC_SHIFT: "POST_TEST_TRAFFIC_SHIFT";
1289
+ readonly PRE_SCALE_UP: "PRE_SCALE_UP";
1290
+ readonly PRODUCTION_TRAFFIC_SHIFT: "PRODUCTION_TRAFFIC_SHIFT";
1291
+ readonly RECONCILE_SERVICE: "RECONCILE_SERVICE";
1292
+ readonly SCALE_UP: "SCALE_UP";
1293
+ readonly TEST_TRAFFIC_SHIFT: "TEST_TRAFFIC_SHIFT";
1294
+ };
1295
+ export type ServiceDeploymentLifecycleStage =
1296
+ (typeof ServiceDeploymentLifecycleStage)[keyof typeof ServiceDeploymentLifecycleStage];
1238
1297
  export interface Rollback {
1239
1298
  reason?: string | undefined;
1240
1299
  startedAt?: Date | undefined;
@@ -1272,6 +1331,7 @@ export interface ServiceDeployment {
1272
1331
  targetServiceRevision?: ServiceRevisionSummary | undefined;
1273
1332
  status?: ServiceDeploymentStatus | undefined;
1274
1333
  statusReason?: string | undefined;
1334
+ lifecycleStage?: ServiceDeploymentLifecycleStage | undefined;
1275
1335
  deploymentConfiguration?: DeploymentConfiguration | undefined;
1276
1336
  rollback?: Rollback | undefined;
1277
1337
  deploymentCircuitBreaker?: ServiceDeploymentCircuitBreaker | undefined;
@@ -1289,6 +1349,13 @@ export interface ContainerImage {
1289
1349
  imageDigest?: string | undefined;
1290
1350
  image?: string | undefined;
1291
1351
  }
1352
+ export interface ServiceRevisionLoadBalancer {
1353
+ targetGroupArn?: string | undefined;
1354
+ productionListenerRule?: string | undefined;
1355
+ }
1356
+ export interface ResolvedConfiguration {
1357
+ loadBalancers?: ServiceRevisionLoadBalancer[] | undefined;
1358
+ }
1292
1359
  export interface ServiceRevision {
1293
1360
  serviceRevisionArn?: string | undefined;
1294
1361
  serviceArn?: string | undefined;
@@ -1308,6 +1375,7 @@ export interface ServiceRevision {
1308
1375
  fargateEphemeralStorage?: DeploymentEphemeralStorage | undefined;
1309
1376
  createdAt?: Date | undefined;
1310
1377
  vpcLatticeConfigurations?: VpcLatticeConfiguration[] | undefined;
1378
+ resolvedConfiguration?: ResolvedConfiguration | undefined;
1311
1379
  }
1312
1380
  export interface DescribeServiceRevisionsResponse {
1313
1381
  serviceRevisions?: ServiceRevision[] | undefined;
@@ -1908,63 +1976,6 @@ export interface StopTaskRequest {
1908
1976
  task: string | undefined;
1909
1977
  reason?: string | undefined;
1910
1978
  }
1911
- export interface StopTaskResponse {
1912
- task?: Task | undefined;
1913
- }
1914
- export interface AttachmentStateChange {
1915
- attachmentArn: string | undefined;
1916
- status: string | undefined;
1917
- }
1918
- export interface SubmitAttachmentStateChangesRequest {
1919
- cluster?: string | undefined;
1920
- attachments: AttachmentStateChange[] | undefined;
1921
- }
1922
- export interface SubmitAttachmentStateChangesResponse {
1923
- acknowledgment?: string | undefined;
1924
- }
1925
- export interface SubmitContainerStateChangeRequest {
1926
- cluster?: string | undefined;
1927
- task?: string | undefined;
1928
- containerName?: string | undefined;
1929
- runtimeId?: string | undefined;
1930
- status?: string | undefined;
1931
- exitCode?: number | undefined;
1932
- reason?: string | undefined;
1933
- networkBindings?: NetworkBinding[] | undefined;
1934
- }
1935
- export interface SubmitContainerStateChangeResponse {
1936
- acknowledgment?: string | undefined;
1937
- }
1938
- export interface ContainerStateChange {
1939
- containerName?: string | undefined;
1940
- imageDigest?: string | undefined;
1941
- runtimeId?: string | undefined;
1942
- exitCode?: number | undefined;
1943
- networkBindings?: NetworkBinding[] | undefined;
1944
- reason?: string | undefined;
1945
- status?: string | undefined;
1946
- }
1947
- export interface ManagedAgentStateChange {
1948
- containerName: string | undefined;
1949
- managedAgentName: ManagedAgentName | undefined;
1950
- status: string | undefined;
1951
- reason?: string | undefined;
1952
- }
1953
- export interface SubmitTaskStateChangeRequest {
1954
- cluster?: string | undefined;
1955
- task?: string | undefined;
1956
- status?: string | undefined;
1957
- reason?: string | undefined;
1958
- containers?: ContainerStateChange[] | undefined;
1959
- attachments?: AttachmentStateChange[] | undefined;
1960
- managedAgents?: ManagedAgentStateChange[] | undefined;
1961
- pullStartedAt?: Date | undefined;
1962
- pullStoppedAt?: Date | undefined;
1963
- executionStoppedAt?: Date | undefined;
1964
- }
1965
- export interface SubmitTaskStateChangeResponse {
1966
- acknowledgment?: string | undefined;
1967
- }
1968
1979
  export declare const SessionFilterSensitiveLog: (obj: Session) => any;
1969
1980
  export declare const ExecuteCommandResponseFilterSensitiveLog: (
1970
1981
  obj: ExecuteCommandResponse
@@ -11,11 +11,14 @@ import {
11
11
  ContainerInstance,
12
12
  ContainerInstanceStatus,
13
13
  DeploymentConfiguration,
14
+ DeploymentController,
14
15
  Failure,
15
16
  LoadBalancer,
17
+ ManagedAgentName,
16
18
  ManagedDraining,
17
19
  ManagedScaling,
18
20
  ManagedTerminationProtection,
21
+ NetworkBinding,
19
22
  NetworkConfiguration,
20
23
  PlacementConstraint,
21
24
  PlacementStrategy,
@@ -27,9 +30,67 @@ import {
27
30
  ServiceRegistry,
28
31
  ServiceVolumeConfiguration,
29
32
  Tag,
33
+ Task,
30
34
  TaskSet,
31
35
  VpcLatticeConfiguration,
32
36
  } from "./models_0";
37
+ export interface StopTaskResponse {
38
+ task?: Task | undefined;
39
+ }
40
+ export interface AttachmentStateChange {
41
+ attachmentArn: string | undefined;
42
+ status: string | undefined;
43
+ }
44
+ export interface SubmitAttachmentStateChangesRequest {
45
+ cluster?: string | undefined;
46
+ attachments: AttachmentStateChange[] | undefined;
47
+ }
48
+ export interface SubmitAttachmentStateChangesResponse {
49
+ acknowledgment?: string | undefined;
50
+ }
51
+ export interface SubmitContainerStateChangeRequest {
52
+ cluster?: string | undefined;
53
+ task?: string | undefined;
54
+ containerName?: string | undefined;
55
+ runtimeId?: string | undefined;
56
+ status?: string | undefined;
57
+ exitCode?: number | undefined;
58
+ reason?: string | undefined;
59
+ networkBindings?: NetworkBinding[] | undefined;
60
+ }
61
+ export interface SubmitContainerStateChangeResponse {
62
+ acknowledgment?: string | undefined;
63
+ }
64
+ export interface ContainerStateChange {
65
+ containerName?: string | undefined;
66
+ imageDigest?: string | undefined;
67
+ runtimeId?: string | undefined;
68
+ exitCode?: number | undefined;
69
+ networkBindings?: NetworkBinding[] | undefined;
70
+ reason?: string | undefined;
71
+ status?: string | undefined;
72
+ }
73
+ export interface ManagedAgentStateChange {
74
+ containerName: string | undefined;
75
+ managedAgentName: ManagedAgentName | undefined;
76
+ status: string | undefined;
77
+ reason?: string | undefined;
78
+ }
79
+ export interface SubmitTaskStateChangeRequest {
80
+ cluster?: string | undefined;
81
+ task?: string | undefined;
82
+ status?: string | undefined;
83
+ reason?: string | undefined;
84
+ containers?: ContainerStateChange[] | undefined;
85
+ attachments?: AttachmentStateChange[] | undefined;
86
+ managedAgents?: ManagedAgentStateChange[] | undefined;
87
+ pullStartedAt?: Date | undefined;
88
+ pullStoppedAt?: Date | undefined;
89
+ executionStoppedAt?: Date | undefined;
90
+ }
91
+ export interface SubmitTaskStateChangeResponse {
92
+ acknowledgment?: string | undefined;
93
+ }
33
94
  export interface TagResourceRequest {
34
95
  resourceArn: string | undefined;
35
96
  tags: Tag[] | undefined;
@@ -112,6 +173,7 @@ export interface UpdateServiceRequest {
112
173
  platformVersion?: string | undefined;
113
174
  forceNewDeployment?: boolean | undefined;
114
175
  healthCheckGracePeriodSeconds?: number | undefined;
176
+ deploymentController?: DeploymentController | undefined;
115
177
  enableExecuteCommand?: boolean | undefined;
116
178
  enableECSManagedTags?: boolean | undefined;
117
179
  loadBalancers?: LoadBalancer[] | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ecs",
3
3
  "description": "AWS SDK for JavaScript Ecs Client for Node.js, Browser and React Native",
4
- "version": "3.844.0",
4
+ "version": "3.845.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-ecs",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.844.0",
24
- "@aws-sdk/credential-provider-node": "3.844.0",
23
+ "@aws-sdk/core": "3.845.0",
24
+ "@aws-sdk/credential-provider-node": "3.845.0",
25
25
  "@aws-sdk/middleware-host-header": "3.840.0",
26
26
  "@aws-sdk/middleware-logger": "3.840.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.840.0",
28
- "@aws-sdk/middleware-user-agent": "3.844.0",
28
+ "@aws-sdk/middleware-user-agent": "3.845.0",
29
29
  "@aws-sdk/region-config-resolver": "3.840.0",
30
30
  "@aws-sdk/types": "3.840.0",
31
- "@aws-sdk/util-endpoints": "3.844.0",
31
+ "@aws-sdk/util-endpoints": "3.845.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.840.0",
33
- "@aws-sdk/util-user-agent-node": "3.844.0",
33
+ "@aws-sdk/util-user-agent-node": "3.845.0",
34
34
  "@smithy/config-resolver": "^4.1.4",
35
35
  "@smithy/core": "^3.7.0",
36
36
  "@smithy/fetch-http-handler": "^5.1.0",
37
37
  "@smithy/hash-node": "^4.0.4",
38
38
  "@smithy/invalid-dependency": "^4.0.4",
39
39
  "@smithy/middleware-content-length": "^4.0.4",
40
- "@smithy/middleware-endpoint": "^4.1.14",
41
- "@smithy/middleware-retry": "^4.1.15",
40
+ "@smithy/middleware-endpoint": "^4.1.15",
41
+ "@smithy/middleware-retry": "^4.1.16",
42
42
  "@smithy/middleware-serde": "^4.0.8",
43
43
  "@smithy/middleware-stack": "^4.0.4",
44
44
  "@smithy/node-config-provider": "^4.1.3",
45
45
  "@smithy/node-http-handler": "^4.1.0",
46
46
  "@smithy/protocol-http": "^5.1.2",
47
- "@smithy/smithy-client": "^4.4.6",
47
+ "@smithy/smithy-client": "^4.4.7",
48
48
  "@smithy/types": "^4.3.1",
49
49
  "@smithy/url-parser": "^4.0.4",
50
50
  "@smithy/util-base64": "^4.0.0",
51
51
  "@smithy/util-body-length-browser": "^4.0.0",
52
52
  "@smithy/util-body-length-node": "^4.0.0",
53
- "@smithy/util-defaults-mode-browser": "^4.0.22",
54
- "@smithy/util-defaults-mode-node": "^4.0.22",
53
+ "@smithy/util-defaults-mode-browser": "^4.0.23",
54
+ "@smithy/util-defaults-mode-node": "^4.0.23",
55
55
  "@smithy/util-endpoints": "^3.0.6",
56
56
  "@smithy/util-middleware": "^4.0.4",
57
57
  "@smithy/util-retry": "^4.0.6",