@Stability(value=Stable)
public static interface CfnListenerRule.HttpHeaderConfigProperty
extends software.amazon.jsii.JsiiSerializable
There is a set of standard HTTP header fields. You can also define custom HTTP header fields.
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.*;
HttpHeaderConfigProperty httpHeaderConfigProperty = HttpHeaderConfigProperty.builder()
.httpHeaderName("httpHeaderName")
.values(List.of("values"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnListenerRule.HttpHeaderConfigProperty.Builder
A builder for
CfnListenerRule.HttpHeaderConfigProperty |
static class |
CfnListenerRule.HttpHeaderConfigProperty.Jsii$Proxy
An implementation for
CfnListenerRule.HttpHeaderConfigProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnListenerRule.HttpHeaderConfigProperty.Builder |
builder() |
default String |
getHttpHeaderName()
The name of the HTTP header field.
|
default List<String> |
getValues()
One or more strings to compare against the value of the HTTP header.
|
@Stability(value=Stable) @Nullable default String getHttpHeaderName()
The maximum size is 40 characters. The header name is case insensitive. The allowed characters are specified by RFC 7230. Wildcards are not supported.
@Stability(value=Stable) @Nullable default List<String> getValues()
The maximum size of each string is 128 characters. The comparison strings are case insensitive. The following wildcard characters are supported: * (matches 0 or more characters) and ? (matches exactly 1 character).
If the same header appears multiple times in the request, we search them in order until a match is found.
If you specify multiple strings, the condition is satisfied if one of the strings matches the value of the HTTP header. To require that all of the strings are a match, create one condition per string.
@Stability(value=Stable) static CfnListenerRule.HttpHeaderConfigProperty.Builder builder()
Copyright © 2022. All rights reserved.