AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Describes the current state of an instance.
Namespace: Amazon.EC2.Model
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z
public class InstanceState
The InstanceState type exposes the following members
Name | Description | |
---|---|---|
InstanceState() |
Name | Type | Description | |
---|---|---|---|
Code | System.Int32 |
Gets and sets the property 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:
You can ignore the high byte value by zeroing out all of the bits above 2^8 or 256 in decimal. |
|
Name | Amazon.EC2.InstanceStateName |
Gets and sets the property Name. The current state of the instance. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5