AWS::ApiGateway::UsagePlanThe `AWS::ApiGateway::UsagePlan` resource creates a usage plan for deployed APIs. A usage plan sets a target for the throttling and quota limits on individual client API keys. For more information, see [Creating and Using API Usage Plans in Amazon API Gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html) in the *API Gateway Developer Guide* . In some cases clients can exceed the targets that you set. Don’t rely on usage plans to control costs. Consider using [AWS Budgets](https://docs.aws.amazon.com/cost-management/latest/userguide/budgets-managing-costs.html) to monitor costs and [AWS WAF](https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html) to manage API requests.
import { CfnUsagePlan } from 'aws-cdk-lib/aws-apigateway';Or use the module namespace:
import * as apigateway from 'aws-cdk-lib/aws-apigateway';
// apigateway.CfnUsagePlanConfiguration passed to the constructor as CfnUsagePlanProps.
apiStagesOptionalIResolvable | IResolvable | ApiStageProperty[]The associated API stages of a usage plan.
descriptionOptionalstringThe description of a usage plan.
quotaOptionalIResolvable | QuotaSettingsPropertyThe target maximum number of permitted requests per a given unit time interval.
tagsOptionalCfnTag[]The collection of tags. Each tag element is associated with a given resource.
throttleOptionalIResolvable | ThrottleSettingsPropertyA map containing method level throttling information for API stage in a usage plan.
usagePlanNameOptionalstringThe name of a usage plan.
This L1 construct maps directly to the following CloudFormation resource type.
Everything you need to know about Amazon API Gateway on one page. HD quality, print-friendly.
Download Free Infographicaws-apigatewayAWS::ApiGateway::UsagePlan