Auto Scaling

class autoscaling.auto_scaling_group

Example:

resources = storage_connector.read_resources(
    service="autoscaling",
    resource_type="auto_scaling_group")
for resource in resources:
    resource.load()
    print(resource.urn)
    print(resource.auto_scaling_group_arn)
    print(resource.availability_zones)
    print(resource.capacity_rebalance)
    print(resource.created_time)
    print(resource.default_cooldown)
    print(resource.desired_capacity)
    print(resource.enabled_metrics)
    print(resource.health_check_grace_period)
    print(resource.health_check_type)
    print(resource.instances)
    print(resource.launch_configuration_name)
    print(resource.launch_template)
    print(resource.load_balancer_names)
    print(resource.max_instance_lifetime)
    print(resource.max_size)
    print(resource.min_size)
    print(resource.mixed_instances_policy)
    print(resource.new_instances_protected_from_scale_in)
    print(resource.placement_group)
    print(resource.service_linked_role_arn)
    print(resource.status)
    print(resource.suspended_processes)
    print(resource.tags)
    print(resource.target_group_arns)
    print(resource.termination_policies)
    print(resource.vpc_zone_identifier)
    print(resource.warm_pool_configuration)
    print(resource.warm_pool_size)
auto_scaling_group_arn

The Amazon Resource Name (ARN) of the Auto Scaling group.

availability_zones

One or more Availability Zones for the group.

capacity_rebalance

Indicates whether Capacity Rebalancing is enabled.

created_time

The date and time the group was created.

default_cooldown

The duration of the default cooldown period, in seconds.

desired_capacity

The desired size of the group.

enabled_metrics

The metrics enabled for the group.

health_check_grace_period

The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before checking the health status of an EC2 instance that has come into service.

health_check_type

The service to use for the health checks. The valid values are EC2 and ELB . If you configure an Auto Scaling group to use ELB health checks, it considers the instance unhealthy if it fails either the EC2 status checks or the load balancer health checks.

instances

The EC2 instances associated with the group.

launch_configuration_name

The name of the associated launch configuration.

launch_template

The launch template for the group.

load_balancer_names

One or more load balancers associated with the group.

max_instance_lifetime

The maximum amount of time, in seconds, that an instance can be in service. Valid Range: Minimum value of 0.

max_size

The maximum size of the group.

min_size

The minimum size of the group.

mixed_instances_policy

The mixed instances policy for the group.

new_instances_protected_from_scale_in

Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling in.

placement_group

The name of the placement group into which to launch your instances, if any.

service_linked_role_arn

The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to call other AWS services on your behalf.

status

The current state of the group when the DeleteAutoScalingGroup operation is in progress.

suspended_processes

The suspended processes associated with the group.

tags

The tags for the group.

target_group_arns

The Amazon Resource Names (ARN) of the target groups for your load balancer.

termination_policies

The termination policies for the group.

vpc_zone_identifier

One or more subnet IDs, if applicable, separated by commas.

warm_pool_configuration

The warm pool for the group.

warm_pool_size

The current size of the warm pool.