---
type: resource-type
title: Apigwv2Route
description: aws resource type AWS::ApiGatewayV2::Route
name: Apigwv2Route
lexicon: aws
resource_type: AWS::ApiGatewayV2::Route
---
`AWS::ApiGatewayV2::Route`, a resource type of the aws lexicon.

## Properties

- `ApiId` (`string`, required): The API identifier.
- `RouteKey` (`string`, required): The route key for the route. For HTTP APIs, the route key can be either ``$default``, or a combination of an HTTP method and resource path, for example, ``GET /pets``.
- `ApiKeyRequired` (`boolean`, optional): Specifies whether an API key is required for the route. Supported only for WebSocket APIs.
- `AuthorizationScopes` (`string[]`, optional): The authorization scopes supported by this route.
- `AuthorizationType` (`string`, optional): The authorization type for the route. For WebSocket APIs, valid values are ``NONE`` for open access, ``AWS_IAM`` for using AWS IAM permissions, and ``CUSTOM`` for using a Lambda authorizer. For HTTP APIs, valid values are ``NONE`` for open access, ``JWT`` for using JSON Web Tokens, ``AWS_IAM`` for using AWS IAM permissions, and ``CUSTOM`` for using a Lambda authorizer.
- `AuthorizerId` (`string`, optional): The identifier of the ``Authorizer`` resource to be associated with this route. The authorizer identifier is generated by API Gateway when you created the authorizer.
- `ModelSelectionExpression` (`string`, optional): The model selection expression for the route. Supported only for WebSocket APIs.
- `OperationName` (`string`, optional): The operation name for the route.
- `RequestModels` (`Record<string, unknown>`, optional): The request models for the route. Supported only for WebSocket APIs.
- `RequestParameters` (`Record<string, unknown>`, optional): The request parameters for the route. Supported only for WebSocket APIs.
- `RouteId` (`string`, optional)
- `RouteResponseSelectionExpression` (`string`, optional): The route response selection expression for the route. Supported only for WebSocket APIs.
- `Target` (`string`, optional): The target for the route.

## Attributes

- `RouteId`

## Governed by

- [WAW030](/rules/WAW030.md): Missing DependsOn for known CloudFormation ordering patterns
