Interface CfnTrafficRouting

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnTrafficRouting.Jsii$Proxy

@Generated(value="jsii-pacmak/1.102.0 (build e354887)", date="2024-08-23T05:56:10.025Z") @Stability(Stable) public interface CfnTrafficRouting extends software.amazon.jsii.JsiiSerializable
Type of the CfnCodeDeployBlueGreenEcsAttributes.trafficRouting property.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.*;
 CfnTrafficRouting cfnTrafficRouting = CfnTrafficRouting.builder()
         .prodTrafficRoute(CfnTrafficRoute.builder()
                 .logicalId("logicalId")
                 .type("type")
                 .build())
         .targetGroups(List.of("targetGroups"))
         .testTrafficRoute(CfnTrafficRoute.builder()
                 .logicalId("logicalId")
                 .type("type")
                 .build())
         .build();
 
  • Method Details

    • getProdTrafficRoute

      @Stability(Stable) @NotNull CfnTrafficRoute getProdTrafficRoute()
      The listener to be used by your load balancer to direct traffic to your target groups.
    • getTargetGroups

      @Stability(Stable) @NotNull List<String> getTargetGroups()
      The logical IDs of the blue and green, respectively, AWS::ElasticLoadBalancingV2::TargetGroup target groups.
    • getTestTrafficRoute

      @Stability(Stable) @NotNull CfnTrafficRoute getTestTrafficRoute()
      The listener to be used by your load balancer to direct traffic to your target groups.
    • builder

      @Stability(Stable) static CfnTrafficRouting.Builder builder()
      Returns:
      a CfnTrafficRouting.Builder of CfnTrafficRouting