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

Class: Aws::EC2::Types::InstanceState

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

Overview

Describes the current state of an instance.

Instance Attribute Summary collapse

Instance Attribute Details

#codeInteger

The low byte represents the state. The high byte is an opaque internal value and should be ignored.

  • 0: pending

  • 16: running

  • 32: shutting-down

  • 48: terminated

  • 64: stopping

  • 80: stopped

Returns:

  • (Integer)


15740
15741
15742
15743
15744
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 15740

class InstanceState < Struct.new(
  :code,
  :name)
  include Aws::Structure
end

#nameString

The current state of the instance.

Returns:

  • (String)


15740
15741
15742
15743
15744
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 15740

class InstanceState < Struct.new(
  :code,
  :name)
  include Aws::Structure
end