Class LoadBalancerTarget

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.route53.targets.LoadBalancerTarget
All Implemented Interfaces:
IAliasRecordTarget, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-27T17:02:09.239Z") @Stability(Stable) public class LoadBalancerTarget extends software.amazon.jsii.JsiiObject implements IAliasRecordTarget
Use an ELBv2 as an alias record target.

Example:

 import software.amazon.awscdk.services.elasticloadbalancingv2.*;
 HostedZone zone;
 ApplicationLoadBalancer lb;
 ARecord.Builder.create(this, "AliasRecord")
         .zone(zone)
         .target(RecordTarget.fromAlias(
         new LoadBalancerTarget(lb, Map.of(
                 "evaluateTargetHealth", true))))
         .build();
 
  • Constructor Details

    • LoadBalancerTarget

      protected LoadBalancerTarget(software.amazon.jsii.JsiiObjectRef objRef)
    • LoadBalancerTarget

      protected LoadBalancerTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • LoadBalancerTarget

      @Stability(Stable) public LoadBalancerTarget(@NotNull ILoadBalancerV2 loadBalancer, @Nullable IAliasRecordTargetProps props)
      Parameters:
      loadBalancer - This parameter is required.
      props -
    • LoadBalancerTarget

      @Stability(Stable) public LoadBalancerTarget(@NotNull ILoadBalancerV2 loadBalancer)
      Parameters:
      loadBalancer - This parameter is required.
  • Method Details