get_usage_plan
(**kwargs)¶Gets a usage plan of a given plan identifier.
See also: AWS API Documentation
Request Syntax
response = client.get_usage_plan(
usagePlanId='string'
)
[REQUIRED]
The identifier of the UsagePlan resource to be retrieved.
{
'id': 'string',
'name': 'string',
'description': 'string',
'apiStages': [
{
'apiId': 'string',
'stage': 'string',
'throttle': {
'string': {
'burstLimit': 123,
'rateLimit': 123.0
}
}
},
],
'throttle': {
'burstLimit': 123,
'rateLimit': 123.0
},
'quota': {
'limit': 123,
'offset': 123,
'period': 'DAY'|'WEEK'|'MONTH'
},
'productCode': 'string',
'tags': {
'string': 'string'
}
}
Response Structure
Represents a usage plan used to specify who can assess associated API stages. Optionally, target request rate and quota limits can be set. In some cases clients can exceed the targets that you set. Don’t rely on usage plans to control costs. Consider using Amazon Web Services Budgets to monitor costs and WAF to manage API requests.
The identifier of a UsagePlan resource.
The name of a usage plan.
The description of a usage plan.
The associated API stages of a usage plan.
API stage name of the associated API stage in a usage plan.
API Id of the associated API stage in a usage plan.
API stage name of the associated API stage in a usage plan.
Map containing method level throttling information for API stage in a usage plan.
The API request rate limits.
The API target request burst rate limit. This allows more requests through for a period of time than the target rate limit.
The API target request rate limit.
A map containing method level throttling information for API stage in a usage plan.
The API target request burst rate limit. This allows more requests through for a period of time than the target rate limit.
The API target request rate limit.
The target maximum number of permitted requests per a given unit time interval.
The target maximum number of requests that can be made in a given time period.
The number of requests subtracted from the given limit in the initial time period.
The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".
The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.
The collection of tags. Each tag element is associated with a given resource.
Exceptions
APIGateway.Client.exceptions.BadRequestException
APIGateway.Client.exceptions.NotFoundException
APIGateway.Client.exceptions.UnauthorizedException
APIGateway.Client.exceptions.TooManyRequestsException