Class CfnContainerFleet.DeploymentConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.CfnContainerFleet.DeploymentConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainerFleet.DeploymentConfigurationProperty>
- Enclosing interface:
CfnContainerFleet.DeploymentConfigurationProperty
@Stability(Stable)
public static final class CfnContainerFleet.DeploymentConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContainerFleet.DeploymentConfigurationProperty>
A builder for
CfnContainerFleet.DeploymentConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.impairmentStrategy
(String impairmentStrategy) minimumHealthyPercentage
(Number minimumHealthyPercentage) protectionStrategy
(String protectionStrategy)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
impairmentStrategy
@Stability(Stable) public CfnContainerFleet.DeploymentConfigurationProperty.Builder impairmentStrategy(String impairmentStrategy) - Parameters:
impairmentStrategy
- Determines what actions to take if a deployment fails. If the fleet is multi-location, this strategy applies across all fleet locations. With a rollback strategy, updated fleet instances are rolled back to the last successful deployment. Alternatively, you can maintain a few impaired containers for the purpose of debugging, while all other tasks return to the last successful deployment.- Returns:
this
-
minimumHealthyPercentage
@Stability(Stable) public CfnContainerFleet.DeploymentConfigurationProperty.Builder minimumHealthyPercentage(Number minimumHealthyPercentage) - Parameters:
minimumHealthyPercentage
- Sets a minimum level of healthy tasks to maintain during deployment activity.- Returns:
this
-
protectionStrategy
@Stability(Stable) public CfnContainerFleet.DeploymentConfigurationProperty.Builder protectionStrategy(String protectionStrategy) - Parameters:
protectionStrategy
- Determines how fleet deployment activity affects active game sessions on the fleet. With protection, a deployment honors game session protection, and delays actions that would interrupt a protected active game session until the game session ends. Without protection, deployment activity can shut down all running tasks, including active game sessions, regardless of game session protection.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnContainerFleet.DeploymentConfigurationProperty>
- Returns:
- a new instance of
CfnContainerFleet.DeploymentConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-