@Stability(value=Stable) public static final class ApplicationListenerRuleProps.Builder extends Object implements software.amazon.jsii.Builder<ApplicationListenerRuleProps>
ApplicationListenerRuleProps
Constructor and Description |
---|
Builder() |
@Stability(value=Stable) public ApplicationListenerRuleProps.Builder listener(IApplicationListener listener)
ApplicationListenerRuleProps.getListener()
listener
- The listener to attach the rule to. This parameter is required.this
@Stability(value=Stable) public ApplicationListenerRuleProps.Builder priority(Number priority)
BaseApplicationListenerRuleProps.getPriority()
priority
- Priority of the rule. This parameter is required.
The rule with the lowest priority will be used for every request.
Priorities must be unique.
this
@Stability(value=Stable) public ApplicationListenerRuleProps.Builder action(ListenerAction action)
BaseApplicationListenerRuleProps.getAction()
action
- Action to perform when requests are received.
Only one of action
, fixedResponse
, redirectResponse
or targetGroups
can be specified.this
@Stability(value=Stable) public ApplicationListenerRuleProps.Builder conditions(List<? extends ListenerCondition> conditions)
BaseApplicationListenerRuleProps.getConditions()
conditions
- Rule applies if matches the conditions.this
@Stability(value=Deprecated) @Deprecated public ApplicationListenerRuleProps.Builder fixedResponse(FixedResponse fixedResponse)
BaseApplicationListenerRuleProps.getFixedResponse()
fixedResponse
- Fixed response to return.
Only one of action
, fixedResponse
, redirectResponse
or targetGroups
can be specified.this
@Stability(value=Deprecated) @Deprecated public ApplicationListenerRuleProps.Builder hostHeader(String hostHeader)
BaseApplicationListenerRuleProps.getHostHeader()
hostHeader
- Rule applies if the requested host matches the indicated host.
May contain up to three '*' wildcards.this
@Stability(value=Deprecated) @Deprecated public ApplicationListenerRuleProps.Builder pathPattern(String pathPattern)
BaseApplicationListenerRuleProps.getPathPattern()
pathPattern
- Rule applies if the requested path matches the given path pattern.this
@Stability(value=Deprecated) @Deprecated public ApplicationListenerRuleProps.Builder pathPatterns(List<String> pathPatterns)
BaseApplicationListenerRuleProps.getPathPatterns()
pathPatterns
- Rule applies if the requested path matches any of the given patterns.
Paths may contain up to three '*' wildcards.this
@Stability(value=Deprecated) @Deprecated public ApplicationListenerRuleProps.Builder redirectResponse(RedirectResponse redirectResponse)
BaseApplicationListenerRuleProps.getRedirectResponse()
redirectResponse
- Redirect response to return.
Only one of action
, fixedResponse
, redirectResponse
or targetGroups
can be specified.this
@Stability(value=Stable) public ApplicationListenerRuleProps.Builder targetGroups(List<? extends IApplicationTargetGroup> targetGroups)
BaseApplicationListenerRuleProps.getTargetGroups()
targetGroups
- Target groups to forward requests to.
Only one of action
, fixedResponse
, redirectResponse
or targetGroups
can be specified.
Implies a forward
action.
this
@Stability(value=Stable) public ApplicationListenerRuleProps build()
build
in interface software.amazon.jsii.Builder<ApplicationListenerRuleProps>
ApplicationListenerRuleProps
NullPointerException
- if any required attribute was not providedCopyright © 2023. All rights reserved.