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

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

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

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)


2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 2351

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

#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)


2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 2351

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

#instance_idString

The ID of the instance.

Returns:

  • (String)


2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 2351

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

#launch_configuration_nameString

The launch configuration associated with the instance.

Returns:

  • (String)


2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 2351

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

#launch_templateTypes::LaunchTemplateSpecification

The launch template for the instance.



2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 2351

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

#lifecycle_stateString

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

Returns:

  • (String)


2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 2351

class Instance < Struct.new(
  :instance_id,
  :availability_zone,
  :lifecycle_state,
  :health_status,
  :launch_configuration_name,
  :launch_template,
  :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)


2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 2351

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