Interface CfnListenerRulePropsMixin.IHttpHeaderConfigProperty
Information about an HTTP header condition.
Namespace: Amazon.CDK.Mixins.Preview.AWS.ElasticLoadBalancingV2.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public interface CfnListenerRulePropsMixin.IHttpHeaderConfigProperty
Syntax (vb)
Public Interface CfnListenerRulePropsMixin.IHttpHeaderConfigProperty
Remarks
There is a set of standard HTTP header fields. You can also define custom HTTP header fields.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.ElasticLoadBalancingV2.Mixins;
var httpHeaderConfigProperty = new HttpHeaderConfigProperty {
HttpHeaderName = "httpHeaderName",
RegexValues = new [] { "regexValues" },
Values = new [] { "values" }
};
Synopsis
Properties
| HttpHeaderName | The name of the HTTP header field. |
| RegexValues | Information about an HTTP header condition. |
| Values | The strings to compare against the value of the HTTP header. |
Properties
HttpHeaderName
The name of the HTTP header field.
string? HttpHeaderName { get; }
Property Value
Remarks
The maximum size is 40 characters. The header name is case insensitive. The allowed characters are specified by RFC 7230. Wildcards are not supported.
RegexValues
Information about an HTTP header condition.
string[]? RegexValues { get; }
Property Value
string[]
Remarks
Values
The strings to compare against the value of the HTTP header.
string[]? Values { get; }
Property Value
string[]
Remarks
The maximum length 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.