Class CfnDiskSnapshotProps
Properties for defining a CfnDiskSnapshot.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Lightsail
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDiskSnapshotProps : ICfnDiskSnapshotProps
Syntax (vb)
Public Class CfnDiskSnapshotProps Implements ICfnDiskSnapshotProps
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 cfnDiskSnapshotProps = new CfnDiskSnapshotProps {
DiskName = "diskName",
DiskSnapshotName = "diskSnapshotName",
// the properties below are optional
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
| CfnDiskSnapshotProps() | Properties for defining a |
Properties
| DiskName | The unique name of the disk. |
| DiskSnapshotName | The name of the disk snapshot ( |
| Tags | The tag keys and optional values for the resource. |
Constructors
CfnDiskSnapshotProps()
Properties for defining a CfnDiskSnapshot.
public CfnDiskSnapshotProps()
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 cfnDiskSnapshotProps = new CfnDiskSnapshotProps {
DiskName = "diskName",
DiskSnapshotName = "diskSnapshotName",
// the properties below are optional
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Properties
DiskName
The unique name of the disk.
public string DiskName { get; set; }
Property Value
Remarks
DiskSnapshotName
The name of the disk snapshot ( my-disk-snapshot ).
public string DiskSnapshotName { 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 .