-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat/lambda-python/improve-bundling
- Loading branch information
Showing
44 changed files
with
2,006 additions
and
599 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
packages/@aws-cdk/aws-autoscaling/lib/termination-policy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* Specifies the termination criteria to apply before Amazon EC2 Auto Scaling | ||
* chooses an instance for termination. | ||
*/ | ||
export enum TerminationPolicy { | ||
/** | ||
* Terminate instances in the Auto Scaling group to align the remaining | ||
* instances to the allocation strategy for the type of instance that is | ||
* terminating (either a Spot Instance or an On-Demand Instance). | ||
*/ | ||
ALLOCATION_STRATEGY = 'AllocationStrategy', | ||
|
||
/** | ||
* Terminate instances that are closest to the next billing hour. | ||
*/ | ||
CLOSEST_TO_NEXT_INSTANCE_HOUR = 'ClosestToNextInstanceHour', | ||
|
||
/** | ||
* Terminate instances according to the default termination policy. | ||
*/ | ||
DEFAULT = 'Default', | ||
|
||
/** | ||
* Terminate the newest instance in the group. | ||
*/ | ||
NEWEST_INSTANCE = 'NewestInstance', | ||
|
||
/** | ||
* Terminate the oldest instance in the group. | ||
*/ | ||
OLDEST_INSTANCE = 'OldestInstance', | ||
|
||
/** | ||
* Terminate instances that have the oldest launch configuration. | ||
*/ | ||
OLDEST_LAUNCH_CONFIGURATION = 'OldestLaunchConfiguration', | ||
|
||
/** | ||
* Terminate instances that have the oldest launch template. | ||
*/ | ||
OLDEST_LAUNCH_TEMPLATE = 'OldestLaunchTemplate', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.