1 | import { Callback, Handler } from "../handler";
|
2 |
|
3 | export type AutoScalingScaleInHandler = Handler<AutoScalingScaleInEvent, AutoScalingScaleInResult>;
|
4 | export type AutoScalingScaleInCallback = Callback<AutoScalingScaleInResult>;
|
5 |
|
6 | export type AutoScalingInstanceMarketOption = "spot" | "on-demand";
|
7 |
|
8 | export type AutoScalingScaleInCause = "SCALE_IN" | "INSTANCE_REFRESH" | "MAX_INSTANCE_LIFETIME" | "REBALANCE";
|
9 |
|
10 | export interface AutoScalingTerminationRequest {
|
11 | AvailabilityZone: string;
|
12 | Capacity: number;
|
13 | InstanceMarketOption: AutoScalingInstanceMarketOption;
|
14 | }
|
15 |
|
16 | export interface AutoScalingInstanceRecord {
|
17 | AvailabilityZone: string;
|
18 | InstanceId: string;
|
19 | InstanceType: string;
|
20 | InstanceMarketOption: AutoScalingInstanceMarketOption;
|
21 | }
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 | export interface AutoScalingScaleInEvent {
|
31 | AutoScalingGroupARN: string;
|
32 | AutoScalingGroupName: string;
|
33 | CapacityToTerminate: AutoScalingTerminationRequest[];
|
34 | Instances: AutoScalingInstanceRecord[];
|
35 | Cause: AutoScalingScaleInCause;
|
36 | HasMoreInstances?: boolean;
|
37 | }
|
38 |
|
39 | export interface AutoScalingScaleInResult {
|
40 | InstanceIDs: string[];
|
41 | }
|