@Stability(value=Stable)
public static interface CfnListenerRule.RuleConditionProperty
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.*;
RuleConditionProperty ruleConditionProperty = RuleConditionProperty.builder()
.field("field")
.hostHeaderConfig(HostHeaderConfigProperty.builder()
.values(List.of("values"))
.build())
.httpHeaderConfig(HttpHeaderConfigProperty.builder()
.httpHeaderName("httpHeaderName")
.values(List.of("values"))
.build())
.httpRequestMethodConfig(HttpRequestMethodConfigProperty.builder()
.values(List.of("values"))
.build())
.pathPatternConfig(PathPatternConfigProperty.builder()
.values(List.of("values"))
.build())
.queryStringConfig(QueryStringConfigProperty.builder()
.values(List.of(QueryStringKeyValueProperty.builder()
.key("key")
.value("value")
.build()))
.build())
.sourceIpConfig(SourceIpConfigProperty.builder()
.values(List.of("values"))
.build())
.values(List.of("values"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnListenerRule.RuleConditionProperty.Builder
A builder for
CfnListenerRule.RuleConditionProperty |
static class |
CfnListenerRule.RuleConditionProperty.Jsii$Proxy
An implementation for
CfnListenerRule.RuleConditionProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnListenerRule.RuleConditionProperty.Builder |
builder() |
default String |
getField()
The field in the HTTP request.
|
default Object |
getHostHeaderConfig()
Information for a host header condition.
|
default Object |
getHttpHeaderConfig()
Information for an HTTP header condition.
|
default Object |
getHttpRequestMethodConfig()
Information for an HTTP method condition.
|
default Object |
getPathPatternConfig()
Information for a path pattern condition.
|
default Object |
getQueryStringConfig()
Information for a query string condition.
|
default Object |
getSourceIpConfig()
Information for a source IP condition.
|
default List<String> |
getValues()
The condition value.
|
@Stability(value=Stable) @Nullable default String getField()
http-headerhttp-request-methodhost-headerpath-patternquery-stringsource-ip@Stability(value=Stable) @Nullable default Object getHostHeaderConfig()
Specify only when Field is host-header .
@Stability(value=Stable) @Nullable default Object getHttpHeaderConfig()
Specify only when Field is http-header .
@Stability(value=Stable) @Nullable default Object getHttpRequestMethodConfig()
Specify only when Field is http-request-method .
@Stability(value=Stable) @Nullable default Object getPathPatternConfig()
Specify only when Field is path-pattern .
@Stability(value=Stable) @Nullable default Object getQueryStringConfig()
Specify only when Field is query-string .
@Stability(value=Stable) @Nullable default Object getSourceIpConfig()
Specify only when Field is source-ip .
@Stability(value=Stable) @Nullable default List<String> getValues()
Specify only when Field is host-header or path-pattern . Alternatively, to specify multiple host names or multiple path patterns, use HostHeaderConfig or PathPatternConfig .
If Field is host-header and you're not using HostHeaderConfig , you can specify a single host name (for example, my.example.com). A host name is case insensitive, can be up to 128 characters in length, and can contain any of the following characters.
If Field is path-pattern and you're not using PathPatternConfig , you can specify a single path pattern (for example, /img/*). A path pattern is case-sensitive, can be up to 128 characters in length, and can contain any of the following characters.
@Stability(value=Stable) static CfnListenerRule.RuleConditionProperty.Builder builder()
Copyright © 2022. All rights reserved.