Interface CfnInstance.NetworkingProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnInstance.NetworkingProperty.Jsii$Proxy
- Enclosing class:
CfnInstance
@Stability(Stable)
public static interface CfnInstance.NetworkingProperty
extends software.amazon.jsii.JsiiSerializable
Networking is a property of the AWS::Lightsail::Instance resource. It describes the public ports and the monthly amount of data transfer allocated for the instance.
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(MonthlyTransferProperty.builder()
.gbPerMonthAllocated("gbPerMonthAllocated")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnInstance.NetworkingPropertystatic final classAn implementation forCfnInstance.NetworkingProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPorts
An array of ports to open on the instance.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnInstance.PortProperty>- See Also:
-
getMonthlyTransfer
The monthly amount of data transfer, in GB, allocated for the instance.Returns union: either
IResolvableorCfnInstance.MonthlyTransferProperty- See Also:
-
builder
-