Interface CfnDiskSnapshotProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDiskSnapshotProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:39.731Z")
@Stability(Stable)
public interface CfnDiskSnapshotProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnDiskSnapshot.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lightsail.*;
CfnDiskSnapshotProps cfnDiskSnapshotProps = CfnDiskSnapshotProps.builder()
.diskName("diskName")
.diskSnapshotName("diskSnapshotName")
// the properties below are optional
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDiskSnapshotPropsstatic final classAn implementation forCfnDiskSnapshotProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnDiskSnapshotProps.Builderbuilder()The unique name of the disk.The name of the disk snapshot (my-disk-snapshot).getTags()The tag keys and optional values for the resource.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDiskName
The unique name of the disk.- See Also:
-
getDiskSnapshotName
The name of the disk snapshot (my-disk-snapshot).- See Also:
-
getTags
The tag keys and optional values for the resource.For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide .
- See Also:
-
builder
- Returns:
- a
CfnDiskSnapshotProps.BuilderofCfnDiskSnapshotProps
-