AWS::ApiGatewayV2::RoutingRuleRepresents a routing rule. When the incoming request to a domain name matches the conditions for a rule, API Gateway invokes a stage of a target API. Supported only for REST APIs.
import { CfnRoutingRule } from 'aws-cdk-lib/aws-apigatewayv2';Or use the module namespace:
import * as apigatewayv2 from 'aws-cdk-lib/aws-apigatewayv2';
// apigatewayv2.CfnRoutingRuleConfiguration passed to the constructor as CfnRoutingRuleProps.
actionsRequiredIResolvable | IResolvable | ActionProperty[]The resulting action based on matching a routing rules condition. Only InvokeApi is supported.
conditionsRequiredIResolvable | IResolvable | ConditionProperty[]The conditions of the routing rule.
domainNameArnRequiredstringThe ARN of the domain name.
priorityRequirednumberThe 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.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-apigatewayv2AWS::ApiGatewayV2::RoutingRule