Class CfnContainerFleetMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.gamelift.CfnContainerFleetMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainerFleetMixinProps>
- Enclosing interface:
CfnContainerFleetMixinProps
@Stability(Stable)
public static final class CfnContainerFleetMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContainerFleetMixinProps>
A builder for
CfnContainerFleetMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbillingType(String billingType) Sets the value ofCfnContainerFleetMixinProps.getBillingType()build()Builds the configured instance.deploymentConfiguration(CfnContainerFleetPropsMixin.DeploymentConfigurationProperty deploymentConfiguration) Sets the value ofCfnContainerFleetMixinProps.getDeploymentConfiguration()deploymentConfiguration(IResolvable deploymentConfiguration) Sets the value ofCfnContainerFleetMixinProps.getDeploymentConfiguration()description(String description) Sets the value ofCfnContainerFleetMixinProps.getDescription()fleetRoleArn(String fleetRoleArn) Sets the value ofCfnContainerFleetMixinProps.getFleetRoleArn()gameServerContainerGroupDefinitionName(String gameServerContainerGroupDefinitionName) Sets the value ofCfnContainerFleetMixinProps.getGameServerContainerGroupDefinitionName()gameServerContainerGroupsPerInstance(Number gameServerContainerGroupsPerInstance) Sets the value ofCfnContainerFleetMixinProps.getGameServerContainerGroupsPerInstance()gameSessionCreationLimitPolicy(CfnContainerFleetPropsMixin.GameSessionCreationLimitPolicyProperty gameSessionCreationLimitPolicy) Sets the value ofCfnContainerFleetMixinProps.getGameSessionCreationLimitPolicy()gameSessionCreationLimitPolicy(IResolvable gameSessionCreationLimitPolicy) Sets the value ofCfnContainerFleetMixinProps.getGameSessionCreationLimitPolicy()instanceConnectionPortRange(CfnContainerFleetPropsMixin.ConnectionPortRangeProperty instanceConnectionPortRange) Sets the value ofCfnContainerFleetMixinProps.getInstanceConnectionPortRange()instanceConnectionPortRange(IResolvable instanceConnectionPortRange) Sets the value ofCfnContainerFleetMixinProps.getInstanceConnectionPortRange()instanceInboundPermissions(List<? extends Object> instanceInboundPermissions) Sets the value ofCfnContainerFleetMixinProps.getInstanceInboundPermissions()instanceInboundPermissions(IResolvable instanceInboundPermissions) Sets the value ofCfnContainerFleetMixinProps.getInstanceInboundPermissions()instanceType(String instanceType) Sets the value ofCfnContainerFleetMixinProps.getInstanceType()Sets the value ofCfnContainerFleetMixinProps.getLocations()locations(IResolvable locations) Sets the value ofCfnContainerFleetMixinProps.getLocations()logConfiguration(CfnContainerFleetPropsMixin.LogConfigurationProperty logConfiguration) Sets the value ofCfnContainerFleetMixinProps.getLogConfiguration()logConfiguration(IResolvable logConfiguration) Sets the value ofCfnContainerFleetMixinProps.getLogConfiguration()metricGroups(List<String> metricGroups) Sets the value ofCfnContainerFleetMixinProps.getMetricGroups()newGameSessionProtectionPolicy(String newGameSessionProtectionPolicy) Sets the value ofCfnContainerFleetMixinProps.getNewGameSessionProtectionPolicy()perInstanceContainerGroupDefinitionName(String perInstanceContainerGroupDefinitionName) Sets the value ofCfnContainerFleetMixinProps.getPerInstanceContainerGroupDefinitionName()playerGatewayMode(String playerGatewayMode) Sets the value ofCfnContainerFleetMixinProps.getPlayerGatewayMode()scalingPolicies(List<? extends Object> scalingPolicies) Sets the value ofCfnContainerFleetMixinProps.getScalingPolicies()scalingPolicies(IResolvable scalingPolicies) Sets the value ofCfnContainerFleetMixinProps.getScalingPolicies()Sets the value ofCfnContainerFleetMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
billingType
Sets the value ofCfnContainerFleetMixinProps.getBillingType()- Parameters:
billingType- Indicates whether the fleet uses On-Demand or Spot instances for this fleet. Learn more about when to use On-Demand versus Spot Instances . You can't update this fleet property.By default, this property is set to
ON_DEMAND.- Returns:
this
-
deploymentConfiguration
@Stability(Stable) public CfnContainerFleetMixinProps.Builder deploymentConfiguration(IResolvable deploymentConfiguration) Sets the value ofCfnContainerFleetMixinProps.getDeploymentConfiguration()- Parameters:
deploymentConfiguration- Set of rules for processing a deployment for a container fleet update.- Returns:
this
-
deploymentConfiguration
@Stability(Stable) public CfnContainerFleetMixinProps.Builder deploymentConfiguration(CfnContainerFleetPropsMixin.DeploymentConfigurationProperty deploymentConfiguration) Sets the value ofCfnContainerFleetMixinProps.getDeploymentConfiguration()- Parameters:
deploymentConfiguration- Set of rules for processing a deployment for a container fleet update.- Returns:
this
-
description
Sets the value ofCfnContainerFleetMixinProps.getDescription()- Parameters:
description- A meaningful description of the container fleet.- Returns:
this
-
fleetRoleArn
Sets the value ofCfnContainerFleetMixinProps.getFleetRoleArn()- Parameters:
fleetRoleArn- The unique identifier for an AWS Identity and Access Management (IAM) role with permissions to run your containers on resources that are managed by Amazon GameLift Servers. See Set up an IAM service role . This fleet property can't be changed.- Returns:
this
-
gameServerContainerGroupDefinitionName
@Stability(Stable) public CfnContainerFleetMixinProps.Builder gameServerContainerGroupDefinitionName(String gameServerContainerGroupDefinitionName) Sets the value ofCfnContainerFleetMixinProps.getGameServerContainerGroupDefinitionName()- Parameters:
gameServerContainerGroupDefinitionName- The name of the fleet's game server container group definition, which describes how to deploy containers with your game server build and support software onto each fleet instance.- Returns:
this
-
gameServerContainerGroupsPerInstance
@Stability(Stable) public CfnContainerFleetMixinProps.Builder gameServerContainerGroupsPerInstance(Number gameServerContainerGroupsPerInstance) Sets the value ofCfnContainerFleetMixinProps.getGameServerContainerGroupsPerInstance()- Parameters:
gameServerContainerGroupsPerInstance- The number of times to replicate the game server container group on each fleet instance.- Returns:
this
-
gameSessionCreationLimitPolicy
@Stability(Stable) public CfnContainerFleetMixinProps.Builder gameSessionCreationLimitPolicy(IResolvable gameSessionCreationLimitPolicy) Sets the value ofCfnContainerFleetMixinProps.getGameSessionCreationLimitPolicy()- Parameters:
gameSessionCreationLimitPolicy- A policy that limits the number of game sessions that each individual player can create on instances in this fleet. The limit applies for a specified span of time.- Returns:
this
-
gameSessionCreationLimitPolicy
@Stability(Stable) public CfnContainerFleetMixinProps.Builder gameSessionCreationLimitPolicy(CfnContainerFleetPropsMixin.GameSessionCreationLimitPolicyProperty gameSessionCreationLimitPolicy) Sets the value ofCfnContainerFleetMixinProps.getGameSessionCreationLimitPolicy()- Parameters:
gameSessionCreationLimitPolicy- A policy that limits the number of game sessions that each individual player can create on instances in this fleet. The limit applies for a specified span of time.- Returns:
this
-
instanceConnectionPortRange
@Stability(Stable) public CfnContainerFleetMixinProps.Builder instanceConnectionPortRange(IResolvable instanceConnectionPortRange) Sets the value ofCfnContainerFleetMixinProps.getInstanceConnectionPortRange()- Parameters:
instanceConnectionPortRange- The set of port numbers to open on each instance in a container fleet. Connection ports are used by inbound traffic to connect with processes that are running in containers on the fleet.- Returns:
this
-
instanceConnectionPortRange
@Stability(Stable) public CfnContainerFleetMixinProps.Builder instanceConnectionPortRange(CfnContainerFleetPropsMixin.ConnectionPortRangeProperty instanceConnectionPortRange) Sets the value ofCfnContainerFleetMixinProps.getInstanceConnectionPortRange()- Parameters:
instanceConnectionPortRange- The set of port numbers to open on each instance in a container fleet. Connection ports are used by inbound traffic to connect with processes that are running in containers on the fleet.- Returns:
this
-
instanceInboundPermissions
@Stability(Stable) public CfnContainerFleetMixinProps.Builder instanceInboundPermissions(IResolvable instanceInboundPermissions) Sets the value ofCfnContainerFleetMixinProps.getInstanceInboundPermissions()- Parameters:
instanceInboundPermissions- The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet.- Returns:
this
-
instanceInboundPermissions
@Stability(Stable) public CfnContainerFleetMixinProps.Builder instanceInboundPermissions(List<? extends Object> instanceInboundPermissions) Sets the value ofCfnContainerFleetMixinProps.getInstanceInboundPermissions()- Parameters:
instanceInboundPermissions- The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet.- Returns:
this
-
instanceType
Sets the value ofCfnContainerFleetMixinProps.getInstanceType()- Parameters:
instanceType- The Amazon EC2 instance type to use for all instances in the fleet. Instance type determines the computing resources and processing power that's available to host your game servers. This includes including CPU, memory, storage, and networking capacity. You can't update this fleet property.- Returns:
this
-
locations
Sets the value ofCfnContainerFleetMixinProps.getLocations()- Parameters:
locations- the value to be set.- Returns:
this
-
locations
@Stability(Stable) public CfnContainerFleetMixinProps.Builder locations(List<? extends Object> locations) Sets the value ofCfnContainerFleetMixinProps.getLocations()- Parameters:
locations- the value to be set.- Returns:
this
-
logConfiguration
@Stability(Stable) public CfnContainerFleetMixinProps.Builder logConfiguration(IResolvable logConfiguration) Sets the value ofCfnContainerFleetMixinProps.getLogConfiguration()- Parameters:
logConfiguration- The method that is used to collect container logs for the fleet. Amazon GameLift Servers saves all standard output for each container in logs, including game session logs.CLOUDWATCH-- Send logs to an Amazon CloudWatch log group that you define. Each container emits a log stream, which is organized in the log group.S3-- Store logs in an Amazon S3 bucket that you define.NONE-- Don't collect container logs.
- Returns:
this
-
logConfiguration
@Stability(Stable) public CfnContainerFleetMixinProps.Builder logConfiguration(CfnContainerFleetPropsMixin.LogConfigurationProperty logConfiguration) Sets the value ofCfnContainerFleetMixinProps.getLogConfiguration()- Parameters:
logConfiguration- The method that is used to collect container logs for the fleet. Amazon GameLift Servers saves all standard output for each container in logs, including game session logs.CLOUDWATCH-- Send logs to an Amazon CloudWatch log group that you define. Each container emits a log stream, which is organized in the log group.S3-- Store logs in an Amazon S3 bucket that you define.NONE-- Don't collect container logs.
- Returns:
this
-
metricGroups
@Stability(Stable) public CfnContainerFleetMixinProps.Builder metricGroups(List<String> metricGroups) Sets the value ofCfnContainerFleetMixinProps.getMetricGroups()- Parameters:
metricGroups- The name of an AWS CloudWatch metric group to add this fleet to. Metric groups aggregate metrics for multiple fleets.- Returns:
this
-
newGameSessionProtectionPolicy
@Stability(Stable) public CfnContainerFleetMixinProps.Builder newGameSessionProtectionPolicy(String newGameSessionProtectionPolicy) Sets the value ofCfnContainerFleetMixinProps.getNewGameSessionProtectionPolicy()- Parameters:
newGameSessionProtectionPolicy- Determines whether Amazon GameLift Servers can shut down game sessions on the fleet that are actively running and hosting players. Amazon GameLift Servers might prompt an instance shutdown when scaling down fleet capacity or when retiring unhealthy instances. You can also set game session protection for individual game sessions using UpdateGameSession .- NoProtection -- Game sessions can be shut down during active gameplay.
- FullProtection -- Game sessions in
ACTIVEstatus can't be shut down.
- Returns:
this
-
perInstanceContainerGroupDefinitionName
@Stability(Stable) public CfnContainerFleetMixinProps.Builder perInstanceContainerGroupDefinitionName(String perInstanceContainerGroupDefinitionName) Sets the value ofCfnContainerFleetMixinProps.getPerInstanceContainerGroupDefinitionName()- Parameters:
perInstanceContainerGroupDefinitionName- The name of the fleet's per-instance container group definition.- Returns:
this
-
playerGatewayMode
@Stability(Stable) public CfnContainerFleetMixinProps.Builder playerGatewayMode(String playerGatewayMode) Sets the value ofCfnContainerFleetMixinProps.getPlayerGatewayMode()- Parameters:
playerGatewayMode- The player gateway mode for the container fleet.- Returns:
this
-
scalingPolicies
@Stability(Stable) public CfnContainerFleetMixinProps.Builder scalingPolicies(IResolvable scalingPolicies) Sets the value ofCfnContainerFleetMixinProps.getScalingPolicies()- Parameters:
scalingPolicies- A list of rules that control how a fleet is scaled.- Returns:
this
-
scalingPolicies
@Stability(Stable) public CfnContainerFleetMixinProps.Builder scalingPolicies(List<? extends Object> scalingPolicies) Sets the value ofCfnContainerFleetMixinProps.getScalingPolicies()- Parameters:
scalingPolicies- A list of rules that control how a fleet is scaled.- Returns:
this
-
tags
Sets the value ofCfnContainerFleetMixinProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnContainerFleetMixinProps>- Returns:
- a new instance of
CfnContainerFleetMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-