Class CfnDeploymentConfigProps.Builder

java.lang.Object
software.amazon.awscdk.services.codedeploy.CfnDeploymentConfigProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentConfigProps>
Enclosing interface:
CfnDeploymentConfigProps

@Stability(Stable) public static final class CfnDeploymentConfigProps.Builder extends Object implements software.amazon.jsii.Builder<CfnDeploymentConfigProps>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • computePlatform

      @Stability(Stable) public CfnDeploymentConfigProps.Builder computePlatform(String computePlatform)
      Parameters:
      computePlatform - The destination platform type for the deployment ( Lambda , Server , or ECS ).
      Returns:
      this
    • deploymentConfigName

      @Stability(Stable) public CfnDeploymentConfigProps.Builder deploymentConfigName(String deploymentConfigName)
      Parameters:
      deploymentConfigName - A name for the deployment configuration. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the deployment configuration name. For more information, see Name Type .

      If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.

      Returns:
      this
    • minimumHealthyHosts

      @Stability(Stable) public CfnDeploymentConfigProps.Builder minimumHealthyHosts(CfnDeploymentConfig.MinimumHealthyHostsProperty minimumHealthyHosts)
      Parameters:
      minimumHealthyHosts - The minimum number of healthy instances that should be available at any time during the deployment. There are two parameters expected in the input: type and value.

      The type parameter takes either of the following values:

      • HOST_COUNT: The value parameter represents the minimum number of healthy instances as an absolute value.
      • FLEET_PERCENT: The value parameter represents the minimum number of healthy instances as a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, at the start of the deployment, AWS CodeDeploy converts the percentage to the equivalent number of instance and rounds up fractional instances.

      The value parameter takes an integer.

      For example, to set a minimum of 95% healthy instance, specify a type of FLEET_PERCENT and a value of 95.

      For more information about instance health, see CodeDeploy Instance Health in the AWS CodeDeploy User Guide.

      Returns:
      this
    • minimumHealthyHosts

      @Stability(Stable) public CfnDeploymentConfigProps.Builder minimumHealthyHosts(IResolvable minimumHealthyHosts)
      Parameters:
      minimumHealthyHosts - The minimum number of healthy instances that should be available at any time during the deployment. There are two parameters expected in the input: type and value.

      The type parameter takes either of the following values:

      • HOST_COUNT: The value parameter represents the minimum number of healthy instances as an absolute value.
      • FLEET_PERCENT: The value parameter represents the minimum number of healthy instances as a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, at the start of the deployment, AWS CodeDeploy converts the percentage to the equivalent number of instance and rounds up fractional instances.

      The value parameter takes an integer.

      For example, to set a minimum of 95% healthy instance, specify a type of FLEET_PERCENT and a value of 95.

      For more information about instance health, see CodeDeploy Instance Health in the AWS CodeDeploy User Guide.

      Returns:
      this
    • trafficRoutingConfig

      @Stability(Stable) public CfnDeploymentConfigProps.Builder trafficRoutingConfig(IResolvable trafficRoutingConfig)
      Parameters:
      trafficRoutingConfig - The configuration that specifies how the deployment traffic is routed.
      Returns:
      this
    • trafficRoutingConfig

      @Stability(Stable) public CfnDeploymentConfigProps.Builder trafficRoutingConfig(CfnDeploymentConfig.TrafficRoutingConfigProperty trafficRoutingConfig)
      Parameters:
      trafficRoutingConfig - The configuration that specifies how the deployment traffic is routed.
      Returns:
      this
    • build

      @Stability(Stable) public CfnDeploymentConfigProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnDeploymentConfigProps>
      Returns:
      a new instance of CfnDeploymentConfigProps
      Throws:
      NullPointerException - if any required attribute was not provided