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.104.0 (build e79254c)",
date="2025-01-04T09:06:22.518Z")
@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.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.elasticloadbalancingv2.ITargetGroup
ITargetGroup.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
TargetGroupBase
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
TargetGroupBase
(software.amazon.jsii.JsiiObjectRef objRef) protected
TargetGroupBase
(software.constructs.Construct scope, String id, BaseTargetGroupProps baseProps, Object additionalProps) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Register the given load balancing target as part of this group.void
configureHealthCheck
(HealthCheck healthCheck) Set/replace the target group's health check.protected Number
Default port configured for members of this target group.abstract String
Full 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.IDependable
List of constructs that need to be depended on to ensure the TargetGroup is associated to a load balancer.protected software.constructs.DependencyGroup
Configurable 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 TargetType
The types of the directly registered members of this target group.void
setAttribute
(String key) Set a non-standard attribute on the target group.void
setAttribute
(String key, String value) Set a non-standard attribute on the target group.void
setHealthCheck
(HealthCheck value) Health check for the members of this target group.protected void
setTargetType
(TargetType value) The types of the directly registered members of this target group.Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
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, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods 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:
getLoadBalancerArns
in 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:
getLoadBalancerAttached
in 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:
getTargetGroupArn
in 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:
getTargetGroupName
in 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.
-