@Stability(value=Stable)
public static interface CfnInstance.BlockDeviceMappingProperty
extends software.amazon.jsii.JsiiSerializable
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
BlockDeviceMappingProperty blockDeviceMappingProperty = BlockDeviceMappingProperty.builder()
.deviceName("deviceName")
// the properties below are optional
.ebs(EbsProperty.builder()
.deleteOnTermination(false)
.encrypted(false)
.iops(123)
.kmsKeyId("kmsKeyId")
.snapshotId("snapshotId")
.volumeSize(123)
.volumeType("volumeType")
.build())
.noDevice(NoDeviceProperty.builder().build())
.virtualName("virtualName")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnInstance.BlockDeviceMappingProperty.Builder
A builder for
CfnInstance.BlockDeviceMappingProperty |
static class |
CfnInstance.BlockDeviceMappingProperty.Jsii$Proxy
An implementation for
CfnInstance.BlockDeviceMappingProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnInstance.BlockDeviceMappingProperty.Builder |
builder() |
String |
getDeviceName()
`CfnInstance.BlockDeviceMappingProperty.DeviceName`.
|
default Object |
getEbs()
`CfnInstance.BlockDeviceMappingProperty.Ebs`.
|
default Object |
getNoDevice()
`CfnInstance.BlockDeviceMappingProperty.NoDevice`.
|
default String |
getVirtualName()
`CfnInstance.BlockDeviceMappingProperty.VirtualName`.
|
@Stability(value=Stable) @NotNull String getDeviceName()
@Stability(value=Stable) @Nullable default Object getEbs()
@Stability(value=Stable) @Nullable default Object getNoDevice()
@Stability(value=Stable) @Nullable default String getVirtualName()
@Stability(value=Stable) static CfnInstance.BlockDeviceMappingProperty.Builder builder()
Copyright © 2021. All rights reserved.