@Stability(value=Stable)
public static interface CfnInstance.NetworkingProperty
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.*;
NetworkingProperty networkingProperty = 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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnInstance.NetworkingProperty.Builder
A builder for
CfnInstance.NetworkingProperty |
static class |
CfnInstance.NetworkingProperty.Jsii$Proxy
An implementation for
CfnInstance.NetworkingProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnInstance.NetworkingProperty.Builder |
builder() |
default Number |
getMonthlyTransfer()
The monthly amount of data transfer, in GB, allocated for the instance.
|
Object |
getPorts()
An array of ports to open on the instance.
|
@Stability(value=Stable) @NotNull Object getPorts()
@Stability(value=Stable) @Nullable default Number getMonthlyTransfer()
@Stability(value=Stable) static CfnInstance.NetworkingProperty.Builder builder()
Copyright © 2022. All rights reserved.