class TargetGroupBase
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ElasticLoadBalancingV2.TargetGroupBase |
Java | software.amazon.awscdk.services.elasticloadbalancingv2.TargetGroupBase |
Python | aws_cdk.aws_elasticloadbalancingv2.TargetGroupBase |
TypeScript (source) | @aws-cdk/aws-elasticloadbalancingv2 » TargetGroupBase |
Implements
IConstruct
, 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
Base
Target 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 | |
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 | Concrete | Configurable dependable with all resources that lead to load balancer attachment. |
node | Construct | The construct tree node associated with this construct. |
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
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:
Concrete
Configurable dependable with all resources that lead to load balancer attachment.
node
Type:
Construct
The construct tree node associated with this construct.
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() | Validate the current construct. |
HealthCheck(healthCheck)
configurepublic configureHealthCheck(healthCheck: HealthCheck): void
Parameters
- healthCheck
Health
Check
Set/replace the target group's health check.
Attribute(key, value?)
setpublic setAttribute(key: string, value?: string): void
Parameters
- key
string
- value
string
Set a non-standard attribute on the target group.
String()
topublic toString(): string
Returns
string
Returns a string representation of this construct.
LoadBalancerTarget(props)
protected addprotected addLoadBalancerTarget(props: LoadBalancerTargetProps): void
Parameters
- props
Load
Balancer Target Props
Register the given load balancing target as part of this group.
protected validate()
protected validate(): string[]
Returns
string[]
Validate the current construct.
This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.