interface StateProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Lightsail.CfnInstance.StateProperty |
Java | software.amazon.awscdk.services.lightsail.CfnInstance.StateProperty |
Python | aws_cdk.aws_lightsail.CfnInstance.StateProperty |
TypeScript | @aws-cdk/aws-lightsail » 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.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as lightsail from '@aws-cdk/aws-lightsail';
const stateProperty: lightsail.CfnInstance.StateProperty = {
code: 123,
name: 'name',
};
Properties
| Name | Type | Description |
|---|---|---|
| code? | number | The status code of the instance. |
| name? | string | The state of the instance (for example, running or pending ). |
code?
Type:
number
(optional)
The status code of the instance.
name?
Type:
string
(optional)
The state of the instance (for example, running or pending ).

.NET
Java
Python
TypeScript