Instance
¶
Source code in docs_src/capo_auto_scaling/types/instance.py
availability_zone
instance-attribute
¶
availability_zone: NotRequired[XmlStringMaxLen255]
The Availability Zone in which the instance is running.
availability_zone_id
instance-attribute
¶
availability_zone_id: NotRequired[XmlStringMaxLen255]
The Availability Zone ID where the instance was launched.
health_status
instance-attribute
¶
health_status: NotRequired[XmlStringMaxLen32]
The last reported health status of the instance. Healthy means that the instance is healthy and should remain in service. Unhealthy means that the instance is unhealthy and that Amazon EC2 Auto Scaling should terminate and replace it.
image_id
instance-attribute
¶
image_id: NotRequired[XmlStringMaxLen255]
The ID of the Amazon Machine Image (AMI) used for the instance's current root volume. This value reflects the most recent AMI applied to the instance, including updates made through root volume replacement operations.
This field appears for:
-
Instances with root volume replacements through Instance Refresh
-
Instances launched with AMI overrides
This field won't appear for:
-
Existing instances launched from Launch Templates without overrides
-
Existing instances that didn’t have their root volume replaced through Instance Refresh
instance_id
instance-attribute
¶
instance_id: NotRequired[XmlStringMaxLen19]
The ID of the instance.
instance_type
instance-attribute
¶
instance_type: NotRequired[XmlStringMaxLen255]
The instance type of the EC2 instance.
launch_configuration_name
instance-attribute
¶
launch_configuration_name: NotRequired[XmlStringMaxLen255]
The launch configuration associated with the instance.
launch_template
instance-attribute
¶
launch_template: NotRequired[LaunchTemplateSpecification]
The launch template for the instance.
lifecycle_state
instance-attribute
¶
lifecycle_state: NotRequired[LifecycleState]
A description of the current lifecycle state. The Quarantined state is not used. For more information, see Amazon EC2 Auto Scaling instance lifecycle in the Amazon EC2 Auto Scaling User Guide.
protected_from_scale_in
instance-attribute
¶
protected_from_scale_in: NotRequired[InstanceProtected]
Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.
weighted_capacity
instance-attribute
¶
weighted_capacity: NotRequired[XmlStringMaxLen32]
The number of capacity units contributed by the instance based on its instance type.
Valid Range: Minimum value of 1. Maximum value of 999.