Class CfnInstance.StateProperty
State
is a property of the AWS::Lightsail::Instance resource. It describes the status code and the state (for example, running
) of an instance.
Inheritance
System.Object
CfnInstance.StateProperty
Implements
Namespace: Amazon.CDK.AWS.Lightsail
Assembly: Amazon.CDK.AWS.Lightsail.dll
Syntax (csharp)
public class StateProperty : Object, CfnInstance.IStateProperty
Syntax (vb)
Public Class StateProperty
Inherits Object
Implements CfnInstance.IStateProperty
Remarks
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.Lightsail;
var stateProperty = new StateProperty {
Code = 123,
Name = "name"
};
Synopsis
Constructors
StateProperty() |
Properties
Code | The status code of the instance. |
Name | The state of the instance (for example, |
Constructors
StateProperty()
public StateProperty()
Properties
Code
The status code of the instance.
public Nullable<double> Code { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Name
The state of the instance (for example, running
or pending
).
public string Name { get; set; }
Property Value
System.String