Interface CfnContainerGroupDefinitionPropsMixin.ContainerPortRangeProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnContainerGroupDefinitionPropsMixin.ContainerPortRangeProperty.Jsii$Proxy
- Enclosing class:
CfnContainerGroupDefinitionPropsMixin
@Stability(Stable)
public static interface CfnContainerGroupDefinitionPropsMixin.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.cfnpropertymixins.services.gamelift.*;
ContainerPortRangeProperty containerPortRangeProperty = ContainerPortRangeProperty.builder()
.fromPort(123)
.protocol("protocol")
.toPort(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnContainerGroupDefinitionPropsMixin.ContainerPortRangeProperty -
Method Summary
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
@Stability(Stable) static CfnContainerGroupDefinitionPropsMixin.ContainerPortRangeProperty.Builder builder()
-