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
This data type is used with the Amazon GameLift containers feature, which is currently in public preview..
A set of one or more port numbers that can be opened on the container.
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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnContainerGroupDefinition.ContainerPortRangeProperty
static final class
An 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
-