Interface CfnRoutingRuleProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRoutingRuleProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:13.839Z")
@Stability(Stable)
public interface CfnRoutingRuleProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnRoutingRule.
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.*;
CfnRoutingRuleProps cfnRoutingRuleProps = CfnRoutingRuleProps.builder()
.actions(List.of(ActionProperty.builder()
.invokeApi(ActionInvokeApiProperty.builder()
.apiId("apiId")
.stage("stage")
// the properties below are optional
.stripBasePath(false)
.build())
.build()))
.conditions(List.of(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()))
.domainNameArn("domainNameArn")
.priority(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnRoutingRulePropsstatic final classAn implementation forCfnRoutingRuleProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnRoutingRuleProps.Builderbuilder()The resulting action based on matching a routing rules condition.The conditions of the routing rule.The ARN of the domain name.The order in which API Gateway evaluates a rule.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getActions
The resulting action based on matching a routing rules condition.Only InvokeApi is supported.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnRoutingRule.ActionProperty>- See Also:
-
getConditions
The conditions of the routing rule.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnRoutingRule.ConditionProperty>- See Also:
-
getDomainNameArn
The ARN of the domain name.- See Also:
-
getPriority
The order in which API Gateway evaluates a rule.Priority is evaluated from the lowest value to the highest value. Rules can't have the same priority. Priority values 1-1,000,000 are supported.
- See Also:
-
builder
- Returns:
- a
CfnRoutingRuleProps.BuilderofCfnRoutingRuleProps
-