Interface CfnDiskProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDiskProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-14T12:28:15.085Z")
@Stability(Stable)
public interface CfnDiskProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnDisk.
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.*;
CfnDiskProps cfnDiskProps = CfnDiskProps.builder()
.diskName("diskName")
.sizeInGb(123)
// the properties below are optional
.addOns(List.of(AddOnProperty.builder()
.addOnType("addOnType")
// the properties below are optional
.autoSnapshotAddOnRequest(AutoSnapshotAddOnProperty.builder()
.snapshotTimeOfDay("snapshotTimeOfDay")
.build())
.status("status")
.build()))
.availabilityZone("availabilityZone")
.location(LocationProperty.builder()
.availabilityZone("availabilityZone")
.regionName("regionName")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDiskPropsstatic final classAn implementation forCfnDiskProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnDiskProps.Builderbuilder()default ObjectAn array of add-ons for the disk.default StringThe AWS Region and Availability Zone location for the disk (for example,us-east-1a).The name of the disk.default ObjectThe AWS Region and Availability Zone where the disk is located.The size of the disk in GB.getTags()An array of key-value pairs to apply to this resource.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDiskName
The name of the disk.- See Also:
-
getSizeInGb
The size of the disk in GB.- See Also:
-
getAddOns
An array of add-ons for the disk.If the disk has an add-on enabled when performing a delete disk request, the add-on is automatically disabled before the disk is deleted.
- See Also:
-
getAvailabilityZone
The AWS Region and Availability Zone location for the disk (for example,us-east-1a).- See Also:
-
getLocation
The AWS Region and Availability Zone where the disk is located.- See Also:
-
getTags
An array of key-value pairs to apply to this resource.For more information, see Tag in the AWS CloudFormation User Guide .
The
ValueofTagsis optional for Lightsail resources.- See Also:
-
builder
- Returns:
- a
CfnDiskProps.BuilderofCfnDiskProps
-