This module provides an interface to the Elastic Compute Cloud (EC2) Auto Scaling service.
Init method to create a new connection to the AutoScaling service.
Attach instances to an autoscaling group.
Items is a list of dictionaries or strings:
[
{
'Protocol' : 'HTTP',
'LoadBalancerPort' : '80',
'InstancePort' : '80'
},
..
] etc.
or:
['us-east-1b',...]
Create auto scaling group.
Creates a new Launch Configuration.
Parameters: | launch_config (boto.ec2.autoscale.launchconfig.LaunchConfiguration) – LaunchConfiguration object. |
---|
Creates new tags or updates existing tags for an Auto Scaling group.
Parameters: | tags (List of boto.ec2.autoscale.tag.Tag) – The new or updated tags. |
---|
Creates a new Scaling Policy.
Parameters: | scaling_policy (boto.ec2.autoscale.policy.ScalingPolicy) – ScalingPolicy object. |
---|
Creates a scheduled scaling action for a Auto Scaling group. If you leave a parameter unspecified, the corresponding value remains unchanged in the affected Auto Scaling group.
Parameters: |
|
---|
Deletes the specified auto scaling group if the group has no instances and no scaling activities in progress.
Deletes the specified LaunchConfiguration.
The specified launch configuration must not be attached to an Auto Scaling group. Once this call completes, the launch configuration is no longer available for use.
Deletes notifications created by put_notification_configuration.
Parameters: |
|
---|
Delete a policy.
Parameters: |
---|
Deletes a previously scheduled action.
Parameters: |
---|
Deletes existing tags for an Auto Scaling group.
Parameters: | tags (List of boto.ec2.autoscale.tag.Tag) – The new or updated tags. |
---|
Disables monitoring of group metrics for the Auto Scaling group specified in AutoScalingGroupName. You can specify the list of affected metrics with the Metrics parameter.
Enables monitoring of group metrics for the Auto Scaling group specified in AutoScalingGroupName. You can specify the list of enabled metrics with the Metrics parameter.
Auto scaling metrics collection can be turned on only if the InstanceMonitoring.Enabled flag, in the Auto Scaling group’s launch configuration, is set to true.
Parameters: |
|
---|
Returns the limits for the Auto Scaling resources currently granted for your AWS account.
Get all activities for the given autoscaling group.
This action supports pagination by returning a token if there are more pages to retrieve. To get the next page, call this action again with the returned token as the NextToken parameter
Parameters: |
|
---|---|
Return type: | list |
Returns: | List of boto.ec2.autoscale.activity.Activity instances. |
Returns a description of each Auto Scaling instance in the instance_ids list. If a list is not provided, the service returns the full details of all instances up to a maximum of fifty.
This action supports pagination by returning a token if there are more pages to retrieve. To get the next page, call this action again with the returned token as the NextToken parameter.
Parameters: | |
---|---|
Return type: | list |
Returns: | List of boto.ec2.autoscale.instance.Instance objects. |
Returns a full description of each Auto Scaling group in the given list. This includes all Amazon EC2 instances that are members of the group. If a list of names is not provided, the service returns the full details of all Auto Scaling groups.
This action supports pagination by returning a token if there are more pages to retrieve. To get the next page, call this action again with the returned token as the NextToken parameter.
Parameters: | |
---|---|
Return type: | list |
Returns: | List of boto.ec2.autoscale.group.AutoScalingGroup instances. |
Returns a full description of the launch configurations given the specified names.
If no names are specified, then the full details of all launch configurations are returned.
Parameters: | |
---|---|
Return type: | list |
Returns: | List of boto.ec2.autoscale.launchconfig.LaunchConfiguration instances. |
Returns a list of metrics and a corresponding list of granularities for each metric.
Returns descriptions of what each policy does. This action supports pagination. If the response includes a token, there are more records available. To get the additional records, repeat the request with the response token as the NextToken parameter.
If no group name or list of policy names are provided, all available policies are returned.
Parameters: |
|
---|
Returns scaling process types for use in the ResumeProcesses and SuspendProcesses actions.
Lists the Auto Scaling group tags.
This action supports pagination by returning a token if there are more pages to retrieve. To get the next page, call this action again with the returned token as the NextToken parameter.
Parameters: | |
---|---|
Return type: | list |
Returns: | List of boto.ec2.autoscale.tag.Tag instances. |
Gets all valid termination policies.
These values can then be used as the termination_policies arg when creating and updating autoscale groups.
Configures an Auto Scaling group to send notifications when specified events take place.
Parameters: |
|
---|
Resumes Auto Scaling processes for an Auto Scaling group.
Parameters: |
---|
Adjusts the desired size of the AutoScalingGroup by initiating scaling activities. When reducing the size of the group, it is not possible to define which Amazon EC2 instances will be terminated. This applies to any Auto Scaling decisions that might result in terminating instances.
Parameters: |
|
---|
Explicitly set the health status of an instance.
Parameters: |
|
---|
Suspends Auto Scaling processes for an Auto Scaling group.
Parameters: |
---|
Terminates the specified instance. The desired group size can also be adjusted, if desired.
Parameters: |
|
---|
Given a valid region name, return a boto.ec2.autoscale.AutoScaleConnection.
Parameters: | region_name (str) – The name of the region to connect to. |
---|---|
Return type: | boto.ec2.AutoScaleConnection or None |
Returns: | A connection to the given region, or None if an invalid region name is given |
Get all available regions for the Auto Scaling service.
Return type: | list |
---|---|
Returns: | A list of boto.RegionInfo instances |
Creates a new AutoScalingGroup with the specified name.
You must not have already used up your entire quota of AutoScalingGroups in order for this call to be successful. Once the creation request is completed, the AutoScalingGroup is ready to be used in other calls.
Parameters: |
|
---|---|
Return type: | |
Returns: | An autoscale group. |
Delete this auto-scaling group if no instances attached or no scaling activities in progress.
Deletes notifications created by put_notification_configuration.
Get all activies for this group.
Configures an Auto Scaling group to send notifications when specified events take place. Valid notification types are: ‘autoscaling:EC2_INSTANCE_LAUNCH’, ‘autoscaling:EC2_INSTANCE_LAUNCH_ERROR’, ‘autoscaling:EC2_INSTANCE_TERMINATE’, ‘autoscaling:EC2_INSTANCE_TERMINATE_ERROR’, ‘autoscaling:TEST_NOTIFICATION’
Resumes Auto Scaling processes for an Auto Scaling group.
Set the desired capacity for the group.
Convenience method which shuts down all instances associated with this group.
Suspends Auto Scaling processes for an Auto Scaling group.
Sync local changes with AutoScaling group.
A launch configuration.
Parameters: |
|
---|
Delete this launch configuration.
Scaling Policy
Parameters: |
|
---|
A name/value tag on an AutoScalingGroup resource.
Variables: |
|
---|
Populates a dictionary with the name/value pairs necessary to identify this Tag in a request.