# HttpRouteAuthorizerConfig

Results of binding an authorizer to an http route.

- Source: [`aws-apigatewayv2/lib/http/authorizer.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-apigatewayv2/lib/http/authorizer.ts#L252)
- Type last changed: v2.112.0 · 1 Dec 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigatewayv2 as apigatewayv2 } from 'aws-cdk-lib';
const httpRouteAuthorizerConfig: apigatewayv2.HttpRouteAuthorizerConfig = {
  authorizationType: 'authorizationType',

  // the properties below are optional
  authorizationScopes: ['authorizationScopes'],
  authorizerId: 'authorizerId',
};
```

## Properties

- `authorizationScopes`: string[] — The list of OIDC scopes to include in the authorization.

  **Default:** no authorization scopes

- `authorizationType`: string (required) — The type of authorization.

  Possible values are:
  - AWS_IAM - IAM Authorizer
  - JWT - JSON Web Token Authorizer
  - CUSTOM - Lambda Authorizer
  - NONE - No Authorization

- `authorizerId`: string — The authorizer id.

  **Default:** No authorizer id (useful for AWS_IAM route authorizer)
