@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:06.487Z") @Stability(value=Experimental) public interface ApplicationListenerRuleProps extends software.amazon.jsii.JsiiSerializable, 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()
(experimental) The listener to attach the rule to.
|
getAction, getConditions, getFixedResponse, getHostHeader, getPathPattern, getPathPatterns, getPriority, getRedirectResponse, getTargetGroups@Stability(value=Experimental) @NotNull IApplicationListener getListener()
@Stability(value=Experimental) static ApplicationListenerRuleProps.Builder builder()
builder in interface BaseApplicationListenerRulePropsApplicationListenerRuleProps.Builder of ApplicationListenerRulePropsCopyright © 2022. All rights reserved.