Skip to content

AutoScalingGroupConfiguration

Source code in docs_src/capo_compute_optimizer/types/auto_scaling_group_configuration.py
class AutoScalingGroupConfiguration(TypedDict, closed=True):
    desired_capacity: "capo_compute_optimizer.types.desired_capacity.DesiredCapacity"
    """<p>The desired capacity, or number of instances, for the EC2 Auto Scaling group.</p>"""
    min_size: "capo_compute_optimizer.types.min_size.MinSize"
    """<p>The minimum size, or minimum number of instances, for the EC2 Auto Scaling group.</p>"""
    max_size: "capo_compute_optimizer.types.max_size.MaxSize"
    """<p>The maximum size, or maximum number of instances, for the EC2 Auto Scaling group.</p>"""
    instance_type: NotRequired[
        "capo_compute_optimizer.types.nullable_instance_type.NullableInstanceType"
    ]
    """<p>The instance type for the EC2 Auto Scaling group.</p>"""
    allocation_strategy: NotRequired[
        "capo_compute_optimizer.types.allocation_strategy.AllocationStrategy"
    ]
    """<p> Describes the allocation strategy that the EC2 Auto Scaling group uses. This field is only available for EC2 Auto Scaling groups with mixed instance types. </p>"""
    estimated_instance_hour_reduction_percentage: NotRequired[
        "capo_compute_optimizer.types.nullable_estimated_instance_hour_reduction_percentage.NullableEstimatedInstanceHourReductionPercentage"
    ]
    """<p> Describes the projected percentage reduction in instance hours after adopting the recommended configuration. This field is only available for EC2 Auto Scaling groups with scaling policies. </p>"""
    type: NotRequired["capo_compute_optimizer.types.asg_type.AsgType"]
    """<p> Describes whether the EC2 Auto Scaling group has a single instance type or a mixed instance type configuration. </p>"""
    mixed_instance_types: NotRequired[
        "capo_compute_optimizer.types.mixed_instance_types.MixedInstanceTypes"
    ]
    """<p> List the instance types within an EC2 Auto Scaling group that has mixed instance types. </p>"""

allocation_strategy instance-attribute

allocation_strategy: NotRequired[AllocationStrategy]

Describes the allocation strategy that the EC2 Auto Scaling group uses. This field is only available for EC2 Auto Scaling groups with mixed instance types.

desired_capacity instance-attribute

desired_capacity: DesiredCapacity

The desired capacity, or number of instances, for the EC2 Auto Scaling group.

estimated_instance_hour_reduction_percentage instance-attribute

estimated_instance_hour_reduction_percentage: NotRequired[
    NullableEstimatedInstanceHourReductionPercentage
]

Describes the projected percentage reduction in instance hours after adopting the recommended configuration. This field is only available for EC2 Auto Scaling groups with scaling policies.

instance_type instance-attribute

instance_type: NotRequired[NullableInstanceType]

The instance type for the EC2 Auto Scaling group.

max_size instance-attribute

max_size: MaxSize

The maximum size, or maximum number of instances, for the EC2 Auto Scaling group.

min_size instance-attribute

min_size: MinSize

The minimum size, or minimum number of instances, for the EC2 Auto Scaling group.

mixed_instance_types instance-attribute

mixed_instance_types: NotRequired[MixedInstanceTypes]

List the instance types within an EC2 Auto Scaling group that has mixed instance types.

type instance-attribute

type: NotRequired[AsgType]

Describes whether the EC2 Auto Scaling group has a single instance type or a mixed instance type configuration.