interface StateProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.Lightsail.CfnInstancePropsMixin.StateProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awslightsail#CfnInstancePropsMixin_StateProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.lightsail.CfnInstancePropsMixin.StateProperty |
Python | aws_cdk.cfn_property_mixins.aws_lightsail.CfnInstancePropsMixin.StateProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_lightsail » CfnInstancePropsMixin » 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/cfn-property-mixins';
const stateProperty: lightsail.CfnInstancePropsMixin.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
Go
Java
Python
TypeScript