Interface CfnListenerRule.RuleConditionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnListenerRule.RuleConditionProperty.Jsii$Proxy
- Enclosing class:
CfnListenerRule
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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnListenerRule.RuleConditionPropertystatic final classAn implementation forCfnListenerRule.RuleConditionProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringgetField()The field in the HTTP request.default ObjectInformation for a host header condition.default ObjectInformation for an HTTP header condition.default ObjectInformation for an HTTP method condition.default ObjectInformation for a path pattern condition.default ObjectInformation for a query string condition.default ObjectInformation for a source IP condition.The condition value.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getField
The field in the HTTP request. The following are the possible values:.http-headerhttp-request-methodhost-headerpath-patternquery-stringsource-ip
- See Also:
-
getHostHeaderConfig
Information for a host header condition.Specify only when
Fieldishost-header.- See Also:
-
getHttpHeaderConfig
Information for an HTTP header condition.Specify only when
Fieldishttp-header.- See Also:
-
getHttpRequestMethodConfig
Information for an HTTP method condition.Specify only when
Fieldishttp-request-method.- See Also:
-
getPathPatternConfig
Information for a path pattern condition.Specify only when
Fieldispath-pattern.- See Also:
-
getQueryStringConfig
Information for a query string condition.Specify only when
Fieldisquery-string.- See Also:
-
getSourceIpConfig
Information for a source IP condition.Specify only when
Fieldissource-ip.- See Also:
-
getValues
The condition value.Specify only when
Fieldishost-headerorpath-pattern. Alternatively, to specify multiple host names or multiple path patterns, useHostHeaderConfigorPathPatternConfig.If
Fieldishost-headerand you're not usingHostHeaderConfig, 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.- A-Z, a-z, 0-9
- .
- (matches 0 or more characters)
- ? (matches exactly 1 character)
If
Fieldispath-patternand you're not usingPathPatternConfig, 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.- A-Z, a-z, 0-9
- _ - . $ / ~ " ' @ : +
- & (using &)
- (matches 0 or more characters)
- ? (matches exactly 1 character)
- See Also:
-
builder
-