Class CfnDeploymentGroup.TargetGroupPairInfoProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.TargetGroupPairInfoProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentGroup.TargetGroupPairInfoProperty>
- Enclosing interface:
CfnDeploymentGroup.TargetGroupPairInfoProperty
@Stability(Stable)
public static final class CfnDeploymentGroup.TargetGroupPairInfoProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeploymentGroup.TargetGroupPairInfoProperty>
A builder for
CfnDeploymentGroup.TargetGroupPairInfoProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.prodTrafficRoute(IResolvable prodTrafficRoute) Sets the value ofCfnDeploymentGroup.TargetGroupPairInfoProperty.getProdTrafficRoute()prodTrafficRoute(CfnDeploymentGroup.TrafficRouteProperty prodTrafficRoute) Sets the value ofCfnDeploymentGroup.TargetGroupPairInfoProperty.getProdTrafficRoute()targetGroups(List<? extends Object> targetGroups) Sets the value ofCfnDeploymentGroup.TargetGroupPairInfoProperty.getTargetGroups()targetGroups(IResolvable targetGroups) Sets the value ofCfnDeploymentGroup.TargetGroupPairInfoProperty.getTargetGroups()testTrafficRoute(IResolvable testTrafficRoute) Sets the value ofCfnDeploymentGroup.TargetGroupPairInfoProperty.getTestTrafficRoute()testTrafficRoute(CfnDeploymentGroup.TrafficRouteProperty testTrafficRoute) Sets the value ofCfnDeploymentGroup.TargetGroupPairInfoProperty.getTestTrafficRoute()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
prodTrafficRoute
@Stability(Stable) public CfnDeploymentGroup.TargetGroupPairInfoProperty.Builder prodTrafficRoute(IResolvable prodTrafficRoute) Sets the value ofCfnDeploymentGroup.TargetGroupPairInfoProperty.getProdTrafficRoute()- Parameters:
prodTrafficRoute- The path used by a load balancer to route production traffic when an Amazon ECS deployment is complete.- Returns:
this
-
prodTrafficRoute
@Stability(Stable) public CfnDeploymentGroup.TargetGroupPairInfoProperty.Builder prodTrafficRoute(CfnDeploymentGroup.TrafficRouteProperty prodTrafficRoute) Sets the value ofCfnDeploymentGroup.TargetGroupPairInfoProperty.getProdTrafficRoute()- Parameters:
prodTrafficRoute- The path used by a load balancer to route production traffic when an Amazon ECS deployment is complete.- Returns:
this
-
targetGroups
@Stability(Stable) public CfnDeploymentGroup.TargetGroupPairInfoProperty.Builder targetGroups(IResolvable targetGroups) Sets the value ofCfnDeploymentGroup.TargetGroupPairInfoProperty.getTargetGroups()- Parameters:
targetGroups- One pair of target groups. One is associated with the original task set. The second is associated with the task set that serves traffic after the deployment is complete.- Returns:
this
-
targetGroups
@Stability(Stable) public CfnDeploymentGroup.TargetGroupPairInfoProperty.Builder targetGroups(List<? extends Object> targetGroups) Sets the value ofCfnDeploymentGroup.TargetGroupPairInfoProperty.getTargetGroups()- Parameters:
targetGroups- One pair of target groups. One is associated with the original task set. The second is associated with the task set that serves traffic after the deployment is complete.- Returns:
this
-
testTrafficRoute
@Stability(Stable) public CfnDeploymentGroup.TargetGroupPairInfoProperty.Builder testTrafficRoute(IResolvable testTrafficRoute) Sets the value ofCfnDeploymentGroup.TargetGroupPairInfoProperty.getTestTrafficRoute()- Parameters:
testTrafficRoute- An optional path used by a load balancer to route test traffic after an Amazon ECS deployment. Validation can occur while test traffic is served during a deployment.- Returns:
this
-
testTrafficRoute
@Stability(Stable) public CfnDeploymentGroup.TargetGroupPairInfoProperty.Builder testTrafficRoute(CfnDeploymentGroup.TrafficRouteProperty testTrafficRoute) Sets the value ofCfnDeploymentGroup.TargetGroupPairInfoProperty.getTestTrafficRoute()- Parameters:
testTrafficRoute- An optional path used by a load balancer to route test traffic after an Amazon ECS deployment. Validation can occur while test traffic is served during a deployment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeploymentGroup.TargetGroupPairInfoProperty>- Returns:
- a new instance of
CfnDeploymentGroup.TargetGroupPairInfoProperty - Throws:
NullPointerException- if any required attribute was not provided
-