Skip to content
v2.275.0

StateProperty Struct ​

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 ​

ts
// 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 ​

codeoptionalnumbercodeoptionalint | floatcodeoptionalNumberCodeoptionaldoubleCodeoptional*float64#
The status code of the instance.
nameoptionalstringnameoptionalstrnameoptionalStringNameoptionalstringNameoptional*string#
The state of the instance (for example, `running` or `pending` ).