Class CfnInstanceSnapshotProps
Properties for defining a CfnInstanceSnapshot
.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Lightsail
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnInstanceSnapshotProps : ICfnInstanceSnapshotProps
Syntax (vb)
Public Class CfnInstanceSnapshotProps Implements ICfnInstanceSnapshotProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lightsail;
var cfnInstanceSnapshotProps = new CfnInstanceSnapshotProps {
InstanceName = "instanceName",
InstanceSnapshotName = "instanceSnapshotName",
// the properties below are optional
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
CfnInstanceSnapshotProps() | Properties for defining a |
Properties
InstanceName | The name the user gave the instance ( |
InstanceSnapshotName | The name of the snapshot. |
Tags | The tag keys and optional values for the resource. |
Constructors
CfnInstanceSnapshotProps()
Properties for defining a CfnInstanceSnapshot
.
public CfnInstanceSnapshotProps()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lightsail;
var cfnInstanceSnapshotProps = new CfnInstanceSnapshotProps {
InstanceName = "instanceName",
InstanceSnapshotName = "instanceSnapshotName",
// the properties below are optional
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Properties
InstanceName
The name the user gave the instance ( Amazon_Linux_2023-1
).
public string InstanceName { get; set; }
Property Value
Remarks
InstanceSnapshotName
The name of the snapshot.
public string InstanceSnapshotName { get; set; }
Property Value
Remarks
Tags
The tag keys and optional values for the resource.
public ICfnTag[]? Tags { get; set; }
Property Value
ICfnTag[]
Remarks
For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide .