@Stability(value=Stable) public static final class ApplicationListenerRule.Builder extends Object implements software.amazon.jsii.Builder<ApplicationListenerRule>
ApplicationListenerRule.| Modifier and Type | Method and Description |
|---|---|
ApplicationListenerRule.Builder |
action(ListenerAction action)
Action to perform when requests are received.
|
ApplicationListenerRule |
build() |
ApplicationListenerRule.Builder |
conditions(List<? extends ListenerCondition> conditions)
Rule applies if matches the conditions.
|
static ApplicationListenerRule.Builder |
create(software.constructs.Construct scope,
String id) |
ApplicationListenerRule.Builder |
listener(IApplicationListener listener)
The listener to attach the rule to.
|
ApplicationListenerRule.Builder |
priority(Number priority)
Priority of the rule.
|
ApplicationListenerRule.Builder |
targetGroups(List<? extends IApplicationTargetGroup> targetGroups)
Target groups to forward requests to.
|
@Stability(value=Stable) public static ApplicationListenerRule.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.ApplicationListenerRule.Builder.@Stability(value=Stable) public ApplicationListenerRule.Builder priority(Number priority)
The rule with the lowest priority will be used for every request.
Priorities must be unique.
priority - Priority of the rule. This parameter is required.this@Stability(value=Stable) public ApplicationListenerRule.Builder action(ListenerAction action)
Only one of action, fixedResponse, redirectResponse or targetGroups can be specified.
Default: - No action
action - Action to perform when requests are received. This parameter is required.this@Stability(value=Stable) public ApplicationListenerRule.Builder conditions(List<? extends ListenerCondition> conditions)
Default: - No conditions.
conditions - Rule applies if matches the conditions. This parameter is required.this@Stability(value=Stable) public ApplicationListenerRule.Builder targetGroups(List<? extends IApplicationTargetGroup> targetGroups)
Only one of action, fixedResponse, redirectResponse or targetGroups can be specified.
Implies a forward action.
Default: - No target groups.
targetGroups - Target groups to forward requests to. This parameter is required.this@Stability(value=Stable) public ApplicationListenerRule.Builder listener(IApplicationListener listener)
listener - The listener to attach the rule to. This parameter is required.this@Stability(value=Stable) public ApplicationListenerRule build()
build in interface software.amazon.jsii.Builder<ApplicationListenerRule>Copyright © 2022. All rights reserved.