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.104.0 (build e79254c)", date="2024-10-31T19:12:54.940Z") @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, #application and #network.

Example:

 ApplicationLoadBalancer alb;
 ApplicationListener listener = alb.addListener("Listener", BaseApplicationListenerProps.builder().port(80).build());
 ApplicationTargetGroup targetGroup = listener.addTargets("Fleet", AddApplicationTargetsProps.builder().port(80).build());
 ServerDeploymentGroup deploymentGroup = ServerDeploymentGroup.Builder.create(this, "DeploymentGroup")
         .loadBalancer(LoadBalancer.application(targetGroup))
         .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()