# ApiKeySourceType

- Source: [`aws-apigateway/lib/restapi.ts`](https://github.com/aws/aws-cdk/blob/v2.278.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`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway.RestApiProps.html).apiKeySourceType
