aws-cdk-lib.aws_elasticloadbalancingv2.AddApplicationTargetGroupsProps

interface AddApplicationTargetGroupsProps

LanguageType name
.NETAmazon.CDK.AWS.ElasticLoadBalancingV2.AddApplicationTargetGroupsProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancingv2#AddApplicationTargetGroupsProps
Javasoftware.amazon.awscdk.services.elasticloadbalancingv2.AddApplicationTargetGroupsProps
Pythonaws_cdk.aws_elasticloadbalancingv2.AddApplicationTargetGroupsProps
TypeScript (source)aws-cdk-lib » aws_elasticloadbalancingv2 » AddApplicationTargetGroupsProps

Properties for adding a new target group to a listener.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticloadbalancingv2 as elbv2 } from 'aws-cdk-lib';

declare const applicationTargetGroup: elbv2.ApplicationTargetGroup;
declare const listenerCondition: elbv2.ListenerCondition;
const addApplicationTargetGroupsProps: elbv2.AddApplicationTargetGroupsProps = {
  targetGroups: [applicationTargetGroup],

  // the properties below are optional
  conditions: [listenerCondition],
  priority: 123,
};

Properties

NameTypeDescription
targetGroupsIApplicationTargetGroup[]Target groups to forward requests to.
conditions?ListenerCondition[]Rule applies if matches the conditions.
priority?numberPriority of this target group.

targetGroups

Type: IApplicationTargetGroup[]

Target groups to forward requests to.


conditions?

Type: ListenerCondition[] (optional, default: No conditions.)

Rule applies if matches the conditions.

See also: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html


priority?

Type: number (optional, default: Target groups are used as defaults)

Priority of this target group.

The rule with the lowest priority will be used for every request. If priority is not given, these target groups will be added as defaults, and must not have conditions.

Priorities must be unique.