aws-cdk-lib.aws_lightsail.CfnInstance.StateProperty

interface StateProperty

LanguageType name
.NETAmazon.CDK.AWS.Lightsail.CfnInstance.StateProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslightsail#CfnInstance_StateProperty
Javasoftware.amazon.awscdk.services.lightsail.CfnInstance.StateProperty
Pythonaws_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

NameTypeDescription
code?numberThe status code of the instance.
name?stringThe 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 ).