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.Builder
The name of the disk.location
(IResolvable location) The AWS Region and Availability Zone where the disk is located.location
(CfnDisk.LocationProperty location) The AWS Region and Availability Zone where the disk is located.The size of the disk in GB.An array of key-value pairs to apply to this resource.
-
Method Details
-
create
@Stability(Stable) public static CfnDisk.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- 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
- See Also:
-
sizeInGb
The size of the disk in GB.- Parameters:
sizeInGb
- The size of the disk in GB. This parameter is required.- Returns:
this
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
location
The AWS Region and Availability Zone where the disk is located.- Parameters:
location
- The AWS Region and Availability Zone where the disk is located. This parameter is required.- Returns:
this
- See Also:
-
location
The AWS Region and Availability Zone where the disk is located.- Parameters:
location
- The AWS Region and Availability Zone where the disk is located. This parameter is required.- Returns:
this
- See Also:
-
tags
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.- Parameters:
tags
- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this
- See Also:
-
build
-