@Stability(value=Stable)
public static interface CfnContainer.PortInfoProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnContainer.PortInfoProperty.Builder
A builder for
CfnContainer.PortInfoProperty |
static class |
CfnContainer.PortInfoProperty.Jsii$Proxy
An implementation for
CfnContainer.PortInfoProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnContainer.PortInfoProperty.Builder |
builder() |
default String |
getPort()
The open firewall ports of the container.
|
default String |
getProtocol()
The protocol name for the open ports.
|
@Stability(value=Stable) @Nullable default String getPort()
@Stability(value=Stable) @Nullable default String getProtocol()
Allowed values : HTTP | HTTPS | TCP | UDP
@Stability(value=Stable) static CfnContainer.PortInfoProperty.Builder builder()
Copyright © 2022. All rights reserved.