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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnContainer.PortInfoPropertystatic final classAn 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.- See Also:
-
getProtocol
The protocol name for the open ports.Allowed values :
HTTP|HTTPS|TCP|UDP- See Also:
-
builder
-