Class: Aws::SnowDeviceManagement::Types::InstanceState

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

Overview

The description of the current state of an instance.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#codeInteger

The state of the instance as a 16-bit unsigned integer.

The high byte is all of the bits between 28 and (216)-1, which equals decimal values between 256 and 65,535. These numerical values are used for internal purposes and should be ignored.

The low byte is all of the bits between 20 and (28)-1, which equals decimal values between 0 and 255.

The valid values for the instance state code are all in the range of the low byte. These values are:

  • 0 : pending

  • 16 : running

  • 32 : shutting-down

  • 48 : terminated

  • 64 : stopping

  • 80 : stopped

You can ignore the high byte value by zeroing out all of the bits above 28 or 256 in decimal.

Returns:

  • (Integer)


639
640
641
642
643
644
# File 'gems/aws-sdk-snowdevicemanagement/lib/aws-sdk-snowdevicemanagement/types.rb', line 639

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

#nameString

The current state of the instance.

Returns:

  • (String)


639
640
641
642
643
644
# File 'gems/aws-sdk-snowdevicemanagement/lib/aws-sdk-snowdevicemanagement/types.rb', line 639

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