Skip to content
v2.273.0

AddApiKeyOptions Struct ​

Options to the UsagePlan.addApiKey() method.

Example ​

ts
declare const usagePlan: apigwv2.UsagePlan;
declare const apiKey: apigwv2.ApiKey;

usagePlan.addApiKey(apiKey, {
 overrideLogicalId: 'MyCustomLogicalId',
});

Properties ​

overrideLogicalIdstringoverride_logical_idstroverrideLogicalIdStringOverrideLogicalIdstringOverrideLogicalId*string= autogenerated by the CDK#
Override the CloudFormation logical id of the AWS::ApiGateway::UsagePlanKey resource.