Interface BaseApplicationListenerRuleProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
ApplicationListenerRuleProps
- All Known Implementing Classes:
ApplicationListenerRuleProps.Jsii$Proxy
,BaseApplicationListenerRuleProps.Jsii$Proxy
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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forBaseApplicationListenerRuleProps
static final class
An implementation forBaseApplicationListenerRuleProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default ListenerAction
Action to perform when requests are received.default List<ListenerCondition>
Rule applies if matches the conditions.default FixedResponse
Deprecated.default String
Deprecated.Useconditions
instead.default String
Deprecated.Useconditions
instead.Deprecated.Useconditions
instead.Priority of the rule.default RedirectResponse
Deprecated.Useaction
instead.default List<IApplicationTargetGroup>
Target groups to forward requests to.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPriority
Priority of the rule.The rule with the lowest priority will be used for every request.
Priorities must be unique.
-
getAction
Action to perform when requests are received.Only one of
action
,fixedResponse
,redirectResponse
ortargetGroups
can be specified.Default: - No action
-
getConditions
Rule applies if matches the conditions.Default: - No conditions.
- See Also:
-
getFixedResponse
Deprecated.Useaction
instead.(deprecated) Fixed response to return.Only one of
action
,fixedResponse
,redirectResponse
ortargetGroups
can be specified.Default: - No fixed response.
-
getHostHeader
Deprecated.Useconditions
instead.(deprecated) Rule applies if the requested host matches the indicated host.May contain up to three '*' wildcards.
Default: - No host condition.
- See Also:
-
getPathPattern
Deprecated.Useconditions
instead.(deprecated) Rule applies if the requested path matches the given path pattern.Default: - No path condition.
- See Also:
-
getPathPatterns
Deprecated.Useconditions
instead.(deprecated) Rule applies if the requested path matches any of the given patterns.Paths may contain up to three '*' wildcards.
Default: - No path conditions.
- See Also:
-
getRedirectResponse
Deprecated.Useaction
instead.(deprecated) Redirect response to return.Only one of
action
,fixedResponse
,redirectResponse
ortargetGroups
can be specified.Default: - No redirect response.
-
getTargetGroups
Target groups to forward requests to.Only one of
action
,fixedResponse
,redirectResponse
ortargetGroups
can be specified.Implies a
forward
action.Default: - No target groups.
-
builder
-
action
instead.