Optional
Readonly
deregistrationOptional
Readonly
enableIndicates whether anomaly mitigation is enabled.
Only available when loadBalancingAlgorithmType
is TargetGroupLoadBalancingAlgorithmType.WEIGHTED_RANDOM
Optional
Readonly
healthHealth check configuration
Optional
Readonly
loadThe load balancing algorithm to select targets for routing requests.
Optional
Readonly
portThe port on which the target receives traffic.
This is not applicable for Lambda targets.
Optional
Readonly
protocolThe protocol used for communication with the target.
This is not applicable for Lambda targets.
Optional
Readonly
protocolThe protocol version to use
Optional
Readonly
slowThe time period during which the load balancer sends a newly registered target a linearly increasing share of the traffic to the target group.
The range is 30-900 seconds (15 minutes).
Optional
Readonly
stickinessThe stickiness cookie expiration period.
Setting this value enables load balancer stickiness.
After this period, the cookie is considered stale. The minimum value is 1 second and the maximum value is 7 days (604800 seconds).
Optional
Readonly
stickinessThe name of an application-based stickiness cookie.
Names that start with the following prefixes are not allowed: AWSALB, AWSALBAPP, and AWSALBTG; they're reserved for use by the load balancer.
Note: stickinessCookieName
parameter depends on the presence of stickinessCookieDuration
parameter.
If stickinessCookieDuration
is not set, stickinessCookieName
will be omitted.
Optional
Readonly
targetThe name of the target group.
This name must be unique per region per account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
Optional
Readonly
targetsThe targets to add to this target group.
Can be Instance
, IPAddress
, or any self-registering load balancing
target. If you use either Instance
or IPAddress
as targets, all
target must be of the same type.
Optional
Readonly
targetThe type of targets registered to this TargetGroup, either IP or Instance.
All targets registered into the group must be of this type. If you register targets to the TargetGroup in the CDK app, the TargetType is determined automatically.
Optional
Readonly
vpcThe virtual private cloud (VPC).
only if TargetType
is Ip
or InstanceId
The amount of time for Elastic Load Balancing to wait before deregistering a target.
The range is 0-3600 seconds.