@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:06.504Z") @Stability(value=Experimental) public interface BaseApplicationListenerRuleProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.elasticloadbalancingv2.*;
ApplicationTargetGroup applicationTargetGroup;
ListenerAction listenerAction;
ListenerCondition listenerCondition;
BaseApplicationListenerRuleProps baseApplicationListenerRuleProps = BaseApplicationListenerRuleProps.builder()
.priority(123)
// the properties below are optional
.action(listenerAction)
.conditions(List.of(listenerCondition))
.fixedResponse(FixedResponse.builder()
.statusCode("statusCode")
// the properties below are optional
.contentType(ContentType.TEXT_PLAIN)
.messageBody("messageBody")
.build())
.hostHeader("hostHeader")
.pathPattern("pathPattern")
.pathPatterns(List.of("pathPatterns"))
.redirectResponse(RedirectResponse.builder()
.statusCode("statusCode")
// the properties below are optional
.host("host")
.path("path")
.port("port")
.protocol("protocol")
.query("query")
.build())
.targetGroups(List.of(applicationTargetGroup))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
BaseApplicationListenerRuleProps.Builder
A builder for
BaseApplicationListenerRuleProps |
static class |
BaseApplicationListenerRuleProps.Jsii$Proxy
An implementation for
BaseApplicationListenerRuleProps |
| Modifier and Type | Method and Description |
|---|---|
static BaseApplicationListenerRuleProps.Builder |
builder() |
default ListenerAction |
getAction()
(experimental) Action to perform when requests are received.
|
default List<ListenerCondition> |
getConditions()
(experimental) Rule applies if matches the conditions.
|
default FixedResponse |
getFixedResponse()
Deprecated.
Use `action` instead.
|
default String |
getHostHeader()
Deprecated.
Use `conditions` instead.
|
default String |
getPathPattern()
Deprecated.
Use `conditions` instead.
|
default List<String> |
getPathPatterns()
Deprecated.
Use `conditions` instead.
|
Number |
getPriority()
(experimental) Priority of the rule.
|
default RedirectResponse |
getRedirectResponse()
Deprecated.
Use `action` instead.
|
default List<IApplicationTargetGroup> |
getTargetGroups()
(experimental) Target groups to forward requests to.
|
@Stability(value=Experimental) @NotNull Number getPriority()
The rule with the lowest priority will be used for every request.
Priorities must be unique.
@Stability(value=Experimental) @Nullable default ListenerAction getAction()
Only one of action, fixedResponse, redirectResponse or targetGroups can be specified.
Default: - No action
@Stability(value=Experimental) @Nullable default List<ListenerCondition> getConditions()
Default: - No conditions.
@Stability(value=Deprecated) @Deprecated @Nullable default FixedResponse getFixedResponse()
Only one of action, fixedResponse, redirectResponse or targetGroups can be specified.
Default: - No fixed response.
@Stability(value=Deprecated) @Deprecated @Nullable default String getHostHeader()
May contain up to three '*' wildcards.
Default: - No host condition.
@Stability(value=Deprecated) @Deprecated @Nullable default String getPathPattern()
Default: - No path condition.
@Stability(value=Deprecated) @Deprecated @Nullable default List<String> getPathPatterns()
Paths may contain up to three '*' wildcards.
Default: - No path conditions.
@Stability(value=Deprecated) @Deprecated @Nullable default RedirectResponse getRedirectResponse()
Only one of action, fixedResponse, redirectResponse or targetGroups can be specified.
Default: - No redirect response.
@Stability(value=Experimental) @Nullable default List<IApplicationTargetGroup> getTargetGroups()
Only one of action, fixedResponse, redirectResponse or targetGroups can be specified.
Implies a forward action.
Default: - No target groups.
@Stability(value=Experimental) static BaseApplicationListenerRuleProps.Builder builder()
Copyright © 2022. All rights reserved.