Interface CfnRule.MatchProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRule.MatchProperty.Jsii$Proxy
- Enclosing class:
CfnRule
@Stability(Stable)
public static interface CfnRule.MatchProperty
extends software.amazon.jsii.JsiiSerializable
Describes a rule match.
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.*;
MatchProperty matchProperty = MatchProperty.builder()
.httpMatch(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())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnRule.MatchPropertystatic final classAn implementation forCfnRule.MatchProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getHttpMatch
The HTTP criteria that a rule must match.Returns union: either
IResolvableorCfnRule.HttpMatchProperty- See Also:
-
builder
- Returns:
- a
CfnRule.MatchProperty.BuilderofCfnRule.MatchProperty
-