Interface CfnRule.HttpMatchProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRule.HttpMatchProperty.Jsii$Proxy
- Enclosing class:
CfnRule
@Stability(Stable)
public static interface CfnRule.HttpMatchProperty
extends software.amazon.jsii.JsiiSerializable
Describes criteria that can be applied to incoming requests.
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.vpclattice.*; HttpMatchProperty httpMatchProperty = HttpMatchProperty.builder() .headerMatches(List.of(HeaderMatchProperty.builder() .match(HeaderMatchTypeProperty.builder() .contains("contains") .exact("exact") .prefix("prefix") .build()) .name("name") // the properties below are optional .caseSensitive(false) .build())) .method("method") .pathMatch(PathMatchProperty.builder() .match(PathMatchTypeProperty.builder() .exact("exact") .prefix("prefix") .build()) // the properties below are optional .caseSensitive(false) .build()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnRule.HttpMatchProperty
static final class
An implementation forCfnRule.HttpMatchProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getHeaderMatches
The header matches.Matches incoming requests with rule based on request header value before applying rule action.
-
getMethod
The HTTP method type. -
getPathMatch
The path match. -
builder
- Returns:
- a
CfnRule.HttpMatchProperty.Builder
ofCfnRule.HttpMatchProperty
-