Class LoadBalancer

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.codedeploy.LoadBalancer
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:46.386Z") @Stability(Stable) public abstract class LoadBalancer extends software.amazon.jsii.JsiiObject
An interface of an abstract load balancer, as needed by CodeDeploy.

Create instances using the static factory methods: classic(software.amazon.awscdk.services.elasticloadbalancing.LoadBalancer), application(software.amazon.awscdk.services.elasticloadbalancingv2.IApplicationTargetGroup) and network(software.amazon.awscdk.services.elasticloadbalancingv2.INetworkTargetGroup).

Example:

 import software.amazon.awscdk.services.elasticloadbalancing.*;
 LoadBalancer lb;
 lb.addListener(LoadBalancerListener.builder()
         .externalPort(80)
         .build());
 ServerDeploymentGroup deploymentGroup = ServerDeploymentGroup.Builder.create(this, "DeploymentGroup")
         .loadBalancer(LoadBalancer.classic(lb))
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
    LoadBalancer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    LoadBalancer(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a new CodeDeploy load balancer from an Application Load Balancer Target Group.
    classic(LoadBalancer loadBalancer)
    Creates a new CodeDeploy load balancer from a Classic ELB Load Balancer.
     
    abstract String
     
    network(INetworkTargetGroup nlbTargetGroup)
    Creates a new CodeDeploy load balancer from a Network Load Balancer Target Group.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • LoadBalancer

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

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

      @Stability(Stable) protected LoadBalancer()
  • Method Details

    • application

      @Stability(Stable) @NotNull public static LoadBalancer application(@NotNull IApplicationTargetGroup albTargetGroup)
      Creates a new CodeDeploy load balancer from an Application Load Balancer Target Group.

      Parameters:
      albTargetGroup - an ALB Target Group. This parameter is required.
    • classic

      @Stability(Stable) @NotNull public static LoadBalancer classic(@NotNull LoadBalancer loadBalancer)
      Creates a new CodeDeploy load balancer from a Classic ELB Load Balancer.

      Parameters:
      loadBalancer - a classic ELB Load Balancer. This parameter is required.
    • network

      @Stability(Stable) @NotNull public static LoadBalancer network(@NotNull INetworkTargetGroup nlbTargetGroup)
      Creates a new CodeDeploy load balancer from a Network Load Balancer Target Group.

      Parameters:
      nlbTargetGroup - an NLB Target Group. This parameter is required.
    • getGeneration

      @Stability(Stable) @NotNull public abstract LoadBalancerGeneration getGeneration()
    • getName

      @Stability(Stable) @NotNull public abstract String getName()