Interface CfnDiskMixinProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDiskMixinProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:20:01.096Z")
@Stability(Stable)
public interface CfnDiskMixinProps
extends software.amazon.jsii.JsiiSerializable
Properties for CfnDiskPropsMixin.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.lightsail.*;
CfnDiskMixinProps cfnDiskMixinProps = CfnDiskMixinProps.builder()
.addOns(List.of(AddOnProperty.builder()
.addOnType("addOnType")
.autoSnapshotAddOnRequest(AutoSnapshotAddOnProperty.builder()
.snapshotTimeOfDay("snapshotTimeOfDay")
.build())
.status("status")
.build()))
.availabilityZone("availabilityZone")
.diskName("diskName")
.location(LocationProperty.builder()
.availabilityZone("availabilityZone")
.regionName("regionName")
.build())
.sizeInGb(123)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDiskMixinPropsstatic final classAn implementation forCfnDiskMixinProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnDiskMixinProps.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).default StringThe name of the disk.default ObjectThe AWS Region and Availability Zone where the disk is located.default NumberThe 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
-
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.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDiskPropsMixin.AddOnProperty>- See Also:
-
getAvailabilityZone
The AWS Region and Availability Zone location for the disk (for example,us-east-1a).- See Also:
-
getDiskName
The name of the disk.- See Also:
-
getLocation
The AWS Region and Availability Zone where the disk is located.Returns union: either
IResolvableorCfnDiskPropsMixin.LocationProperty- See Also:
-
getSizeInGb
The size of the disk in GB.- 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
CfnDiskMixinProps.BuilderofCfnDiskMixinProps
-