@aws-sdk/client-auto-scaling 3.288.0 → 3.289.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-types/commands/AttachInstancesCommand.d.ts +14 -0
- package/dist-types/commands/AttachLoadBalancerTargetGroupsCommand.d.ts +14 -0
- package/dist-types/commands/AttachLoadBalancersCommand.d.ts +14 -0
- package/dist-types/commands/CancelInstanceRefreshCommand.d.ts +16 -0
- package/dist-types/commands/CompleteLifecycleActionCommand.d.ts +14 -0
- package/dist-types/commands/CreateAutoScalingGroupCommand.d.ts +85 -0
- package/dist-types/commands/CreateLaunchConfigurationCommand.d.ts +17 -0
- package/dist-types/commands/CreateOrUpdateTagsCommand.d.ts +26 -0
- package/dist-types/commands/DeleteAutoScalingGroupCommand.d.ts +23 -0
- package/dist-types/commands/DeleteLaunchConfigurationCommand.d.ts +11 -0
- package/dist-types/commands/DeleteLifecycleHookCommand.d.ts +12 -0
- package/dist-types/commands/DeleteNotificationConfigurationCommand.d.ts +12 -0
- package/dist-types/commands/DeletePolicyCommand.d.ts +12 -0
- package/dist-types/commands/DeleteScheduledActionCommand.d.ts +12 -0
- package/dist-types/commands/DeleteTagsCommand.d.ts +18 -0
- package/dist-types/commands/DescribeAccountLimitsCommand.d.ts +17 -0
- package/dist-types/commands/DescribeAdjustmentTypesCommand.d.ts +24 -0
- package/dist-types/commands/DescribeAutoScalingGroupsCommand.d.ts +53 -0
- package/dist-types/commands/DescribeAutoScalingInstancesCommand.d.ts +28 -0
- package/dist-types/commands/DescribeAutoScalingNotificationTypesCommand.d.ts +20 -0
- package/dist-types/commands/DescribeInstanceRefreshesCommand.d.ts +34 -0
- package/dist-types/commands/DescribeLaunchConfigurationsCommand.d.ts +35 -0
- package/dist-types/commands/DescribeLifecycleHookTypesCommand.d.ts +17 -0
- package/dist-types/commands/DescribeLifecycleHooksCommand.d.ts +27 -0
- package/dist-types/commands/DescribeLoadBalancerTargetGroupsCommand.d.ts +21 -0
- package/dist-types/commands/DescribeLoadBalancersCommand.d.ts +21 -0
- package/dist-types/commands/DescribeMetricCollectionTypesCommand.d.ts +44 -0
- package/dist-types/commands/DescribeNotificationConfigurationsCommand.d.ts +29 -0
- package/dist-types/commands/DescribePoliciesCommand.d.ts +35 -0
- package/dist-types/commands/DescribeScalingActivitiesCommand.d.ts +28 -0
- package/dist-types/commands/DescribeScalingProcessTypesCommand.d.ts +39 -0
- package/dist-types/commands/DescribeScheduledActionsCommand.d.ts +28 -0
- package/dist-types/commands/DescribeTagsCommand.d.ts +38 -0
- package/dist-types/commands/DescribeTerminationPolicyTypesCommand.d.ts +20 -0
- package/dist-types/commands/DetachInstancesCommand.d.ts +31 -0
- package/dist-types/commands/DetachLoadBalancerTargetGroupsCommand.d.ts +14 -0
- package/dist-types/commands/DetachLoadBalancersCommand.d.ts +14 -0
- package/dist-types/commands/DisableMetricsCollectionCommand.d.ts +14 -0
- package/dist-types/commands/EnableMetricsCollectionCommand.d.ts +12 -0
- package/dist-types/commands/EnterStandbyCommand.d.ts +31 -0
- package/dist-types/commands/ExecutePolicyCommand.d.ts +14 -0
- package/dist-types/commands/ExitStandbyCommand.d.ts +30 -0
- package/dist-types/commands/PutLifecycleHookCommand.d.ts +15 -0
- package/dist-types/commands/PutNotificationConfigurationCommand.d.ts +15 -0
- package/dist-types/commands/PutScalingPolicyCommand.d.ts +35 -0
- package/dist-types/commands/PutScheduledUpdateGroupActionCommand.d.ts +17 -0
- package/dist-types/commands/PutWarmPoolCommand.d.ts +16 -0
- package/dist-types/commands/RecordLifecycleActionHeartbeatCommand.d.ts +13 -0
- package/dist-types/commands/ResumeProcessesCommand.d.ts +14 -0
- package/dist-types/commands/SetDesiredCapacityCommand.d.ts +13 -0
- package/dist-types/commands/SetInstanceHealthCommand.d.ts +12 -0
- package/dist-types/commands/SetInstanceProtectionCommand.d.ts +30 -0
- package/dist-types/commands/StartInstanceRefreshCommand.d.ts +27 -0
- package/dist-types/commands/SuspendProcessesCommand.d.ts +14 -0
- package/dist-types/commands/TerminateInstanceInAutoScalingGroupCommand.d.ts +12 -0
- package/dist-types/commands/UpdateAutoScalingGroupCommand.d.ts +18 -0
- package/package.json +30 -30
|
@@ -34,6 +34,36 @@ export interface ExitStandbyCommandOutput extends ExitStandbyAnswer, __MetadataB
|
|
|
34
34
|
* @see {@link ExitStandbyCommandOutput} for command's `response` shape.
|
|
35
35
|
* @see {@link AutoScalingClientResolvedConfig | config} for AutoScalingClient's `config` shape.
|
|
36
36
|
*
|
|
37
|
+
* @example To move instances out of standby mode
|
|
38
|
+
* ```javascript
|
|
39
|
+
* // This example moves the specified instance out of standby mode.
|
|
40
|
+
* const input = {
|
|
41
|
+
* "AutoScalingGroupName": "my-auto-scaling-group",
|
|
42
|
+
* "InstanceIds": [
|
|
43
|
+
* "i-93633f9b"
|
|
44
|
+
* ]
|
|
45
|
+
* };
|
|
46
|
+
* const command = new ExitStandbyCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* /* response ==
|
|
49
|
+
* {
|
|
50
|
+
* "Activities": [
|
|
51
|
+
* {
|
|
52
|
+
* "ActivityId": "142928e1-a2dc-453a-9b24-b85ad6735928",
|
|
53
|
+
* "AutoScalingGroupName": "my-auto-scaling-group",
|
|
54
|
+
* "Cause": "At 2015-04-12T15:14:29Z instance i-93633f9b was moved out of standby in response to a user request, increasing the capacity from 1 to 2.",
|
|
55
|
+
* "Description": "Moving EC2 instance out of Standby: i-93633f9b",
|
|
56
|
+
* "Details": "details",
|
|
57
|
+
* "Progress": 30,
|
|
58
|
+
* "StartTime": "2015-04-12T15:14:29.886Z",
|
|
59
|
+
* "StatusCode": "PreInService"
|
|
60
|
+
* }
|
|
61
|
+
* ]
|
|
62
|
+
* }
|
|
63
|
+
* *\/
|
|
64
|
+
* // example id: autoscaling-exit-standby-1
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
37
67
|
*/
|
|
38
68
|
export declare class ExitStandbyCommand extends $Command<ExitStandbyCommandInput, ExitStandbyCommandOutput, AutoScalingClientResolvedConfig> {
|
|
39
69
|
readonly input: ExitStandbyCommandInput;
|
|
@@ -71,6 +71,21 @@ export interface PutLifecycleHookCommandOutput extends PutLifecycleHookAnswer, _
|
|
|
71
71
|
* @see {@link PutLifecycleHookCommandOutput} for command's `response` shape.
|
|
72
72
|
* @see {@link AutoScalingClientResolvedConfig | config} for AutoScalingClient's `config` shape.
|
|
73
73
|
*
|
|
74
|
+
* @example To create a launch lifecycle hook
|
|
75
|
+
* ```javascript
|
|
76
|
+
* // This example creates a lifecycle hook for instance launch.
|
|
77
|
+
* const input = {
|
|
78
|
+
* "AutoScalingGroupName": "my-auto-scaling-group",
|
|
79
|
+
* "DefaultResult": "CONTINUE",
|
|
80
|
+
* "HeartbeatTimeout": 300,
|
|
81
|
+
* "LifecycleHookName": "my-launch-lifecycle-hook",
|
|
82
|
+
* "LifecycleTransition": "autoscaling:EC2_INSTANCE_LAUNCHING"
|
|
83
|
+
* };
|
|
84
|
+
* const command = new PutLifecycleHookCommand(input);
|
|
85
|
+
* await client.send(command);
|
|
86
|
+
* // example id: autoscaling-put-lifecycle-hook-1
|
|
87
|
+
* ```
|
|
88
|
+
*
|
|
74
89
|
*/
|
|
75
90
|
export declare class PutLifecycleHookCommand extends $Command<PutLifecycleHookCommandInput, PutLifecycleHookCommandOutput, AutoScalingClientResolvedConfig> {
|
|
76
91
|
readonly input: PutLifecycleHookCommandInput;
|
|
@@ -37,6 +37,21 @@ export interface PutNotificationConfigurationCommandOutput extends __MetadataBea
|
|
|
37
37
|
* @see {@link PutNotificationConfigurationCommandOutput} for command's `response` shape.
|
|
38
38
|
* @see {@link AutoScalingClientResolvedConfig | config} for AutoScalingClient's `config` shape.
|
|
39
39
|
*
|
|
40
|
+
* @example To add an Auto Scaling notification
|
|
41
|
+
* ```javascript
|
|
42
|
+
* // This example adds the specified notification to the specified Auto Scaling group.
|
|
43
|
+
* const input = {
|
|
44
|
+
* "AutoScalingGroupName": "my-auto-scaling-group",
|
|
45
|
+
* "NotificationTypes": [
|
|
46
|
+
* "autoscaling:TEST_NOTIFICATION"
|
|
47
|
+
* ],
|
|
48
|
+
* "TopicARN": "arn:aws:sns:us-west-2:123456789012:my-sns-topic"
|
|
49
|
+
* };
|
|
50
|
+
* const command = new PutNotificationConfigurationCommand(input);
|
|
51
|
+
* await client.send(command);
|
|
52
|
+
* // example id: autoscaling-put-notification-configuration-1
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
40
55
|
*/
|
|
41
56
|
export declare class PutNotificationConfigurationCommand extends $Command<PutNotificationConfigurationCommandInput, PutNotificationConfigurationCommandOutput, AutoScalingClientResolvedConfig> {
|
|
42
57
|
readonly input: PutNotificationConfigurationCommandInput;
|
|
@@ -38,6 +38,41 @@ export interface PutScalingPolicyCommandOutput extends PolicyARNType, __Metadata
|
|
|
38
38
|
* @see {@link PutScalingPolicyCommandOutput} for command's `response` shape.
|
|
39
39
|
* @see {@link AutoScalingClientResolvedConfig | config} for AutoScalingClient's `config` shape.
|
|
40
40
|
*
|
|
41
|
+
* @example To add a scaling policy to an Auto Scaling group
|
|
42
|
+
* ```javascript
|
|
43
|
+
* // This example adds the specified policy to the specified Auto Scaling group.
|
|
44
|
+
* const input = {
|
|
45
|
+
* "AutoScalingGroupName": "my-auto-scaling-group",
|
|
46
|
+
* "PolicyName": "alb1000-target-tracking-scaling-policy",
|
|
47
|
+
* "PolicyType": "TargetTrackingScaling",
|
|
48
|
+
* "TargetTrackingConfiguration": {
|
|
49
|
+
* "PredefinedMetricSpecification": {
|
|
50
|
+
* "PredefinedMetricType": "ALBRequestCountPerTarget",
|
|
51
|
+
* "ResourceLabel": "app/my-alb/778d41231b141a0f/targetgroup/my-alb-target-group/943f017f100becff"
|
|
52
|
+
* },
|
|
53
|
+
* "TargetValue": 1000
|
|
54
|
+
* }
|
|
55
|
+
* };
|
|
56
|
+
* const command = new PutScalingPolicyCommand(input);
|
|
57
|
+
* const response = await client.send(command);
|
|
58
|
+
* /* response ==
|
|
59
|
+
* {
|
|
60
|
+
* "Alarms": [
|
|
61
|
+
* {
|
|
62
|
+
* "AlarmARN": "arn:aws:cloudwatch:us-west-2:123456789012:alarm:TargetTracking-my-asg-AlarmHigh-fc0e4183-23ac-497e-9992-691c9980c38e",
|
|
63
|
+
* "AlarmName": "TargetTracking-my-asg-AlarmHigh-fc0e4183-23ac-497e-9992-691c9980c38e"
|
|
64
|
+
* },
|
|
65
|
+
* {
|
|
66
|
+
* "AlarmARN": "arn:aws:cloudwatch:us-west-2:123456789012:alarm:TargetTracking-my-asg-AlarmLow-61a39305-ed0c-47af-bd9e-471a352ee1a2",
|
|
67
|
+
* "AlarmName": "TargetTracking-my-asg-AlarmLow-61a39305-ed0c-47af-bd9e-471a352ee1a2"
|
|
68
|
+
* }
|
|
69
|
+
* ],
|
|
70
|
+
* "PolicyARN": "arn:aws:autoscaling:us-west-2:123456789012:scalingPolicy:228f02c2-c665-4bfd-aaac-8b04080bea3c:autoScalingGroupName/my-auto-scaling-group:policyName/alb1000-target-tracking-scaling-policy"
|
|
71
|
+
* }
|
|
72
|
+
* *\/
|
|
73
|
+
* // example id: autoscaling-put-scaling-policy-1
|
|
74
|
+
* ```
|
|
75
|
+
*
|
|
41
76
|
*/
|
|
42
77
|
export declare class PutScalingPolicyCommand extends $Command<PutScalingPolicyCommandInput, PutScalingPolicyCommandOutput, AutoScalingClientResolvedConfig> {
|
|
43
78
|
readonly input: PutScalingPolicyCommandInput;
|
|
@@ -35,6 +35,23 @@ export interface PutScheduledUpdateGroupActionCommandOutput extends __MetadataBe
|
|
|
35
35
|
* @see {@link PutScheduledUpdateGroupActionCommandOutput} for command's `response` shape.
|
|
36
36
|
* @see {@link AutoScalingClientResolvedConfig | config} for AutoScalingClient's `config` shape.
|
|
37
37
|
*
|
|
38
|
+
* @example To add a scheduled action to an Auto Scaling group
|
|
39
|
+
* ```javascript
|
|
40
|
+
* // This example adds the specified scheduled action to the specified Auto Scaling group.
|
|
41
|
+
* const input = {
|
|
42
|
+
* "AutoScalingGroupName": "my-auto-scaling-group",
|
|
43
|
+
* "DesiredCapacity": 4,
|
|
44
|
+
* "EndTime": "2014-05-12T08:00:00Z",
|
|
45
|
+
* "MaxSize": 6,
|
|
46
|
+
* "MinSize": 2,
|
|
47
|
+
* "ScheduledActionName": "my-scheduled-action",
|
|
48
|
+
* "StartTime": "2014-05-12T08:00:00Z"
|
|
49
|
+
* };
|
|
50
|
+
* const command = new PutScheduledUpdateGroupActionCommand(input);
|
|
51
|
+
* await client.send(command);
|
|
52
|
+
* // example id: autoscaling-put-scheduled-update-group-action-1
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
38
55
|
*/
|
|
39
56
|
export declare class PutScheduledUpdateGroupActionCommand extends $Command<PutScheduledUpdateGroupActionCommandInput, PutScheduledUpdateGroupActionCommandOutput, AutoScalingClientResolvedConfig> {
|
|
40
57
|
readonly input: PutScheduledUpdateGroupActionCommandInput;
|
|
@@ -38,6 +38,22 @@ export interface PutWarmPoolCommandOutput extends PutWarmPoolAnswer, __MetadataB
|
|
|
38
38
|
* @see {@link PutWarmPoolCommandOutput} for command's `response` shape.
|
|
39
39
|
* @see {@link AutoScalingClientResolvedConfig | config} for AutoScalingClient's `config` shape.
|
|
40
40
|
*
|
|
41
|
+
* @example To create a warm pool for an Auto Scaling group
|
|
42
|
+
* ```javascript
|
|
43
|
+
* // This example creates a warm pool for the specified Auto Scaling group.
|
|
44
|
+
* const input = {
|
|
45
|
+
* "AutoScalingGroupName": "my-auto-scaling-group",
|
|
46
|
+
* "InstanceReusePolicy": {
|
|
47
|
+
* "ReuseOnScaleIn": true
|
|
48
|
+
* },
|
|
49
|
+
* "MinSize": 30,
|
|
50
|
+
* "PoolState": "Hibernated"
|
|
51
|
+
* };
|
|
52
|
+
* const command = new PutWarmPoolCommand(input);
|
|
53
|
+
* await client.send(command);
|
|
54
|
+
* // example id: to-add-a-warm-pool-to-an-auto-scaling-group-1617818810383
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
41
57
|
*/
|
|
42
58
|
export declare class PutWarmPoolCommand extends $Command<PutWarmPoolCommandInput, PutWarmPoolCommandOutput, AutoScalingClientResolvedConfig> {
|
|
43
59
|
readonly input: PutWarmPoolCommandInput;
|
|
@@ -65,6 +65,19 @@ export interface RecordLifecycleActionHeartbeatCommandOutput extends RecordLifec
|
|
|
65
65
|
* @see {@link RecordLifecycleActionHeartbeatCommandOutput} for command's `response` shape.
|
|
66
66
|
* @see {@link AutoScalingClientResolvedConfig | config} for AutoScalingClient's `config` shape.
|
|
67
67
|
*
|
|
68
|
+
* @example To record a lifecycle action heartbeat
|
|
69
|
+
* ```javascript
|
|
70
|
+
* // This example records a lifecycle action heartbeat to keep the instance in a pending state.
|
|
71
|
+
* const input = {
|
|
72
|
+
* "AutoScalingGroupName": "my-auto-scaling-group",
|
|
73
|
+
* "LifecycleActionToken": "bcd2f1b8-9a78-44d3-8a7a-4dd07d7cf635",
|
|
74
|
+
* "LifecycleHookName": "my-lifecycle-hook"
|
|
75
|
+
* };
|
|
76
|
+
* const command = new RecordLifecycleActionHeartbeatCommand(input);
|
|
77
|
+
* await client.send(command);
|
|
78
|
+
* // example id: autoscaling-record-lifecycle-action-heartbeat-1
|
|
79
|
+
* ```
|
|
80
|
+
*
|
|
68
81
|
*/
|
|
69
82
|
export declare class RecordLifecycleActionHeartbeatCommand extends $Command<RecordLifecycleActionHeartbeatCommandInput, RecordLifecycleActionHeartbeatCommandOutput, AutoScalingClientResolvedConfig> {
|
|
70
83
|
readonly input: RecordLifecycleActionHeartbeatCommandInput;
|
|
@@ -32,6 +32,20 @@ export interface ResumeProcessesCommandOutput extends __MetadataBearer {
|
|
|
32
32
|
* @see {@link ResumeProcessesCommandOutput} for command's `response` shape.
|
|
33
33
|
* @see {@link AutoScalingClientResolvedConfig | config} for AutoScalingClient's `config` shape.
|
|
34
34
|
*
|
|
35
|
+
* @example To resume Auto Scaling processes
|
|
36
|
+
* ```javascript
|
|
37
|
+
* // This example resumes the specified suspended scaling process for the specified Auto Scaling group.
|
|
38
|
+
* const input = {
|
|
39
|
+
* "AutoScalingGroupName": "my-auto-scaling-group",
|
|
40
|
+
* "ScalingProcesses": [
|
|
41
|
+
* "AlarmNotification"
|
|
42
|
+
* ]
|
|
43
|
+
* };
|
|
44
|
+
* const command = new ResumeProcessesCommand(input);
|
|
45
|
+
* await client.send(command);
|
|
46
|
+
* // example id: autoscaling-resume-processes-1
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
35
49
|
*/
|
|
36
50
|
export declare class ResumeProcessesCommand extends $Command<ResumeProcessesCommandInput, ResumeProcessesCommandOutput, AutoScalingClientResolvedConfig> {
|
|
37
51
|
readonly input: ResumeProcessesCommandInput;
|
|
@@ -34,6 +34,19 @@ export interface SetDesiredCapacityCommandOutput extends __MetadataBearer {
|
|
|
34
34
|
* @see {@link SetDesiredCapacityCommandOutput} for command's `response` shape.
|
|
35
35
|
* @see {@link AutoScalingClientResolvedConfig | config} for AutoScalingClient's `config` shape.
|
|
36
36
|
*
|
|
37
|
+
* @example To set the desired capacity for an Auto Scaling group
|
|
38
|
+
* ```javascript
|
|
39
|
+
* // This example sets the desired capacity for the specified Auto Scaling group.
|
|
40
|
+
* const input = {
|
|
41
|
+
* "AutoScalingGroupName": "my-auto-scaling-group",
|
|
42
|
+
* "DesiredCapacity": 2,
|
|
43
|
+
* "HonorCooldown": true
|
|
44
|
+
* };
|
|
45
|
+
* const command = new SetDesiredCapacityCommand(input);
|
|
46
|
+
* await client.send(command);
|
|
47
|
+
* // example id: autoscaling-set-desired-capacity-1
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
37
50
|
*/
|
|
38
51
|
export declare class SetDesiredCapacityCommand extends $Command<SetDesiredCapacityCommandInput, SetDesiredCapacityCommandOutput, AutoScalingClientResolvedConfig> {
|
|
39
52
|
readonly input: SetDesiredCapacityCommandInput;
|
|
@@ -31,6 +31,18 @@ export interface SetInstanceHealthCommandOutput extends __MetadataBearer {
|
|
|
31
31
|
* @see {@link SetInstanceHealthCommandOutput} for command's `response` shape.
|
|
32
32
|
* @see {@link AutoScalingClientResolvedConfig | config} for AutoScalingClient's `config` shape.
|
|
33
33
|
*
|
|
34
|
+
* @example To set the health status of an instance
|
|
35
|
+
* ```javascript
|
|
36
|
+
* // This example sets the health status of the specified instance to Unhealthy.
|
|
37
|
+
* const input = {
|
|
38
|
+
* "HealthStatus": "Unhealthy",
|
|
39
|
+
* "InstanceId": "i-93633f9b"
|
|
40
|
+
* };
|
|
41
|
+
* const command = new SetInstanceHealthCommand(input);
|
|
42
|
+
* await client.send(command);
|
|
43
|
+
* // example id: autoscaling-set-instance-health-1
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
34
46
|
*/
|
|
35
47
|
export declare class SetInstanceHealthCommand extends $Command<SetInstanceHealthCommandInput, SetInstanceHealthCommandOutput, AutoScalingClientResolvedConfig> {
|
|
36
48
|
readonly input: SetInstanceHealthCommandInput;
|
|
@@ -36,6 +36,36 @@ export interface SetInstanceProtectionCommandOutput extends SetInstanceProtectio
|
|
|
36
36
|
* @see {@link SetInstanceProtectionCommandOutput} for command's `response` shape.
|
|
37
37
|
* @see {@link AutoScalingClientResolvedConfig | config} for AutoScalingClient's `config` shape.
|
|
38
38
|
*
|
|
39
|
+
* @example To enable instance protection for an instance
|
|
40
|
+
* ```javascript
|
|
41
|
+
* // This example enables instance protection for the specified instance.
|
|
42
|
+
* const input = {
|
|
43
|
+
* "AutoScalingGroupName": "my-auto-scaling-group",
|
|
44
|
+
* "InstanceIds": [
|
|
45
|
+
* "i-93633f9b"
|
|
46
|
+
* ],
|
|
47
|
+
* "ProtectedFromScaleIn": true
|
|
48
|
+
* };
|
|
49
|
+
* const command = new SetInstanceProtectionCommand(input);
|
|
50
|
+
* await client.send(command);
|
|
51
|
+
* // example id: autoscaling-set-instance-protection-1
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @example To disable instance protection for an instance
|
|
55
|
+
* ```javascript
|
|
56
|
+
* // This example disables instance protection for the specified instance.
|
|
57
|
+
* const input = {
|
|
58
|
+
* "AutoScalingGroupName": "my-auto-scaling-group",
|
|
59
|
+
* "InstanceIds": [
|
|
60
|
+
* "i-93633f9b"
|
|
61
|
+
* ],
|
|
62
|
+
* "ProtectedFromScaleIn": false
|
|
63
|
+
* };
|
|
64
|
+
* const command = new SetInstanceProtectionCommand(input);
|
|
65
|
+
* await client.send(command);
|
|
66
|
+
* // example id: autoscaling-set-instance-protection-2
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
39
69
|
*/
|
|
40
70
|
export declare class SetInstanceProtectionCommand extends $Command<SetInstanceProtectionCommandInput, SetInstanceProtectionCommandOutput, AutoScalingClientResolvedConfig> {
|
|
41
71
|
readonly input: SetInstanceProtectionCommandInput;
|
|
@@ -52,6 +52,33 @@ export interface StartInstanceRefreshCommandOutput extends StartInstanceRefreshA
|
|
|
52
52
|
* @see {@link StartInstanceRefreshCommandOutput} for command's `response` shape.
|
|
53
53
|
* @see {@link AutoScalingClientResolvedConfig | config} for AutoScalingClient's `config` shape.
|
|
54
54
|
*
|
|
55
|
+
* @example To start an instance refresh
|
|
56
|
+
* ```javascript
|
|
57
|
+
* // This example starts an instance refresh for the specified Auto Scaling group.
|
|
58
|
+
* const input = {
|
|
59
|
+
* "AutoScalingGroupName": "my-auto-scaling-group",
|
|
60
|
+
* "DesiredConfiguration": {
|
|
61
|
+
* "LaunchTemplate": {
|
|
62
|
+
* "LaunchTemplateName": "my-template-for-auto-scaling",
|
|
63
|
+
* "Version": "$Latest"
|
|
64
|
+
* }
|
|
65
|
+
* },
|
|
66
|
+
* "Preferences": {
|
|
67
|
+
* "InstanceWarmup": 400,
|
|
68
|
+
* "MinHealthyPercentage": 90,
|
|
69
|
+
* "SkipMatching": true
|
|
70
|
+
* }
|
|
71
|
+
* };
|
|
72
|
+
* const command = new StartInstanceRefreshCommand(input);
|
|
73
|
+
* const response = await client.send(command);
|
|
74
|
+
* /* response ==
|
|
75
|
+
* {
|
|
76
|
+
* "InstanceRefreshId": "08b91cf7-8fa6-48af-b6a6-d227f40f1b9b"
|
|
77
|
+
* }
|
|
78
|
+
* *\/
|
|
79
|
+
* // example id: to-start-an-instance-refresh-1592957271522
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
55
82
|
*/
|
|
56
83
|
export declare class StartInstanceRefreshCommand extends $Command<StartInstanceRefreshCommandInput, StartInstanceRefreshCommandOutput, AutoScalingClientResolvedConfig> {
|
|
57
84
|
readonly input: StartInstanceRefreshCommandInput;
|
|
@@ -35,6 +35,20 @@ export interface SuspendProcessesCommandOutput extends __MetadataBearer {
|
|
|
35
35
|
* @see {@link SuspendProcessesCommandOutput} for command's `response` shape.
|
|
36
36
|
* @see {@link AutoScalingClientResolvedConfig | config} for AutoScalingClient's `config` shape.
|
|
37
37
|
*
|
|
38
|
+
* @example To suspend Auto Scaling processes
|
|
39
|
+
* ```javascript
|
|
40
|
+
* // This example suspends the specified scaling process for the specified Auto Scaling group.
|
|
41
|
+
* const input = {
|
|
42
|
+
* "AutoScalingGroupName": "my-auto-scaling-group",
|
|
43
|
+
* "ScalingProcesses": [
|
|
44
|
+
* "AlarmNotification"
|
|
45
|
+
* ]
|
|
46
|
+
* };
|
|
47
|
+
* const command = new SuspendProcessesCommand(input);
|
|
48
|
+
* await client.send(command);
|
|
49
|
+
* // example id: autoscaling-suspend-processes-1
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
38
52
|
*/
|
|
39
53
|
export declare class SuspendProcessesCommand extends $Command<SuspendProcessesCommandInput, SuspendProcessesCommandOutput, AutoScalingClientResolvedConfig> {
|
|
40
54
|
readonly input: SuspendProcessesCommandInput;
|
|
@@ -40,6 +40,18 @@ export interface TerminateInstanceInAutoScalingGroupCommandOutput extends Activi
|
|
|
40
40
|
* @see {@link TerminateInstanceInAutoScalingGroupCommandOutput} for command's `response` shape.
|
|
41
41
|
* @see {@link AutoScalingClientResolvedConfig | config} for AutoScalingClient's `config` shape.
|
|
42
42
|
*
|
|
43
|
+
* @example To terminate an instance in an Auto Scaling group
|
|
44
|
+
* ```javascript
|
|
45
|
+
* // This example terminates the specified instance from the specified Auto Scaling group without updating the size of the group. Auto Scaling launches a replacement instance after the specified instance terminates.
|
|
46
|
+
* const input = {
|
|
47
|
+
* "InstanceId": "i-93633f9b",
|
|
48
|
+
* "ShouldDecrementDesiredCapacity": false
|
|
49
|
+
* };
|
|
50
|
+
* const command = new TerminateInstanceInAutoScalingGroupCommand(input);
|
|
51
|
+
* await client.send(command);
|
|
52
|
+
* // example id: autoscaling-terminate-instance-in-auto-scaling-group-1
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
43
55
|
*/
|
|
44
56
|
export declare class TerminateInstanceInAutoScalingGroupCommand extends $Command<TerminateInstanceInAutoScalingGroupCommandInput, TerminateInstanceInAutoScalingGroupCommandOutput, AutoScalingClientResolvedConfig> {
|
|
45
57
|
readonly input: TerminateInstanceInAutoScalingGroupCommandInput;
|
|
@@ -72,6 +72,24 @@ export interface UpdateAutoScalingGroupCommandOutput extends __MetadataBearer {
|
|
|
72
72
|
* @see {@link UpdateAutoScalingGroupCommandOutput} for command's `response` shape.
|
|
73
73
|
* @see {@link AutoScalingClientResolvedConfig | config} for AutoScalingClient's `config` shape.
|
|
74
74
|
*
|
|
75
|
+
* @example To update an Auto Scaling group
|
|
76
|
+
* ```javascript
|
|
77
|
+
* // This example updates multiple properties at the same time.
|
|
78
|
+
* const input = {
|
|
79
|
+
* "AutoScalingGroupName": "my-auto-scaling-group",
|
|
80
|
+
* "LaunchTemplate": {
|
|
81
|
+
* "LaunchTemplateName": "my-template-for-auto-scaling",
|
|
82
|
+
* "Version": "2"
|
|
83
|
+
* },
|
|
84
|
+
* "MaxSize": 5,
|
|
85
|
+
* "MinSize": 1,
|
|
86
|
+
* "NewInstancesProtectedFromScaleIn": true
|
|
87
|
+
* };
|
|
88
|
+
* const command = new UpdateAutoScalingGroupCommand(input);
|
|
89
|
+
* await client.send(command);
|
|
90
|
+
* // example id: autoscaling-update-auto-scaling-group-1
|
|
91
|
+
* ```
|
|
92
|
+
*
|
|
75
93
|
*/
|
|
76
94
|
export declare class UpdateAutoScalingGroupCommand extends $Command<UpdateAutoScalingGroupCommandInput, UpdateAutoScalingGroupCommandOutput, AutoScalingClientResolvedConfig> {
|
|
77
95
|
readonly input: UpdateAutoScalingGroupCommandInput;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-auto-scaling",
|
|
3
3
|
"description": "AWS SDK for JavaScript Auto Scaling Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.289.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,39 +20,39 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/config-resolver": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
27
|
-
"@aws-sdk/hash-node": "3.
|
|
28
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
29
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
30
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
31
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
32
|
-
"@aws-sdk/middleware-logger": "3.
|
|
33
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
34
|
-
"@aws-sdk/middleware-retry": "3.
|
|
35
|
-
"@aws-sdk/middleware-serde": "3.
|
|
36
|
-
"@aws-sdk/middleware-signing": "3.
|
|
37
|
-
"@aws-sdk/middleware-stack": "3.
|
|
38
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
-
"@aws-sdk/node-config-provider": "3.
|
|
40
|
-
"@aws-sdk/node-http-handler": "3.
|
|
41
|
-
"@aws-sdk/protocol-http": "3.
|
|
42
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
-
"@aws-sdk/types": "3.
|
|
44
|
-
"@aws-sdk/url-parser": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.289.0",
|
|
24
|
+
"@aws-sdk/config-resolver": "3.289.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.289.0",
|
|
26
|
+
"@aws-sdk/fetch-http-handler": "3.289.0",
|
|
27
|
+
"@aws-sdk/hash-node": "3.289.0",
|
|
28
|
+
"@aws-sdk/invalid-dependency": "3.289.0",
|
|
29
|
+
"@aws-sdk/middleware-content-length": "3.289.0",
|
|
30
|
+
"@aws-sdk/middleware-endpoint": "3.289.0",
|
|
31
|
+
"@aws-sdk/middleware-host-header": "3.289.0",
|
|
32
|
+
"@aws-sdk/middleware-logger": "3.289.0",
|
|
33
|
+
"@aws-sdk/middleware-recursion-detection": "3.289.0",
|
|
34
|
+
"@aws-sdk/middleware-retry": "3.289.0",
|
|
35
|
+
"@aws-sdk/middleware-serde": "3.289.0",
|
|
36
|
+
"@aws-sdk/middleware-signing": "3.289.0",
|
|
37
|
+
"@aws-sdk/middleware-stack": "3.289.0",
|
|
38
|
+
"@aws-sdk/middleware-user-agent": "3.289.0",
|
|
39
|
+
"@aws-sdk/node-config-provider": "3.289.0",
|
|
40
|
+
"@aws-sdk/node-http-handler": "3.289.0",
|
|
41
|
+
"@aws-sdk/protocol-http": "3.289.0",
|
|
42
|
+
"@aws-sdk/smithy-client": "3.289.0",
|
|
43
|
+
"@aws-sdk/types": "3.289.0",
|
|
44
|
+
"@aws-sdk/url-parser": "3.289.0",
|
|
45
45
|
"@aws-sdk/util-base64": "3.208.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-retry": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.289.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.289.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.289.0",
|
|
51
|
+
"@aws-sdk/util-retry": "3.289.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-browser": "3.289.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-node": "3.289.0",
|
|
54
54
|
"@aws-sdk/util-utf8": "3.254.0",
|
|
55
|
-
"@aws-sdk/util-waiter": "3.
|
|
55
|
+
"@aws-sdk/util-waiter": "3.289.0",
|
|
56
56
|
"fast-xml-parser": "4.1.2",
|
|
57
57
|
"tslib": "^2.3.1"
|
|
58
58
|
},
|