An API Gateway ApiKey, for which a rate limiting configuration can be specified.
import { RateLimitedApiKey } from 'aws-cdk-lib/aws-apigateway';Or use the module namespace:
import * as apigateway from 'aws-cdk-lib/aws-apigateway';
// apigateway.RateLimitedApiKeyConfiguration passed to the constructor as RateLimitedApiKeyProps.
apiStagesOptionalUsagePlanPerApiStage[]API Stages to be associated with the RateLimitedApiKey. If you already prepared UsagePlan resource explicitly, you should use `stages` property. If you prefer to prepare UsagePlan resource implicitly via RateLimitedApiKey, or you should specify throttle settings at each stage individually, you should use `apiStages` property.
Default: none
quotaOptionalQuotaSettingsNumber of requests clients can make in a given time period.
Default: none
throttleOptionalThrottleSettingsOverall throttle settings for the API.
Default: none
ApiKeyPropscustomerIdOptionalinherited from ApiKeyPropsstringAn AWS Marketplace customer identifier to use when integrating with the AWS SaaS Marketplace.
Default: none
enabledOptionalinherited from ApiKeyPropsbooleanIndicates whether the API key can be used by clients.
Default: true
generateDistinctIdOptionalinherited from ApiKeyPropsbooleanSpecifies whether the key identifier is distinct from the created API key value.
Default: false
resourcesOptionalDeprecatedinherited from ApiKeyPropsIRestApi[]A list of resources this api key is associated with.
Default: none
Deprecated: - use `stages` instead
stagesOptionalinherited from ApiKeyPropsIStage[]A list of Stages this api key is associated with.
Default: - the api key is not associated with any stages
ApiKeyOptionsapiKeyNameOptionalinherited from ApiKeyOptionsstringA name for the API key. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the API key name.
Default: automically generated name
descriptionOptionalinherited from ApiKeyOptionsstringA description of the purpose of the API key.
Default: none
valueOptionalinherited from ApiKeyOptionsstringThe value of the API key. Must be at least 20 characters long.
Default: none
ResourceOptionsdefaultCorsPreflightOptionsOptionalinherited from ResourceOptionsCorsOptionsAdds a CORS preflight OPTIONS method to this resource and all child resources. You can add CORS at the resource-level using `addCorsPreflight`.
Default: - CORS is disabled
defaultIntegrationOptionalinherited from ResourceOptionsIntegrationAn integration to use as a default for all methods created within this API unless an integration is specified.
Default: - Inherited from parent.
defaultMethodOptionsOptionalinherited from ResourceOptionsMethodOptionsMethod options to use as a default for all methods created within this API unless custom options are specified.
Default: - Inherited from parent.
Everything you need to know about Amazon API Gateway on one page. HD quality, print-friendly.
Download Free Infographicaws-apigateway