Class TargetGroupBase
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.services.elasticloadbalancingv2.TargetGroupBase
- All Implemented Interfaces:
ITargetGroup,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
- Direct Known Subclasses:
ApplicationTargetGroup,NetworkTargetGroup
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:38.606Z")
@Stability(Stable)
public abstract class TargetGroupBase
extends software.constructs.Construct
implements ITargetGroup
Define the target of a load balancer.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.elasticloadbalancingv2.ITargetGroup
ITargetGroup.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTargetGroupBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedTargetGroupBase(software.amazon.jsii.JsiiObjectRef objRef) protectedTargetGroupBase(software.constructs.Construct scope, String id, BaseTargetGroupProps baseProps, Object additionalProps) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidRegister the given load balancing target as part of this group.voidconfigureHealthCheck(HealthCheck healthCheck) Set/replace the target group's health check.protected NumberDefault port configured for members of this target group.abstract StringFull name of first load balancer.Health check for the members of this target group.A token representing a list of ARNs of the load balancers that route traffic to this target group.software.constructs.IDependableList of constructs that need to be depended on to ensure the TargetGroup is associated to a load balancer.protected software.constructs.DependencyGroupConfigurable dependable with all resources that lead to load balancer attachment.The ARN of the target group.The full name of the target group.ARNs of load balancers load balancing to this TargetGroup.The name of the target group.protected TargetTypeThe types of the directly registered members of this target group.voidsetAttribute(String key) Set a non-standard attribute on the target group.voidsetAttribute(String key, String value) Set a non-standard attribute on the target group.voidsetHealthCheck(HealthCheck value) Health check for the members of this target group.protected voidsetTargetType(TargetType value) The types of the directly registered members of this target group.Methods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
TargetGroupBase
protected TargetGroupBase(software.amazon.jsii.JsiiObjectRef objRef) -
TargetGroupBase
protected TargetGroupBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
TargetGroupBase
@Stability(Stable) protected TargetGroupBase(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull BaseTargetGroupProps baseProps, @NotNull Object additionalProps) - Parameters:
scope- This parameter is required.id- This parameter is required.baseProps- This parameter is required.additionalProps- This parameter is required.
-
-
Method Details
-
addLoadBalancerTarget
Register the given load balancing target as part of this group.- Parameters:
props- This parameter is required.
-
configureHealthCheck
Set/replace the target group's health check.- Parameters:
healthCheck- This parameter is required.
-
setAttribute
Set a non-standard attribute on the target group.- Parameters:
key- This parameter is required.value-- See Also:
-
setAttribute
Set a non-standard attribute on the target group.- Parameters:
key- This parameter is required.- See Also:
-
validateHealthCheck
-
validateTargetGroup
-
getDefaultPort
Default port configured for members of this target group. -
getFirstLoadBalancerFullName
Full name of first load balancer.This identifier is emitted as a dimensions of the metrics of this target group.
Example value:
app/my-load-balancer/123456789 -
getLoadBalancerArns
A token representing a list of ARNs of the load balancers that route traffic to this target group.- Specified by:
getLoadBalancerArnsin interfaceITargetGroup
-
getLoadBalancerAttached
@Stability(Stable) @NotNull public software.constructs.IDependable getLoadBalancerAttached()List of constructs that need to be depended on to ensure the TargetGroup is associated to a load balancer.- Specified by:
getLoadBalancerAttachedin interfaceITargetGroup
-
getLoadBalancerAttachedDependencies
@Stability(Stable) @NotNull protected software.constructs.DependencyGroup getLoadBalancerAttachedDependencies()Configurable dependable with all resources that lead to load balancer attachment. -
getTargetGroupArn
The ARN of the target group.- Specified by:
getTargetGroupArnin interfaceITargetGroup
-
getTargetGroupFullName
The full name of the target group. -
getTargetGroupLoadBalancerArns
ARNs of load balancers load balancing to this TargetGroup. -
getTargetGroupName
The name of the target group.- Specified by:
getTargetGroupNamein interfaceITargetGroup
-
getHealthCheck
Health check for the members of this target group. -
setHealthCheck
Health check for the members of this target group. -
getTargetType
The types of the directly registered members of this target group. -
setTargetType
The types of the directly registered members of this target group.
-