Interface CfnRoutingRule.ConditionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRoutingRule.ConditionProperty.Jsii$Proxy
- Enclosing class:
CfnRoutingRule
@Stability(Stable)
public static interface CfnRoutingRule.ConditionProperty
extends software.amazon.jsii.JsiiSerializable
Represents a condition.
Conditions can contain up to two matchHeaders conditions and one matchBasePaths conditions. API Gateway evaluates header conditions and base path conditions together. You can only use AND between header and base path conditions.
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.apigatewayv2.*;
ConditionProperty conditionProperty = ConditionProperty.builder()
.matchBasePaths(MatchBasePathsProperty.builder()
.anyOf(List.of("anyOf"))
.build())
.matchHeaders(MatchHeadersProperty.builder()
.anyOf(List.of(MatchHeaderValueProperty.builder()
.header("header")
.valueGlob("valueGlob")
.build()))
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnRoutingRule.ConditionPropertystatic final classAn implementation forCfnRoutingRule.ConditionProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMatchBasePaths
The base path to be matched.Returns union: either
IResolvableorCfnRoutingRule.MatchBasePathsProperty- See Also:
-
getMatchHeaders
The headers to be matched.Returns union: either
IResolvableorCfnRoutingRule.MatchHeadersProperty- See Also:
-
builder
-