interface UsagePlanPerApiStage
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.APIGateway.UsagePlanPerApiStage |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsapigateway#UsagePlanPerApiStage |
![]() | software.amazon.awscdk.services.apigateway.UsagePlanPerApiStage |
![]() | aws_cdk.aws_apigateway.UsagePlanPerApiStage |
![]() | aws-cdk-lib » 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)