interface StateProperty
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.Lightsail.CfnInstance.StateProperty | 
|  Go | github.com/aws/aws-cdk-go/awscdk/v2/awslightsail#CfnInstance_StateProperty | 
|  Java | software.amazon.awscdk.services.lightsail.CfnInstance.StateProperty | 
|  Python | aws_cdk.aws_lightsail.CfnInstance.StateProperty | 
|  TypeScript | aws-cdk-lib»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 { aws_lightsail as lightsail } from 'aws-cdk-lib';
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, runningorpending). | 
code?
Type:
number
(optional)
The status code of the instance.
name?
Type:
string
(optional)
The state of the instance (for example, running or pending ).
