Route class that creates the Route for API Gateway HTTP API.
import { HttpRoute } from 'aws-cdk-lib/aws-apigatewayv2';Or use the module namespace:
import * as apigatewayv2 from 'aws-cdk-lib/aws-apigatewayv2';
// apigatewayv2.HttpRouteConfiguration passed to the constructor as HttpRouteProps.
httpApiRequiredIHttpApiRefthe API the route is associated with.
routeKeyRequiredHttpRouteKeyThe key to this route. This is a combination of an HTTP method and an HTTP path.
authorizationScopesOptionalstring[]The list of OIDC scopes to include in the authorization. These scopes will be merged with the scopes from the attached authorizer
Default: - no additional authorization scopes
authorizerOptionalIHttpRouteAuthorizerAuthorizer for a WebSocket API or an HTTP API.
Default: - No authorizer
BatchHttpRouteOptionsintegrationRequiredinherited from BatchHttpRouteOptionsHttpRouteIntegrationThe integration to be configured on this route.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-apigatewayv2