@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:07.174Z") @Stability(value=Stable) public interface CfnInstanceProps 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.*;
CfnInstanceProps cfnInstanceProps = CfnInstanceProps.builder()
.blueprintId("blueprintId")
.bundleId("bundleId")
.instanceName("instanceName")
// 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")
.hardware(HardwareProperty.builder()
.cpuCount(123)
.disks(List.of(DiskProperty.builder()
.diskName("diskName")
.path("path")
// the properties below are optional
.attachedTo("attachedTo")
.attachmentState("attachmentState")
.iops(123)
.isSystemDisk(false)
.sizeInGb("sizeInGb")
.build()))
.ramSizeInGb(123)
.build())
.keyPairName("keyPairName")
.networking(NetworkingProperty.builder()
.ports(List.of(PortProperty.builder()
.accessDirection("accessDirection")
.accessFrom("accessFrom")
.accessType("accessType")
.cidrListAliases(List.of("cidrListAliases"))
.cidrs(List.of("cidrs"))
.commonName("commonName")
.fromPort(123)
.ipv6Cidrs(List.of("ipv6Cidrs"))
.protocol("protocol")
.toPort(123)
.build()))
// the properties below are optional
.monthlyTransfer(123)
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.userData("userData")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnInstanceProps.Builder
A builder for
CfnInstanceProps |
static class |
CfnInstanceProps.Jsii$Proxy
An implementation for
CfnInstanceProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnInstanceProps.Builder |
builder() |
default Object |
getAddOns()
`AWS::Lightsail::Instance.AddOns`.
|
default String |
getAvailabilityZone()
`AWS::Lightsail::Instance.AvailabilityZone`.
|
String |
getBlueprintId()
`AWS::Lightsail::Instance.BlueprintId`.
|
String |
getBundleId()
`AWS::Lightsail::Instance.BundleId`.
|
default Object |
getHardware()
`AWS::Lightsail::Instance.Hardware`.
|
String |
getInstanceName()
`AWS::Lightsail::Instance.InstanceName`.
|
default String |
getKeyPairName()
`AWS::Lightsail::Instance.KeyPairName`.
|
default Object |
getNetworking()
`AWS::Lightsail::Instance.Networking`.
|
default List<CfnTag> |
getTags()
`AWS::Lightsail::Instance.Tags`.
|
default String |
getUserData()
`AWS::Lightsail::Instance.UserData`.
|
@Stability(value=Stable) @Nullable default Object getAddOns()
@Stability(value=Stable) @Nullable default String getAvailabilityZone()
@Stability(value=Stable) @NotNull String getBlueprintId()
@Stability(value=Stable) @NotNull String getBundleId()
@Stability(value=Stable) @Nullable default Object getHardware()
@Stability(value=Stable) @NotNull String getInstanceName()
@Stability(value=Stable) @Nullable default String getKeyPairName()
@Stability(value=Stable) @Nullable default Object getNetworking()
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
@Stability(value=Stable) @Nullable default String getUserData()
@Stability(value=Stable) static CfnInstanceProps.Builder builder()
CfnInstanceProps.Builder of CfnInstancePropsCopyright © 2021. All rights reserved.