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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnInstance.StateProperty
static final class
An implementation forCfnInstance.StateProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCode
The status code of the instance. -
getName
The state of the instance (for example,running
orpending
). -
builder
- Returns:
- a
CfnInstance.StateProperty.Builder
ofCfnInstance.StateProperty
-