@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:07.171Z") @Stability(value=Stable) public interface CfnDiskProps extends software.amazon.jsii.JsiiSerializable
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")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnDiskProps.Builder
A builder for
CfnDiskProps |
static class |
CfnDiskProps.Jsii$Proxy
An implementation for
CfnDiskProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnDiskProps.Builder |
builder() |
default Object |
getAddOns()
`AWS::Lightsail::Disk.AddOns`.
|
default String |
getAvailabilityZone()
`AWS::Lightsail::Disk.AvailabilityZone`.
|
String |
getDiskName()
`AWS::Lightsail::Disk.DiskName`.
|
Number |
getSizeInGb()
`AWS::Lightsail::Disk.SizeInGb`.
|
default List<CfnTag> |
getTags()
`AWS::Lightsail::Disk.Tags`.
|
@Stability(value=Stable) @Nullable default Object getAddOns()
@Stability(value=Stable) @Nullable default String getAvailabilityZone()
@Stability(value=Stable) @NotNull String getDiskName()
@Stability(value=Stable) @NotNull Number getSizeInGb()
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
@Stability(value=Stable) static CfnDiskProps.Builder builder()
CfnDiskProps.Builder of CfnDiskPropsCopyright © 2021. All rights reserved.