@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)",
date="2023-01-31T18:36:57.533Z")
public interface BaseApplicationListenerRuleProps
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()
Action to perform when requests are received.
|
default java.util.List<ListenerCondition> |
getConditions()
Rule applies if matches the conditions.
|
default FixedResponse |
getFixedResponse()
Deprecated.
Use `action` instead.
|
default java.lang.String |
getHostHeader()
Deprecated.
Use `conditions` instead.
|
default java.lang.String |
getPathPattern()
Deprecated.
Use `conditions` instead.
|
default java.util.List<java.lang.String> |
getPathPatterns()
Deprecated.
Use `conditions` instead.
|
java.lang.Number |
getPriority()
Priority of the rule.
|
default RedirectResponse |
getRedirectResponse()
Deprecated.
Use `action` instead.
|
default java.util.List<IApplicationTargetGroup> |
getTargetGroups()
Target groups to forward requests to.
|
java.lang.Number getPriority()
The rule with the lowest priority will be used for every request.
Priorities must be unique.
default ListenerAction getAction()
Only one of action
, fixedResponse
, redirectResponse
or targetGroups
can be specified.
Default: - No action
default java.util.List<ListenerCondition> getConditions()
Default: - No conditions.
@Deprecated default FixedResponse getFixedResponse()
Only one of action
, fixedResponse
, redirectResponse
or targetGroups
can be specified.
Default: - No fixed response.
@Deprecated default java.lang.String getHostHeader()
May contain up to three '*' wildcards.
Default: - No host condition.
@Deprecated default java.lang.String getPathPattern()
Default: - No path condition.
@Deprecated default java.util.List<java.lang.String> getPathPatterns()
Paths may contain up to three '*' wildcards.
Default: - No path conditions.
@Deprecated default RedirectResponse getRedirectResponse()
Only one of action
, fixedResponse
, redirectResponse
or targetGroups
can be specified.
Default: - No redirect response.
default java.util.List<IApplicationTargetGroup> getTargetGroups()
Only one of action
, fixedResponse
, redirectResponse
or targetGroups
can be specified.
Implies a forward
action.
Default: - No target groups.
static BaseApplicationListenerRuleProps.Builder builder()