# ApiKeySourceType

- Source: [`aws-apigateway/lib/restapi.ts`](https://github.com/aws/aws-cdk/blob/v2.273.0/packages/aws-cdk-lib/aws-apigateway/lib/restapi.ts#L1167)

## Members

| Member | Description |
| --- | --- |
| `HEADER` | To read the API key from the `X-API-Key` header of a request. |
| `AUTHORIZER` | To read the API key from the `UsageIdentifierKey` from a custom authorizer. |

## Referenced by

- [`RestApiProps`](/v2/docs/aws-cdk-lib.aws_apigateway.RestApiProps).apiKeySourceType
