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 Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnContainer.PortInfoProperty
static final class
An implementation forCfnContainer.PortInfoProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPort
The open firewall ports of the container. -
getProtocol
The protocol name for the open ports.Allowed values :
HTTP
|HTTPS
|TCP
|UDP
-
builder
-