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

Class: Aws::AutoScaling::Types::AutoScalingInstanceDetails

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb

Overview

Describes an EC2 instance associated with an Auto Scaling group.

Instance Attribute Summary collapse

Instance Attribute Details

#auto_scaling_group_nameString

The name of the Auto Scaling group associated with the instance.

Returns:

  • (String)


448
449
450
451
452
453
454
455
456
457
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 448

class AutoScalingInstanceDetails < Struct.new(
  :instance_id,
  :auto_scaling_group_name,
  :availability_zone,
  :lifecycle_state,
  :health_status,
  :launch_configuration_name,
  :protected_from_scale_in)
  include Aws::Structure
end

#availability_zoneString

The Availability Zone for the instance.

Returns:

  • (String)


448
449
450
451
452
453
454
455
456
457
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 448

class AutoScalingInstanceDetails < Struct.new(
  :instance_id,
  :auto_scaling_group_name,
  :availability_zone,
  :lifecycle_state,
  :health_status,
  :launch_configuration_name,
  :protected_from_scale_in)
  include Aws::Structure
end

#health_statusString

The last reported health status of this 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)


448
449
450
451
452
453
454
455
456
457
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 448

class AutoScalingInstanceDetails < Struct.new(
  :instance_id,
  :auto_scaling_group_name,
  :availability_zone,
  :lifecycle_state,
  :health_status,
  :launch_configuration_name,
  :protected_from_scale_in)
  include Aws::Structure
end

#instance_idString

The ID of the instance.

Returns:

  • (String)


448
449
450
451
452
453
454
455
456
457
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 448

class AutoScalingInstanceDetails < Struct.new(
  :instance_id,
  :auto_scaling_group_name,
  :availability_zone,
  :lifecycle_state,
  :health_status,
  :launch_configuration_name,
  :protected_from_scale_in)
  include Aws::Structure
end

#launch_configuration_nameString

The launch configuration used to launch the instance. This value is not available if you attached the instance to the Auto Scaling group.

Returns:

  • (String)


448
449
450
451
452
453
454
455
456
457
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 448

class AutoScalingInstanceDetails < Struct.new(
  :instance_id,
  :auto_scaling_group_name,
  :availability_zone,
  :lifecycle_state,
  :health_status,
  :launch_configuration_name,
  :protected_from_scale_in)
  include Aws::Structure
end

#lifecycle_stateString

The lifecycle state for the instance. For more information, see Auto Scaling Lifecycle in the Auto Scaling User Guide.

Returns:

  • (String)


448
449
450
451
452
453
454
455
456
457
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 448

class AutoScalingInstanceDetails < Struct.new(
  :instance_id,
  :auto_scaling_group_name,
  :availability_zone,
  :lifecycle_state,
  :health_status,
  :launch_configuration_name,
  :protected_from_scale_in)
  include Aws::Structure
end

#protected_from_scale_inBoolean

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

Returns:

  • (Boolean)


448
449
450
451
452
453
454
455
456
457
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 448

class AutoScalingInstanceDetails < Struct.new(
  :instance_id,
  :auto_scaling_group_name,
  :availability_zone,
  :lifecycle_state,
  :health_status,
  :launch_configuration_name,
  :protected_from_scale_in)
  include Aws::Structure
end