Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
Documentation
data InstanceState Source #
The description of the current state of an instance.
See: newInstanceState
smart constructor.
InstanceState' | |
|
Instances
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.