AWS::ApiGatewayV2::RouteThe AWS::ApiGatewayV2::Route resource creates a route for an API.
12 configurable properties. 2 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
ApiId | string | RequiredCreate-only |
RouteKey | string | Required |
ApiKeyRequired | boolean | |
AuthorizationScopes | Array<string> | |
AuthorizationType | string | |
AuthorizerId | string | Write-only |
ModelSelectionExpression | string | |
OperationName | string | |
RequestModels | object | |
RequestParameters | object | Write-only |
RouteResponseSelectionExpression | string | |
Target | string |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
RouteId | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::ApiGatewayV2::Route
Resources:
MyResource:
Type: AWS::ApiGatewayV2::Route
Properties:
RouteKey: "value"
ApiId: "my-apiid"Permissions CloudFormation needs in your IAM role to manage this resource.
apigateway:POSTapigateway:PATCHapigateway:GETapigateway:PUTapigateway:GETapigateway:GETapigateway:DELETEapigateway:GETOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterApiIdThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
ApiId