| This is the IcsAS common library. |
ICS Library for AutoScale
list of weak references to the object (if defined)
Create the Launch Configuration
| Parameters: | launch_config (class) – boto launch_config object |
|---|---|
| Return type: | string |
| Returns: | AWS request Id |
Delete the Launch Configuration from its name
| Parameters: | name (string) – the name of launch configuration |
|---|---|
| Return type: | string |
| Returns: | AWS request Id |
Get the ASG from its name
| Parameters: | name (string) – the ASG name |
|---|---|
| Return type: | list |
| Returns: | a list represents the specific ASG(s) |
Get the ASG name from the specific instance id
| Parameters: | instance_id (string) – EC2 instance id startwith ‘i-xxxxxxx’ |
|---|---|
| Return type: | string |
| Returns: | name of the ASG, this instance belongs to |
Get the instance from the specific ASG name
| Parameters: | name (string) – the specific ASG name |
|---|---|
| Return type: | list |
| Returns: | a list contains all the instances |
Get the Launch Configuration from its name
| Parameters: | name (string) – the Launch Configuration name |
|---|---|
| Return type: | list |
| Returns: | a list represents the specific Launch Configuration(s) |
Resumes Auto Scaling processes for an Auto Scaling group.
| 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: |
|
|---|
Explicitly set the health status of an instance.
| Parameters: |
|---|
| Parameters: | grace_period (bool) – If True, this call should respect the grace period associated with the group. |
|---|
Raw Library for AutoScale, based on Botocore
list of weak references to the object (if defined)
Create a new Auto-Scaling Group
| Parameters: | group_config (dict) – auto-scaling group configuration |
|---|
Create a new Launch Configuration
| Parameters: | launch_config (dict) – launch configuration |
|---|
Delete an existing Auto-Scaling Group
| Parameters: | name (string) – auto-scaling group name |
|---|
Delete an existing Launch Configuration
| Parameters: | name (string) – launch configuration name |
|---|
Delete an existing Scaling Policy
| Parameters: |
|---|
Fetch all the Auto-Scaling Groups
| Return type: | dict |
|---|---|
| Returns: | JSON object for all the Auto-Scaling Groups |
Fetch an existing Auto-Scaling Group
| Parameters: | name (string) – auto-scaling group name |
|---|
Fetch an existing Launch Configuration
| Parameters: | name (string) – launch configuration name |
|---|
Find the names of Auto-Scaling Groups in the filters
| Parameters: | filter (dict) – a dictionary to used for resource filtering The format should be consistent with botocore JSON output |
|---|
{
"Tags": [
{
"Key": "Owner",
"Value": "Production"
}
]
}
| Return type: | list |
|---|---|
| Returns: | a list containing all the names of filtered groups |
Delete a new Auto-Scaling Group
| Parameters: |
|
|---|
Modify the Auto-Scaling Group
| Parameters: | group_config (dict) – auto-scaling group configuration |
|---|
Modify the Launch Configuration
| Parameters: | launch_config (dict) – launch configuration |
|---|
Find and return a boto.ec2.autoscale.RegionInfo object given a region name.
| Parameters: | region_name (str) – The name of the region. |
|---|---|
| Return type: | boto.ec2.autoscale.RegionInfo |
| Returns: | The RegionInfo object for the given region or None if an invalid region name is provided. |