Class CfnContainerFleet.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainerFleet>
- Enclosing class:
CfnContainerFleet
CfnContainerFleet.-
Method Summary
Modifier and TypeMethodDescriptionbillingType(String billingType) Indicates whether to use On-Demand instances or Spot instances for this fleet.build()static CfnContainerFleet.BuilderdeploymentConfiguration(IResolvable deploymentConfiguration) Provides details about how to drain old tasks and replace them with new updated tasks.deploymentConfiguration(CfnContainerFleet.DeploymentConfigurationProperty deploymentConfiguration) Provides details about how to drain old tasks and replace them with new updated tasks.description(String description) A human-readable description of a fleet.fleetRoleArn(String fleetRoleArn) A unique identifier for an AWS IAM role that manages access to your AWS services.gameServerContainerGroupDefinitionName(String gameServerContainerGroupDefinitionName) The name of the container group definition that will be created per game server.gameServerContainerGroupsPerInstance(Number gameServerContainerGroupsPerInstance) The number of desired game server container groups per instance, a number between 1-5000.gameSessionCreationLimitPolicy(IResolvable gameSessionCreationLimitPolicy) A policy that limits the number of game sessions a player can create on the same fleet.gameSessionCreationLimitPolicy(CfnContainerFleet.GameSessionCreationLimitPolicyProperty gameSessionCreationLimitPolicy) A policy that limits the number of game sessions a player can create on the same fleet.instanceConnectionPortRange(IResolvable instanceConnectionPortRange) Defines the range of ports on the instance that allow inbound traffic to connect with containers in a fleet.instanceConnectionPortRange(CfnContainerFleet.ConnectionPortRangeProperty instanceConnectionPortRange) Defines the range of ports on the instance that allow inbound traffic to connect with containers in a fleet.instanceInboundPermissions(List<? extends Object> instanceInboundPermissions) A range of IP addresses and port settings that allow inbound traffic to connect to server processes on an Amazon GameLift server.instanceInboundPermissions(IResolvable instanceInboundPermissions) A range of IP addresses and port settings that allow inbound traffic to connect to server processes on an Amazon GameLift server.instanceType(String instanceType) The name of an EC2 instance type that is supported in Amazon GameLift.locations(IResolvable locations) logConfiguration(IResolvable logConfiguration) A policy the location and provider of logs from the fleet.logConfiguration(CfnContainerFleet.LogConfigurationProperty logConfiguration) A policy the location and provider of logs from the fleet.metricGroups(List<String> metricGroups) The name of an Amazon CloudWatch metric group.newGameSessionProtectionPolicy(String newGameSessionProtectionPolicy) A game session protection policy to apply to all game sessions hosted on instances in this fleet.perInstanceContainerGroupDefinitionName(String perInstanceContainerGroupDefinitionName) The name of the container group definition that will be created per instance.scalingPolicies(List<? extends Object> scalingPolicies) A list of rules that control how a fleet is scaled.scalingPolicies(IResolvable scalingPolicies) A list of rules that control how a fleet is scaled.An array of key-value pairs to apply to this resource.
-
Method Details
-
create
@Stability(Stable) public static CfnContainerFleet.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnContainerFleet.Builder.
-
fleetRoleArn
A unique identifier for an AWS IAM role that manages access to your AWS services.Create a role or look up a role's ARN from the IAM dashboard in the AWS Management Console.
- Parameters:
fleetRoleArn- A unique identifier for an AWS IAM role that manages access to your AWS services. This parameter is required.- Returns:
this- See Also:
-
billingType
Indicates whether to use On-Demand instances or Spot instances for this fleet.If empty, the default is ON_DEMAND. Both categories of instances use identical hardware and configurations based on the instance type selected for this fleet.
- Parameters:
billingType- Indicates whether to use On-Demand instances or Spot instances for this fleet. This parameter is required.- Returns:
this- See Also:
-
deploymentConfiguration
@Stability(Stable) public CfnContainerFleet.Builder deploymentConfiguration(IResolvable deploymentConfiguration) Provides details about how to drain old tasks and replace them with new updated tasks.- Parameters:
deploymentConfiguration- Provides details about how to drain old tasks and replace them with new updated tasks. This parameter is required.- Returns:
this- See Also:
-
deploymentConfiguration
@Stability(Stable) public CfnContainerFleet.Builder deploymentConfiguration(CfnContainerFleet.DeploymentConfigurationProperty deploymentConfiguration) Provides details about how to drain old tasks and replace them with new updated tasks.- Parameters:
deploymentConfiguration- Provides details about how to drain old tasks and replace them with new updated tasks. This parameter is required.- Returns:
this- See Also:
-
description
A human-readable description of a fleet.- Parameters:
description- A human-readable description of a fleet. This parameter is required.- Returns:
this- See Also:
-
gameServerContainerGroupDefinitionName
@Stability(Stable) public CfnContainerFleet.Builder gameServerContainerGroupDefinitionName(String gameServerContainerGroupDefinitionName) The name of the container group definition that will be created per game server.You must specify GAME_SERVER container group. You have the option to also specify one PER_INSTANCE container group.
- Parameters:
gameServerContainerGroupDefinitionName- The name of the container group definition that will be created per game server. This parameter is required.- Returns:
this- See Also:
-
gameServerContainerGroupsPerInstance
@Stability(Stable) public CfnContainerFleet.Builder gameServerContainerGroupsPerInstance(Number gameServerContainerGroupsPerInstance) The number of desired game server container groups per instance, a number between 1-5000.- Parameters:
gameServerContainerGroupsPerInstance- The number of desired game server container groups per instance, a number between 1-5000. This parameter is required.- Returns:
this- See Also:
-
gameSessionCreationLimitPolicy
@Stability(Stable) public CfnContainerFleet.Builder gameSessionCreationLimitPolicy(IResolvable gameSessionCreationLimitPolicy) A policy that limits the number of game sessions a player can create on the same fleet.This optional policy gives game owners control over how players can consume available game server resources. A resource creation policy makes the following statement: "An individual player can create a maximum number of new game sessions within a specified time period".
The policy is evaluated when a player tries to create a new game session. For example, assume you have a policy of 10 new game sessions and a time period of 60 minutes. On receiving a CreateGameSession request, Amazon GameLift checks that the player (identified by CreatorId) has created fewer than 10 game sessions in the past 60 minutes.
- Parameters:
gameSessionCreationLimitPolicy- A policy that limits the number of game sessions a player can create on the same fleet. This parameter is required.- Returns:
this- See Also:
-
gameSessionCreationLimitPolicy
@Stability(Stable) public CfnContainerFleet.Builder gameSessionCreationLimitPolicy(CfnContainerFleet.GameSessionCreationLimitPolicyProperty gameSessionCreationLimitPolicy) A policy that limits the number of game sessions a player can create on the same fleet.This optional policy gives game owners control over how players can consume available game server resources. A resource creation policy makes the following statement: "An individual player can create a maximum number of new game sessions within a specified time period".
The policy is evaluated when a player tries to create a new game session. For example, assume you have a policy of 10 new game sessions and a time period of 60 minutes. On receiving a CreateGameSession request, Amazon GameLift checks that the player (identified by CreatorId) has created fewer than 10 game sessions in the past 60 minutes.
- Parameters:
gameSessionCreationLimitPolicy- A policy that limits the number of game sessions a player can create on the same fleet. This parameter is required.- Returns:
this- See Also:
-
instanceConnectionPortRange
@Stability(Stable) public CfnContainerFleet.Builder instanceConnectionPortRange(IResolvable instanceConnectionPortRange) Defines the range of ports on the instance that allow inbound traffic to connect with containers in a fleet.- Parameters:
instanceConnectionPortRange- Defines the range of ports on the instance that allow inbound traffic to connect with containers in a fleet. This parameter is required.- Returns:
this- See Also:
-
instanceConnectionPortRange
@Stability(Stable) public CfnContainerFleet.Builder instanceConnectionPortRange(CfnContainerFleet.ConnectionPortRangeProperty instanceConnectionPortRange) Defines the range of ports on the instance that allow inbound traffic to connect with containers in a fleet.- Parameters:
instanceConnectionPortRange- Defines the range of ports on the instance that allow inbound traffic to connect with containers in a fleet. This parameter is required.- Returns:
this- See Also:
-
instanceInboundPermissions
@Stability(Stable) public CfnContainerFleet.Builder instanceInboundPermissions(IResolvable instanceInboundPermissions) A range of IP addresses and port settings that allow inbound traffic to connect to server processes on an Amazon GameLift server.- Parameters:
instanceInboundPermissions- A range of IP addresses and port settings that allow inbound traffic to connect to server processes on an Amazon GameLift server. This parameter is required.- Returns:
this- See Also:
-
instanceInboundPermissions
@Stability(Stable) public CfnContainerFleet.Builder instanceInboundPermissions(List<? extends Object> instanceInboundPermissions) A range of IP addresses and port settings that allow inbound traffic to connect to server processes on an Amazon GameLift server.- Parameters:
instanceInboundPermissions- A range of IP addresses and port settings that allow inbound traffic to connect to server processes on an Amazon GameLift server. This parameter is required.- Returns:
this- See Also:
-
instanceType
The name of an EC2 instance type that is supported in Amazon GameLift.A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift supports the following EC2 instance types. See Amazon EC2 Instance Types for detailed descriptions.
- Parameters:
instanceType- The name of an EC2 instance type that is supported in Amazon GameLift. This parameter is required.- Returns:
this- See Also:
-
locations
- Parameters:
locations- This parameter is required.- Returns:
this- See Also:
-
locations
- Parameters:
locations- This parameter is required.- Returns:
this- See Also:
-
logConfiguration
A policy the location and provider of logs from the fleet.- Parameters:
logConfiguration- A policy the location and provider of logs from the fleet. This parameter is required.- Returns:
this- See Also:
-
logConfiguration
@Stability(Stable) public CfnContainerFleet.Builder logConfiguration(CfnContainerFleet.LogConfigurationProperty logConfiguration) A policy the location and provider of logs from the fleet.- Parameters:
logConfiguration- A policy the location and provider of logs from the fleet. This parameter is required.- Returns:
this- See Also:
-
metricGroups
The name of an Amazon CloudWatch metric group.A metric group aggregates the metrics for all fleets in the group. Specify a string containing the metric group name. You can use an existing name or use a new name to create a new metric group. Currently, this parameter can have only one string.
- Parameters:
metricGroups- The name of an Amazon CloudWatch metric group. This parameter is required.- Returns:
this- See Also:
-
newGameSessionProtectionPolicy
@Stability(Stable) public CfnContainerFleet.Builder newGameSessionProtectionPolicy(String newGameSessionProtectionPolicy) A game session protection policy to apply to all game sessions hosted on instances in this fleet.When protected, active game sessions cannot be terminated during a scale-down event. If this parameter is not set, instances in this fleet default to no protection. You can change a fleet's protection policy to affect future game sessions on the fleet. You can also set protection for individual game sessions.
- Parameters:
newGameSessionProtectionPolicy- A game session protection policy to apply to all game sessions hosted on instances in this fleet. This parameter is required.- Returns:
this- See Also:
-
perInstanceContainerGroupDefinitionName
@Stability(Stable) public CfnContainerFleet.Builder perInstanceContainerGroupDefinitionName(String perInstanceContainerGroupDefinitionName) The name of the container group definition that will be created per instance.This field is optional if you specify GameServerContainerGroupDefinitionName.
- Parameters:
perInstanceContainerGroupDefinitionName- The name of the container group definition that will be created per instance. This parameter is required.- Returns:
this- See Also:
-
scalingPolicies
A list of rules that control how a fleet is scaled.- Parameters:
scalingPolicies- A list of rules that control how a fleet is scaled. This parameter is required.- Returns:
this- See Also:
-
scalingPolicies
@Stability(Stable) public CfnContainerFleet.Builder scalingPolicies(List<? extends Object> scalingPolicies) A list of rules that control how a fleet is scaled.- Parameters:
scalingPolicies- A list of rules that control how a fleet is scaled. This parameter is required.- Returns:
this- See Also:
-
tags
An array of key-value pairs to apply to this resource.- Parameters:
tags- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnContainerFleet>- Returns:
- a newly built instance of
CfnContainerFleet.
-