interface UsagePlanPerApiStage
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.APIGateway.UsagePlanPerApiStage |
Java | software.amazon.awscdk.services.apigateway.UsagePlanPerApiStage |
Python | aws_cdk.aws_apigateway.UsagePlanPerApiStage |
TypeScript (source) | @aws-cdk/aws-apigateway » UsagePlanPerApiStage |
Represents the API stages that a usage plan applies to.
Example
declare const plan: apigateway.UsagePlan;
declare const api: apigateway.RestApi;
declare const echoMethod: apigateway.Method;
plan.addApiStage({
stage: api.deploymentStage,
throttle: [
{
method: echoMethod,
throttle: {
rateLimit: 10,
burstLimit: 2
}
}
]
});
Properties
Name | Type | Description |
---|---|---|
api? | IRest | |
stage? | Stage | [disable-awslint:ref-via-interface]. |
throttle? | Throttling [] |
api?
Type:
IRest
(optional, default: none)
stage?
Type:
Stage
(optional, default: none)
[disable-awslint:ref-via-interface].
throttle?
Type:
Throttling
[]
(optional, default: none)