Define a new listener rule.
import { ApplicationListenerRule } from 'aws-cdk-lib/aws-elasticloadbalancingv2';Or use the module namespace:
import * as elasticloadbalancingv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2';
// elasticloadbalancingv2.ApplicationListenerRuleConfiguration passed to the constructor as ApplicationListenerRuleProps.
listenerRequiredIApplicationListenerThe listener to attach the rule to.
BaseApplicationListenerRulePropspriorityRequiredinherited from BaseApplicationListenerRulePropsnumberPriority of the rule. The rule with the lowest priority will be used for every request. Priorities must be unique.
actionOptionalinherited from BaseApplicationListenerRulePropsListenerActionAction to perform when requests are received. Only one of `action`, `fixedResponse`, `redirectResponse` or `targetGroups` can be specified.
Default: - No action
conditionsOptionalinherited from BaseApplicationListenerRulePropsListenerCondition[]Rule applies if matches the conditions.
Default: - No conditions.
targetGroupsOptionalinherited from BaseApplicationListenerRulePropsIApplicationTargetGroup[]Target groups to forward requests to. Only one of `action`, `fixedResponse`, `redirectResponse` or `targetGroups` can be specified. Implies a `forward` action.
Default: - No target groups.
Everything you need to know about Elastic Load Balancing V2 on one page. HD quality, print-friendly.
Download Free Infographicaws-elasticloadbalancingv2