Interface CfnContainer.PortInfoProperty
- All Superinterfaces:
- software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
- CfnContainer.PortInfoProperty.Jsii$Proxy
- Enclosing class:
- CfnContainer
@Stability(Stable)
public static interface CfnContainer.PortInfoProperty
extends software.amazon.jsii.JsiiSerializable
PortInfo is a property of the Container property. It describes the ports to open and the protocols to use for a container on a Amazon Lightsail container service.
 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.*;
 PortInfoProperty portInfoProperty = PortInfoProperty.builder()
         .port("port")
         .protocol("protocol")
         .build();
 - 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnContainer.PortInfoPropertystatic final classAn implementation forCfnContainer.PortInfoProperty
- 
Method SummaryMethods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Method Details- 
getPortThe open firewall ports of the container.
- 
getProtocolThe protocol name for the open ports.Allowed values : HTTP|HTTPS|TCP|UDP
- 
builder
 
-