interface StateProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Lightsail.Mixins.CfnInstancePropsMixin.StateProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslightsail/mixins#CfnInstancePropsMixin_StateProperty |
Java | software.amazon.awscdk.mixins.preview.services.lightsail.mixins.CfnInstancePropsMixin.StateProperty |
Python | aws_cdk.mixins_preview.aws_lightsail.mixins.CfnInstancePropsMixin.StateProperty |
TypeScript | @aws-cdk/mixins-preview » aws_lightsail » mixins » 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 { mixins as lightsail_mixins } from '@aws-cdk/mixins-preview/aws-lightsail';
const stateProperty: lightsail_mixins.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