@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:57.515Z") public interface ApplicationListenerRuleProps extends 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.*; ApplicationListener applicationListener; ApplicationTargetGroup applicationTargetGroup; ListenerAction listenerAction; ListenerCondition listenerCondition; ApplicationListenerRuleProps applicationListenerRuleProps = ApplicationListenerRuleProps.builder() .listener(applicationListener) .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 |
ApplicationListenerRuleProps.Builder
A builder for
ApplicationListenerRuleProps |
static class |
ApplicationListenerRuleProps.Jsii$Proxy
An implementation for
ApplicationListenerRuleProps |
Modifier and Type | Method and Description |
---|---|
static ApplicationListenerRuleProps.Builder |
builder() |
IApplicationListener |
getListener()
The listener to attach the rule to.
|
getAction, getConditions, getFixedResponse, getHostHeader, getPathPattern, getPathPatterns, getPriority, getRedirectResponse, getTargetGroups
IApplicationListener getListener()
static ApplicationListenerRuleProps.Builder builder()
builder
in interface BaseApplicationListenerRuleProps
ApplicationListenerRuleProps.Builder
of ApplicationListenerRuleProps