class Aws::AutoScaling::Types::Instance

Describes an EC2 instance.

@!attribute [rw] instance_id

The ID of the instance.
@return [String]

@!attribute [rw] instance_type

The instance type of the EC2 instance.
@return [String]

@!attribute [rw] availability_zone

The Availability Zone in which the instance is running.
@return [String]

@!attribute [rw] lifecycle_state

A description of the current lifecycle state. The `Quarantined`
state is not used. For information about lifecycle states, see
[Instance lifecycle][1] in the *Amazon EC2 Auto Scaling User Guide*.

[1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/AutoScalingGroupLifecycle.html
@return [String]

@!attribute [rw] health_status

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.
@return [String]

@!attribute [rw] launch_configuration_name

The launch configuration associated with the instance.
@return [String]

@!attribute [rw] launch_template

The launch template for the instance.
@return [Types::LaunchTemplateSpecification]

@!attribute [rw] protected_from_scale_in

Indicates whether the instance is protected from termination by
Amazon EC2 Auto Scaling when scaling in.
@return [Boolean]

@!attribute [rw] weighted_capacity

The number of capacity units contributed by the instance based on
its instance type.

Valid Range: Minimum value of 1. Maximum value of 999.
@return [String]

@see docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/Instance AWS API Documentation

Constants

SENSITIVE