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, IEnvironment, 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. |
| env | Resource | The environment this resource belongs to. |
| 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 | A reference to this 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.
env
Type:
Resource
The environment this resource belongs to.
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.
targetGroupRef
Type:
Target
A reference to this 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. |
| with(...mixins) | Applies one or more mixins to 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.
with(...mixins)
public with(...mixins: IMixin[]): IConstruct
Parameters
- mixins
IMixin— The mixins to apply.
Returns
Applies one or more mixins to this construct.
Mixins are applied in order. The list of constructs is captured at the
start of the call, so constructs added by a mixin will not be visited.
Use multiple with() calls if subsequent mixins should apply to added
constructs.
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 (