Interface CfnDiskProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDiskProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-09-11T18:01:18.346Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnDiskProps
static final class
An implementation forCfnDiskProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CfnDiskProps.Builder
builder()
default Object
An array of add-ons for the disk.default String
The AWS Region and Availability Zone location for the disk (for example,us-east-1a
).The name of the disk.default Object
The 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
Value
ofTags
is optional for Lightsail resources.- See Also:
-
builder
- Returns:
- a
CfnDiskProps.Builder
ofCfnDiskProps
-