Interface CfnRoutingRulePropsMixin.ConditionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRoutingRulePropsMixin.ConditionProperty.Jsii$Proxy
- Enclosing class:
CfnRoutingRulePropsMixin
@Stability(Stable)
public static interface CfnRoutingRulePropsMixin.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.cfnpropertymixins.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 forCfnRoutingRulePropsMixin.ConditionPropertystatic final classAn implementation forCfnRoutingRulePropsMixin.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
IResolvableorCfnRoutingRulePropsMixin.MatchBasePathsProperty- See Also:
-
getMatchHeaders
The headers to be matched.Returns union: either
IResolvableorCfnRoutingRulePropsMixin.MatchHeadersProperty- See Also:
-
builder
-