openapi: 3.0.0
info:
version: 2015-07-09
x-release: v4
title: APIs.io Engineering Platform Amazon API Gateway 2014 11 13 Usageplans API
description:
Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on AWS Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.
x-logo: url: https://api.apis.guru/v2/cache/logo/https_twitter.com_awscloud_profile_image.png backgroundColor: '#FFFFFF' termsOfService: https://aws.amazon.com/service-terms/ contact: name: Mike Ralphson email: mike.ralphson@gmail.com url: https://github.com/mermade/aws2openapi x-twitter: PermittedSoc license: name: Apache 2.0 License url: http://www.apache.org/licenses/ x-providerName: amazonaws.com x-serviceName: apigateway x-origin: - contentType: application/json url: https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/apigateway-2015-07-09.normal.json converter: url: https://github.com/mermade/aws2openapi version: 1.0.0 x-apisguru-driver: external x-apiClientRegistration: url: https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct x-apisguru-categories: - cloud x-preferred: true servers: - url: http://apigateway.{region}.amazonaws.com variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The Amazon API Gateway multi-region endpoint - url: https://apigateway.{region}.amazonaws.com variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The Amazon API Gateway multi-region endpoint - url: http://apigateway.{region}.amazonaws.com.cn variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Amazon API Gateway endpoint for China (Beijing) and China (Ningxia) - url: https://apigateway.{region}.amazonaws.com.cn variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Amazon API Gateway endpoint for China (Beijing) and China (Ningxia) security: - hmac: [] tags: - name: Usageplans paths: /usageplans: parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' post: operationId: CreateUsagePlan description: 'Creates a usage plan with the throttle and quota limits, as well as the associated API stages, specified in the payload. ' responses: '201': description: Success content: application/json: schema: $ref: '#/components/schemas/UsagePlan' '480': description: BadRequestException content: application/json: schema: $ref: '#/components/schemas/BadRequestException' '481': description: ConflictException content: application/json: schema: $ref: '#/components/schemas/ConflictException' '482': description: LimitExceededException content: application/json: schema: $ref: '#/components/schemas/LimitExceededException' '483': description: NotFoundException content: application/json: schema: $ref: '#/components/schemas/NotFoundException' '484': description: UnauthorizedException content: application/json: schema: $ref: '#/components/schemas/UnauthorizedException' '485': description: TooManyRequestsException content: application/json: schema: $ref: '#/components/schemas/TooManyRequestsException' parameters: [] requestBody: required: true content: application/json: schema: type: object required: - name properties: name: description: The name of the usage plan. type: string description: description: The description of the usage plan. type: string apiStages: description: The associated API stages of the usage plan. type: array items: $ref: '#/components/schemas/ApiStage' throttle: description: ' The API request rate limits.' type: object properties: burstLimit: allOf: - $ref: '#/components/schemas/Integer' - description: The API target request burst rate limit. This allows more requests through for a period of time than the target rate limit. rateLimit: allOf: - $ref: '#/components/schemas/Double' - description: The API target request rate limit. quota: description: Quotas configured for a usage plan. type: object properties: limit: allOf: - $ref: '#/components/schemas/Integer' - description: The target maximum number of requests that can be made in a given time period. offset: allOf: - $ref: '#/components/schemas/Integer' - description: The number of requests subtracted from the given limit in the initial time period. period: allOf: - $ref: '#/components/schemas/QuotaPeriodType' - description: The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH". tags: description: The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start withaws:. The tag value can be up to 256 characters.
type: object
additionalProperties:
$ref: '#/components/schemas/String'
tags:
- Usageplans
get:
operationId: GetUsagePlans
description: Gets all the usage plans of the caller's account.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/UsagePlans'
'480':
description: BadRequestException
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestException'
'481':
description: NotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundException'
'482':
description: UnauthorizedException
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedException'
'483':
description: TooManyRequestsException
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsException'
parameters:
- name: position
in: query
required: false
description: The current pagination position in the paged result set.
schema:
type: string
- name: keyId
in: query
required: false
description: The identifier of the API key associated with the usage plans.
schema:
type: string
- name: limit
in: query
required: false
description: The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
schema:
type: integer
tags:
- Usageplans
/usageplans/{usageplanId}/keys:
parameters:
- $ref: '#/components/parameters/X-Amz-Content-Sha256'
- $ref: '#/components/parameters/X-Amz-Date'
- $ref: '#/components/parameters/X-Amz-Algorithm'
- $ref: '#/components/parameters/X-Amz-Credential'
- $ref: '#/components/parameters/X-Amz-Security-Token'
- $ref: '#/components/parameters/X-Amz-Signature'
- $ref: '#/components/parameters/X-Amz-SignedHeaders'
post:
operationId: CreateUsagePlanKey
description: Creates a usage plan key for adding an existing API key to a usage plan.
responses:
'201':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/UsagePlanKey'
'480':
description: BadRequestException
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestException'
'481':
description: ConflictException
content:
application/json:
schema:
$ref: '#/components/schemas/ConflictException'
'482':
description: LimitExceededException
content:
application/json:
schema:
$ref: '#/components/schemas/LimitExceededException'
'483':
description: NotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundException'
'484':
description: UnauthorizedException
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedException'
'485':
description: TooManyRequestsException
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsException'
parameters:
- name: usageplanId
in: path
required: true
description: The Id of the UsagePlan resource representing the usage plan containing the to-be-created UsagePlanKey resource representing a plan customer.
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- keyId
- keyType
properties:
keyId:
description: The identifier of a UsagePlanKey resource for a plan customer.
type: string
keyType:
description: The type of a UsagePlanKey resource for a plan customer.
type: string
tags:
- Usageplans
get:
operationId: GetUsagePlanKeys
description: Gets all the usage plan keys representing the API keys added to a specified usage plan.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/UsagePlanKeys'
'480':
description: BadRequestException
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestException'
'481':
description: NotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundException'
'482':
description: UnauthorizedException
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedException'
'483':
description: TooManyRequestsException
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsException'
parameters:
- name: usageplanId
in: path
required: true
description: The Id of the UsagePlan resource representing the usage plan containing the to-be-retrieved UsagePlanKey resource representing a plan customer.
schema:
type: string
- name: position
in: query
required: false
description: The current pagination position in the paged result set.
schema:
type: string
- name: limit
in: query
required: false
description: The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
schema:
type: integer
- name: name
in: query
required: false
description: A query parameter specifying the name of the to-be-returned usage plan keys.
schema:
type: string
tags:
- Usageplans
/usageplans/{usageplanId}:
parameters:
- $ref: '#/components/parameters/X-Amz-Content-Sha256'
- $ref: '#/components/parameters/X-Amz-Date'
- $ref: '#/components/parameters/X-Amz-Algorithm'
- $ref: '#/components/parameters/X-Amz-Credential'
- $ref: '#/components/parameters/X-Amz-Security-Token'
- $ref: '#/components/parameters/X-Amz-Signature'
- $ref: '#/components/parameters/X-Amz-SignedHeaders'
delete:
operationId: DeleteUsagePlan
description: Deletes a usage plan of a given plan Id.
responses:
'202':
description: Success
'480':
description: BadRequestException
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestException'
'481':
description: ConflictException
content:
application/json:
schema:
$ref: '#/components/schemas/ConflictException'
'482':
description: NotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundException'
'483':
description: UnauthorizedException
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedException'
'484':
description: TooManyRequestsException
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsException'
parameters:
- name: usageplanId
in: path
required: true
description: The Id of the to-be-deleted usage plan.
schema:
type: string
tags:
- Usageplans
get:
operationId: GetUsagePlan
description: Gets a usage plan of a given plan identifier.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/UsagePlan'
'480':
description: BadRequestException
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestException'
'481':
description: NotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundException'
'482':
description: UnauthorizedException
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedException'
'483':
description: TooManyRequestsException
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsException'
parameters:
- name: usageplanId
in: path
required: true
description: The identifier of the UsagePlan resource to be retrieved.
schema:
type: string
tags:
- Usageplans
patch:
operationId: UpdateUsagePlan
description: Updates a usage plan of a given plan Id.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/UsagePlan'
'480':
description: BadRequestException
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestException'
'481':
description: ConflictException
content:
application/json:
schema:
$ref: '#/components/schemas/ConflictException'
'482':
description: LimitExceededException
content:
application/json:
schema:
$ref: '#/components/schemas/LimitExceededException'
'483':
description: NotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundException'
'484':
description: UnauthorizedException
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedException'
'485':
description: TooManyRequestsException
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsException'
parameters:
- name: usageplanId
in: path
required: true
description: The Id of the to-be-updated usage plan.
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
patchOperations:
description: A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.
type: array
items:
$ref: '#/components/schemas/PatchOperation'
tags:
- Usageplans
/usageplans/{usageplanId}/keys/{keyId}:
parameters:
- $ref: '#/components/parameters/X-Amz-Content-Sha256'
- $ref: '#/components/parameters/X-Amz-Date'
- $ref: '#/components/parameters/X-Amz-Algorithm'
- $ref: '#/components/parameters/X-Amz-Credential'
- $ref: '#/components/parameters/X-Amz-Security-Token'
- $ref: '#/components/parameters/X-Amz-Signature'
- $ref: '#/components/parameters/X-Amz-SignedHeaders'
delete:
operationId: DeleteUsagePlanKey
description: Deletes a usage plan key and remove the underlying API key from the associated usage plan.
responses:
'202':
description: Success
'480':
description: BadRequestException
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestException'
'481':
description: ConflictException
content:
application/json:
schema:
$ref: '#/components/schemas/ConflictException'
'482':
description: NotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundException'
'483':
description: UnauthorizedException
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedException'
'484':
description: TooManyRequestsException
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsException'
parameters:
- name: usageplanId
in: path
required: true
description: The Id of the UsagePlan resource representing the usage plan containing the to-be-deleted UsagePlanKey resource representing a plan customer.
schema:
type: string
- name: keyId
in: path
required: true
description: The Id of the UsagePlanKey resource to be deleted.
schema:
type: string
tags:
- Usageplans
get:
operationId: GetUsagePlanKey
description: Gets a usage plan key of a given key identifier.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/UsagePlanKey'
'480':
description: BadRequestException
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestException'
'481':
description: NotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundException'
'482':
description: UnauthorizedException
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedException'
'483':
description: TooManyRequestsException
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsException'
parameters:
- name: usageplanId
in: path
required: true
description: The Id of the UsagePlan resource representing the usage plan containing the to-be-retrieved UsagePlanKey resource representing a plan customer.
schema:
type: string
- name: keyId
in: path
required: true
description: The key Id of the to-be-retrieved UsagePlanKey resource representing a plan customer.
schema:
type: string
tags:
- Usageplans
/usageplans/{usageplanId}/usage#startDate&endDate:
parameters:
- $ref: '#/components/parameters/X-Amz-Content-Sha256'
- $ref: '#/components/parameters/X-Amz-Date'
- $ref: '#/components/parameters/X-Amz-Algorithm'
- $ref: '#/components/parameters/X-Amz-Credential'
- $ref: '#/components/parameters/X-Amz-Security-Token'
- $ref: '#/components/parameters/X-Amz-Signature'
- $ref: '#/components/parameters/X-Amz-SignedHeaders'
get:
operationId: GetUsage
description: Gets the usage data of a usage plan in a specified time interval.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/Usage'
'480':
description: BadRequestException
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestException'
'481':
description: UnauthorizedException
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedException'
'482':
description: NotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundException'
'483':
description: TooManyRequestsException
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsException'
parameters:
- name: usageplanId
in: path
required: true
description: The Id of the usage plan associated with the usage data.
schema:
type: string
- name: keyId
in: query
required: false
description: The Id of the API key associated with the resultant usage data.
schema:
type: string
- name: startDate
in: query
required: true
description: The starting date (e.g., 2016-01-01) of the usage data.
schema:
type: string
- name: endDate
in: query
required: true
description: The ending date (e.g., 2016-12-31) of the usage data.
schema:
type: string
- name: position
in: query
required: false
description: The current pagination position in the paged result set.
schema:
type: string
- name: limit
in: query
required: false
description: The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
schema:
type: integer
tags:
- Usageplans
/usageplans/{usageplanId}/keys/{keyId}/usage:
parameters:
- $ref: '#/components/parameters/X-Amz-Content-Sha256'
- $ref: '#/components/parameters/X-Amz-Date'
- $ref: '#/components/parameters/X-Amz-Algorithm'
- $ref: '#/components/parameters/X-Amz-Credential'
- $ref: '#/components/parameters/X-Amz-Security-Token'
- $ref: '#/components/parameters/X-Amz-Signature'
- $ref: '#/components/parameters/X-Amz-SignedHeaders'
patch:
operationId: UpdateUsage
description: Grants a temporary extension to the remaining quota of a usage plan associated with a specified API key.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/Usage'
'480':
description: BadRequestException
content:
application/json:
schema:
$ref: '#/components/schemas/BadRequestException'
'481':
description: ConflictException
content:
application/json:
schema:
$ref: '#/components/schemas/ConflictException'
'482':
description: LimitExceededException
content:
application/json:
schema:
$ref: '#/components/schemas/LimitExceededException'
'483':
description: NotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/NotFoundException'
'484':
description: UnauthorizedException
content:
application/json:
schema:
$ref: '#/components/schemas/UnauthorizedException'
'485':
description: TooManyRequestsException
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsException'
parameters:
- name: usageplanId
in: path
required: true
description: The Id of the usage plan associated with the usage data.
schema:
type: string
- name: keyId
in: path
required: true
description: The identifier of the API key associated with the usage plan in which a temporary extension is granted to the remaining quota.
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
patchOperations:
description: A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.
type: array
items:
$ref: '#/components/schemas/PatchOperation'
tags:
- Usageplans
components:
parameters:
X-Amz-Signature:
name: X-Amz-Signature
in: header
schema:
type: string
required: false
X-Amz-Content-Sha256:
name: X-Amz-Content-Sha256
in: header
schema:
type: string
required: false
X-Amz-Algorithm:
name: X-Amz-Algorithm
in: header
schema:
type: string
required: false
X-Amz-Security-Token:
name: X-Amz-Security-Token
in: header
schema:
type: string
required: false
X-Amz-SignedHeaders:
name: X-Amz-SignedHeaders
in: header
schema:
type: string
required: false
X-Amz-Credential:
name: X-Amz-Credential
in: header
schema:
type: string
required: false
X-Amz-Date:
name: X-Amz-Date
in: header
schema:
type: string
required: false
schemas:
TooManyRequestsException: {}
QuotaPeriodType:
type: string
enum:
- DAY
- WEEK
- MONTH
NotFoundException: {}
Double:
type: number
format: double
Op:
type: string
enum:
- add
- remove
- replace
- move
- copy
- test
ListOfUsage:
type: array
items:
$ref: '#/components/schemas/ListOfLong'
Integer:
type: integer
UnauthorizedException: {}
Usage:
type: object
properties:
usagePlanId:
allOf:
- $ref: '#/components/schemas/String'
- description: The plan Id associated with this usage data.
startDate:
allOf:
- $ref: '#/components/schemas/String'
- description: The starting date of the usage data.
endDate:
allOf:
- $ref: '#/components/schemas/String'
- description: The ending date of the usage data.
position:
$ref: '#/components/schemas/String'
items:
allOf:
- $ref: '#/components/schemas/MapOfKeyUsages'
- xml:
name: values
description: 'The usage data, as daily logs of used and remaining quotas, over the specified time interval indexed over the API keys in a usage plan. For example, {..., "values" : { "{api_key}" : [ [0, 100], [10, 90], [100, 10]]}, where {api_key} stands for an API key value and the daily log entry is of the format [used quota, remaining quota].'
description: Represents the usage data of a usage plan.
ConflictException: {}
MapOfKeyUsages:
type: object
additionalProperties:
$ref: '#/components/schemas/ListOfUsage'
Long:
type: integer
BadRequestException: {}
PatchOperation:
type: object
properties:
op:
allOf:
- $ref: '#/components/schemas/Op'
- description: An update operation to be performed with this PATCH request. The valid value can be add, remove, replace or copy. Not all valid operations are supported for a given resource. Support of the operations depends on specific operational contexts. Attempts to apply an unsupported operation on a resource will return an error message..
path:
allOf:
- $ref: '#/components/schemas/String'
- description: 'The op operation''s target, as identified by a JSON Pointer value that references a location within the targeted resource. For example, if the target resource has an updateable property of {"name":"value"}, the path for this property is /name. If the name property value is a JSON object (e.g., {"name": {"child/name": "child-value"}}), the path for the child/name property will be /name/child~1name. Any slash ("/") character appearing in path names must be escaped with "~1", as shown in the example above. Each op operation can have only one path associated with it.'
value:
allOf:
- $ref: '#/components/schemas/String'
- description: 'The new target value of the update operation. It is applicable for the add or replace operation. When using AWS CLI to update a property of a JSON value, enclose the JSON object with a pair of single quotes in a Linux shell, e.g., ''{"a": ...}''.'
from:
allOf:
- $ref: '#/components/schemas/String'
- description: The copy update operation's source as identified by a JSON-Pointer value referencing the location within the targeted resource to copy the value from. For example, to promote a canary deployment, you copy the canary deployment ID to the affiliated deployment ID by calling a PATCH request on a Stage resource with "op":"copy", "from":"/canarySettings/deploymentId" and "path":"/deploymentId".
description: For more information about supported patch operations, see Patch Operations.
LimitExceededException: {}
ApiStage:
type: object
properties:
apiId:
allOf:
- $ref: '#/components/schemas/String'
- description: API Id of the associated API stage in a usage plan.
stage:
allOf:
- $ref: '#/components/schemas/String'
- description: API stage name of the associated API stage in a usage plan.
throttle:
allOf:
- $ref: '#/components/schemas/MapOfApiStageThrottleSettings'
- description: Map containing method level throttling information for API stage in a usage plan.
description: API stage name of the associated API stage in a usage plan.
MapOfApiStageThrottleSettings:
type: object
additionalProperties:
$ref: '#/components/schemas/ThrottleSettings'
ListOfUsagePlanKey:
type: array
items:
$ref: '#/components/schemas/UsagePlanKey'
ListOfUsagePlan:
type: array
items:
$ref: '#/components/schemas/UsagePlan'
ListOfLong:
type: array
items:
$ref: '#/components/schemas/Long'
String:
type: string
MapOfStringToString:
type: object
additionalProperties:
$ref: '#/components/schemas/String'
UsagePlan:
type: object
properties:
id:
allOf:
- $ref: '#/components/schemas/String'
- description: The identifier of a UsagePlan resource.
name:
allOf:
- $ref: '#/components/schemas/String'
- description: The name of a usage plan.
description:
allOf:
- $ref: '#/components/schemas/String'
- description: The description of a usage plan.
apiStages:
allOf:
- $ref: '#/components/schemas/ListOfApiStage'
- description: The associated API stages of a usage plan.
throttle:
allOf:
- $ref: '#/components/schemas/ThrottleSettings'
- description: A map containing method level throttling information for API stage in a usage plan.
quota:
allOf:
- $ref: '#/components/schemas/QuotaSettings'
- description: The target maximum number of permitted requests per a given unit time interval.
productCode:
allOf:
- $ref: '#/components/schemas/String'
- description: The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.
tags:
allOf:
- $ref: '#/components/schemas/MapOfStringToString'
- description: The collection of tags. Each tag element is associated with a given resource.
description: 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.
ThrottleSettings:
type: object
properties:
burstLimit:
allOf:
- $ref: '#/components/schemas/Integer'
- description: The API target request burst rate limit. This allows more requests through for a period of time than the target rate limit.
rateLimit:
allOf:
- $ref: '#/components/schemas/Double'
- description: The API target request rate limit.
description: ' The API request rate limits.'
UsagePlanKey:
type: object
properties:
id:
allOf:
- $ref: '#/components/schemas/String'
- description: The Id of a usage plan key.
type:
allOf:
- $ref: '#/components/schemas/String'
- description: The type of a usage plan key. Currently, the valid key type is API_KEY.
value:
allOf:
- $ref: '#/components/schemas/String'
- description: The value of a usage plan key.
name:
allOf:
- $ref: '#/components/schemas/String'
- description: The name of a usage plan key.
description: Represents a usage plan key to identify a plan customer.
UsagePlans:
type: object
properties:
position:
$ref: '#/components/schemas/String'
items:
allOf:
- $ref: '#/components/schemas/ListOfUsagePlan'
- xml:
name: item
description: The current page of elements from this collection.
description: Represents a collection of usage plans for an AWS account.
UsagePlanKeys:
type: object
properties:
position:
$ref: '#/components/schemas/String'
items:
allOf:
- $ref: '#/components/schemas/ListOfUsagePlanKey'
- xml:
name: item
description: The current page of elements from this collection.
description: Represents the collection of usage plan keys added to usage plans for the associated API keys and, possibly, other types of keys.
ListOfApiStage:
type: array
items:
$ref: '#/components/schemas/ApiStage'
QuotaSettings:
type: object
properties:
limit:
allOf:
- $ref: '#/components/schemas/Integer'
- description: The target maximum number of requests that can be made in a given time period.
offset:
allOf:
- $ref: '#/components/schemas/Integer'
- description: The number of requests subtracted from the given limit in the initial time period.
period:
allOf:
- $ref: '#/components/schemas/QuotaPeriodType'
- description: The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".
description: Quotas configured for a usage plan.
securitySchemes:
hmac:
type: apiKey
name: Authorization
in: header
description: Amazon Signature authorization v4
x-amazon-apigateway-authtype: awsSigv4
externalDocs:
description: Amazon Web Services documentation
url: https://docs.aws.amazon.com/apigateway/
x-hasEquivalentPaths: true