Skip to content

Commit 618a36c

Browse files
author
awstools
committed
feat(client-ecs): This release adds support for managed instance draining which facilitates graceful termination of Amazon ECS instances.
1 parent 985a85e commit 618a36c

File tree

7 files changed

+364
-27
lines changed

7 files changed

+364
-27
lines changed

clients/client-ecs/src/commands/CreateCapacityProviderCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export interface CreateCapacityProviderCommandOutput extends CreateCapacityProvi
5353
* instanceWarmupPeriod: Number("int"),
5454
* },
5555
* managedTerminationProtection: "ENABLED" || "DISABLED",
56+
* managedDraining: "ENABLED" || "DISABLED",
5657
* },
5758
* tags: [ // Tags
5859
* { // Tag
@@ -78,6 +79,7 @@ export interface CreateCapacityProviderCommandOutput extends CreateCapacityProvi
7879
* // instanceWarmupPeriod: Number("int"),
7980
* // },
8081
* // managedTerminationProtection: "ENABLED" || "DISABLED",
82+
* // managedDraining: "ENABLED" || "DISABLED",
8183
* // },
8284
* // updateStatus: "DELETE_IN_PROGRESS" || "DELETE_COMPLETE" || "DELETE_FAILED" || "UPDATE_IN_PROGRESS" || "UPDATE_COMPLETE" || "UPDATE_FAILED",
8385
* // updateStatusReason: "STRING_VALUE",

clients/client-ecs/src/commands/CreateTaskSetCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export interface CreateTaskSetCommandOutput extends CreateTaskSetResponse, __Met
3232
* uses the <code>EXTERNAL</code> deployment controller type. For more information, see
3333
* <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html">Amazon ECS deployment
3434
* types</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
35+
* <p>You can create a maximum of 5 tasks sets for a deployment.</p>
3536
* @example
3637
* Use a bare-bones client and the command you need to make an API call.
3738
* ```javascript

clients/client-ecs/src/commands/DeleteCapacityProviderCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export interface DeleteCapacityProviderCommandOutput extends DeleteCapacityProvi
6969
* // instanceWarmupPeriod: Number("int"),
7070
* // },
7171
* // managedTerminationProtection: "ENABLED" || "DISABLED",
72+
* // managedDraining: "ENABLED" || "DISABLED",
7273
* // },
7374
* // updateStatus: "DELETE_IN_PROGRESS" || "DELETE_COMPLETE" || "DELETE_FAILED" || "UPDATE_IN_PROGRESS" || "UPDATE_COMPLETE" || "UPDATE_FAILED",
7475
* // updateStatusReason: "STRING_VALUE",

clients/client-ecs/src/commands/DescribeCapacityProvidersCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export interface DescribeCapacityProvidersCommandOutput extends DescribeCapacity
6363
* // instanceWarmupPeriod: Number("int"),
6464
* // },
6565
* // managedTerminationProtection: "ENABLED" || "DISABLED",
66+
* // managedDraining: "ENABLED" || "DISABLED",
6667
* // },
6768
* // updateStatus: "DELETE_IN_PROGRESS" || "DELETE_COMPLETE" || "DELETE_FAILED" || "UPDATE_IN_PROGRESS" || "UPDATE_COMPLETE" || "UPDATE_FAILED",
6869
* // updateStatusReason: "STRING_VALUE",

clients/client-ecs/src/commands/UpdateCapacityProviderCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export interface UpdateCapacityProviderCommandOutput extends UpdateCapacityProvi
4646
* instanceWarmupPeriod: Number("int"),
4747
* },
4848
* managedTerminationProtection: "ENABLED" || "DISABLED",
49+
* managedDraining: "ENABLED" || "DISABLED",
4950
* },
5051
* };
5152
* const command = new UpdateCapacityProviderCommand(input);
@@ -65,6 +66,7 @@ export interface UpdateCapacityProviderCommandOutput extends UpdateCapacityProvi
6566
* // instanceWarmupPeriod: Number("int"),
6667
* // },
6768
* // managedTerminationProtection: "ENABLED" || "DISABLED",
69+
* // managedDraining: "ENABLED" || "DISABLED",
6870
* // },
6971
* // updateStatus: "DELETE_IN_PROGRESS" || "DELETE_COMPLETE" || "DELETE_FAILED" || "UPDATE_IN_PROGRESS" || "UPDATE_COMPLETE" || "UPDATE_FAILED",
7072
* // updateStatusReason: "STRING_VALUE",

clients/client-ecs/src/models/models_0.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,20 @@ export class ClientException extends __BaseException {
6363
}
6464
}
6565

66+
/**
67+
* @public
68+
* @enum
69+
*/
70+
export const ManagedDraining = {
71+
DISABLED: "DISABLED",
72+
ENABLED: "ENABLED",
73+
} as const;
74+
75+
/**
76+
* @public
77+
*/
78+
export type ManagedDraining = (typeof ManagedDraining)[keyof typeof ManagedDraining];
79+
6680
/**
6781
* @public
6882
* @enum
@@ -186,6 +200,13 @@ export interface AutoScalingGroupProvider {
186200
* termination when the Auto Scaling group scales in.</p>
187201
*/
188202
managedTerminationProtection?: ManagedTerminationProtection;
203+
204+
/**
205+
* @public
206+
* <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>
207+
* <p>The default is <code>ENABLED</code>.</p>
208+
*/
209+
managedDraining?: ManagedDraining;
189210
}
190211

191212
/**
@@ -11394,6 +11415,13 @@ export interface AutoScalingGroupProviderUpdate {
1139411415
* termination when the Auto Scaling group scales in.</p>
1139511416
*/
1139611417
managedTerminationProtection?: ManagedTerminationProtection;
11418+
11419+
/**
11420+
* @public
11421+
* <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>
11422+
* <p>The default is <code>ENABLED</code>.</p>
11423+
*/
11424+
managedDraining?: ManagedDraining;
1139711425
}
1139811426

1139911427
/**

0 commit comments

Comments
 (0)