Package software.amazon.awscdk
Class CfnTrafficRouting.Builder
java.lang.Object
software.amazon.awscdk.CfnTrafficRouting.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTrafficRouting>
- Enclosing interface:
CfnTrafficRouting
@Stability(Stable)
public static final class CfnTrafficRouting.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTrafficRouting>
A builder for
CfnTrafficRouting
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.prodTrafficRoute
(CfnTrafficRoute prodTrafficRoute) Sets the value ofCfnTrafficRouting.getProdTrafficRoute()
targetGroups
(List<String> targetGroups) Sets the value ofCfnTrafficRouting.getTargetGroups()
testTrafficRoute
(CfnTrafficRoute testTrafficRoute) Sets the value ofCfnTrafficRouting.getTestTrafficRoute()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
prodTrafficRoute
@Stability(Stable) public CfnTrafficRouting.Builder prodTrafficRoute(CfnTrafficRoute prodTrafficRoute) Sets the value ofCfnTrafficRouting.getProdTrafficRoute()
- Parameters:
prodTrafficRoute
- The listener to be used by your load balancer to direct traffic to your target groups. This parameter is required.- Returns:
this
-
targetGroups
Sets the value ofCfnTrafficRouting.getTargetGroups()
- Parameters:
targetGroups
- The logical IDs of the blue and green, respectively, AWS::ElasticLoadBalancingV2::TargetGroup target groups. This parameter is required.- Returns:
this
-
testTrafficRoute
@Stability(Stable) public CfnTrafficRouting.Builder testTrafficRoute(CfnTrafficRoute testTrafficRoute) Sets the value ofCfnTrafficRouting.getTestTrafficRoute()
- Parameters:
testTrafficRoute
- The listener to be used by your load balancer to direct traffic to your target groups. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTrafficRouting>
- Returns:
- a new instance of
CfnTrafficRouting
- Throws:
NullPointerException
- if any required attribute was not provided
-