@aws-sdk/client-ecs 3.695.0 → 3.697.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 +13 -0
- package/dist-es/models/models_0.js +8 -0
- package/dist-es/protocols/Aws_json1_1.js +1 -0
- package/dist-types/commands/CreateServiceCommand.d.ts +2 -0
- package/dist-types/commands/DeleteCapacityProviderCommand.d.ts +1 -1
- package/dist-types/commands/DeleteServiceCommand.d.ts +1 -0
- package/dist-types/commands/DeleteTaskDefinitionsCommand.d.ts +1 -0
- package/dist-types/commands/DeregisterTaskDefinitionCommand.d.ts +1 -0
- package/dist-types/commands/DescribeServicesCommand.d.ts +1 -0
- package/dist-types/commands/DescribeTaskDefinitionCommand.d.ts +1 -0
- package/dist-types/commands/RegisterTaskDefinitionCommand.d.ts +2 -0
- package/dist-types/commands/UpdateCapacityProviderCommand.d.ts +1 -2
- package/dist-types/commands/UpdateServiceCommand.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +52 -51
- package/dist-types/models/models_1.d.ts +57 -1
- package/dist-types/ts3.4/commands/UpdateCapacityProviderCommand.d.ts +4 -2
- package/dist-types/ts3.4/models/models_0.d.ts +15 -9
- package/dist-types/ts3.4/models/models_1.d.ts +14 -0
- package/package.json +36 -36
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,
|
|
@@ -175,6 +176,7 @@ __export(src_exports, {
|
|
|
175
176
|
UpdateServicePrimaryTaskSetCommand: () => UpdateServicePrimaryTaskSetCommand,
|
|
176
177
|
UpdateTaskProtectionCommand: () => UpdateTaskProtectionCommand,
|
|
177
178
|
UpdateTaskSetCommand: () => UpdateTaskSetCommand,
|
|
179
|
+
VersionConsistency: () => VersionConsistency,
|
|
178
180
|
__Client: () => import_smithy_client.Client,
|
|
179
181
|
paginateListAccountSettings: () => paginateListAccountSettings,
|
|
180
182
|
paginateListAttributes: () => paginateListAttributes,
|
|
@@ -539,6 +541,10 @@ var _ClusterNotFoundException = class _ClusterNotFoundException extends ECSServi
|
|
|
539
541
|
};
|
|
540
542
|
__name(_ClusterNotFoundException, "ClusterNotFoundException");
|
|
541
543
|
var ClusterNotFoundException = _ClusterNotFoundException;
|
|
544
|
+
var AvailabilityZoneRebalancing = {
|
|
545
|
+
DISABLED: "DISABLED",
|
|
546
|
+
ENABLED: "ENABLED"
|
|
547
|
+
};
|
|
542
548
|
var DeploymentControllerType = {
|
|
543
549
|
CODE_DEPLOY: "CODE_DEPLOY",
|
|
544
550
|
ECS: "ECS",
|
|
@@ -826,6 +832,10 @@ var UlimitName = {
|
|
|
826
832
|
SIGPENDING: "sigpending",
|
|
827
833
|
STACK: "stack"
|
|
828
834
|
};
|
|
835
|
+
var VersionConsistency = {
|
|
836
|
+
DISABLED: "disabled",
|
|
837
|
+
ENABLED: "enabled"
|
|
838
|
+
};
|
|
829
839
|
var IpcMode = {
|
|
830
840
|
HOST: "host",
|
|
831
841
|
NONE: "none",
|
|
@@ -2971,6 +2981,7 @@ var de_Scale = /* @__PURE__ */ __name((output, context) => {
|
|
|
2971
2981
|
}, "de_Scale");
|
|
2972
2982
|
var de_Service = /* @__PURE__ */ __name((output, context) => {
|
|
2973
2983
|
return (0, import_smithy_client.take)(output, {
|
|
2984
|
+
availabilityZoneRebalancing: import_smithy_client.expectString,
|
|
2974
2985
|
capacityProviderStrategy: import_smithy_client._json,
|
|
2975
2986
|
clusterArn: import_smithy_client.expectString,
|
|
2976
2987
|
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
@@ -4553,6 +4564,7 @@ var waitUntilTasksStopped = /* @__PURE__ */ __name(async (params, input) => {
|
|
|
4553
4564
|
ClusterSettingName,
|
|
4554
4565
|
NamespaceNotFoundException,
|
|
4555
4566
|
ClusterNotFoundException,
|
|
4567
|
+
AvailabilityZoneRebalancing,
|
|
4556
4568
|
DeploymentControllerType,
|
|
4557
4569
|
LaunchType,
|
|
4558
4570
|
AssignPublicIp,
|
|
@@ -4587,6 +4599,7 @@ var waitUntilTasksStopped = /* @__PURE__ */ __name(async (params, input) => {
|
|
|
4587
4599
|
TransportProtocol,
|
|
4588
4600
|
ResourceType,
|
|
4589
4601
|
UlimitName,
|
|
4602
|
+
VersionConsistency,
|
|
4590
4603
|
IpcMode,
|
|
4591
4604
|
NetworkMode,
|
|
4592
4605
|
PidMode,
|
|
@@ -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",
|
|
@@ -378,6 +382,10 @@ export const UlimitName = {
|
|
|
378
382
|
SIGPENDING: "sigpending",
|
|
379
383
|
STACK: "stack",
|
|
380
384
|
};
|
|
385
|
+
export const VersionConsistency = {
|
|
386
|
+
DISABLED: "disabled",
|
|
387
|
+
ENABLED: "enabled",
|
|
388
|
+
};
|
|
381
389
|
export const IpcMode = {
|
|
382
390
|
HOST: "host",
|
|
383
391
|
NONE: "none",
|
|
@@ -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/
|
|
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
|
*
|
|
@@ -167,6 +167,7 @@ declare const DeleteTaskDefinitionsCommand_base: {
|
|
|
167
167
|
* // ],
|
|
168
168
|
* // startTimeout: Number("int"),
|
|
169
169
|
* // stopTimeout: Number("int"),
|
|
170
|
+
* // versionConsistency: "enabled" || "disabled",
|
|
170
171
|
* // hostname: "STRING_VALUE",
|
|
171
172
|
* // user: "STRING_VALUE",
|
|
172
173
|
* // workingDirectory: "STRING_VALUE",
|
|
@@ -164,6 +164,7 @@ declare const DeregisterTaskDefinitionCommand_base: {
|
|
|
164
164
|
* // ],
|
|
165
165
|
* // startTimeout: Number("int"),
|
|
166
166
|
* // stopTimeout: Number("int"),
|
|
167
|
+
* // versionConsistency: "enabled" || "disabled",
|
|
167
168
|
* // hostname: "STRING_VALUE",
|
|
168
169
|
* // user: "STRING_VALUE",
|
|
169
170
|
* // workingDirectory: "STRING_VALUE",
|
|
@@ -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
|
|
@@ -157,6 +157,7 @@ declare const DescribeTaskDefinitionCommand_base: {
|
|
|
157
157
|
* // ],
|
|
158
158
|
* // startTimeout: Number("int"),
|
|
159
159
|
* // stopTimeout: Number("int"),
|
|
160
|
+
* // versionConsistency: "enabled" || "disabled",
|
|
160
161
|
* // hostname: "STRING_VALUE",
|
|
161
162
|
* // user: "STRING_VALUE",
|
|
162
163
|
* // workingDirectory: "STRING_VALUE",
|
|
@@ -159,6 +159,7 @@ declare const RegisterTaskDefinitionCommand_base: {
|
|
|
159
159
|
* ],
|
|
160
160
|
* startTimeout: Number("int"),
|
|
161
161
|
* stopTimeout: Number("int"),
|
|
162
|
+
* versionConsistency: "enabled" || "disabled",
|
|
162
163
|
* hostname: "STRING_VALUE",
|
|
163
164
|
* user: "STRING_VALUE",
|
|
164
165
|
* workingDirectory: "STRING_VALUE",
|
|
@@ -418,6 +419,7 @@ declare const RegisterTaskDefinitionCommand_base: {
|
|
|
418
419
|
* // ],
|
|
419
420
|
* // startTimeout: Number("int"),
|
|
420
421
|
* // stopTimeout: Number("int"),
|
|
422
|
+
* // versionConsistency: "enabled" || "disabled",
|
|
421
423
|
* // hostname: "STRING_VALUE",
|
|
422
424
|
* // user: "STRING_VALUE",
|
|
423
425
|
* // workingDirectory: "STRING_VALUE",
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { ECSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECSClient";
|
|
4
|
-
import { UpdateCapacityProviderRequest } from "../models/
|
|
5
|
-
import { UpdateCapacityProviderResponse } from "../models/models_1";
|
|
4
|
+
import { UpdateCapacityProviderRequest, UpdateCapacityProviderResponse } from "../models/models_1";
|
|
6
5
|
/**
|
|
7
6
|
* @public
|
|
8
7
|
*/
|
|
@@ -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.
|
|
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
|
|
@@ -4973,6 +5001,18 @@ export interface Ulimit {
|
|
|
4973
5001
|
*/
|
|
4974
5002
|
hardLimit: number | undefined;
|
|
4975
5003
|
}
|
|
5004
|
+
/**
|
|
5005
|
+
* @public
|
|
5006
|
+
* @enum
|
|
5007
|
+
*/
|
|
5008
|
+
export declare const VersionConsistency: {
|
|
5009
|
+
readonly DISABLED: "disabled";
|
|
5010
|
+
readonly ENABLED: "enabled";
|
|
5011
|
+
};
|
|
5012
|
+
/**
|
|
5013
|
+
* @public
|
|
5014
|
+
*/
|
|
5015
|
+
export type VersionConsistency = (typeof VersionConsistency)[keyof typeof VersionConsistency];
|
|
4976
5016
|
/**
|
|
4977
5017
|
* <p>Details on a data volume from another container in the same task definition.</p>
|
|
4978
5018
|
* @public
|
|
@@ -5370,6 +5410,16 @@ export interface ContainerDefinition {
|
|
|
5370
5410
|
* @public
|
|
5371
5411
|
*/
|
|
5372
5412
|
stopTimeout?: number | undefined;
|
|
5413
|
+
/**
|
|
5414
|
+
* <p>Specifies whether Amazon ECS will resolve the container image tag
|
|
5415
|
+
* provided in the container definition to an image digest. By default, the
|
|
5416
|
+
* value is <code>enabled</code>. If you set the value for a container as
|
|
5417
|
+
* <code>disabled</code>, Amazon ECS will not resolve the provided container image tag
|
|
5418
|
+
* to a digest and will use the original image URI specified in the container definition for deployment.
|
|
5419
|
+
* For more information about container image resolution, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-ecs.html#deployment-container-image-stability">Container image resolution</a> in the <i>Amazon ECS Developer Guide</i>.</p>
|
|
5420
|
+
* @public
|
|
5421
|
+
*/
|
|
5422
|
+
versionConsistency?: VersionConsistency | undefined;
|
|
5373
5423
|
/**
|
|
5374
5424
|
* <p>The hostname to use for your container. This parameter maps to <code>Hostname</code> in the docker
|
|
5375
5425
|
* container create command and the <code>--hostname</code> option to docker run.</p>
|
|
@@ -11420,55 +11470,6 @@ export interface UntagResourceRequest {
|
|
|
11420
11470
|
*/
|
|
11421
11471
|
export interface UntagResourceResponse {
|
|
11422
11472
|
}
|
|
11423
|
-
/**
|
|
11424
|
-
* <p>The details of the Auto Scaling group capacity provider to update.</p>
|
|
11425
|
-
* @public
|
|
11426
|
-
*/
|
|
11427
|
-
export interface AutoScalingGroupProviderUpdate {
|
|
11428
|
-
/**
|
|
11429
|
-
* <p>The managed scaling settings for the Auto Scaling group capacity provider.</p>
|
|
11430
|
-
* @public
|
|
11431
|
-
*/
|
|
11432
|
-
managedScaling?: ManagedScaling | undefined;
|
|
11433
|
-
/**
|
|
11434
|
-
* <p>The managed termination protection setting to use for the Auto Scaling group capacity provider. This
|
|
11435
|
-
* determines whether the Auto Scaling group has managed termination protection.</p>
|
|
11436
|
-
* <important>
|
|
11437
|
-
* <p>When using managed termination protection, managed scaling must also be used otherwise managed
|
|
11438
|
-
* termination protection doesn't work.</p>
|
|
11439
|
-
* </important>
|
|
11440
|
-
* <p>When managed termination protection is on, Amazon ECS prevents the Amazon EC2 instances in an Auto Scaling
|
|
11441
|
-
* group that contain tasks from being terminated during a scale-in action. The Auto Scaling group and
|
|
11442
|
-
* each instance in the Auto Scaling group must have instance protection from scale-in actions on. For
|
|
11443
|
-
* more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection">Instance
|
|
11444
|
-
* Protection</a> in the <i>Auto Scaling User Guide</i>.</p>
|
|
11445
|
-
* <p>When managed termination protection is off, your Amazon EC2 instances aren't protected from termination
|
|
11446
|
-
* when the Auto Scaling group scales in.</p>
|
|
11447
|
-
* @public
|
|
11448
|
-
*/
|
|
11449
|
-
managedTerminationProtection?: ManagedTerminationProtection | undefined;
|
|
11450
|
-
/**
|
|
11451
|
-
* <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>
|
|
11452
|
-
* @public
|
|
11453
|
-
*/
|
|
11454
|
-
managedDraining?: ManagedDraining | undefined;
|
|
11455
|
-
}
|
|
11456
|
-
/**
|
|
11457
|
-
* @public
|
|
11458
|
-
*/
|
|
11459
|
-
export interface UpdateCapacityProviderRequest {
|
|
11460
|
-
/**
|
|
11461
|
-
* <p>The name of the capacity provider to update.</p>
|
|
11462
|
-
* @public
|
|
11463
|
-
*/
|
|
11464
|
-
name: string | undefined;
|
|
11465
|
-
/**
|
|
11466
|
-
* <p>An object that represent the parameters to update for the Auto Scaling group capacity
|
|
11467
|
-
* provider.</p>
|
|
11468
|
-
* @public
|
|
11469
|
-
*/
|
|
11470
|
-
autoScalingGroupProvider: AutoScalingGroupProviderUpdate | undefined;
|
|
11471
|
-
}
|
|
11472
11473
|
/**
|
|
11473
11474
|
* @internal
|
|
11474
11475
|
*/
|
|
@@ -1,6 +1,55 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
2
|
import { ECSServiceException as __BaseException } from "./ECSServiceException";
|
|
3
|
-
import { 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
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @public
|
|
39
|
+
*/
|
|
40
|
+
export interface UpdateCapacityProviderRequest {
|
|
41
|
+
/**
|
|
42
|
+
* <p>The name of the capacity provider to update.</p>
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
45
|
+
name: string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* <p>An object that represent the parameters to update for the Auto Scaling group capacity
|
|
48
|
+
* provider.</p>
|
|
49
|
+
* @public
|
|
50
|
+
*/
|
|
51
|
+
autoScalingGroupProvider: AutoScalingGroupProviderUpdate | undefined;
|
|
52
|
+
}
|
|
4
53
|
/**
|
|
5
54
|
* @public
|
|
6
55
|
*/
|
|
@@ -242,6 +291,13 @@ export interface UpdateServiceRequest {
|
|
|
242
291
|
* @public
|
|
243
292
|
*/
|
|
244
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;
|
|
245
301
|
/**
|
|
246
302
|
* <p>An object representing the network configuration for the service.</p>
|
|
247
303
|
* @public
|
|
@@ -5,8 +5,10 @@ import {
|
|
|
5
5
|
ServiceInputTypes,
|
|
6
6
|
ServiceOutputTypes,
|
|
7
7
|
} from "../ECSClient";
|
|
8
|
-
import {
|
|
9
|
-
|
|
8
|
+
import {
|
|
9
|
+
UpdateCapacityProviderRequest,
|
|
10
|
+
UpdateCapacityProviderResponse,
|
|
11
|
+
} from "../models/models_1";
|
|
10
12
|
export { __MetadataBearer };
|
|
11
13
|
export { $Command };
|
|
12
14
|
export interface UpdateCapacityProviderCommandInput
|
|
@@ -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;
|
|
@@ -855,6 +863,12 @@ export interface Ulimit {
|
|
|
855
863
|
softLimit: number | undefined;
|
|
856
864
|
hardLimit: number | undefined;
|
|
857
865
|
}
|
|
866
|
+
export declare const VersionConsistency: {
|
|
867
|
+
readonly DISABLED: "disabled";
|
|
868
|
+
readonly ENABLED: "enabled";
|
|
869
|
+
};
|
|
870
|
+
export type VersionConsistency =
|
|
871
|
+
(typeof VersionConsistency)[keyof typeof VersionConsistency];
|
|
858
872
|
export interface VolumeFrom {
|
|
859
873
|
sourceContainer?: string | undefined;
|
|
860
874
|
readOnly?: boolean | undefined;
|
|
@@ -881,6 +895,7 @@ export interface ContainerDefinition {
|
|
|
881
895
|
dependsOn?: ContainerDependency[] | undefined;
|
|
882
896
|
startTimeout?: number | undefined;
|
|
883
897
|
stopTimeout?: number | undefined;
|
|
898
|
+
versionConsistency?: VersionConsistency | undefined;
|
|
884
899
|
hostname?: string | undefined;
|
|
885
900
|
user?: string | undefined;
|
|
886
901
|
workingDirectory?: string | undefined;
|
|
@@ -1929,15 +1944,6 @@ export interface UntagResourceRequest {
|
|
|
1929
1944
|
tagKeys: string[] | undefined;
|
|
1930
1945
|
}
|
|
1931
1946
|
export interface UntagResourceResponse {}
|
|
1932
|
-
export interface AutoScalingGroupProviderUpdate {
|
|
1933
|
-
managedScaling?: ManagedScaling | undefined;
|
|
1934
|
-
managedTerminationProtection?: ManagedTerminationProtection | undefined;
|
|
1935
|
-
managedDraining?: ManagedDraining | undefined;
|
|
1936
|
-
}
|
|
1937
|
-
export interface UpdateCapacityProviderRequest {
|
|
1938
|
-
name: string | undefined;
|
|
1939
|
-
autoScalingGroupProvider: AutoScalingGroupProviderUpdate | undefined;
|
|
1940
|
-
}
|
|
1941
1947
|
export declare const SessionFilterSensitiveLog: (obj: Session) => any;
|
|
1942
1948
|
export declare const ExecuteCommandResponseFilterSensitiveLog: (
|
|
1943
1949
|
obj: ExecuteCommandResponse
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
2
|
import { ECSServiceException as __BaseException } from "./ECSServiceException";
|
|
3
3
|
import {
|
|
4
|
+
AvailabilityZoneRebalancing,
|
|
4
5
|
CapacityProvider,
|
|
5
6
|
CapacityProviderStrategyItem,
|
|
6
7
|
Cluster,
|
|
@@ -12,6 +13,9 @@ import {
|
|
|
12
13
|
DeploymentConfiguration,
|
|
13
14
|
Failure,
|
|
14
15
|
LoadBalancer,
|
|
16
|
+
ManagedDraining,
|
|
17
|
+
ManagedScaling,
|
|
18
|
+
ManagedTerminationProtection,
|
|
15
19
|
NetworkConfiguration,
|
|
16
20
|
PlacementConstraint,
|
|
17
21
|
PlacementStrategy,
|
|
@@ -25,6 +29,15 @@ import {
|
|
|
25
29
|
TaskSet,
|
|
26
30
|
VpcLatticeConfiguration,
|
|
27
31
|
} from "./models_0";
|
|
32
|
+
export interface AutoScalingGroupProviderUpdate {
|
|
33
|
+
managedScaling?: ManagedScaling | undefined;
|
|
34
|
+
managedTerminationProtection?: ManagedTerminationProtection | undefined;
|
|
35
|
+
managedDraining?: ManagedDraining | undefined;
|
|
36
|
+
}
|
|
37
|
+
export interface UpdateCapacityProviderRequest {
|
|
38
|
+
name: string | undefined;
|
|
39
|
+
autoScalingGroupProvider: AutoScalingGroupProviderUpdate | undefined;
|
|
40
|
+
}
|
|
28
41
|
export interface UpdateCapacityProviderResponse {
|
|
29
42
|
capacityProvider?: CapacityProvider | undefined;
|
|
30
43
|
}
|
|
@@ -81,6 +94,7 @@ export interface UpdateServiceRequest {
|
|
|
81
94
|
taskDefinition?: string | undefined;
|
|
82
95
|
capacityProviderStrategy?: CapacityProviderStrategyItem[] | undefined;
|
|
83
96
|
deploymentConfiguration?: DeploymentConfiguration | undefined;
|
|
97
|
+
availabilityZoneRebalancing?: AvailabilityZoneRebalancing | undefined;
|
|
84
98
|
networkConfiguration?: NetworkConfiguration | undefined;
|
|
85
99
|
placementConstraints?: PlacementConstraint[] | undefined;
|
|
86
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.
|
|
4
|
+
"version": "3.697.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,45 +20,45 @@
|
|
|
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.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
28
|
-
"@aws-sdk/middleware-logger": "3.
|
|
29
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^3.0.
|
|
37
|
-
"@smithy/core": "^2.5.
|
|
38
|
-
"@smithy/fetch-http-handler": "^4.1.
|
|
39
|
-
"@smithy/hash-node": "^3.0.
|
|
40
|
-
"@smithy/invalid-dependency": "^3.0.
|
|
41
|
-
"@smithy/middleware-content-length": "^3.0.
|
|
42
|
-
"@smithy/middleware-endpoint": "^3.2.
|
|
43
|
-
"@smithy/middleware-retry": "^3.0.
|
|
44
|
-
"@smithy/middleware-serde": "^3.0.
|
|
45
|
-
"@smithy/middleware-stack": "^3.0.
|
|
46
|
-
"@smithy/node-config-provider": "^3.1.
|
|
47
|
-
"@smithy/node-http-handler": "^3.3.
|
|
48
|
-
"@smithy/protocol-http": "^4.1.
|
|
49
|
-
"@smithy/smithy-client": "^3.4.
|
|
50
|
-
"@smithy/types": "^3.7.
|
|
51
|
-
"@smithy/url-parser": "^3.0.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.696.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.696.0",
|
|
25
|
+
"@aws-sdk/core": "3.696.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.696.0",
|
|
27
|
+
"@aws-sdk/middleware-host-header": "3.696.0",
|
|
28
|
+
"@aws-sdk/middleware-logger": "3.696.0",
|
|
29
|
+
"@aws-sdk/middleware-recursion-detection": "3.696.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.696.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.696.0",
|
|
32
|
+
"@aws-sdk/types": "3.696.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.696.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.696.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.696.0",
|
|
36
|
+
"@smithy/config-resolver": "^3.0.12",
|
|
37
|
+
"@smithy/core": "^2.5.3",
|
|
38
|
+
"@smithy/fetch-http-handler": "^4.1.1",
|
|
39
|
+
"@smithy/hash-node": "^3.0.10",
|
|
40
|
+
"@smithy/invalid-dependency": "^3.0.10",
|
|
41
|
+
"@smithy/middleware-content-length": "^3.0.12",
|
|
42
|
+
"@smithy/middleware-endpoint": "^3.2.3",
|
|
43
|
+
"@smithy/middleware-retry": "^3.0.27",
|
|
44
|
+
"@smithy/middleware-serde": "^3.0.10",
|
|
45
|
+
"@smithy/middleware-stack": "^3.0.10",
|
|
46
|
+
"@smithy/node-config-provider": "^3.1.11",
|
|
47
|
+
"@smithy/node-http-handler": "^3.3.1",
|
|
48
|
+
"@smithy/protocol-http": "^4.1.7",
|
|
49
|
+
"@smithy/smithy-client": "^3.4.4",
|
|
50
|
+
"@smithy/types": "^3.7.1",
|
|
51
|
+
"@smithy/url-parser": "^3.0.10",
|
|
52
52
|
"@smithy/util-base64": "^3.0.0",
|
|
53
53
|
"@smithy/util-body-length-browser": "^3.0.0",
|
|
54
54
|
"@smithy/util-body-length-node": "^3.0.0",
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^3.0.
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
|
57
|
-
"@smithy/util-endpoints": "^2.1.
|
|
58
|
-
"@smithy/util-middleware": "^3.0.
|
|
59
|
-
"@smithy/util-retry": "^3.0.
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^3.0.27",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^3.0.27",
|
|
57
|
+
"@smithy/util-endpoints": "^2.1.6",
|
|
58
|
+
"@smithy/util-middleware": "^3.0.10",
|
|
59
|
+
"@smithy/util-retry": "^3.0.10",
|
|
60
60
|
"@smithy/util-utf8": "^3.0.0",
|
|
61
|
-
"@smithy/util-waiter": "^3.1.
|
|
61
|
+
"@smithy/util-waiter": "^3.1.9",
|
|
62
62
|
"@types/uuid": "^9.0.1",
|
|
63
63
|
"tslib": "^2.6.2",
|
|
64
64
|
"uuid": "^9.0.1"
|