Class AlbArnTarget
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.elasticloadbalancingv2.targets.AlbArnTarget
- All Implemented Interfaces:
INetworkLoadBalancerTarget
,software.amazon.jsii.JsiiSerializable
- Direct Known Subclasses:
AlbListenerTarget
,AlbTarget
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:01.761Z")
@Stability(Stable)
public class AlbArnTarget
extends software.amazon.jsii.JsiiObject
implements INetworkLoadBalancerTarget
A single Application Load Balancer as the target for load balancing.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.elasticloadbalancingv2.targets.*; AlbArnTarget albArnTarget = new AlbArnTarget("albArn", 123);
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.elasticloadbalancingv2.INetworkLoadBalancerTarget
INetworkLoadBalancerTarget.Jsii$Default, INetworkLoadBalancerTarget.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionAlbArnTarget
(String albArn, Number port) Create a new alb target.protected
AlbArnTarget
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
AlbArnTarget
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionattachToNetworkTargetGroup
(INetworkTargetGroup targetGroup) Register this alb target with a load balancer.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
-
AlbArnTarget
protected AlbArnTarget(software.amazon.jsii.JsiiObjectRef objRef) -
AlbArnTarget
protected AlbArnTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
AlbArnTarget
Create a new alb target.Note that the ALB must have a listener on the provided target port.
- Parameters:
albArn
- The ARN of the application load balancer to load balance to. This parameter is required.port
- The port on which the target is listening. This parameter is required.
-
-
Method Details
-
attachToNetworkTargetGroup
@Stability(Stable) @NotNull public LoadBalancerTargetProps attachToNetworkTargetGroup(@NotNull INetworkTargetGroup targetGroup) Register this alb target with a load balancer.Don't call this, it is called automatically when you add the target to a load balancer.
- Specified by:
attachToNetworkTargetGroup
in interfaceINetworkLoadBalancerTarget
- Parameters:
targetGroup
- This parameter is required.
-