Interface CfnFleet.ContainerGroupsConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFleet.ContainerGroupsConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnFleet
Configuration details for a set of container groups, for use when creating a fleet with compute type CONTAINER
.
Used with: CreateFleet
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.*; ContainerGroupsConfigurationProperty containerGroupsConfigurationProperty = ContainerGroupsConfigurationProperty.builder() .connectionPortRange(ConnectionPortRangeProperty.builder() .fromPort(123) .toPort(123) .build()) .containerGroupDefinitionNames(List.of("containerGroupDefinitionNames")) // the properties below are optional .containerGroupsPerInstance(ContainerGroupsPerInstanceProperty.builder() .desiredReplicaContainerGroupsPerInstance(123) .maxReplicaContainerGroupsPerInstance(123) .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnFleet.ContainerGroupsConfigurationProperty
static final class
An implementation forCfnFleet.ContainerGroupsConfigurationProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
A set of ports to allow inbound traffic, including game clients, to connect to processes running in the container fleet.The list of container group definition names to deploy to a new container fleet.default Object
The number of container groups per instance.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getConnectionPortRange
A set of ports to allow inbound traffic, including game clients, to connect to processes running in the container fleet.Connection ports are dynamically mapped to container ports, which are assigned to individual processes running in a container. The connection port range must have enough ports to map to all container ports across a fleet instance. To calculate the minimum connection ports needed, use the following formula:
[Total number of container ports as defined for containers in the replica container group] * [Desired or calculated number of replica container groups per instance] + [Total number of container ports as defined for containers in the daemon container group]
As a best practice, double the minimum number of connection ports.
Use the fleet's
EC2InboundPermissions
property to control external access to connection ports. Set this property to the connection port numbers that you want to open access to. SeeIpPermission
for more details.- See Also:
-
getContainerGroupDefinitionNames
The list of container group definition names to deploy to a new container fleet.- See Also:
-
getContainerGroupsPerInstance
The number of container groups per instance.- See Also:
-
builder
-