# AddApiKeyOptions

Options to the UsagePlan.addApiKey() method.

- Source: [`aws-apigateway/lib/usage-plan.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-apigateway/lib/usage-plan.ts#L158)

## Example

```ts
declare const usageplan: apigateway.UsagePlan;
declare const apiKey: apigateway.ApiKey;

usageplan.addApiKey(apiKey, {
  overrideLogicalId: '...',
});
```

## Properties

- `overrideLogicalId`: string — Override the CloudFormation logical id of the AWS::ApiGateway::UsagePlanKey resource.

  **Default:** autogenerated by the CDK
