@aws-sdk/client-auto-scaling 3.36.0 → 3.39.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/CHANGELOG.md +45 -0
- package/dist-cjs/AutoScaling.js +0 -16
- package/dist-cjs/AutoScalingClient.js +0 -21
- package/dist-cjs/commands/AttachInstancesCommand.js +0 -33
- package/dist-cjs/commands/AttachLoadBalancerTargetGroupsCommand.js +0 -42
- package/dist-cjs/commands/AttachLoadBalancersCommand.js +0 -34
- package/dist-cjs/commands/BatchDeleteScheduledActionCommand.js +0 -24
- package/dist-cjs/commands/BatchPutScheduledUpdateGroupActionCommand.js +0 -24
- package/dist-cjs/commands/CancelInstanceRefreshCommand.js +0 -29
- package/dist-cjs/commands/CompleteLifecycleActionCommand.js +0 -55
- package/dist-cjs/commands/CreateAutoScalingGroupCommand.js +0 -42
- package/dist-cjs/commands/CreateLaunchConfigurationCommand.js +0 -30
- package/dist-cjs/commands/CreateOrUpdateTagsCommand.js +0 -28
- package/dist-cjs/commands/DeleteAutoScalingGroupCommand.js +0 -33
- package/dist-cjs/commands/DeleteLaunchConfigurationCommand.js +0 -26
- package/dist-cjs/commands/DeleteLifecycleHookCommand.js +0 -27
- package/dist-cjs/commands/DeleteNotificationConfigurationCommand.js +0 -24
- package/dist-cjs/commands/DeletePolicyCommand.js +0 -29
- package/dist-cjs/commands/DeleteScheduledActionCommand.js +0 -24
- package/dist-cjs/commands/DeleteTagsCommand.js +0 -24
- package/dist-cjs/commands/DeleteWarmPoolCommand.js +0 -26
- package/dist-cjs/commands/DescribeAccountLimitsCommand.js +0 -28
- package/dist-cjs/commands/DescribeAdjustmentTypesCommand.js +0 -43
- package/dist-cjs/commands/DescribeAutoScalingGroupsCommand.js +0 -26
- package/dist-cjs/commands/DescribeAutoScalingInstancesCommand.js +0 -24
- package/dist-cjs/commands/DescribeAutoScalingNotificationTypesCommand.js +0 -24
- package/dist-cjs/commands/DescribeInstanceRefreshesCommand.js +0 -62
- package/dist-cjs/commands/DescribeLaunchConfigurationsCommand.js +0 -24
- package/dist-cjs/commands/DescribeLifecycleHookTypesCommand.js +0 -37
- package/dist-cjs/commands/DescribeLifecycleHooksCommand.js +0 -24
- package/dist-cjs/commands/DescribeLoadBalancerTargetGroupsCommand.js +0 -43
- package/dist-cjs/commands/DescribeLoadBalancersCommand.js +0 -45
- package/dist-cjs/commands/DescribeMetricCollectionTypesCommand.js +0 -26
- package/dist-cjs/commands/DescribeNotificationConfigurationsCommand.js +0 -25
- package/dist-cjs/commands/DescribePoliciesCommand.js +0 -24
- package/dist-cjs/commands/DescribeScalingActivitiesCommand.js +0 -32
- package/dist-cjs/commands/DescribeScalingProcessTypesCommand.js +0 -25
- package/dist-cjs/commands/DescribeScheduledActionsCommand.js +0 -27
- package/dist-cjs/commands/DescribeTagsCommand.js +0 -32
- package/dist-cjs/commands/DescribeTerminationPolicyTypesCommand.js +0 -27
- package/dist-cjs/commands/DescribeWarmPoolCommand.js +0 -26
- package/dist-cjs/commands/DetachInstancesCommand.js +0 -33
- package/dist-cjs/commands/DetachLoadBalancerTargetGroupsCommand.js +0 -24
- package/dist-cjs/commands/DetachLoadBalancersCommand.js +0 -29
- package/dist-cjs/commands/DisableMetricsCollectionCommand.js +0 -24
- package/dist-cjs/commands/EnableMetricsCollectionCommand.js +0 -25
- package/dist-cjs/commands/EnterStandbyCommand.js +0 -33
- package/dist-cjs/commands/ExecutePolicyCommand.js +0 -25
- package/dist-cjs/commands/ExitStandbyCommand.js +0 -29
- package/dist-cjs/commands/GetPredictiveScalingForecastCommand.js +0 -32
- package/dist-cjs/commands/PutLifecycleHookCommand.js +0 -61
- package/dist-cjs/commands/PutNotificationConfigurationCommand.js +0 -32
- package/dist-cjs/commands/PutScalingPolicyCommand.js +0 -33
- package/dist-cjs/commands/PutScheduledUpdateGroupActionCommand.js +0 -28
- package/dist-cjs/commands/PutWarmPoolCommand.js +0 -33
- package/dist-cjs/commands/RecordLifecycleActionHeartbeatCommand.js +0 -56
- package/dist-cjs/commands/ResumeProcessesCommand.js +0 -27
- package/dist-cjs/commands/SetDesiredCapacityCommand.js +0 -29
- package/dist-cjs/commands/SetInstanceHealthCommand.js +0 -26
- package/dist-cjs/commands/SetInstanceProtectionCommand.js +0 -30
- package/dist-cjs/commands/StartInstanceRefreshCommand.js +0 -38
- package/dist-cjs/commands/SuspendProcessesCommand.js +0 -30
- package/dist-cjs/commands/TerminateInstanceInAutoScalingGroupCommand.js +0 -35
- package/dist-cjs/commands/UpdateAutoScalingGroupCommand.js +0 -68
- package/dist-cjs/commands/index.js +64 -0
- package/dist-cjs/endpoints.js +6 -1
- package/dist-cjs/index.js +5 -75
- package/dist-cjs/models/models_0.js +121 -475
- package/dist-cjs/pagination/DescribeAutoScalingGroupsPaginator.js +0 -10
- package/dist-cjs/pagination/DescribeAutoScalingInstancesPaginator.js +0 -10
- package/dist-cjs/pagination/DescribeLaunchConfigurationsPaginator.js +0 -10
- package/dist-cjs/pagination/DescribeNotificationConfigurationsPaginator.js +0 -10
- package/dist-cjs/pagination/DescribePoliciesPaginator.js +0 -10
- package/dist-cjs/pagination/DescribeScalingActivitiesPaginator.js +0 -10
- package/dist-cjs/pagination/DescribeScheduledActionsPaginator.js +0 -10
- package/dist-cjs/pagination/DescribeTagsPaginator.js +0 -10
- package/dist-cjs/pagination/index.js +12 -0
- package/dist-cjs/protocols/Aws_query.js +621 -2
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-cjs/waiters/index.js +6 -0
- package/dist-cjs/waiters/waitForGroupExists.js +0 -9
- package/dist-cjs/waiters/waitForGroupInService.js +0 -9
- package/dist-cjs/waiters/waitForGroupNotExists.js +0 -9
- package/dist-es/commands/index.js +61 -0
- package/dist-es/endpoints.js +6 -1
- package/dist-es/index.js +5 -75
- package/dist-es/models/models_0.js +97 -4
- package/dist-es/pagination/index.js +9 -0
- package/dist-es/protocols/Aws_query.js +922 -207
- package/dist-es/waiters/index.js +3 -0
- package/dist-types/AutoScaling.d.ts +8 -2
- package/dist-types/AutoScalingClient.d.ts +2 -0
- package/dist-types/commands/DescribeAccountLimitsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeAutoScalingGroupsCommand.d.ts +5 -1
- package/dist-types/commands/index.d.ts +61 -0
- package/dist-types/index.d.ts +5 -75
- package/dist-types/models/models_0.d.ts +672 -125
- package/dist-types/pagination/index.d.ts +9 -0
- package/dist-types/ts3.4/AutoScaling.d.ts +62 -693
- package/dist-types/ts3.4/AutoScalingClient.d.ts +24 -102
- package/dist-types/ts3.4/commands/AttachInstancesCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/AttachLoadBalancerTargetGroupsCommand.d.ts +2 -38
- package/dist-types/ts3.4/commands/AttachLoadBalancersCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/BatchDeleteScheduledActionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/BatchPutScheduledUpdateGroupActionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/CancelInstanceRefreshCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/CompleteLifecycleActionCommand.d.ts +2 -51
- package/dist-types/ts3.4/commands/CreateAutoScalingGroupCommand.d.ts +2 -38
- package/dist-types/ts3.4/commands/CreateLaunchConfigurationCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/CreateOrUpdateTagsCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/DeleteAutoScalingGroupCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/DeleteLaunchConfigurationCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DeleteLifecycleHookCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DeleteNotificationConfigurationCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeletePolicyCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/DeleteScheduledActionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteTagsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteWarmPoolCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DescribeAccountLimitsCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/DescribeAdjustmentTypesCommand.d.ts +2 -39
- package/dist-types/ts3.4/commands/DescribeAutoScalingGroupsCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DescribeAutoScalingInstancesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeAutoScalingNotificationTypesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeInstanceRefreshesCommand.d.ts +2 -58
- package/dist-types/ts3.4/commands/DescribeLaunchConfigurationsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeLifecycleHookTypesCommand.d.ts +2 -33
- package/dist-types/ts3.4/commands/DescribeLifecycleHooksCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeLoadBalancerTargetGroupsCommand.d.ts +2 -39
- package/dist-types/ts3.4/commands/DescribeLoadBalancersCommand.d.ts +2 -41
- package/dist-types/ts3.4/commands/DescribeMetricCollectionTypesCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DescribeNotificationConfigurationsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribePoliciesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeScalingActivitiesCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/DescribeScalingProcessTypesCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeScheduledActionsCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DescribeTagsCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/DescribeTerminationPolicyTypesCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DescribeWarmPoolCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DetachInstancesCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/DetachLoadBalancerTargetGroupsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DetachLoadBalancersCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/DisableMetricsCollectionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/EnableMetricsCollectionCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/EnterStandbyCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/ExecutePolicyCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ExitStandbyCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/GetPredictiveScalingForecastCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/PutLifecycleHookCommand.d.ts +2 -57
- package/dist-types/ts3.4/commands/PutNotificationConfigurationCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/PutScalingPolicyCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/PutScheduledUpdateGroupActionCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/PutWarmPoolCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/RecordLifecycleActionHeartbeatCommand.d.ts +2 -52
- package/dist-types/ts3.4/commands/ResumeProcessesCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/SetDesiredCapacityCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/SetInstanceHealthCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/SetInstanceProtectionCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/StartInstanceRefreshCommand.d.ts +2 -34
- package/dist-types/ts3.4/commands/SuspendProcessesCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/TerminateInstanceInAutoScalingGroupCommand.d.ts +2 -31
- package/dist-types/ts3.4/commands/UpdateAutoScalingGroupCommand.d.ts +2 -64
- package/dist-types/ts3.4/commands/index.d.ts +61 -0
- package/dist-types/ts3.4/index.d.ts +5 -75
- package/dist-types/ts3.4/models/models_0.d.ts +960 -4205
- package/dist-types/ts3.4/pagination/index.d.ts +9 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/dist-types/ts3.4/waiters/index.d.ts +3 -0
- package/dist-types/ts3.4/waiters/waitForGroupExists.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForGroupInService.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForGroupNotExists.d.ts +2 -9
- package/dist-types/waiters/index.d.ts +3 -0
- package/package.json +33 -33
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Gets information about the lifecycle hooks for the specified Auto Scaling group.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { AutoScalingClient, DescribeLifecycleHooksCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
|
|
14
|
-
* // const { AutoScalingClient, DescribeLifecycleHooksCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
|
|
15
|
-
* const client = new AutoScalingClient(config);
|
|
16
|
-
* const command = new DescribeLifecycleHooksCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link DescribeLifecycleHooksCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link DescribeLifecycleHooksCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class DescribeLifecycleHooksCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,54 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Gets information about the load balancer target groups for the specified Auto Scaling
|
|
10
|
-
* group.</p>
|
|
11
|
-
* <p>To determine the availability of registered instances, use the <code>State</code>
|
|
12
|
-
* element in the response. When you attach a target group to an Auto Scaling group, the initial
|
|
13
|
-
* <code>State</code> value is <code>Adding</code>. The state transitions to
|
|
14
|
-
* <code>Added</code> after all Auto Scaling instances are registered with the target group. If
|
|
15
|
-
* Elastic Load Balancing health checks are enabled for the Auto Scaling group, the state transitions to
|
|
16
|
-
* <code>InService</code> after at least one Auto Scaling instance passes the health check.
|
|
17
|
-
* When the target group is in the <code>InService</code> state, Amazon EC2 Auto Scaling can terminate and
|
|
18
|
-
* replace any instances that are reported as unhealthy. If no registered instances pass
|
|
19
|
-
* the health checks, the target group doesn't enter the <code>InService</code> state. </p>
|
|
20
|
-
* <p>Target groups also have an <code>InService</code> state if you attach them in the
|
|
21
|
-
* <a>CreateAutoScalingGroup</a> API call. If your target group state is
|
|
22
|
-
* <code>InService</code>, but it is not working properly, check the scaling activities
|
|
23
|
-
* by calling <a>DescribeScalingActivities</a> and take any corrective actions
|
|
24
|
-
* necessary.</p>
|
|
25
|
-
* <p>For help with failed health checks, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ts-as-healthchecks.html">Troubleshooting Amazon EC2 Auto Scaling:
|
|
26
|
-
* Health checks</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. For more
|
|
27
|
-
* information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Elastic Load Balancing and
|
|
28
|
-
* Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. </p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { AutoScalingClient, DescribeLoadBalancerTargetGroupsCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
|
|
33
|
-
* // const { AutoScalingClient, DescribeLoadBalancerTargetGroupsCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
|
|
34
|
-
* const client = new AutoScalingClient(config);
|
|
35
|
-
* const command = new DescribeLoadBalancerTargetGroupsCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link DescribeLoadBalancerTargetGroupsCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link DescribeLoadBalancerTargetGroupsCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
8
|
class DescribeLoadBalancerTargetGroupsCommand extends smithy_client_1.Command {
|
|
45
|
-
// Start section: command_properties
|
|
46
|
-
// End section: command_properties
|
|
47
9
|
constructor(input) {
|
|
48
|
-
// Start section: command_constructor
|
|
49
10
|
super();
|
|
50
11
|
this.input = input;
|
|
51
|
-
// End section: command_constructor
|
|
52
12
|
}
|
|
53
|
-
/**
|
|
54
|
-
* @internal
|
|
55
|
-
*/
|
|
56
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
57
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
58
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,56 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Gets information about the load balancers for the specified Auto Scaling group.</p>
|
|
10
|
-
* <p>This operation describes only Classic Load Balancers. If you have Application Load
|
|
11
|
-
* Balancers, Network Load Balancers, or Gateway Load Balancers, use the <a>DescribeLoadBalancerTargetGroups</a> API instead.</p>
|
|
12
|
-
* <p>To determine the availability of registered instances, use the <code>State</code>
|
|
13
|
-
* element in the response. When you attach a load balancer to an Auto Scaling group, the initial
|
|
14
|
-
* <code>State</code> value is <code>Adding</code>. The state transitions to
|
|
15
|
-
* <code>Added</code> after all Auto Scaling instances are registered with the load balancer.
|
|
16
|
-
* If Elastic Load Balancing health checks are enabled for the Auto Scaling group, the state transitions to
|
|
17
|
-
* <code>InService</code> after at least one Auto Scaling instance passes the health check.
|
|
18
|
-
* When the load balancer is in the <code>InService</code> state, Amazon EC2 Auto Scaling can terminate
|
|
19
|
-
* and replace any instances that are reported as unhealthy. If no registered instances
|
|
20
|
-
* pass the health checks, the load balancer doesn't enter the <code>InService</code>
|
|
21
|
-
* state. </p>
|
|
22
|
-
* <p>Load balancers also have an <code>InService</code> state if you attach them in the
|
|
23
|
-
* <a>CreateAutoScalingGroup</a> API call. If your load balancer state is
|
|
24
|
-
* <code>InService</code>, but it is not working properly, check the scaling activities
|
|
25
|
-
* by calling <a>DescribeScalingActivities</a> and take any corrective actions
|
|
26
|
-
* necessary.</p>
|
|
27
|
-
* <p>For help with failed health checks, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ts-as-healthchecks.html">Troubleshooting Amazon EC2 Auto Scaling:
|
|
28
|
-
* Health checks</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. For more
|
|
29
|
-
* information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Elastic Load Balancing and
|
|
30
|
-
* Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. </p>
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { AutoScalingClient, DescribeLoadBalancersCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
|
|
35
|
-
* // const { AutoScalingClient, DescribeLoadBalancersCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
|
|
36
|
-
* const client = new AutoScalingClient(config);
|
|
37
|
-
* const command = new DescribeLoadBalancersCommand(input);
|
|
38
|
-
* const response = await client.send(command);
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @see {@link DescribeLoadBalancersCommandInput} for command's `input` shape.
|
|
42
|
-
* @see {@link DescribeLoadBalancersCommandOutput} for command's `response` shape.
|
|
43
|
-
* @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
8
|
class DescribeLoadBalancersCommand extends smithy_client_1.Command {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
9
|
constructor(input) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
10
|
super();
|
|
52
11
|
this.input = input;
|
|
53
|
-
// End section: command_constructor
|
|
54
12
|
}
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
59
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
60
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling.</p>
|
|
10
|
-
* <p>The <code>GroupStandbyInstances</code> metric is not returned by default. You must
|
|
11
|
-
* explicitly request this metric when calling the <a>EnableMetricsCollection</a> API.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { AutoScalingClient, DescribeMetricCollectionTypesCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
|
|
16
|
-
* // const { AutoScalingClient, DescribeMetricCollectionTypesCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
|
|
17
|
-
* const client = new AutoScalingClient(config);
|
|
18
|
-
* const command = new DescribeMetricCollectionTypesCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link DescribeMetricCollectionTypesCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link DescribeMetricCollectionTypesCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
8
|
class DescribeMetricCollectionTypesCommand extends smithy_client_1.Command {
|
|
28
|
-
// Start section: command_properties
|
|
29
|
-
// End section: command_properties
|
|
30
9
|
constructor(input) {
|
|
31
|
-
// Start section: command_constructor
|
|
32
10
|
super();
|
|
33
11
|
this.input = input;
|
|
34
|
-
// End section: command_constructor
|
|
35
12
|
}
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
40
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
41
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Gets information about the Amazon SNS notifications that are configured for one or more
|
|
10
|
-
* Auto Scaling groups.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { AutoScalingClient, DescribeNotificationConfigurationsCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
|
|
15
|
-
* // const { AutoScalingClient, DescribeNotificationConfigurationsCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
|
|
16
|
-
* const client = new AutoScalingClient(config);
|
|
17
|
-
* const command = new DescribeNotificationConfigurationsCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link DescribeNotificationConfigurationsCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link DescribeNotificationConfigurationsCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class DescribeNotificationConfigurationsCommand extends smithy_client_1.Command {
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
9
|
constructor(input) {
|
|
30
|
-
// Start section: command_constructor
|
|
31
10
|
super();
|
|
32
11
|
this.input = input;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Gets information about the scaling policies in the account and Region.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { AutoScalingClient, DescribePoliciesCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
|
|
14
|
-
* // const { AutoScalingClient, DescribePoliciesCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
|
|
15
|
-
* const client = new AutoScalingClient(config);
|
|
16
|
-
* const command = new DescribePoliciesCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link DescribePoliciesCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link DescribePoliciesCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class DescribePoliciesCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,43 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Gets information about the scaling activities in the account and Region.</p>
|
|
10
|
-
* <p>When scaling events occur, you see a record of the scaling activity in the scaling
|
|
11
|
-
* activities. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-verify-scaling-activity.html">Verifying a scaling
|
|
12
|
-
* activity for an Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
|
|
13
|
-
* <p>If the scaling event succeeds, the value of the <code>StatusCode</code> element in the
|
|
14
|
-
* response is <code>Successful</code>. If an attempt to launch instances failed, the
|
|
15
|
-
* <code>StatusCode</code> value is <code>Failed</code> or <code>Cancelled</code> and
|
|
16
|
-
* the <code>StatusMessage</code> element in the response indicates the cause of the
|
|
17
|
-
* failure. For help interpreting the <code>StatusMessage</code>, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/CHAP_Troubleshooting.html">Troubleshooting Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. </p>
|
|
18
|
-
* @example
|
|
19
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
20
|
-
* ```javascript
|
|
21
|
-
* import { AutoScalingClient, DescribeScalingActivitiesCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
|
|
22
|
-
* // const { AutoScalingClient, DescribeScalingActivitiesCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
|
|
23
|
-
* const client = new AutoScalingClient(config);
|
|
24
|
-
* const command = new DescribeScalingActivitiesCommand(input);
|
|
25
|
-
* const response = await client.send(command);
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @see {@link DescribeScalingActivitiesCommandInput} for command's `input` shape.
|
|
29
|
-
* @see {@link DescribeScalingActivitiesCommandOutput} for command's `response` shape.
|
|
30
|
-
* @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
8
|
class DescribeScalingActivitiesCommand extends smithy_client_1.Command {
|
|
34
|
-
// Start section: command_properties
|
|
35
|
-
// End section: command_properties
|
|
36
9
|
constructor(input) {
|
|
37
|
-
// Start section: command_constructor
|
|
38
10
|
super();
|
|
39
11
|
this.input = input;
|
|
40
|
-
// End section: command_constructor
|
|
41
12
|
}
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
45
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
46
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
47
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Describes the scaling process types for use with the <a>ResumeProcesses</a>
|
|
10
|
-
* and <a>SuspendProcesses</a> APIs.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { AutoScalingClient, DescribeScalingProcessTypesCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
|
|
15
|
-
* // const { AutoScalingClient, DescribeScalingProcessTypesCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
|
|
16
|
-
* const client = new AutoScalingClient(config);
|
|
17
|
-
* const command = new DescribeScalingProcessTypesCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link DescribeScalingProcessTypesCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link DescribeScalingProcessTypesCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class DescribeScalingProcessTypesCommand extends smithy_client_1.Command {
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
9
|
constructor(input) {
|
|
30
|
-
// Start section: command_constructor
|
|
31
10
|
super();
|
|
32
11
|
this.input = input;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,38 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Gets information about the scheduled actions that haven't run or that have not reached
|
|
10
|
-
* their end time.</p>
|
|
11
|
-
* <p>To describe the scaling activities for scheduled actions that have already run, call
|
|
12
|
-
* the <a>DescribeScalingActivities</a> API.</p>
|
|
13
|
-
* @example
|
|
14
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
-
* ```javascript
|
|
16
|
-
* import { AutoScalingClient, DescribeScheduledActionsCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
|
|
17
|
-
* // const { AutoScalingClient, DescribeScheduledActionsCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
|
|
18
|
-
* const client = new AutoScalingClient(config);
|
|
19
|
-
* const command = new DescribeScheduledActionsCommand(input);
|
|
20
|
-
* const response = await client.send(command);
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @see {@link DescribeScheduledActionsCommandInput} for command's `input` shape.
|
|
24
|
-
* @see {@link DescribeScheduledActionsCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
8
|
class DescribeScheduledActionsCommand extends smithy_client_1.Command {
|
|
29
|
-
// Start section: command_properties
|
|
30
|
-
// End section: command_properties
|
|
31
9
|
constructor(input) {
|
|
32
|
-
// Start section: command_constructor
|
|
33
10
|
super();
|
|
34
11
|
this.input = input;
|
|
35
|
-
// End section: command_constructor
|
|
36
12
|
}
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
40
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
41
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
42
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,43 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Describes the specified tags.</p>
|
|
10
|
-
* <p>You can use filters to limit the results. For example, you can query for the tags for
|
|
11
|
-
* a specific Auto Scaling group. You can specify multiple values for a filter. A tag must match at
|
|
12
|
-
* least one of the specified values for it to be included in the results.</p>
|
|
13
|
-
* <p>You can also specify multiple filters. The result includes information for a
|
|
14
|
-
* particular tag only if it matches all the filters. If there's no match, no special
|
|
15
|
-
* message is returned.</p>
|
|
16
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-tagging.html">Tagging Auto Scaling groups and
|
|
17
|
-
* instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
|
|
18
|
-
* @example
|
|
19
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
20
|
-
* ```javascript
|
|
21
|
-
* import { AutoScalingClient, DescribeTagsCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
|
|
22
|
-
* // const { AutoScalingClient, DescribeTagsCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
|
|
23
|
-
* const client = new AutoScalingClient(config);
|
|
24
|
-
* const command = new DescribeTagsCommand(input);
|
|
25
|
-
* const response = await client.send(command);
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @see {@link DescribeTagsCommandInput} for command's `input` shape.
|
|
29
|
-
* @see {@link DescribeTagsCommandOutput} for command's `response` shape.
|
|
30
|
-
* @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
8
|
class DescribeTagsCommand extends smithy_client_1.Command {
|
|
34
|
-
// Start section: command_properties
|
|
35
|
-
// End section: command_properties
|
|
36
9
|
constructor(input) {
|
|
37
|
-
// Start section: command_constructor
|
|
38
10
|
super();
|
|
39
11
|
this.input = input;
|
|
40
|
-
// End section: command_constructor
|
|
41
12
|
}
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
45
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
46
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
47
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,38 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Describes the termination policies supported by Amazon EC2 Auto Scaling.</p>
|
|
10
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html">Controlling which Auto Scaling
|
|
11
|
-
* instances terminate during scale in</a> in the
|
|
12
|
-
* <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
|
|
13
|
-
* @example
|
|
14
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
-
* ```javascript
|
|
16
|
-
* import { AutoScalingClient, DescribeTerminationPolicyTypesCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
|
|
17
|
-
* // const { AutoScalingClient, DescribeTerminationPolicyTypesCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
|
|
18
|
-
* const client = new AutoScalingClient(config);
|
|
19
|
-
* const command = new DescribeTerminationPolicyTypesCommand(input);
|
|
20
|
-
* const response = await client.send(command);
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @see {@link DescribeTerminationPolicyTypesCommandInput} for command's `input` shape.
|
|
24
|
-
* @see {@link DescribeTerminationPolicyTypesCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
8
|
class DescribeTerminationPolicyTypesCommand extends smithy_client_1.Command {
|
|
29
|
-
// Start section: command_properties
|
|
30
|
-
// End section: command_properties
|
|
31
9
|
constructor(input) {
|
|
32
|
-
// Start section: command_constructor
|
|
33
10
|
super();
|
|
34
11
|
this.input = input;
|
|
35
|
-
// End section: command_constructor
|
|
36
12
|
}
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
40
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
41
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
42
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Gets information about a warm pool and its instances.</p>
|
|
10
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-warm-pools.html">Warm pools for
|
|
11
|
-
* Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { AutoScalingClient, DescribeWarmPoolCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
|
|
16
|
-
* // const { AutoScalingClient, DescribeWarmPoolCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
|
|
17
|
-
* const client = new AutoScalingClient(config);
|
|
18
|
-
* const command = new DescribeWarmPoolCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link DescribeWarmPoolCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link DescribeWarmPoolCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
8
|
class DescribeWarmPoolCommand extends smithy_client_1.Command {
|
|
28
|
-
// Start section: command_properties
|
|
29
|
-
// End section: command_properties
|
|
30
9
|
constructor(input) {
|
|
31
|
-
// Start section: command_constructor
|
|
32
10
|
super();
|
|
33
11
|
this.input = input;
|
|
34
|
-
// End section: command_constructor
|
|
35
12
|
}
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
40
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
41
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,44 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Removes one or more instances from the specified Auto Scaling group.</p>
|
|
10
|
-
* <p>After the instances are detached, you can manage them independent of the Auto Scaling
|
|
11
|
-
* group.</p>
|
|
12
|
-
* <p>If you do not specify the option to decrement the desired capacity, Amazon EC2 Auto Scaling launches
|
|
13
|
-
* instances to replace the ones that are detached.</p>
|
|
14
|
-
* <p>If there is a Classic Load Balancer attached to the Auto Scaling group, the instances are
|
|
15
|
-
* deregistered from the load balancer. If there are target groups attached to the Auto Scaling
|
|
16
|
-
* group, the instances are deregistered from the target groups.</p>
|
|
17
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/detach-instance-asg.html">Detach EC2 instances from
|
|
18
|
-
* your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
|
|
19
|
-
* @example
|
|
20
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
21
|
-
* ```javascript
|
|
22
|
-
* import { AutoScalingClient, DetachInstancesCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
|
|
23
|
-
* // const { AutoScalingClient, DetachInstancesCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
|
|
24
|
-
* const client = new AutoScalingClient(config);
|
|
25
|
-
* const command = new DetachInstancesCommand(input);
|
|
26
|
-
* const response = await client.send(command);
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
|
-
* @see {@link DetachInstancesCommandInput} for command's `input` shape.
|
|
30
|
-
* @see {@link DetachInstancesCommandOutput} for command's `response` shape.
|
|
31
|
-
* @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
8
|
class DetachInstancesCommand extends smithy_client_1.Command {
|
|
35
|
-
// Start section: command_properties
|
|
36
|
-
// End section: command_properties
|
|
37
9
|
constructor(input) {
|
|
38
|
-
// Start section: command_constructor
|
|
39
10
|
super();
|
|
40
11
|
this.input = input;
|
|
41
|
-
// End section: command_constructor
|
|
42
12
|
}
|
|
43
|
-
/**
|
|
44
|
-
* @internal
|
|
45
|
-
*/
|
|
46
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
47
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
48
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Detaches one or more target groups from the specified Auto Scaling group.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { AutoScalingClient, DetachLoadBalancerTargetGroupsCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
|
|
14
|
-
* // const { AutoScalingClient, DetachLoadBalancerTargetGroupsCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
|
|
15
|
-
* const client = new AutoScalingClient(config);
|
|
16
|
-
* const command = new DetachLoadBalancerTargetGroupsCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link DetachLoadBalancerTargetGroupsCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link DetachLoadBalancerTargetGroupsCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class DetachLoadBalancerTargetGroupsCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,40 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Detaches one or more Classic Load Balancers from the specified Auto Scaling group.</p>
|
|
10
|
-
* <p>This operation detaches only Classic Load Balancers. If you have Application Load
|
|
11
|
-
* Balancers, Network Load Balancers, or Gateway Load Balancers, use the <a>DetachLoadBalancerTargetGroups</a> API instead.</p>
|
|
12
|
-
* <p>When you detach a load balancer, it enters the <code>Removing</code> state while
|
|
13
|
-
* deregistering the instances in the group. When all instances are deregistered, then you
|
|
14
|
-
* can no longer describe the load balancer using the <a>DescribeLoadBalancers</a> API call. The instances remain running.</p>
|
|
15
|
-
* @example
|
|
16
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
17
|
-
* ```javascript
|
|
18
|
-
* import { AutoScalingClient, DetachLoadBalancersCommand } from "@aws-sdk/client-auto-scaling"; // ES Modules import
|
|
19
|
-
* // const { AutoScalingClient, DetachLoadBalancersCommand } = require("@aws-sdk/client-auto-scaling"); // CommonJS import
|
|
20
|
-
* const client = new AutoScalingClient(config);
|
|
21
|
-
* const command = new DetachLoadBalancersCommand(input);
|
|
22
|
-
* const response = await client.send(command);
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @see {@link DetachLoadBalancersCommandInput} for command's `input` shape.
|
|
26
|
-
* @see {@link DetachLoadBalancersCommandOutput} for command's `response` shape.
|
|
27
|
-
* @see {@link AutoScalingClientResolvedConfig | config} for command's `input` shape.
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
8
|
class DetachLoadBalancersCommand extends smithy_client_1.Command {
|
|
31
|
-
// Start section: command_properties
|
|
32
|
-
// End section: command_properties
|
|
33
9
|
constructor(input) {
|
|
34
|
-
// Start section: command_constructor
|
|
35
10
|
super();
|
|
36
11
|
this.input = input;
|
|
37
|
-
// End section: command_constructor
|
|
38
12
|
}
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
43
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
44
15
|
const stack = clientStack.concat(this.middlewareStack);
|