AddApplicationTargetGroupsProps

class aws_cdk.aws_elasticloadbalancingv2.AddApplicationTargetGroupsProps(*, conditions=None, host_header=None, path_pattern=None, path_patterns=None, priority=None, target_groups)

Bases: aws_cdk.aws_elasticloadbalancingv2.AddRuleProps

__init__(*, conditions=None, host_header=None, path_pattern=None, path_patterns=None, priority=None, target_groups)

Properties for adding a new target group to a listener.

Parameters
  • conditions (Optional[List[ListenerCondition]]) – Rule applies if matches the conditions. Default: - No conditions.

  • host_header (Optional[str]) – Rule applies if the requested host matches the indicated host. May contain up to three ‘*’ wildcards. Requires that priority is set. Default: No host condition

  • path_pattern (Optional[str]) – Rule applies if the requested path matches the given path pattern. May contain up to three ‘*’ wildcards. Requires that priority is set. Default: No path condition

  • path_patterns (Optional[List[str]]) – Rule applies if the requested path matches any of the given patterns. May contain up to three ‘*’ wildcards. Requires that priority is set. Default: - No path condition.

  • priority (Union[int, float, None]) – 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. Default: Target groups are used as defaults

  • target_groups (List[IApplicationTargetGroup]) – Target groups to forward requests to.

Return type

None

Attributes

conditions

Rule applies if matches the conditions.

default :default: - No conditions.

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

Return type

Optional[List[ListenerCondition]]

host_header

Rule applies if the requested host matches the indicated host.

May contain up to three ‘*’ wildcards.

Requires that priority is set.

default :default: No host condition

deprecated :deprecated: Use conditions instead.

see :see: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#host-conditions stability :stability: deprecated

Return type

Optional[str]

path_pattern

Rule applies if the requested path matches the given path pattern.

May contain up to three ‘*’ wildcards.

Requires that priority is set.

default :default: No path condition

deprecated :deprecated: Use conditions instead.

see :see: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#path-conditions stability :stability: deprecated

Return type

Optional[str]

path_patterns

Rule applies if the requested path matches any of the given patterns.

May contain up to three ‘*’ wildcards.

Requires that priority is set.

default :default: - No path condition.

deprecated :deprecated: Use conditions instead.

see :see: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#path-conditions stability :stability: deprecated

Return type

Optional[List[str]]

priority

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.

default :default: Target groups are used as defaults

Return type

Union[int, float, None]

target_groups

Target groups to forward requests to.

Return type

List[IApplicationTargetGroup]