@aws-sdk/client-ecs 3.696.0 → 3.699.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/index.js CHANGED
@@ -26,6 +26,7 @@ __export(src_exports, {
26
26
  ApplicationProtocol: () => ApplicationProtocol,
27
27
  AssignPublicIp: () => AssignPublicIp,
28
28
  AttributeLimitExceededException: () => AttributeLimitExceededException,
29
+ AvailabilityZoneRebalancing: () => AvailabilityZoneRebalancing,
29
30
  BlockedException: () => BlockedException,
30
31
  CPUArchitecture: () => CPUArchitecture,
31
32
  CapacityProviderField: () => CapacityProviderField,
@@ -540,6 +541,10 @@ var _ClusterNotFoundException = class _ClusterNotFoundException extends ECSServi
540
541
  };
541
542
  __name(_ClusterNotFoundException, "ClusterNotFoundException");
542
543
  var ClusterNotFoundException = _ClusterNotFoundException;
544
+ var AvailabilityZoneRebalancing = {
545
+ DISABLED: "DISABLED",
546
+ ENABLED: "ENABLED"
547
+ };
543
548
  var DeploymentControllerType = {
544
549
  CODE_DEPLOY: "CODE_DEPLOY",
545
550
  ECS: "ECS",
@@ -2976,6 +2981,7 @@ var de_Scale = /* @__PURE__ */ __name((output, context) => {
2976
2981
  }, "de_Scale");
2977
2982
  var de_Service = /* @__PURE__ */ __name((output, context) => {
2978
2983
  return (0, import_smithy_client.take)(output, {
2984
+ availabilityZoneRebalancing: import_smithy_client.expectString,
2979
2985
  capacityProviderStrategy: import_smithy_client._json,
2980
2986
  clusterArn: import_smithy_client.expectString,
2981
2987
  createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
@@ -4558,6 +4564,7 @@ var waitUntilTasksStopped = /* @__PURE__ */ __name(async (params, input) => {
4558
4564
  ClusterSettingName,
4559
4565
  NamespaceNotFoundException,
4560
4566
  ClusterNotFoundException,
4567
+ AvailabilityZoneRebalancing,
4561
4568
  DeploymentControllerType,
4562
4569
  LaunchType,
4563
4570
  AssignPublicIp,
@@ -136,6 +136,10 @@ export class ClusterNotFoundException extends __BaseException {
136
136
  Object.setPrototypeOf(this, ClusterNotFoundException.prototype);
137
137
  }
138
138
  }
139
+ export const AvailabilityZoneRebalancing = {
140
+ DISABLED: "DISABLED",
141
+ ENABLED: "ENABLED",
142
+ };
139
143
  export const DeploymentControllerType = {
140
144
  CODE_DEPLOY: "CODE_DEPLOY",
141
145
  ECS: "ECS",
@@ -1853,6 +1853,7 @@ const de_Scale = (output, context) => {
1853
1853
  };
1854
1854
  const de_Service = (output, context) => {
1855
1855
  return take(output, {
1856
+ availabilityZoneRebalancing: __expectString,
1856
1857
  capacityProviderStrategy: _json,
1857
1858
  clusterArn: __expectString,
1858
1859
  createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -121,6 +121,7 @@ declare const CreateServiceCommand_base: {
121
121
  * cluster: "STRING_VALUE",
122
122
  * serviceName: "STRING_VALUE", // required
123
123
  * taskDefinition: "STRING_VALUE",
124
+ * availabilityZoneRebalancing: "ENABLED" || "DISABLED",
124
125
  * loadBalancers: [ // LoadBalancers
125
126
  * { // LoadBalancer
126
127
  * targetGroupArn: "STRING_VALUE",
@@ -557,6 +558,7 @@ declare const CreateServiceCommand_base: {
557
558
  * // enableECSManagedTags: true || false,
558
559
  * // propagateTags: "TASK_DEFINITION" || "SERVICE" || "NONE",
559
560
  * // enableExecuteCommand: true || false,
561
+ * // availabilityZoneRebalancing: "ENABLED" || "DISABLED",
560
562
  * // },
561
563
  * // };
562
564
  *
@@ -38,7 +38,7 @@ declare const DeleteCapacityProviderCommand_base: {
38
38
  * <code>forceNewDeployment</code> option can be used to ensure that any tasks using the Amazon EC2
39
39
  * instance capacity provided by the capacity provider are transitioned to use the capacity from the
40
40
  * remaining capacity providers. Only capacity providers that aren't associated with a cluster can be
41
- * deleted. To remove a capacity provider from a cluster, you can either use <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutCapacityProviderProviders.html">PutCapacityProviderProviders</a> or delete the cluster.</p>
41
+ * deleted. To remove a capacity provider from a cluster, you can either use <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutClusterCapacityProviders.html">PutClusterCapacityProviders</a> or delete the cluster.</p>
42
42
  * @example
43
43
  * Use a bare-bones client and the command you need to make an API call.
44
44
  * ```javascript
@@ -336,6 +336,7 @@ declare const DeleteServiceCommand_base: {
336
336
  * // enableECSManagedTags: true || false,
337
337
  * // propagateTags: "TASK_DEFINITION" || "SERVICE" || "NONE",
338
338
  * // enableExecuteCommand: true || false,
339
+ * // availabilityZoneRebalancing: "ENABLED" || "DISABLED",
339
340
  * // },
340
341
  * // };
341
342
  *
@@ -324,6 +324,7 @@ declare const DescribeServicesCommand_base: {
324
324
  * // enableECSManagedTags: true || false,
325
325
  * // propagateTags: "TASK_DEFINITION" || "SERVICE" || "NONE",
326
326
  * // enableExecuteCommand: true || false,
327
+ * // availabilityZoneRebalancing: "ENABLED" || "DISABLED",
327
328
  * // },
328
329
  * // ],
329
330
  * // failures: [ // Failures
@@ -189,6 +189,7 @@ declare const UpdateServiceCommand_base: {
189
189
  * enable: true || false, // required
190
190
  * },
191
191
  * },
192
+ * availabilityZoneRebalancing: "ENABLED" || "DISABLED",
192
193
  * networkConfiguration: { // NetworkConfiguration
193
194
  * awsvpcConfiguration: { // AwsVpcConfiguration
194
195
  * subnets: [ // required
@@ -590,6 +591,7 @@ declare const UpdateServiceCommand_base: {
590
591
  * // enableECSManagedTags: true || false,
591
592
  * // propagateTags: "TASK_DEFINITION" || "SERVICE" || "NONE",
592
593
  * // enableExecuteCommand: true || false,
594
+ * // availabilityZoneRebalancing: "ENABLED" || "DISABLED",
593
595
  * // },
594
596
  * // };
595
597
  *
@@ -1138,6 +1138,18 @@ export declare class ClusterNotFoundException extends __BaseException {
1138
1138
  */
1139
1139
  constructor(opts: __ExceptionOptionType<ClusterNotFoundException, __BaseException>);
1140
1140
  }
1141
+ /**
1142
+ * @public
1143
+ * @enum
1144
+ */
1145
+ export declare const AvailabilityZoneRebalancing: {
1146
+ readonly DISABLED: "DISABLED";
1147
+ readonly ENABLED: "ENABLED";
1148
+ };
1149
+ /**
1150
+ * @public
1151
+ */
1152
+ export type AvailabilityZoneRebalancing = (typeof AvailabilityZoneRebalancing)[keyof typeof AvailabilityZoneRebalancing];
1141
1153
  /**
1142
1154
  * <p>One of the methods which provide a way for you to quickly identify when a deployment has failed, and
1143
1155
  * then to optionally roll back the failure to the last working deployment.</p>
@@ -1328,8 +1340,7 @@ export declare const DeploymentControllerType: {
1328
1340
  */
1329
1341
  export type DeploymentControllerType = (typeof DeploymentControllerType)[keyof typeof DeploymentControllerType];
1330
1342
  /**
1331
- * <p>The deployment controller to use for the service. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html">Amazon ECS deployment
1332
- * types</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
1343
+ * <p>The deployment controller to use for the service. </p>
1333
1344
  * @public
1334
1345
  */
1335
1346
  export interface DeploymentController {
@@ -1344,18 +1355,21 @@ export interface DeploymentController {
1344
1355
  * adds or removes from the service during a rolling update is controlled by adjusting the
1345
1356
  * minimum and maximum number of healthy tasks allowed during a service deployment, as
1346
1357
  * specified in the <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeploymentConfiguration.html">DeploymentConfiguration</a>.</p>
1358
+ * <p>For more information about rolling deployments, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-ecs.html">Deploy Amazon ECS services by replacing tasks</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
1347
1359
  * </dd>
1348
1360
  * <dt>CODE_DEPLOY</dt>
1349
1361
  * <dd>
1350
1362
  * <p>The blue/green (<code>CODE_DEPLOY</code>) deployment type uses the blue/green deployment
1351
1363
  * model powered by CodeDeploy, which allows you to verify a new deployment of a service before
1352
1364
  * sending production traffic to it.</p>
1365
+ * <p>For more information about blue/green deployments, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-bluegreen.html">Validate the state of an Amazon ECS service before deployment </a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
1353
1366
  * </dd>
1354
1367
  * <dt>EXTERNAL</dt>
1355
1368
  * <dd>
1356
1369
  * <p>The external (<code>EXTERNAL</code>) deployment type enables you to use any third-party
1357
1370
  * deployment controller for full control over the deployment process for an Amazon ECS
1358
1371
  * service.</p>
1372
+ * <p>For more information about external deployments, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-external.html">Deploy Amazon ECS services using a third-party controller </a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
1359
1373
  * </dd>
1360
1374
  * </dl>
1361
1375
  * @public
@@ -2405,6 +2419,13 @@ export interface CreateServiceRequest {
2405
2419
  * @public
2406
2420
  */
2407
2421
  taskDefinition?: string | undefined;
2422
+ /**
2423
+ * <p>Indicates whether to use Availability Zone rebalancing for the service.</p>
2424
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-rebalancing.html">Balancing an Amazon ECS service across Availability Zones</a> in
2425
+ * the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
2426
+ * @public
2427
+ */
2428
+ availabilityZoneRebalancing?: AvailabilityZoneRebalancing | undefined;
2408
2429
  /**
2409
2430
  * <p>A load balancer object representing the load balancers to use with your service. For more
2410
2431
  * information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-load-balancing.html">Service load balancing</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
@@ -3421,6 +3442,13 @@ export interface Service {
3421
3442
  * @public
3422
3443
  */
3423
3444
  enableExecuteCommand?: boolean | undefined;
3445
+ /**
3446
+ * <p>Indicates whether to use Availability Zone rebalancing for the service.</p>
3447
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-rebalancing.html">Balancing an Amazon ECS service across Availability Zones</a> in
3448
+ * the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
3449
+ * @public
3450
+ */
3451
+ availabilityZoneRebalancing?: AvailabilityZoneRebalancing | undefined;
3424
3452
  }
3425
3453
  /**
3426
3454
  * @public
@@ -11442,39 +11470,6 @@ export interface UntagResourceRequest {
11442
11470
  */
11443
11471
  export interface UntagResourceResponse {
11444
11472
  }
11445
- /**
11446
- * <p>The details of the Auto Scaling group capacity provider to update.</p>
11447
- * @public
11448
- */
11449
- export interface AutoScalingGroupProviderUpdate {
11450
- /**
11451
- * <p>The managed scaling settings for the Auto Scaling group capacity provider.</p>
11452
- * @public
11453
- */
11454
- managedScaling?: ManagedScaling | undefined;
11455
- /**
11456
- * <p>The managed termination protection setting to use for the Auto Scaling group capacity provider. This
11457
- * determines whether the Auto Scaling group has managed termination protection.</p>
11458
- * <important>
11459
- * <p>When using managed termination protection, managed scaling must also be used otherwise managed
11460
- * termination protection doesn't work.</p>
11461
- * </important>
11462
- * <p>When managed termination protection is on, Amazon ECS prevents the Amazon EC2 instances in an Auto Scaling
11463
- * group that contain tasks from being terminated during a scale-in action. The Auto Scaling group and
11464
- * each instance in the Auto Scaling group must have instance protection from scale-in actions on. For
11465
- * more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection">Instance
11466
- * Protection</a> in the <i>Auto Scaling User Guide</i>.</p>
11467
- * <p>When managed termination protection is off, your Amazon EC2 instances aren't protected from termination
11468
- * when the Auto Scaling group scales in.</p>
11469
- * @public
11470
- */
11471
- managedTerminationProtection?: ManagedTerminationProtection | undefined;
11472
- /**
11473
- * <p>The managed draining option for the Auto Scaling group capacity provider. When you enable this, Amazon ECS manages and gracefully drains the EC2 container instances that are in the Auto Scaling group capacity provider.</p>
11474
- * @public
11475
- */
11476
- managedDraining?: ManagedDraining | undefined;
11477
- }
11478
11473
  /**
11479
11474
  * @internal
11480
11475
  */
@@ -1,6 +1,39 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { ECSServiceException as __BaseException } from "./ECSServiceException";
3
- import { AutoScalingGroupProviderUpdate, CapacityProvider, CapacityProviderStrategyItem, Cluster, ClusterConfiguration, ClusterServiceConnectDefaultsRequest, ClusterSetting, ContainerInstance, ContainerInstanceStatus, DeploymentConfiguration, Failure, LoadBalancer, NetworkConfiguration, PlacementConstraint, PlacementStrategy, PropagateTags, ProtectedTask, Scale, Service, ServiceConnectConfiguration, ServiceRegistry, ServiceVolumeConfiguration, TaskSet, VpcLatticeConfiguration } from "./models_0";
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, TaskSet, VpcLatticeConfiguration } from "./models_0";
4
+ /**
5
+ * <p>The details of the Auto Scaling group capacity provider to update.</p>
6
+ * @public
7
+ */
8
+ export interface AutoScalingGroupProviderUpdate {
9
+ /**
10
+ * <p>The managed scaling settings for the Auto Scaling group capacity provider.</p>
11
+ * @public
12
+ */
13
+ managedScaling?: ManagedScaling | undefined;
14
+ /**
15
+ * <p>The managed termination protection setting to use for the Auto Scaling group capacity provider. This
16
+ * determines whether the Auto Scaling group has managed termination protection.</p>
17
+ * <important>
18
+ * <p>When using managed termination protection, managed scaling must also be used otherwise managed
19
+ * termination protection doesn't work.</p>
20
+ * </important>
21
+ * <p>When managed termination protection is on, Amazon ECS prevents the Amazon EC2 instances in an Auto Scaling
22
+ * group that contain tasks from being terminated during a scale-in action. The Auto Scaling group and
23
+ * each instance in the Auto Scaling group must have instance protection from scale-in actions on. For
24
+ * more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection">Instance
25
+ * Protection</a> in the <i>Auto Scaling User Guide</i>.</p>
26
+ * <p>When managed termination protection is off, your Amazon EC2 instances aren't protected from termination
27
+ * when the Auto Scaling group scales in.</p>
28
+ * @public
29
+ */
30
+ managedTerminationProtection?: ManagedTerminationProtection | undefined;
31
+ /**
32
+ * <p>The managed draining option for the Auto Scaling group capacity provider. When you enable this, Amazon ECS manages and gracefully drains the EC2 container instances that are in the Auto Scaling group capacity provider.</p>
33
+ * @public
34
+ */
35
+ managedDraining?: ManagedDraining | undefined;
36
+ }
4
37
  /**
5
38
  * @public
6
39
  */
@@ -258,6 +291,13 @@ export interface UpdateServiceRequest {
258
291
  * @public
259
292
  */
260
293
  deploymentConfiguration?: DeploymentConfiguration | undefined;
294
+ /**
295
+ * <p>Indicates whether to use Availability Zone rebalancing for the service.</p>
296
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-rebalancing.html">Balancing an Amazon ECS service across Availability Zones</a> in
297
+ * the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
298
+ * @public
299
+ */
300
+ availabilityZoneRebalancing?: AvailabilityZoneRebalancing | undefined;
261
301
  /**
262
302
  * <p>An object representing the network configuration for the service.</p>
263
303
  * @public
@@ -217,6 +217,12 @@ export declare class ClusterNotFoundException extends __BaseException {
217
217
  opts: __ExceptionOptionType<ClusterNotFoundException, __BaseException>
218
218
  );
219
219
  }
220
+ export declare const AvailabilityZoneRebalancing: {
221
+ readonly DISABLED: "DISABLED";
222
+ readonly ENABLED: "ENABLED";
223
+ };
224
+ export type AvailabilityZoneRebalancing =
225
+ (typeof AvailabilityZoneRebalancing)[keyof typeof AvailabilityZoneRebalancing];
220
226
  export interface DeploymentAlarms {
221
227
  alarmNames: string[] | undefined;
222
228
  rollback: boolean | undefined;
@@ -400,6 +406,7 @@ export interface CreateServiceRequest {
400
406
  cluster?: string | undefined;
401
407
  serviceName: string | undefined;
402
408
  taskDefinition?: string | undefined;
409
+ availabilityZoneRebalancing?: AvailabilityZoneRebalancing | undefined;
403
410
  loadBalancers?: LoadBalancer[] | undefined;
404
411
  serviceRegistries?: ServiceRegistry[] | undefined;
405
412
  desiredCount?: number | undefined;
@@ -538,6 +545,7 @@ export interface Service {
538
545
  enableECSManagedTags?: boolean | undefined;
539
546
  propagateTags?: PropagateTags | undefined;
540
547
  enableExecuteCommand?: boolean | undefined;
548
+ availabilityZoneRebalancing?: AvailabilityZoneRebalancing | undefined;
541
549
  }
542
550
  export interface CreateServiceResponse {
543
551
  service?: Service | undefined;
@@ -1936,11 +1944,6 @@ export interface UntagResourceRequest {
1936
1944
  tagKeys: string[] | undefined;
1937
1945
  }
1938
1946
  export interface UntagResourceResponse {}
1939
- export interface AutoScalingGroupProviderUpdate {
1940
- managedScaling?: ManagedScaling | undefined;
1941
- managedTerminationProtection?: ManagedTerminationProtection | undefined;
1942
- managedDraining?: ManagedDraining | undefined;
1943
- }
1944
1947
  export declare const SessionFilterSensitiveLog: (obj: Session) => any;
1945
1948
  export declare const ExecuteCommandResponseFilterSensitiveLog: (
1946
1949
  obj: ExecuteCommandResponse
@@ -1,7 +1,7 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { ECSServiceException as __BaseException } from "./ECSServiceException";
3
3
  import {
4
- AutoScalingGroupProviderUpdate,
4
+ AvailabilityZoneRebalancing,
5
5
  CapacityProvider,
6
6
  CapacityProviderStrategyItem,
7
7
  Cluster,
@@ -13,6 +13,9 @@ import {
13
13
  DeploymentConfiguration,
14
14
  Failure,
15
15
  LoadBalancer,
16
+ ManagedDraining,
17
+ ManagedScaling,
18
+ ManagedTerminationProtection,
16
19
  NetworkConfiguration,
17
20
  PlacementConstraint,
18
21
  PlacementStrategy,
@@ -26,6 +29,11 @@ import {
26
29
  TaskSet,
27
30
  VpcLatticeConfiguration,
28
31
  } from "./models_0";
32
+ export interface AutoScalingGroupProviderUpdate {
33
+ managedScaling?: ManagedScaling | undefined;
34
+ managedTerminationProtection?: ManagedTerminationProtection | undefined;
35
+ managedDraining?: ManagedDraining | undefined;
36
+ }
29
37
  export interface UpdateCapacityProviderRequest {
30
38
  name: string | undefined;
31
39
  autoScalingGroupProvider: AutoScalingGroupProviderUpdate | undefined;
@@ -86,6 +94,7 @@ export interface UpdateServiceRequest {
86
94
  taskDefinition?: string | undefined;
87
95
  capacityProviderStrategy?: CapacityProviderStrategyItem[] | undefined;
88
96
  deploymentConfiguration?: DeploymentConfiguration | undefined;
97
+ availabilityZoneRebalancing?: AvailabilityZoneRebalancing | undefined;
89
98
  networkConfiguration?: NetworkConfiguration | undefined;
90
99
  placementConstraints?: PlacementConstraint[] | undefined;
91
100
  placementStrategy?: PlacementStrategy[] | 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.696.0",
4
+ "version": "3.699.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,10 +20,10 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.696.0",
24
- "@aws-sdk/client-sts": "3.696.0",
23
+ "@aws-sdk/client-sso-oidc": "3.699.0",
24
+ "@aws-sdk/client-sts": "3.699.0",
25
25
  "@aws-sdk/core": "3.696.0",
26
- "@aws-sdk/credential-provider-node": "3.696.0",
26
+ "@aws-sdk/credential-provider-node": "3.699.0",
27
27
  "@aws-sdk/middleware-host-header": "3.696.0",
28
28
  "@aws-sdk/middleware-logger": "3.696.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.696.0",