class TargetGroupBase
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ElasticLoadBalancingV2.TargetGroupBase |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancingv2#TargetGroupBase |
Java | software.amazon.awscdk.services.elasticloadbalancingv2.TargetGroupBase |
Python | aws_cdk.aws_elasticloadbalancingv2.TargetGroupBase |
TypeScript (source) | aws-cdk-lib » aws_elasticloadbalancingv2 » TargetGroupBase |
Implements
IConstruct, IDependable, ITarget
Extends
Construct
Implemented by
Application, Network
Define the target of a load balancer.
Initializer
new TargetGroupBase(scope: Construct, id: string, baseProps: BaseTargetGroupProps, additionalProps: any)
Parameters
- scope
Construct - id
string - baseProps
BaseTarget Group Props - additionalProps
any
Properties
| Name | Type | Description |
|---|---|---|
| default | number | Default port configured for members of this target group. |
| first | string | Full name of first load balancer. |
| health | Health | Health check for the members of this target group. |
| load | string | A token representing a list of ARNs of the load balancers that route traffic to this target group. |
| load | IDependable | List of constructs that need to be depended on to ensure the TargetGroup is associated to a load balancer. |
| load | Dependency | Configurable dependable with all resources that lead to load balancer attachment. |
| node | Node | The tree node. |
| target | string | The ARN of the target group. |
| target | string | The full name of the target group. |
| target | string[] | ARNs of load balancers load balancing to this TargetGroup. |
| target | string | The name of the target group. |
| target | Target | The types of the directly registered members of this target group. |
defaultPort
Type:
number
Default port configured for members of this target group.
firstLoadBalancerFullName
Type:
string
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
healthCheck
Type:
Health
Health check for the members of this target group.
loadBalancerArns
Type:
string
A token representing a list of ARNs of the load balancers that route traffic to this target group.
loadBalancerAttached
Type:
IDependable
List of constructs that need to be depended on to ensure the TargetGroup is associated to a load balancer.
loadBalancerAttachedDependencies
Type:
Dependency
Configurable dependable with all resources that lead to load balancer attachment.
node
Type:
Node
The tree node.
targetGroupArn
Type:
string
The ARN of the target group.
targetGroupFullName
Type:
string
The full name of the target group.
targetGroupLoadBalancerArns
Type:
string[]
ARNs of load balancers load balancing to this TargetGroup.
targetGroupName
Type:
string
The name of the target group.
targetType?
Type:
Target
(optional)
The types of the directly registered members of this target group.
Methods
| Name | Description |
|---|---|
| configure | Set/replace the target group's health check. |
| set | Set a non-standard attribute on the target group. |
| to | Returns a string representation of this construct. |
| protected add | Register the given load balancing target as part of this group. |
| protected validate | |
| protected validate |
configureHealthCheck(healthCheck)
public configureHealthCheck(healthCheck: HealthCheck): void
Parameters
- healthCheck
HealthCheck
Set/replace the target group's health check.
setAttribute(key, value?)
public setAttribute(key: string, value?: string): void
Parameters
- key
string - value
string
Set a non-standard attribute on the target group.
toString()
public toString(): string
Returns
string
Returns a string representation of this construct.
protected addLoadBalancerTarget(props)
protected addLoadBalancerTarget(props: LoadBalancerTargetProps): void
Parameters
- props
LoadBalancer Target Props
Register the given load balancing target as part of this group.
protected validateHealthCheck()
protected validateHealthCheck(): string[]
Returns
string[]
protected validateTargetGroup()
protected validateTargetGroup(): string[]
Returns
string[]

.NET
Go
Java
Python
TypeScript (