Class CfnDeploymentConfigPropsMixin.TrafficRoutingConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.codedeploy.CfnDeploymentConfigPropsMixin.TrafficRoutingConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentConfigPropsMixin.TrafficRoutingConfigProperty>
- Enclosing interface:
CfnDeploymentConfigPropsMixin.TrafficRoutingConfigProperty
@Stability(Stable)
public static final class CfnDeploymentConfigPropsMixin.TrafficRoutingConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeploymentConfigPropsMixin.TrafficRoutingConfigProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.timeBasedCanary(CfnDeploymentConfigPropsMixin.TimeBasedCanaryProperty timeBasedCanary) timeBasedCanary(IResolvable timeBasedCanary) timeBasedLinear(CfnDeploymentConfigPropsMixin.TimeBasedLinearProperty timeBasedLinear) timeBasedLinear(IResolvable timeBasedLinear) Sets the value ofCfnDeploymentConfigPropsMixin.TrafficRoutingConfigProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
timeBasedCanary
@Stability(Stable) public CfnDeploymentConfigPropsMixin.TrafficRoutingConfigProperty.Builder timeBasedCanary(IResolvable timeBasedCanary) - Parameters:
timeBasedCanary- A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments. The original and target Lambda function versions or ECS task sets are specified in the deployment's AppSpec file.- Returns:
this
-
timeBasedCanary
@Stability(Stable) public CfnDeploymentConfigPropsMixin.TrafficRoutingConfigProperty.Builder timeBasedCanary(CfnDeploymentConfigPropsMixin.TimeBasedCanaryProperty timeBasedCanary) - Parameters:
timeBasedCanary- A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments. The original and target Lambda function versions or ECS task sets are specified in the deployment's AppSpec file.- Returns:
this
-
timeBasedLinear
@Stability(Stable) public CfnDeploymentConfigPropsMixin.TrafficRoutingConfigProperty.Builder timeBasedLinear(IResolvable timeBasedLinear) - Parameters:
timeBasedLinear- A configuration that shifts traffic from one version of a Lambda function or Amazon ECS task set to another in equal increments, with an equal number of minutes between each increment. The original and target Lambda function versions or Amazon ECS task sets are specified in the deployment's AppSpec file.- Returns:
this
-
timeBasedLinear
@Stability(Stable) public CfnDeploymentConfigPropsMixin.TrafficRoutingConfigProperty.Builder timeBasedLinear(CfnDeploymentConfigPropsMixin.TimeBasedLinearProperty timeBasedLinear) - Parameters:
timeBasedLinear- A configuration that shifts traffic from one version of a Lambda function or Amazon ECS task set to another in equal increments, with an equal number of minutes between each increment. The original and target Lambda function versions or Amazon ECS task sets are specified in the deployment's AppSpec file.- Returns:
this
-
type
@Stability(Stable) public CfnDeploymentConfigPropsMixin.TrafficRoutingConfigProperty.Builder type(String type) Sets the value ofCfnDeploymentConfigPropsMixin.TrafficRoutingConfigProperty.getType()- Parameters:
type- The type of traffic shifting (TimeBasedCanaryorTimeBasedLinear) used by a deployment configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeploymentConfigPropsMixin.TrafficRoutingConfigProperty>- Returns:
- a new instance of
CfnDeploymentConfigPropsMixin.TrafficRoutingConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-