Class DeploymentStrategy.Builder

java.lang.Object
software.amazon.awscdk.services.appconfig.DeploymentStrategy.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<DeploymentStrategy>
Enclosing class:
DeploymentStrategy

@Stability(Stable) public static final class DeploymentStrategy.Builder extends Object implements software.amazon.jsii.Builder<DeploymentStrategy>
A fluent builder for DeploymentStrategy.
  • Method Details

    • create

      @Stability(Stable) public static DeploymentStrategy.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of DeploymentStrategy.Builder.
    • rolloutStrategy

      @Stability(Stable) public DeploymentStrategy.Builder rolloutStrategy(RolloutStrategy rolloutStrategy)
      The rollout strategy for the deployment strategy.

      You can use predefined deployment strategies, such as RolloutStrategy.ALL_AT_ONCE, RolloutStrategy.LINEAR_50_PERCENT_EVERY_30_SECONDS, or RolloutStrategy.CANARY_10_PERCENT_20_MINUTES.

      Parameters:
      rolloutStrategy - The rollout strategy for the deployment strategy. This parameter is required.
      Returns:
      this
    • deploymentStrategyName

      @Stability(Stable) public DeploymentStrategy.Builder deploymentStrategyName(String deploymentStrategyName)
      A name for the deployment strategy.

      Default: - A name is generated.

      Parameters:
      deploymentStrategyName - A name for the deployment strategy. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public DeploymentStrategy.Builder description(String description)
      A description of the deployment strategy.

      Default: - No description.

      Parameters:
      description - A description of the deployment strategy. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public DeploymentStrategy build()
      Specified by:
      build in interface software.amazon.jsii.Builder<DeploymentStrategy>
      Returns:
      a newly built instance of DeploymentStrategy.