@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:07.171Z") @Stability(value=Stable) public class CfnDisk extends CfnResource implements IInspectable
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.*;
CfnDisk cfnDisk = CfnDisk.Builder.create(this, "MyCfnDisk")
.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 | Class and Description |
|---|---|
static interface |
CfnDisk.AddOnProperty
Example:
|
static interface |
CfnDisk.AutoSnapshotAddOnProperty
Example:
|
static class |
CfnDisk.Builder
A fluent builder for
CfnDisk. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnDisk(software.constructs.Construct scope,
String id,
CfnDiskProps props)
Create a new `AWS::Lightsail::Disk`.
|
protected |
CfnDisk(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDisk(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAddOns()
`AWS::Lightsail::Disk.AddOns`.
|
String |
getAttrAttachedTo() |
String |
getAttrAttachmentState() |
String |
getAttrDiskArn() |
Number |
getAttrIops() |
IResolvable |
getAttrIsAttached() |
String |
getAttrPath() |
String |
getAttrResourceType() |
String |
getAttrState() |
String |
getAttrSupportCode() |
String |
getAvailabilityZone()
`AWS::Lightsail::Disk.AvailabilityZone`.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDiskName()
`AWS::Lightsail::Disk.DiskName`.
|
Number |
getSizeInGb()
`AWS::Lightsail::Disk.SizeInGb`.
|
TagManager |
getTags()
`AWS::Lightsail::Disk.Tags`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAddOns(IResolvable value)
`AWS::Lightsail::Disk.AddOns`.
|
void |
setAddOns(List<Object> value)
`AWS::Lightsail::Disk.AddOns`.
|
void |
setAvailabilityZone(String value)
`AWS::Lightsail::Disk.AvailabilityZone`.
|
void |
setDiskName(String value)
`AWS::Lightsail::Disk.DiskName`.
|
void |
setSizeInGb(Number value)
`AWS::Lightsail::Disk.SizeInGb`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnDisk(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDisk(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnDisk(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnDiskProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @Nullable public Object getAddOns()
@Stability(value=Stable)
public void setAddOns(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setAddOns(@Nullable
List<Object> value)
@Stability(value=Stable) @NotNull public String getAttrAttachedTo()
@Stability(value=Stable) @NotNull public String getAttrAttachmentState()
@Stability(value=Stable) @NotNull public String getAttrDiskArn()
@Stability(value=Stable) @NotNull public Number getAttrIops()
@Stability(value=Stable) @NotNull public IResolvable getAttrIsAttached()
@Stability(value=Stable) @NotNull public String getAttrPath()
@Stability(value=Stable) @NotNull public String getAttrResourceType()
@Stability(value=Stable) @NotNull public String getAttrState()
@Stability(value=Stable) @NotNull public String getAttrSupportCode()
@Stability(value=Stable) @Nullable public String getAvailabilityZone()
@Stability(value=Stable)
public void setAvailabilityZone(@Nullable
String value)
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getDiskName()
@Stability(value=Stable)
public void setDiskName(@NotNull
String value)
@Stability(value=Stable) @NotNull public Number getSizeInGb()
@Stability(value=Stable)
public void setSizeInGb(@NotNull
Number value)
@Stability(value=Stable) @NotNull public TagManager getTags()
Copyright © 2021. All rights reserved.