Class: Aws::EC2::Types::InstanceState
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::InstanceState
- Defined in:
- gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb
Overview
Describes the current state of an instance.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#code ⇒ Integer
The state of the instance as a 16-bit unsigned integer.
-
#name ⇒ String
The current state of the instance.
Instance Attribute Details
#code ⇒ Integer
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 instance-state-code will all be in the range of the low byte and they are:
0:pending16:running32:shutting-down48:terminated64:stopping80:stopped
You can ignore the high byte value by zeroing out all of the bits above 28 or 256 in decimal.
49256 49257 49258 49259 49260 49261 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 49256 class InstanceState < Struct.new( :code, :name) SENSITIVE = [] include Aws::Structure end |
#name ⇒ String
The current state of the instance.
49256 49257 49258 49259 49260 49261 |
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 49256 class InstanceState < Struct.new( :code, :name) SENSITIVE = [] include Aws::Structure end |