Class CfnDisk.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.CfnDisk.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDisk>
- Enclosing class:
- CfnDisk
@Stability(Stable)
public static final class CfnDisk.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDisk>
A fluent builder for
CfnDisk.-
Method Summary
Modifier and TypeMethodDescriptionAn array of add-ons for the disk.addOns(IResolvable addOns) An array of add-ons for the disk.availabilityZone(String availabilityZone) The AWS Region and Availability Zone location for the disk (for example,us-east-1a).build()static CfnDisk.BuilderThe name of the disk.location(IResolvable location) AWS::Lightsail::Disk.Location.location(CfnDisk.LocationProperty location) AWS::Lightsail::Disk.Location.The size of the disk in GB.An array of key-value pairs to apply to this resource.
-
Method Details
-
create
- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
- Returns:
- a new instance of
CfnDisk.Builder.
-
diskName
The name of the disk.- Parameters:
diskName- The name of the disk. This parameter is required.- Returns:
this
-
sizeInGb
The size of the disk in GB.- Parameters:
sizeInGb- The size of the disk in GB. This parameter is required.- Returns:
this
-
addOns
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.
- Parameters:
addOns- An array of add-ons for the disk. This parameter is required.- Returns:
this
-
addOns
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.
- Parameters:
addOns- An array of add-ons for the disk. This parameter is required.- Returns:
this
-
availabilityZone
The AWS Region and Availability Zone location for the disk (for example,us-east-1a).- Parameters:
availabilityZone- The AWS Region and Availability Zone location for the disk (for example,us-east-1a). This parameter is required.- Returns:
this
-
location
AWS::Lightsail::Disk.Location.- Parameters:
location-AWS::Lightsail::Disk.Location. This parameter is required.- Returns:
this
-
location
AWS::Lightsail::Disk.Location.- Parameters:
location-AWS::Lightsail::Disk.Location. This parameter is required.- Returns:
this
-
tags
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.- Parameters:
tags- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this
-
build
-