AutoScalingClient
Amazon EC2 Auto Scaling
Amazon EC2 Auto Scaling is designed to automatically launch and terminate EC2 instances based on user-defined scaling policies, scheduled actions, and health checks.
For more information, see the Amazon EC2 Auto Scaling User Guide and the Amazon EC2 Auto Scaling API Reference.
Functions
Attaches one or more EC2 instances to the specified Auto Scaling group.
This API operation is superseded by AttachTrafficSources, which can attach multiple traffic sources types. We recommend using AttachTrafficSources
to simplify how you manage traffic sources. However, we continue to support AttachLoadBalancers
. You can use both the original AttachLoadBalancers
API operation and AttachTrafficSources
on the same Auto Scaling group.
This API operation is superseded by AttachTrafficSources, which can attach multiple traffic sources types. We recommend using AttachTrafficSources
to simplify how you manage traffic sources. However, we continue to support AttachLoadBalancerTargetGroups
. You can use both the original AttachLoadBalancerTargetGroups
API operation and AttachTrafficSources
on the same Auto Scaling group.
Attaches one or more traffic sources to the specified Auto Scaling group.
Deletes one or more scheduled actions for the specified Auto Scaling group.
Creates or updates one or more scheduled scaling actions for an Auto Scaling group.
Cancels an instance refresh or rollback that is in progress. If an instance refresh or rollback is not in progress, an ActiveInstanceRefreshNotFound
error occurs.
Completes the lifecycle action for the specified token or instance with the specified result.
We strongly recommend using a launch template when calling this operation to ensure full functionality for Amazon EC2 Auto Scaling and Amazon EC2.
Creates a launch configuration.
Creates or updates tags for the specified Auto Scaling group.
Deletes the specified Auto Scaling group.
Deletes the specified launch configuration.
Deletes the specified lifecycle hook.
Deletes the specified notification.
Deletes the specified scaling policy.
Deletes the specified scheduled action.
Deletes the specified tags.
Deletes the warm pool for the specified Auto Scaling group.
Describes the current Amazon EC2 Auto Scaling resource quotas for your account.
Describes the available adjustment types for step scaling and simple scaling policies.
Gets information about the Auto Scaling groups in the account and Region.
Gets information about the Auto Scaling instances in the account and Region.
Describes the notification types that are supported by Amazon EC2 Auto Scaling.
Gets information about the instance refreshes for the specified Auto Scaling group from the previous six weeks.
Gets information about the launch configurations in the account and Region.
Gets information about the lifecycle hooks for the specified Auto Scaling group.
Describes the available types of lifecycle hooks.
This API operation is superseded by DescribeTrafficSources, which can describe multiple traffic sources types. We recommend using DescribeTrafficSources
to simplify how you manage traffic sources. However, we continue to support DescribeLoadBalancers
. You can use both the original DescribeLoadBalancers
API operation and DescribeTrafficSources
on the same Auto Scaling group.
This API operation is superseded by DescribeTrafficSources, which can describe multiple traffic sources types. We recommend using DetachTrafficSources
to simplify how you manage traffic sources. However, we continue to support DescribeLoadBalancerTargetGroups
. You can use both the original DescribeLoadBalancerTargetGroups
API operation and DescribeTrafficSources
on the same Auto Scaling group.
Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling.
Gets information about the Amazon SNS notifications that are configured for one or more Auto Scaling groups.
Gets information about the scaling policies in the account and Region.
Gets information about the scaling activities in the account and Region.
Describes the scaling process types for use with the ResumeProcesses and SuspendProcesses APIs.
Gets information about the scheduled actions that haven't run or that have not reached their end time.
Describes the specified tags.
Describes the termination policies supported by Amazon EC2 Auto Scaling.
Gets information about the traffic sources for the specified Auto Scaling group.
Gets information about a warm pool and its instances.
Removes one or more instances from the specified Auto Scaling group.
This API operation is superseded by DetachTrafficSources, which can detach multiple traffic sources types. We recommend using DetachTrafficSources
to simplify how you manage traffic sources. However, we continue to support DetachLoadBalancers
. You can use both the original DetachLoadBalancers
API operation and DetachTrafficSources
on the same Auto Scaling group.
This API operation is superseded by DetachTrafficSources, which can detach multiple traffic sources types. We recommend using DetachTrafficSources
to simplify how you manage traffic sources. However, we continue to support DetachLoadBalancerTargetGroups
. You can use both the original DetachLoadBalancerTargetGroups
API operation and DetachTrafficSources
on the same Auto Scaling group.
Detaches one or more traffic sources from the specified Auto Scaling group.
Disables group metrics collection for the specified Auto Scaling group.
Enables group metrics collection for the specified Auto Scaling group.
Moves the specified instances into the standby state.
Executes the specified policy. This can be useful for testing the design of your scaling policy.
Moves the specified instances out of the standby state.
Retrieves the forecast data for a predictive scaling policy.
Creates or updates a lifecycle hook for the specified Auto Scaling group.
Configures an Auto Scaling group to send notifications when specified events take place. Subscribers to the specified topic can have messages delivered to an endpoint such as a web server or an email address.
Creates or updates a scaling policy for an Auto Scaling group. Scaling policies are used to scale an Auto Scaling group based on configurable metrics. If no policies are defined, the dynamic scaling and predictive scaling features are not used.
Creates or updates a scheduled scaling action for an Auto Scaling group.
Creates or updates a warm pool for the specified Auto Scaling group. A warm pool is a pool of pre-initialized EC2 instances that sits alongside the Auto Scaling group. Whenever your application needs to scale out, the Auto Scaling group can draw on the warm pool to meet its new desired capacity. For more information and example configurations, see Warm pools for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.
Records a heartbeat for the lifecycle action associated with the specified token or instance. This extends the timeout by the length of time defined using the PutLifecycleHook API call.
Resumes the specified suspended auto scaling processes, or all suspended process, for the specified Auto Scaling group.
Cancels an instance refresh that is in progress and rolls back any changes that it made. Amazon EC2 Auto Scaling replaces any instances that were replaced during the instance refresh. This restores your Auto Scaling group to the configuration that it was using before the start of the instance refresh.
Sets the size of the specified Auto Scaling group.
Sets the health status of the specified instance.
Updates the instance protection settings of the specified instances. This operation cannot be called on instances in a warm pool.
Starts an instance refresh.
Suspends the specified auto scaling processes, or all processes, for the specified Auto Scaling group.
Terminates the specified instance and optionally adjusts the desired group size. This operation cannot be called on instances in a warm pool.
We strongly recommend that all Auto Scaling groups use launch templates to ensure full functionality for Amazon EC2 Auto Scaling and Amazon EC2.
Inherited functions
Attaches one or more EC2 instances to the specified Auto Scaling group.
This API operation is superseded by AttachTrafficSources, which can attach multiple traffic sources types. We recommend using AttachTrafficSources
to simplify how you manage traffic sources. However, we continue to support AttachLoadBalancers
. You can use both the original AttachLoadBalancers
API operation and AttachTrafficSources
on the same Auto Scaling group.
This API operation is superseded by AttachTrafficSources, which can attach multiple traffic sources types. We recommend using AttachTrafficSources
to simplify how you manage traffic sources. However, we continue to support AttachLoadBalancerTargetGroups
. You can use both the original AttachLoadBalancerTargetGroups
API operation and AttachTrafficSources
on the same Auto Scaling group.
Attaches one or more traffic sources to the specified Auto Scaling group.
Deletes one or more scheduled actions for the specified Auto Scaling group.
Creates or updates one or more scheduled scaling actions for an Auto Scaling group.
Cancels an instance refresh or rollback that is in progress. If an instance refresh or rollback is not in progress, an ActiveInstanceRefreshNotFound
error occurs.
Completes the lifecycle action for the specified token or instance with the specified result.
We strongly recommend using a launch template when calling this operation to ensure full functionality for Amazon EC2 Auto Scaling and Amazon EC2.
Creates a launch configuration.
Creates or updates tags for the specified Auto Scaling group.
Deletes the specified Auto Scaling group.
Deletes the specified launch configuration.
Deletes the specified lifecycle hook.
Deletes the specified notification.
Deletes the specified scaling policy.
Deletes the specified scheduled action.
Deletes the specified tags.
Deletes the warm pool for the specified Auto Scaling group.
Describes the current Amazon EC2 Auto Scaling resource quotas for your account.
Describes the available adjustment types for step scaling and simple scaling policies.
Gets information about the Auto Scaling groups in the account and Region.
Paginate over DescribeAutoScalingGroupsResponse results.
Gets information about the Auto Scaling instances in the account and Region.
Paginate over DescribeAutoScalingInstancesResponse results.
Describes the notification types that are supported by Amazon EC2 Auto Scaling.
Gets information about the instance refreshes for the specified Auto Scaling group from the previous six weeks.
Paginate over DescribeInstanceRefreshesResponse results.
Gets information about the launch configurations in the account and Region.
Paginate over DescribeLaunchConfigurationsResponse results.
Gets information about the lifecycle hooks for the specified Auto Scaling group.
Describes the available types of lifecycle hooks.
This API operation is superseded by DescribeTrafficSources, which can describe multiple traffic sources types. We recommend using DescribeTrafficSources
to simplify how you manage traffic sources. However, we continue to support DescribeLoadBalancers
. You can use both the original DescribeLoadBalancers
API operation and DescribeTrafficSources
on the same Auto Scaling group.
Paginate over DescribeLoadBalancersResponse results.
This API operation is superseded by DescribeTrafficSources, which can describe multiple traffic sources types. We recommend using DetachTrafficSources
to simplify how you manage traffic sources. However, we continue to support DescribeLoadBalancerTargetGroups
. You can use both the original DescribeLoadBalancerTargetGroups
API operation and DescribeTrafficSources
on the same Auto Scaling group.
Paginate over DescribeLoadBalancerTargetGroupsResponse results.
Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling.
Gets information about the Amazon SNS notifications that are configured for one or more Auto Scaling groups.
Paginate over DescribeNotificationConfigurationsResponse results.
Gets information about the scaling policies in the account and Region.
Paginate over DescribePoliciesResponse results.
Gets information about the scaling activities in the account and Region.
Paginate over DescribeScalingActivitiesResponse results.
Describes the scaling process types for use with the ResumeProcesses and SuspendProcesses APIs.
Gets information about the scheduled actions that haven't run or that have not reached their end time.
Paginate over DescribeScheduledActionsResponse results.
Describes the specified tags.
Paginate over DescribeTagsResponse results.
Describes the termination policies supported by Amazon EC2 Auto Scaling.
Gets information about the traffic sources for the specified Auto Scaling group.
Paginate over DescribeTrafficSourcesResponse results.
Gets information about a warm pool and its instances.
Paginate over DescribeWarmPoolResponse results.
Removes one or more instances from the specified Auto Scaling group.
This API operation is superseded by DetachTrafficSources, which can detach multiple traffic sources types. We recommend using DetachTrafficSources
to simplify how you manage traffic sources. However, we continue to support DetachLoadBalancers
. You can use both the original DetachLoadBalancers
API operation and DetachTrafficSources
on the same Auto Scaling group.
This API operation is superseded by DetachTrafficSources, which can detach multiple traffic sources types. We recommend using DetachTrafficSources
to simplify how you manage traffic sources. However, we continue to support DetachLoadBalancerTargetGroups
. You can use both the original DetachLoadBalancerTargetGroups
API operation and DetachTrafficSources
on the same Auto Scaling group.
Detaches one or more traffic sources from the specified Auto Scaling group.
Disables group metrics collection for the specified Auto Scaling group.
Enables group metrics collection for the specified Auto Scaling group.
Moves the specified instances into the standby state.
Executes the specified policy. This can be useful for testing the design of your scaling policy.
Moves the specified instances out of the standby state.
Retrieves the forecast data for a predictive scaling policy.
Creates or updates a lifecycle hook for the specified Auto Scaling group.
Configures an Auto Scaling group to send notifications when specified events take place. Subscribers to the specified topic can have messages delivered to an endpoint such as a web server or an email address.
Creates or updates a scaling policy for an Auto Scaling group. Scaling policies are used to scale an Auto Scaling group based on configurable metrics. If no policies are defined, the dynamic scaling and predictive scaling features are not used.
Creates or updates a scheduled scaling action for an Auto Scaling group.
Creates or updates a warm pool for the specified Auto Scaling group. A warm pool is a pool of pre-initialized EC2 instances that sits alongside the Auto Scaling group. Whenever your application needs to scale out, the Auto Scaling group can draw on the warm pool to meet its new desired capacity. For more information and example configurations, see Warm pools for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.
Records a heartbeat for the lifecycle action associated with the specified token or instance. This extends the timeout by the length of time defined using the PutLifecycleHook API call.
Resumes the specified suspended auto scaling processes, or all suspended process, for the specified Auto Scaling group.
Cancels an instance refresh that is in progress and rolls back any changes that it made. Amazon EC2 Auto Scaling replaces any instances that were replaced during the instance refresh. This restores your Auto Scaling group to the configuration that it was using before the start of the instance refresh.
Sets the size of the specified Auto Scaling group.
Sets the health status of the specified instance.
Updates the instance protection settings of the specified instances. This operation cannot be called on instances in a warm pool.
Starts an instance refresh.
Suspends the specified auto scaling processes, or all processes, for the specified Auto Scaling group.
Terminates the specified instance and optionally adjusts the desired group size. This operation cannot be called on instances in a warm pool.
We strongly recommend that all Auto Scaling groups use launch templates to ensure full functionality for Amazon EC2 Auto Scaling and Amazon EC2.
Create a copy of the client with one or more configuration values overridden. This method allows the caller to perform scoped config overrides for one or more client operations.