Skip to main content

AlbListenerActionForwardConfigSchema

When forwarding requests to one or more target groups, this ALB Listener Action defines the target groups the ALB Listener forwards requests to.

@group

Resources/AlbListener

Index

Properties

TargetGroups

TargetGroups: { targetGroupName: string; Weight: number }[] = ...

Definition of target group that will accept the request. You must specify the name of the target group, and the percentage of traffic to send to that target group.

You set the name of the target group when you created the AlbTargetGroupSchema resource.

For a single target group, you can use a weight of 100. For multiple target groups, the sum of the weights must be 100.

optionalTargetGroupStickinessConfig

TargetGroupStickinessConfig?: null | { DurationSeconds: number; Enabled: boolean } = ...

An optional configuration to instruct the load balancer on how to route requests to the targets. With stickiness enabled, the load balancer routes requests to the same target for the given duration.