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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnListenerRule.RuleConditionProperty
static final class
An implementation forCfnListenerRule.RuleConditionProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
getField()
The field in the HTTP request.default Object
Information for a host header condition.default Object
Information for an HTTP header condition.default Object
Information for an HTTP method condition.default Object
Information for a path pattern condition.default Object
Information for a query string condition.default Object
Information 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-header
http-request-method
host-header
path-pattern
query-string
source-ip
- See Also:
-
getHostHeaderConfig
Information for a host header condition.Specify only when
Field
ishost-header
.- See Also:
-
getHttpHeaderConfig
Information for an HTTP header condition.Specify only when
Field
ishttp-header
.- See Also:
-
getHttpRequestMethodConfig
Information for an HTTP method condition.Specify only when
Field
ishttp-request-method
.- See Also:
-
getPathPatternConfig
Information for a path pattern condition.Specify only when
Field
ispath-pattern
.- See Also:
-
getQueryStringConfig
Information for a query string condition.Specify only when
Field
isquery-string
.- See Also:
-
getSourceIpConfig
Information for a source IP condition.Specify only when
Field
issource-ip
.- See Also:
-
getValues
The condition value.Specify only when
Field
ishost-header
orpath-pattern
. Alternatively, to specify multiple host names or multiple path patterns, useHostHeaderConfig
orPathPatternConfig
.If
Field
ishost-header
and 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
Field
ispath-pattern
and 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
-