Class CfnFleet.ContainerGroupsConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleet.ContainerGroupsConfigurationProperty>
- Enclosing interface:
CfnFleet.ContainerGroupsConfigurationProperty
CfnFleet.ContainerGroupsConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.connectionPortRange
(IResolvable connectionPortRange) Sets the value ofCfnFleet.ContainerGroupsConfigurationProperty.getConnectionPortRange()
connectionPortRange
(CfnFleet.ConnectionPortRangeProperty connectionPortRange) Sets the value ofCfnFleet.ContainerGroupsConfigurationProperty.getConnectionPortRange()
containerGroupDefinitionNames
(List<String> containerGroupDefinitionNames) containerGroupsPerInstance
(IResolvable containerGroupsPerInstance) containerGroupsPerInstance
(CfnFleet.ContainerGroupsPerInstanceProperty containerGroupsPerInstance)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
connectionPortRange
@Stability(Stable) public CfnFleet.ContainerGroupsConfigurationProperty.Builder connectionPortRange(IResolvable connectionPortRange) Sets the value ofCfnFleet.ContainerGroupsConfigurationProperty.getConnectionPortRange()
- Parameters:
connectionPortRange
- A set of ports to allow inbound traffic, including game clients, to connect to processes running in the container fleet. This parameter is required. 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.- Returns:
this
-
connectionPortRange
@Stability(Stable) public CfnFleet.ContainerGroupsConfigurationProperty.Builder connectionPortRange(CfnFleet.ConnectionPortRangeProperty connectionPortRange) Sets the value ofCfnFleet.ContainerGroupsConfigurationProperty.getConnectionPortRange()
- Parameters:
connectionPortRange
- A set of ports to allow inbound traffic, including game clients, to connect to processes running in the container fleet. This parameter is required. 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.- Returns:
this
-
containerGroupDefinitionNames
@Stability(Stable) public CfnFleet.ContainerGroupsConfigurationProperty.Builder containerGroupDefinitionNames(List<String> containerGroupDefinitionNames) - Parameters:
containerGroupDefinitionNames
- The list of container group definition names to deploy to a new container fleet. This parameter is required.- Returns:
this
-
containerGroupsPerInstance
@Stability(Stable) public CfnFleet.ContainerGroupsConfigurationProperty.Builder containerGroupsPerInstance(IResolvable containerGroupsPerInstance) - Parameters:
containerGroupsPerInstance
- The number of container groups per instance.- Returns:
this
-
containerGroupsPerInstance
@Stability(Stable) public CfnFleet.ContainerGroupsConfigurationProperty.Builder containerGroupsPerInstance(CfnFleet.ContainerGroupsPerInstanceProperty containerGroupsPerInstance) - Parameters:
containerGroupsPerInstance
- The number of container groups per instance.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFleet.ContainerGroupsConfigurationProperty>
- Returns:
- a new instance of
CfnFleet.ContainerGroupsConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-