amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.Types.InstanceState

Description

 
Synopsis

Documentation

data InstanceState Source #

Describes the current state of an instance.

See: newInstanceState smart constructor.

Constructors

InstanceState' 

Fields

  • name :: InstanceStateName

    The current state of the instance.

  • code :: 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 instance-state-code will all be in the range of the low byte and they 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
FromXML InstanceState Source # 
Instance details

Defined in Amazonka.EC2.Types.InstanceState

Generic InstanceState Source # 
Instance details

Defined in Amazonka.EC2.Types.InstanceState

Associated Types

type Rep InstanceState :: Type -> Type #

Read InstanceState Source # 
Instance details

Defined in Amazonka.EC2.Types.InstanceState

Show InstanceState Source # 
Instance details

Defined in Amazonka.EC2.Types.InstanceState

NFData InstanceState Source # 
Instance details

Defined in Amazonka.EC2.Types.InstanceState

Methods

rnf :: InstanceState -> () #

Eq InstanceState Source # 
Instance details

Defined in Amazonka.EC2.Types.InstanceState

Hashable InstanceState Source # 
Instance details

Defined in Amazonka.EC2.Types.InstanceState

type Rep InstanceState Source # 
Instance details

Defined in Amazonka.EC2.Types.InstanceState

type Rep InstanceState = D1 ('MetaData "InstanceState" "Amazonka.EC2.Types.InstanceState" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "InstanceState'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 InstanceStateName) :*: S1 ('MetaSel ('Just "code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newInstanceState 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 instance-state-code will all be in the range of the low byte and they 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 InstanceStateName Source #

The current state of the instance.

instanceState_code :: Lens' InstanceState 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 instance-state-code will all be in the range of the low byte and they 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.