Interface CfnContainerGroupDefinition.PortConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnContainerGroupDefinition.PortConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnContainerGroupDefinition
@Stability(Stable)
public static interface CfnContainerGroupDefinition.PortConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
Defines the ports on a container.
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.*;
PortConfigurationProperty portConfigurationProperty = PortConfigurationProperty.builder()
.containerPortRanges(List.of(ContainerPortRangeProperty.builder()
.fromPort(123)
.protocol("protocol")
.toPort(123)
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnContainerGroupDefinition.PortConfigurationPropertystatic final classAn implementation forCfnContainerGroupDefinition.PortConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Specifies one or more ranges of ports on a container.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContainerPortRanges
Specifies one or more ranges of ports on a container.- See Also:
-
builder
-