Skip to content
v2.275.0

CfnInstanceSnapshotProps Struct ​

Properties for defining a CfnInstanceSnapshot.

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 cfnInstanceSnapshotProps: lightsail.CfnInstanceSnapshotProps = {
  instanceName: 'instanceName',
  instanceSnapshotName: 'instanceSnapshotName',

  // the properties below are optional
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties ​

instanceNamestringinstance_namestrinstanceNameStringInstanceNamestringInstanceName*stringrequired#
The name the user gave the instance ( `Amazon_Linux_2023-1` ).
instanceSnapshotNamestringinstance_snapshot_namestrinstanceSnapshotNameStringInstanceSnapshotNamestringInstanceSnapshotName*stringrequired#
The name of the snapshot.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
The tag keys and optional values for the resource.

For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide .