You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::AutoScaling::Types::Instance

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Describes an EC2 instance.

Instance Attribute Summary collapse

Instance Attribute Details

#availability_zoneString

The Availability Zone in which the instance is running.

Returns:

  • (String)

    The Availability Zone in which the instance is running.

#health_statusString

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 Auto Scaling should terminate and replace it.

Returns:

  • (String)

    The last reported health status of the instance.

#instance_idString

The ID of the instance.

Returns:

  • (String)

    The ID of the instance.

#launch_configuration_nameString

The launch configuration associated with the instance.

Returns:

  • (String)

    The launch configuration associated with the instance.

#launch_templateTypes::LaunchTemplateSpecification

The launch template for the instance.

Returns:

#lifecycle_stateString

A description of the current lifecycle state. Note that the Quarantined state is not used.

Possible values:

  • Pending
  • Pending:Wait
  • Pending:Proceed
  • Quarantined
  • InService
  • Terminating
  • Terminating:Wait
  • Terminating:Proceed
  • Terminated
  • Detaching
  • Detached
  • EnteringStandby
  • Standby

Returns:

  • (String)

    A description of the current lifecycle state.

#protected_from_scale_inBoolean

Indicates whether the instance is protected from termination by Auto Scaling when scaling in.

Returns:

  • (Boolean)

    Indicates whether the instance is protected from termination by Auto Scaling when scaling in.