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
ModifierConstructorDescriptionprotected
protected
LoadBalancer
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
LoadBalancer
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic LoadBalancer
application
(IApplicationTargetGroup albTargetGroup) Creates a new CodeDeploy load balancer from an Application Load Balancer Target Group.static LoadBalancer
classic
(LoadBalancer loadBalancer) Creates a new CodeDeploy load balancer from a Classic ELB Load Balancer.abstract LoadBalancerGeneration
abstract String
getName()
static LoadBalancer
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
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
-
getName
-