Show / Hide Table of Contents

Class CfnInstance.StateProperty

Describes the current state of an instance.

Inheritance
object
CfnInstance.StateProperty
Implements
CfnInstance.IStateProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnInstance.StateProperty : CfnInstance.IStateProperty
Syntax (vb)
Public Class CfnInstance.StateProperty Implements CfnInstance.IStateProperty
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-state.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.EC2;

             var stateProperty = new StateProperty {
                 Code = "code",
                 Name = "name"
             };

Synopsis

Constructors

StateProperty()

Describes the current state of an instance.

Properties

Code

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

Name

The current state of the instance.

Constructors

StateProperty()

Describes the current state of an instance.

public StateProperty()
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-state.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.EC2;

             var stateProperty = new StateProperty {
                 Code = "code",
                 Name = "name"
             };

Properties

Code

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

public string? Code { get; set; }
Property Value

string

Remarks

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.

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-state.html#cfn-ec2-instance-state-code

    Name

    The current state of the instance.

    public string? Name { get; set; }
    Property Value

    string

    Remarks

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-state.html#cfn-ec2-instance-state-name

    Implements

    CfnInstance.IStateProperty
    Back to top Generated by DocFX