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(123)
         .build();
 - 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnInstance.NetworkingPropertystatic final classAn implementation forCfnInstance.NetworkingProperty
- 
Method SummaryMethods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Method Details- 
getPortsAn array of ports to open on the instance.
- 
getMonthlyTransferThe monthly amount of data transfer, in GB, allocated for the instance.
- 
builder
 
-