Interface CfnInstance.StateProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnInstance.StateProperty.Jsii$Proxy
- Enclosing class:
CfnInstance
@Stability(Stable)
public static interface CfnInstance.StateProperty
extends software.amazon.jsii.JsiiSerializable
State is a property of the AWS::Lightsail::Instance resource. It describes the status code and the state (for example, running ) of an instance.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lightsail.*;
StateProperty stateProperty = StateProperty.builder()
.code(123)
.name("name")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnInstance.StatePropertystatic final classAn implementation forCfnInstance.StateProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCode
The status code of the instance.- See Also:
-
getName
The state of the instance (for example,runningorpending).- See Also:
-
builder
- Returns:
- a
CfnInstance.StateProperty.BuilderofCfnInstance.StateProperty
-