libZSservicesZSamazonka-snow-device-managementZSamazonka-snow-device-management
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.SnowDeviceManagement.Types.InstanceState

Description

 
Synopsis

Documentation

data InstanceState Source #

The description of the current state of an instance.

See: newInstanceState smart constructor.

Constructors

InstanceState' 

Fields

  • name :: Maybe InstanceStateName

    The current state of the instance.

  • code :: Maybe Int

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

    The high byte is all of the bits between 2^8 and (2^16)-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 2^0 and (2^8)-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 2^8 or 256 in decimal.

Instances

Instances details
Eq InstanceState Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.Types.InstanceState

Read InstanceState Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.Types.InstanceState

Show InstanceState Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.Types.InstanceState

Generic InstanceState Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.Types.InstanceState

Associated Types

type Rep InstanceState :: Type -> Type #

NFData InstanceState Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.Types.InstanceState

Methods

rnf :: InstanceState -> () #

Hashable InstanceState Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.Types.InstanceState

FromJSON InstanceState Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.Types.InstanceState

type Rep InstanceState Source # 
Instance details

Defined in Amazonka.SnowDeviceManagement.Types.InstanceState

type Rep InstanceState = D1 ('MetaData "InstanceState" "Amazonka.SnowDeviceManagement.Types.InstanceState" "libZSservicesZSamazonka-snow-device-managementZSamazonka-snow-device-management" 'False) (C1 ('MetaCons "InstanceState'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstanceStateName)) :*: S1 ('MetaSel ('Just "code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))

newInstanceState :: InstanceState Source #

Create a value of InstanceState with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:name:InstanceState', instanceState_name - The current state of the instance.

$sel:code:InstanceState', instanceState_code - The state of the instance as a 16-bit unsigned integer.

The high byte is all of the bits between 2^8 and (2^16)-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 2^0 and (2^8)-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 2^8 or 256 in decimal.

instanceState_name :: Lens' InstanceState (Maybe InstanceStateName) Source #

The current state of the instance.

instanceState_code :: Lens' InstanceState (Maybe Int) Source #

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

The high byte is all of the bits between 2^8 and (2^16)-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 2^0 and (2^8)-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 2^8 or 256 in decimal.