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: