Interface CfnDeploymentGroup.TargetGroupPairInfoProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDeploymentGroup.TargetGroupPairInfoProperty.Jsii$Proxy
- Enclosing class:
CfnDeploymentGroup
@Stability(Stable)
public static interface CfnDeploymentGroup.TargetGroupPairInfoProperty
extends software.amazon.jsii.JsiiSerializable
Information about two target groups and how traffic is routed during an Amazon ECS deployment.
An optional test traffic route can be specified.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codedeploy.*;
TargetGroupPairInfoProperty targetGroupPairInfoProperty = TargetGroupPairInfoProperty.builder()
.prodTrafficRoute(TrafficRouteProperty.builder()
.listenerArns(List.of("listenerArns"))
.build())
.targetGroups(List.of(TargetGroupInfoProperty.builder()
.name("name")
.build()))
.testTrafficRoute(TrafficRouteProperty.builder()
.listenerArns(List.of("listenerArns"))
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDeploymentGroup.TargetGroupPairInfoPropertystatic final classAn implementation forCfnDeploymentGroup.TargetGroupPairInfoProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectThe path used by a load balancer to route production traffic when an Amazon ECS deployment is complete.default ObjectOne pair of target groups.default ObjectAn optional path used by a load balancer to route test traffic after an Amazon ECS deployment.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getProdTrafficRoute
The path used by a load balancer to route production traffic when an Amazon ECS deployment is complete.- See Also:
-
getTargetGroups
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.
- See Also:
-
getTestTrafficRoute
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.
- See Also:
-
builder
-