Interface CfnContainerGroupDefinition.ContainerPortRangeProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnContainerGroupDefinition.ContainerPortRangeProperty.Jsii$Proxy
- Enclosing class:
CfnContainerGroupDefinition
@Stability(Stable)
public static interface CfnContainerGroupDefinition.ContainerPortRangeProperty
extends software.amazon.jsii.JsiiSerializable
A set of one or more port numbers that can be opened on the container, and the supported network protocol.
Part of: ContainerPortConfiguration
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.gamelift.*;
ContainerPortRangeProperty containerPortRangeProperty = ContainerPortRangeProperty.builder()
.fromPort(123)
.protocol("protocol")
.toPort(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnContainerGroupDefinition.ContainerPortRangePropertystatic final classAn implementation forCfnContainerGroupDefinition.ContainerPortRangeProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()A starting value for the range of allowed port numbers.The network protocol that these ports support.An ending value for the range of allowed port numbers.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFromPort
A starting value for the range of allowed port numbers.- See Also:
-
getProtocol
The network protocol that these ports support.- See Also:
-
getToPort
An ending value for the range of allowed port numbers.Port numbers are end-inclusive. This value must be equal to or greater than
FromPort.- See Also:
-
builder
-