AWS::ApiGatewayV2::AuthorizerThe AWS::ApiGatewayV2::Authorizer resource creates an authorizer for a WebSocket API or an HTTP API. To learn more, see [Controlling and managing access to a WebSocket API in API Gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-control-access.html) and [Controlling and managing access to an HTTP API in API Gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-access-control.html) in the *API Gateway Developer Guide*.
11 configurable properties. 3 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
ApiId | string | RequiredCreate-only |
AuthorizerType | string | Required |
Name | string | Required |
AuthorizerCredentialsArn | string | Write-only |
AuthorizerPayloadFormatVersion | string | Write-only |
AuthorizerResultTtlInSeconds | integer | Write-only |
AuthorizerUri | string | Write-only |
EnableSimpleResponses | boolean | Write-only |
IdentitySource | Array<string> | |
IdentityValidationExpression | string | |
JwtConfiguration | JWTConfiguration |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
AuthorizerId | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::ApiGatewayV2::Authorizer
Resources:
MyResource:
Type: AWS::ApiGatewayV2::Authorizer
Properties:
AuthorizerType: "value"
ApiId: "my-apiid"
Name: "my-name"Permissions CloudFormation needs in your IAM role to manage this resource.
apigateway:POSTiam:PassRoleapigateway:PATCHapigateway:GETapigateway:PUTiam:PassRoleapigateway:GETapigateway:GETapigateway:DELETEapigateway:GETOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterAuthorizerIdThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
ApiId