2019/05/22 - Amazon API Gateway - 26 updated api methods
Changes This release adds support for tagging of Amazon API Gateway resources.
{'tags': {'string': 'string'}}
Create an ApiKey resource.
See also: AWS API Documentation
Request Syntax
client.create_api_key( name='string', description='string', enabled=True|False, generateDistinctId=True|False, value='string', stageKeys=[ { 'restApiId': 'string', 'stageName': 'string' }, ], customerId='string', tags={ 'string': 'string' } )
string
The name of the ApiKey .
string
The description of the ApiKey .
boolean
Specifies whether the ApiKey can be used by callers.
boolean
Specifies whether (true ) or not (false ) the key identifier is distinct from the created API key value.
string
Specifies a value of the API key.
list
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
(dict) --
A reference to a unique stage identified in the format {restApiId}/{stage} .
restApiId (string) --
The string identifier of the associated RestApi .
stageName (string) --
The stage name associated with the stage key.
string
An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
dict
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 with aws: . The tag value can be up to 256 characters.
(string) --
(string) --
dict
Response Syntax
{ 'id': 'string', 'value': 'string', 'name': 'string', 'customerId': 'string', 'description': 'string', 'enabled': True|False, 'createdDate': datetime(2015, 1, 1), 'lastUpdatedDate': datetime(2015, 1, 1), 'stageKeys': [ 'string', ], 'tags': { 'string': 'string' } }
Response Structure
(dict) --
A resource that can be distributed to callers for executing Method resources that require an API key. API keys can be mapped to any Stage on any RestApi , which indicates that the callers with the API key can make requests to that stage.
id (string) --
The identifier of the API Key.
value (string) --
The value of the API Key.
name (string) --
The name of the API Key.
customerId (string) --
An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
description (string) --
The description of the API Key.
enabled (boolean) --
Specifies whether the API Key can be used by callers.
createdDate (datetime) --
The timestamp when the API Key was created.
lastUpdatedDate (datetime) --
The timestamp when the API Key was last updated.
stageKeys (list) --
A list of Stage resources that are associated with the ApiKey resource.
(string) --
tags (dict) --
The collection of tags. Each tag element is associated with a given resource.
(string) --
(string) --
{'tags': {'string': 'string'}}
Creates a new domain name.
See also: AWS API Documentation
Request Syntax
client.create_domain_name( domainName='string', certificateName='string', certificateBody='string', certificatePrivateKey='string', certificateChain='string', certificateArn='string', regionalCertificateName='string', regionalCertificateArn='string', endpointConfiguration={ 'types': [ 'REGIONAL'|'EDGE'|'PRIVATE', ] }, tags={ 'string': 'string' } )
string
[REQUIRED]
[Required] The name of the DomainName resource.
string
The user-friendly name of the certificate that will be used by edge-optimized endpoint for this domain name.
string
[Deprecated] The body of the server certificate that will be used by edge-optimized endpoint for this domain name provided by your certificate authority.
string
[Deprecated] Your edge-optimized endpoint's domain name certificate's private key.
string
[Deprecated] The intermediate certificates and optionally the root certificate, one after the other without any blank lines, used by an edge-optimized endpoint for this domain name. If you include the root certificate, your certificate chain must start with intermediate certificates and end with the root certificate. Use the intermediate certificates that were provided by your certificate authority. Do not include any intermediaries that are not in the chain of trust path.
string
The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain name. AWS Certificate Manager is the only supported source.
string
The user-friendly name of the certificate that will be used by regional endpoint for this domain name.
string
The reference to an AWS-managed certificate that will be used by regional endpoint for this domain name. AWS Certificate Manager is the only supported source.
dict
The endpoint configuration of this DomainName showing the endpoint types of the domain name.
types (list) --
A list of endpoint types of an API ( RestApi ) or its custom domain name ( DomainName ). For an edge-optimized API and its custom domain name, the endpoint type is "EDGE" . For a regional API and its custom domain name, the endpoint type is REGIONAL . For a private API, the endpoint type is PRIVATE .
(string) --
The endpoint type. The valid values are EDGE for edge-optimized API setup, most suitable for mobile applications; REGIONAL for regional API endpoint setup, most suitable for calling from AWS Region; and PRIVATE for private APIs.
dict
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 with aws: . The tag value can be up to 256 characters.
(string) --
(string) --
dict
Response Syntax
{ 'domainName': 'string', 'certificateName': 'string', 'certificateArn': 'string', 'certificateUploadDate': datetime(2015, 1, 1), 'regionalDomainName': 'string', 'regionalHostedZoneId': 'string', 'regionalCertificateName': 'string', 'regionalCertificateArn': 'string', 'distributionDomainName': 'string', 'distributionHostedZoneId': 'string', 'endpointConfiguration': { 'types': [ 'REGIONAL'|'EDGE'|'PRIVATE', ] }, 'tags': { 'string': 'string' } }
Response Structure
(dict) --
Represents a custom domain name as a user-friendly host name of an API ( RestApi ).
When you deploy an API, API Gateway creates a default host name for the API. This default API host name is of the {restapi-id}.execute-api.{region}.amazonaws.com format. With the default host name, you can access the API's root resource with the URL of https://{restapi-id}.execute-api.{region}.amazonaws.com/{stage}/ . When you set up a custom domain name of apis.example.com for this API, you can then access the same resource using the URL of the https://apis.examples.com/myApi , where myApi is the base path mapping ( BasePathMapping ) of your API under the custom domain name.
domainName (string) --
The custom domain name as an API host name, for example, my-api.example.com .
certificateName (string) --
The name of the certificate that will be used by edge-optimized endpoint for this domain name.
certificateArn (string) --
The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain name. AWS Certificate Manager is the only supported source.
certificateUploadDate (datetime) --
The timestamp when the certificate that was used by edge-optimized endpoint for this domain name was uploaded.
regionalDomainName (string) --
The domain name associated with the regional endpoint for this custom domain name. You set up this association by adding a DNS record that points the custom domain name to this regional domain name. The regional domain name is returned by API Gateway when you create a regional endpoint.
regionalHostedZoneId (string) --
The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway .
regionalCertificateName (string) --
The name of the certificate that will be used for validating the regional domain name.
regionalCertificateArn (string) --
The reference to an AWS-managed certificate that will be used for validating the regional domain name. AWS Certificate Manager is the only supported source.
distributionDomainName (string) --
The domain name of the Amazon CloudFront distribution associated with this custom domain name for an edge-optimized endpoint. You set up this association when adding a DNS record pointing the custom domain name to this distribution name. For more information about CloudFront distributions, see the Amazon CloudFront documentation .
distributionHostedZoneId (string) --
The region-agnostic Amazon Route 53 Hosted Zone ID of the edge-optimized endpoint. The valid value is Z2FDTNDATAQYW2 for all the regions. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway .
endpointConfiguration (dict) --
The endpoint configuration of this DomainName showing the endpoint types of the domain name.
types (list) --
A list of endpoint types of an API ( RestApi ) or its custom domain name ( DomainName ). For an edge-optimized API and its custom domain name, the endpoint type is "EDGE" . For a regional API and its custom domain name, the endpoint type is REGIONAL . For a private API, the endpoint type is PRIVATE .
(string) --
The endpoint type. The valid values are EDGE for edge-optimized API setup, most suitable for mobile applications; REGIONAL for regional API endpoint setup, most suitable for calling from AWS Region; and PRIVATE for private APIs.
tags (dict) --
The collection of tags. Each tag element is associated with a given resource.
(string) --
(string) --
{'tags': {'string': 'string'}}
Creates a new RestApi resource.
See also: AWS API Documentation
Request Syntax
client.create_rest_api( name='string', description='string', version='string', cloneFrom='string', binaryMediaTypes=[ 'string', ], minimumCompressionSize=123, apiKeySource='HEADER'|'AUTHORIZER', endpointConfiguration={ 'types': [ 'REGIONAL'|'EDGE'|'PRIVATE', ] }, policy='string', tags={ 'string': 'string' } )
string
[REQUIRED]
[Required] The name of the RestApi .
string
The description of the RestApi .
string
A version identifier for the API.
string
The ID of the RestApi that you want to clone from.
list
The list of binary media types supported by the RestApi . By default, the RestApi supports only UTF-8-encoded text payloads.
(string) --
integer
A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.
string
The source of the API key for metering requests according to a usage plan. Valid values are:
HEADER to read the API key from the X-API-Key header of a request.
AUTHORIZER to read the API key from the UsageIdentifierKey from a custom authorizer.
dict
The endpoint configuration of this RestApi showing the endpoint types of the API.
types (list) --
A list of endpoint types of an API ( RestApi ) or its custom domain name ( DomainName ). For an edge-optimized API and its custom domain name, the endpoint type is "EDGE" . For a regional API and its custom domain name, the endpoint type is REGIONAL . For a private API, the endpoint type is PRIVATE .
(string) --
The endpoint type. The valid values are EDGE for edge-optimized API setup, most suitable for mobile applications; REGIONAL for regional API endpoint setup, most suitable for calling from AWS Region; and PRIVATE for private APIs.
string
A stringified JSON policy document that applies to this RestApi regardless of the caller and Method configuration.
dict
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 with aws: . The tag value can be up to 256 characters.
(string) --
(string) --
dict
Response Syntax
{ 'id': 'string', 'name': 'string', 'description': 'string', 'createdDate': datetime(2015, 1, 1), 'version': 'string', 'warnings': [ 'string', ], 'binaryMediaTypes': [ 'string', ], 'minimumCompressionSize': 123, 'apiKeySource': 'HEADER'|'AUTHORIZER', 'endpointConfiguration': { 'types': [ 'REGIONAL'|'EDGE'|'PRIVATE', ] }, 'policy': 'string', 'tags': { 'string': 'string' } }
Response Structure
(dict) --
Represents a REST API.
id (string) --
The API's identifier. This identifier is unique across all of your APIs in API Gateway.
name (string) --
The API's name.
description (string) --
The API's description.
createdDate (datetime) --
The timestamp when the API was created.
version (string) --
A version identifier for the API.
warnings (list) --
The warning messages reported when failonwarnings is turned on during API import.
(string) --
binaryMediaTypes (list) --
The list of binary media types supported by the RestApi . By default, the RestApi supports only UTF-8-encoded text payloads.
(string) --
minimumCompressionSize (integer) --
A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.
apiKeySource (string) --
The source of the API key for metering requests according to a usage plan. Valid values are:
HEADER to read the API key from the X-API-Key header of a request.
AUTHORIZER to read the API key from the UsageIdentifierKey from a custom authorizer.
endpointConfiguration (dict) --
The endpoint configuration of this RestApi showing the endpoint types of the API.
types (list) --
A list of endpoint types of an API ( RestApi ) or its custom domain name ( DomainName ). For an edge-optimized API and its custom domain name, the endpoint type is "EDGE" . For a regional API and its custom domain name, the endpoint type is REGIONAL . For a private API, the endpoint type is PRIVATE .
(string) --
The endpoint type. The valid values are EDGE for edge-optimized API setup, most suitable for mobile applications; REGIONAL for regional API endpoint setup, most suitable for calling from AWS Region; and PRIVATE for private APIs.
policy (string) -- A stringified JSON policy document that applies to this RestApi regardless of the caller and Method configuration.
tags (dict) --
The collection of tags. Each tag element is associated with a given resource.
(string) --
(string) --
{'tags': {'string': 'string'}}
Creates a usage plan with the throttle and quota limits, as well as the associated API stages, specified in the payload.
See also: AWS API Documentation
Request Syntax
client.create_usage_plan( 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' }, tags={ 'string': 'string' } )
string
[REQUIRED]
[Required] The name of the usage plan.
string
The description of the usage plan.
list
The associated API stages of the usage plan.
(dict) --
API stage name of the associated API stage in a usage plan.
apiId (string) --
API Id of the associated API stage in a usage plan.
stage (string) --
API stage name of the associated API stage in a usage plan.
throttle (dict) --
Map containing method level throttling information for API stage in a usage plan.
(string) --
(dict) --
The API request rate limits.
burstLimit (integer) --
The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity.
rateLimit (float) --
The API request steady-state rate limit.
dict
The throttling limits of the usage plan.
burstLimit (integer) --
The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity.
rateLimit (float) --
The API request steady-state rate limit.
dict
The quota of the usage plan.
limit (integer) --
The maximum number of requests that can be made in a given time period.
offset (integer) --
The number of requests subtracted from the given limit in the initial time period.
period (string) --
The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".
dict
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 with aws: . The tag value can be up to 256 characters.
(string) --
(string) --
dict
Response Syntax
{ '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
(dict) --
Represents a usage plan than can specify who can assess associated API stages with specified request limits and quotas.
In a usage plan, you associate an API by specifying the API's Id and a stage name of the specified API. You add plan customers by adding API keys to the plan.
id (string) --
The identifier of a UsagePlan resource.
name (string) --
The name of a usage plan.
description (string) --
The description of a usage plan.
apiStages (list) --
The associated API stages of a usage plan.
(dict) --
API stage name of the associated API stage in a usage plan.
apiId (string) --
API Id of the associated API stage in a usage plan.
stage (string) --
API stage name of the associated API stage in a usage plan.
throttle (dict) --
Map containing method level throttling information for API stage in a usage plan.
(string) --
(dict) --
The API request rate limits.
burstLimit (integer) --
The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity.
rateLimit (float) --
The API request steady-state rate limit.
throttle (dict) --
The request throttle limits of a usage plan.
burstLimit (integer) --
The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity.
rateLimit (float) --
The API request steady-state rate limit.
quota (dict) --
The maximum number of permitted requests per a given unit time interval.
limit (integer) --
The maximum number of requests that can be made in a given time period.
offset (integer) --
The number of requests subtracted from the given limit in the initial time period.
period (string) --
The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".
productCode (string) --
The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.
tags (dict) --
The collection of tags. Each tag element is associated with a given resource.
(string) --
(string) --
{'tags': {'string': 'string'}}
Creates a VPC link, under the caller's account in a selected region, in an asynchronous operation that typically takes 2-4 minutes to complete and become operational. The caller must have permissions to create and update VPC Endpoint services.
See also: AWS API Documentation
Request Syntax
client.create_vpc_link( name='string', description='string', targetArns=[ 'string', ], tags={ 'string': 'string' } )
string
[REQUIRED]
[Required] The name used to label and identify the VPC link.
string
The description of the VPC link.
list
[REQUIRED]
[Required] The ARNs of network load balancers of the VPC targeted by the VPC link. The network load balancers must be owned by the same AWS account of the API owner.
(string) --
dict
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 with aws: . The tag value can be up to 256 characters.
(string) --
(string) --
dict
Response Syntax
{ 'id': 'string', 'name': 'string', 'description': 'string', 'targetArns': [ 'string', ], 'status': 'AVAILABLE'|'PENDING'|'DELETING'|'FAILED', 'statusMessage': 'string', 'tags': { 'string': 'string' } }
Response Structure
(dict) --
A API Gateway VPC link for a RestApi to access resources in an Amazon Virtual Private Cloud (VPC).
To enable access to a resource in an Amazon Virtual Private Cloud through Amazon API Gateway, you, as an API developer, create a VpcLink resource targeted for one or more network load balancers of the VPC and then integrate an API method with a private integration that uses the VpcLink . The private integration has an integration type of HTTP or HTTP_PROXY and has a connection type of VPC_LINK . The integration uses the connectionId property to identify the VpcLink used.
id (string) --
The identifier of the VpcLink . It is used in an Integration to reference this VpcLink .
name (string) --
The name used to label and identify the VPC link.
description (string) --
The description of the VPC link.
targetArns (list) --
The ARNs of network load balancers of the VPC targeted by the VPC link. The network load balancers must be owned by the same AWS account of the API owner.
(string) --
status (string) --
The status of the VPC link. The valid values are AVAILABLE , PENDING , DELETING , or FAILED . Deploying an API will wait if the status is PENDING and will fail if the status is DELETING .
statusMessage (string) --
A description about the VPC link status.
tags (dict) --
The collection of tags. Each tag element is associated with a given resource.
(string) --
(string) --
{'tags': {'string': 'string'}}
Generates a ClientCertificate resource.
See also: AWS API Documentation
Request Syntax
client.generate_client_certificate( description='string', tags={ 'string': 'string' } )
string
The description of the ClientCertificate .
dict
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 with aws: . The tag value can be up to 256 characters.
(string) --
(string) --
dict
Response Syntax
{ 'clientCertificateId': 'string', 'description': 'string', 'pemEncodedCertificate': 'string', 'createdDate': datetime(2015, 1, 1), 'expirationDate': datetime(2015, 1, 1), 'tags': { 'string': 'string' } }
Response Structure
(dict) --
Represents a client certificate used to configure client-side SSL authentication while sending requests to the integration endpoint.
Client certificates are used to authenticate an API by the backend server. To authenticate an API client (or user), use IAM roles and policies, a custom Authorizer or an Amazon Cognito user pool. Use Client-Side Certificate
clientCertificateId (string) --
The identifier of the client certificate.
description (string) --
The description of the client certificate.
pemEncodedCertificate (string) --
The PEM-encoded public key of the client certificate, which can be used to configure certificate authentication in the integration endpoint .
createdDate (datetime) --
The timestamp when the client certificate was created.
expirationDate (datetime) --
The timestamp when the client certificate will expire.
tags (dict) --
The collection of tags. Each tag element is associated with a given resource.
(string) --
(string) --
{'tags': {'string': 'string'}}
Gets information about the current ApiKey resource.
See also: AWS API Documentation
Request Syntax
client.get_api_key( apiKey='string', includeValue=True|False )
string
[REQUIRED]
[Required] The identifier of the ApiKey resource.
boolean
A boolean flag to specify whether (true ) or not (false ) the result contains the key value.
dict
Response Syntax
{ 'id': 'string', 'value': 'string', 'name': 'string', 'customerId': 'string', 'description': 'string', 'enabled': True|False, 'createdDate': datetime(2015, 1, 1), 'lastUpdatedDate': datetime(2015, 1, 1), 'stageKeys': [ 'string', ], 'tags': { 'string': 'string' } }
Response Structure
(dict) --
A resource that can be distributed to callers for executing Method resources that require an API key. API keys can be mapped to any Stage on any RestApi , which indicates that the callers with the API key can make requests to that stage.
id (string) --
The identifier of the API Key.
value (string) --
The value of the API Key.
name (string) --
The name of the API Key.
customerId (string) --
An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
description (string) --
The description of the API Key.
enabled (boolean) --
Specifies whether the API Key can be used by callers.
createdDate (datetime) --
The timestamp when the API Key was created.
lastUpdatedDate (datetime) --
The timestamp when the API Key was last updated.
stageKeys (list) --
A list of Stage resources that are associated with the ApiKey resource.
(string) --
tags (dict) --
The collection of tags. Each tag element is associated with a given resource.
(string) --
(string) --
{'items': {'tags': {'string': 'string'}}}
Gets information about the current ApiKeys resource.
See also: AWS API Documentation
Request Syntax
client.get_api_keys( position='string', limit=123, nameQuery='string', customerId='string', includeValues=True|False )
string
The current pagination position in the paged result set.
integer
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
string
The name of queried API keys.
string
The identifier of a customer in AWS Marketplace or an external system, such as a developer portal.
boolean
A boolean flag to specify whether (true ) or not (false ) the result contains key values.
dict
Response Syntax
{ 'warnings': [ 'string', ], 'position': 'string', 'items': [ { 'id': 'string', 'value': 'string', 'name': 'string', 'customerId': 'string', 'description': 'string', 'enabled': True|False, 'createdDate': datetime(2015, 1, 1), 'lastUpdatedDate': datetime(2015, 1, 1), 'stageKeys': [ 'string', ], 'tags': { 'string': 'string' } }, ] }
Response Structure
(dict) --
Represents a collection of API keys as represented by an ApiKeys resource.
warnings (list) --
A list of warning messages logged during the import of API keys when the failOnWarnings option is set to true.
(string) --
position (string) --
items (list) --
The current page of elements from this collection.
(dict) --
A resource that can be distributed to callers for executing Method resources that require an API key. API keys can be mapped to any Stage on any RestApi , which indicates that the callers with the API key can make requests to that stage.
id (string) --
The identifier of the API Key.
value (string) --
The value of the API Key.
name (string) --
The name of the API Key.
customerId (string) --
An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
description (string) --
The description of the API Key.
enabled (boolean) --
Specifies whether the API Key can be used by callers.
createdDate (datetime) --
The timestamp when the API Key was created.
lastUpdatedDate (datetime) --
The timestamp when the API Key was last updated.
stageKeys (list) --
A list of Stage resources that are associated with the ApiKey resource.
(string) --
tags (dict) --
The collection of tags. Each tag element is associated with a given resource.
(string) --
(string) --
{'tags': {'string': 'string'}}
Gets information about the current ClientCertificate resource.
See also: AWS API Documentation
Request Syntax
client.get_client_certificate( clientCertificateId='string' )
string
[REQUIRED]
[Required] The identifier of the ClientCertificate resource to be described.
dict
Response Syntax
{ 'clientCertificateId': 'string', 'description': 'string', 'pemEncodedCertificate': 'string', 'createdDate': datetime(2015, 1, 1), 'expirationDate': datetime(2015, 1, 1), 'tags': { 'string': 'string' } }
Response Structure
(dict) --
Represents a client certificate used to configure client-side SSL authentication while sending requests to the integration endpoint.
Client certificates are used to authenticate an API by the backend server. To authenticate an API client (or user), use IAM roles and policies, a custom Authorizer or an Amazon Cognito user pool. Use Client-Side Certificate
clientCertificateId (string) --
The identifier of the client certificate.
description (string) --
The description of the client certificate.
pemEncodedCertificate (string) --
The PEM-encoded public key of the client certificate, which can be used to configure certificate authentication in the integration endpoint .
createdDate (datetime) --
The timestamp when the client certificate was created.
expirationDate (datetime) --
The timestamp when the client certificate will expire.
tags (dict) --
The collection of tags. Each tag element is associated with a given resource.
(string) --
(string) --
{'items': {'tags': {'string': 'string'}}}
Gets a collection of ClientCertificate resources.
See also: AWS API Documentation
Request Syntax
client.get_client_certificates( position='string', limit=123 )
string
The current pagination position in the paged result set.
integer
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
dict
Response Syntax
{ 'position': 'string', 'items': [ { 'clientCertificateId': 'string', 'description': 'string', 'pemEncodedCertificate': 'string', 'createdDate': datetime(2015, 1, 1), 'expirationDate': datetime(2015, 1, 1), 'tags': { 'string': 'string' } }, ] }
Response Structure
(dict) --
Represents a collection of ClientCertificate resources.
position (string) --
items (list) --
The current page of elements from this collection.
(dict) --
Represents a client certificate used to configure client-side SSL authentication while sending requests to the integration endpoint.
Client certificates are used to authenticate an API by the backend server. To authenticate an API client (or user), use IAM roles and policies, a custom Authorizer or an Amazon Cognito user pool. Use Client-Side Certificate
clientCertificateId (string) --
The identifier of the client certificate.
description (string) --
The description of the client certificate.
pemEncodedCertificate (string) --
The PEM-encoded public key of the client certificate, which can be used to configure certificate authentication in the integration endpoint .
createdDate (datetime) --
The timestamp when the client certificate was created.
expirationDate (datetime) --
The timestamp when the client certificate will expire.
tags (dict) --
The collection of tags. Each tag element is associated with a given resource.
(string) --
(string) --
{'tags': {'string': 'string'}}
Represents a domain name that is contained in a simpler, more intuitive URL that can be called.
See also: AWS API Documentation
Request Syntax
client.get_domain_name( domainName='string' )
string
[REQUIRED]
[Required] The name of the DomainName resource.
dict
Response Syntax
{ 'domainName': 'string', 'certificateName': 'string', 'certificateArn': 'string', 'certificateUploadDate': datetime(2015, 1, 1), 'regionalDomainName': 'string', 'regionalHostedZoneId': 'string', 'regionalCertificateName': 'string', 'regionalCertificateArn': 'string', 'distributionDomainName': 'string', 'distributionHostedZoneId': 'string', 'endpointConfiguration': { 'types': [ 'REGIONAL'|'EDGE'|'PRIVATE', ] }, 'tags': { 'string': 'string' } }
Response Structure
(dict) --
Represents a custom domain name as a user-friendly host name of an API ( RestApi ).
When you deploy an API, API Gateway creates a default host name for the API. This default API host name is of the {restapi-id}.execute-api.{region}.amazonaws.com format. With the default host name, you can access the API's root resource with the URL of https://{restapi-id}.execute-api.{region}.amazonaws.com/{stage}/ . When you set up a custom domain name of apis.example.com for this API, you can then access the same resource using the URL of the https://apis.examples.com/myApi , where myApi is the base path mapping ( BasePathMapping ) of your API under the custom domain name.
domainName (string) --
The custom domain name as an API host name, for example, my-api.example.com .
certificateName (string) --
The name of the certificate that will be used by edge-optimized endpoint for this domain name.
certificateArn (string) --
The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain name. AWS Certificate Manager is the only supported source.
certificateUploadDate (datetime) --
The timestamp when the certificate that was used by edge-optimized endpoint for this domain name was uploaded.
regionalDomainName (string) --
The domain name associated with the regional endpoint for this custom domain name. You set up this association by adding a DNS record that points the custom domain name to this regional domain name. The regional domain name is returned by API Gateway when you create a regional endpoint.
regionalHostedZoneId (string) --
The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway .
regionalCertificateName (string) --
The name of the certificate that will be used for validating the regional domain name.
regionalCertificateArn (string) --
The reference to an AWS-managed certificate that will be used for validating the regional domain name. AWS Certificate Manager is the only supported source.
distributionDomainName (string) --
The domain name of the Amazon CloudFront distribution associated with this custom domain name for an edge-optimized endpoint. You set up this association when adding a DNS record pointing the custom domain name to this distribution name. For more information about CloudFront distributions, see the Amazon CloudFront documentation .
distributionHostedZoneId (string) --
The region-agnostic Amazon Route 53 Hosted Zone ID of the edge-optimized endpoint. The valid value is Z2FDTNDATAQYW2 for all the regions. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway .
endpointConfiguration (dict) --
The endpoint configuration of this DomainName showing the endpoint types of the domain name.
types (list) --
A list of endpoint types of an API ( RestApi ) or its custom domain name ( DomainName ). For an edge-optimized API and its custom domain name, the endpoint type is "EDGE" . For a regional API and its custom domain name, the endpoint type is REGIONAL . For a private API, the endpoint type is PRIVATE .
(string) --
The endpoint type. The valid values are EDGE for edge-optimized API setup, most suitable for mobile applications; REGIONAL for regional API endpoint setup, most suitable for calling from AWS Region; and PRIVATE for private APIs.
tags (dict) --
The collection of tags. Each tag element is associated with a given resource.
(string) --
(string) --
{'items': {'tags': {'string': 'string'}}}
Represents a collection of DomainName resources.
See also: AWS API Documentation
Request Syntax
client.get_domain_names( position='string', limit=123 )
string
The current pagination position in the paged result set.
integer
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
dict
Response Syntax
{ 'position': 'string', 'items': [ { 'domainName': 'string', 'certificateName': 'string', 'certificateArn': 'string', 'certificateUploadDate': datetime(2015, 1, 1), 'regionalDomainName': 'string', 'regionalHostedZoneId': 'string', 'regionalCertificateName': 'string', 'regionalCertificateArn': 'string', 'distributionDomainName': 'string', 'distributionHostedZoneId': 'string', 'endpointConfiguration': { 'types': [ 'REGIONAL'|'EDGE'|'PRIVATE', ] }, 'tags': { 'string': 'string' } }, ] }
Response Structure
(dict) --
Represents a collection of DomainName resources.
position (string) --
items (list) --
The current page of elements from this collection.
(dict) --
Represents a custom domain name as a user-friendly host name of an API ( RestApi ).
When you deploy an API, API Gateway creates a default host name for the API. This default API host name is of the {restapi-id}.execute-api.{region}.amazonaws.com format. With the default host name, you can access the API's root resource with the URL of https://{restapi-id}.execute-api.{region}.amazonaws.com/{stage}/ . When you set up a custom domain name of apis.example.com for this API, you can then access the same resource using the URL of the https://apis.examples.com/myApi , where myApi is the base path mapping ( BasePathMapping ) of your API under the custom domain name.
domainName (string) --
The custom domain name as an API host name, for example, my-api.example.com .
certificateName (string) --
The name of the certificate that will be used by edge-optimized endpoint for this domain name.
certificateArn (string) --
The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain name. AWS Certificate Manager is the only supported source.
certificateUploadDate (datetime) --
The timestamp when the certificate that was used by edge-optimized endpoint for this domain name was uploaded.
regionalDomainName (string) --
The domain name associated with the regional endpoint for this custom domain name. You set up this association by adding a DNS record that points the custom domain name to this regional domain name. The regional domain name is returned by API Gateway when you create a regional endpoint.
regionalHostedZoneId (string) --
The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway .
regionalCertificateName (string) --
The name of the certificate that will be used for validating the regional domain name.
regionalCertificateArn (string) --
The reference to an AWS-managed certificate that will be used for validating the regional domain name. AWS Certificate Manager is the only supported source.
distributionDomainName (string) --
The domain name of the Amazon CloudFront distribution associated with this custom domain name for an edge-optimized endpoint. You set up this association when adding a DNS record pointing the custom domain name to this distribution name. For more information about CloudFront distributions, see the Amazon CloudFront documentation .
distributionHostedZoneId (string) --
The region-agnostic Amazon Route 53 Hosted Zone ID of the edge-optimized endpoint. The valid value is Z2FDTNDATAQYW2 for all the regions. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway .
endpointConfiguration (dict) --
The endpoint configuration of this DomainName showing the endpoint types of the domain name.
types (list) --
A list of endpoint types of an API ( RestApi ) or its custom domain name ( DomainName ). For an edge-optimized API and its custom domain name, the endpoint type is "EDGE" . For a regional API and its custom domain name, the endpoint type is REGIONAL . For a private API, the endpoint type is PRIVATE .
(string) --
The endpoint type. The valid values are EDGE for edge-optimized API setup, most suitable for mobile applications; REGIONAL for regional API endpoint setup, most suitable for calling from AWS Region; and PRIVATE for private APIs.
tags (dict) --
The collection of tags. Each tag element is associated with a given resource.
(string) --
(string) --
{'tags': {'string': 'string'}}
Lists the RestApi resource in the collection.
See also: AWS API Documentation
Request Syntax
client.get_rest_api( restApiId='string' )
string
[REQUIRED]
[Required] The string identifier of the associated RestApi .
dict
Response Syntax
{ 'id': 'string', 'name': 'string', 'description': 'string', 'createdDate': datetime(2015, 1, 1), 'version': 'string', 'warnings': [ 'string', ], 'binaryMediaTypes': [ 'string', ], 'minimumCompressionSize': 123, 'apiKeySource': 'HEADER'|'AUTHORIZER', 'endpointConfiguration': { 'types': [ 'REGIONAL'|'EDGE'|'PRIVATE', ] }, 'policy': 'string', 'tags': { 'string': 'string' } }
Response Structure
(dict) --
Represents a REST API.
id (string) --
The API's identifier. This identifier is unique across all of your APIs in API Gateway.
name (string) --
The API's name.
description (string) --
The API's description.
createdDate (datetime) --
The timestamp when the API was created.
version (string) --
A version identifier for the API.
warnings (list) --
The warning messages reported when failonwarnings is turned on during API import.
(string) --
binaryMediaTypes (list) --
The list of binary media types supported by the RestApi . By default, the RestApi supports only UTF-8-encoded text payloads.
(string) --
minimumCompressionSize (integer) --
A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.
apiKeySource (string) --
The source of the API key for metering requests according to a usage plan. Valid values are:
HEADER to read the API key from the X-API-Key header of a request.
AUTHORIZER to read the API key from the UsageIdentifierKey from a custom authorizer.
endpointConfiguration (dict) --
The endpoint configuration of this RestApi showing the endpoint types of the API.
types (list) --
A list of endpoint types of an API ( RestApi ) or its custom domain name ( DomainName ). For an edge-optimized API and its custom domain name, the endpoint type is "EDGE" . For a regional API and its custom domain name, the endpoint type is REGIONAL . For a private API, the endpoint type is PRIVATE .
(string) --
The endpoint type. The valid values are EDGE for edge-optimized API setup, most suitable for mobile applications; REGIONAL for regional API endpoint setup, most suitable for calling from AWS Region; and PRIVATE for private APIs.
policy (string) -- A stringified JSON policy document that applies to this RestApi regardless of the caller and Method configuration.
tags (dict) --
The collection of tags. Each tag element is associated with a given resource.
(string) --
(string) --
{'items': {'tags': {'string': 'string'}}}
Lists the RestApis resources for your collection.
See also: AWS API Documentation
Request Syntax
client.get_rest_apis( position='string', limit=123 )
string
The current pagination position in the paged result set.
integer
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
dict
Response Syntax
{ 'position': 'string', 'items': [ { 'id': 'string', 'name': 'string', 'description': 'string', 'createdDate': datetime(2015, 1, 1), 'version': 'string', 'warnings': [ 'string', ], 'binaryMediaTypes': [ 'string', ], 'minimumCompressionSize': 123, 'apiKeySource': 'HEADER'|'AUTHORIZER', 'endpointConfiguration': { 'types': [ 'REGIONAL'|'EDGE'|'PRIVATE', ] }, 'policy': 'string', 'tags': { 'string': 'string' } }, ] }
Response Structure
(dict) --
Contains references to your APIs and links that guide you in how to interact with your collection. A collection offers a paginated view of your APIs.
position (string) --
items (list) --
The current page of elements from this collection.
(dict) --
Represents a REST API.
id (string) --
The API's identifier. This identifier is unique across all of your APIs in API Gateway.
name (string) --
The API's name.
description (string) --
The API's description.
createdDate (datetime) --
The timestamp when the API was created.
version (string) --
A version identifier for the API.
warnings (list) --
The warning messages reported when failonwarnings is turned on during API import.
(string) --
binaryMediaTypes (list) --
The list of binary media types supported by the RestApi . By default, the RestApi supports only UTF-8-encoded text payloads.
(string) --
minimumCompressionSize (integer) --
A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.
apiKeySource (string) --
The source of the API key for metering requests according to a usage plan. Valid values are:
HEADER to read the API key from the X-API-Key header of a request.
AUTHORIZER to read the API key from the UsageIdentifierKey from a custom authorizer.
endpointConfiguration (dict) --
The endpoint configuration of this RestApi showing the endpoint types of the API.
types (list) --
A list of endpoint types of an API ( RestApi ) or its custom domain name ( DomainName ). For an edge-optimized API and its custom domain name, the endpoint type is "EDGE" . For a regional API and its custom domain name, the endpoint type is REGIONAL . For a private API, the endpoint type is PRIVATE .
(string) --
The endpoint type. The valid values are EDGE for edge-optimized API setup, most suitable for mobile applications; REGIONAL for regional API endpoint setup, most suitable for calling from AWS Region; and PRIVATE for private APIs.
policy (string) -- A stringified JSON policy document that applies to this RestApi regardless of the caller and Method configuration.
tags (dict) --
The collection of tags. Each tag element is associated with a given resource.
(string) --
(string) --
{'tags': {'string': 'string'}}
Gets a usage plan of a given plan identifier.
See also: AWS API Documentation
Request Syntax
client.get_usage_plan( usagePlanId='string' )
string
[REQUIRED]
[Required] The identifier of the UsagePlan resource to be retrieved.
dict
Response Syntax
{ '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
(dict) --
Represents a usage plan than can specify who can assess associated API stages with specified request limits and quotas.
In a usage plan, you associate an API by specifying the API's Id and a stage name of the specified API. You add plan customers by adding API keys to the plan.
id (string) --
The identifier of a UsagePlan resource.
name (string) --
The name of a usage plan.
description (string) --
The description of a usage plan.
apiStages (list) --
The associated API stages of a usage plan.
(dict) --
API stage name of the associated API stage in a usage plan.
apiId (string) --
API Id of the associated API stage in a usage plan.
stage (string) --
API stage name of the associated API stage in a usage plan.
throttle (dict) --
Map containing method level throttling information for API stage in a usage plan.
(string) --
(dict) --
The API request rate limits.
burstLimit (integer) --
The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity.
rateLimit (float) --
The API request steady-state rate limit.
throttle (dict) --
The request throttle limits of a usage plan.
burstLimit (integer) --
The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity.
rateLimit (float) --
The API request steady-state rate limit.
quota (dict) --
The maximum number of permitted requests per a given unit time interval.
limit (integer) --
The maximum number of requests that can be made in a given time period.
offset (integer) --
The number of requests subtracted from the given limit in the initial time period.
period (string) --
The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".
productCode (string) --
The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.
tags (dict) --
The collection of tags. Each tag element is associated with a given resource.
(string) --
(string) --
{'items': {'tags': {'string': 'string'}}}
Gets all the usage plans of the caller's account.
See also: AWS API Documentation
Request Syntax
client.get_usage_plans( position='string', keyId='string', limit=123 )
string
The current pagination position in the paged result set.
string
The identifier of the API key associated with the usage plans.
integer
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
dict
Response Syntax
{ 'position': 'string', 'items': [ { '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
(dict) --
Represents a collection of usage plans for an AWS account.
position (string) --
items (list) --
The current page of elements from this collection.
(dict) --
Represents a usage plan than can specify who can assess associated API stages with specified request limits and quotas.
In a usage plan, you associate an API by specifying the API's Id and a stage name of the specified API. You add plan customers by adding API keys to the plan.
id (string) --
The identifier of a UsagePlan resource.
name (string) --
The name of a usage plan.
description (string) --
The description of a usage plan.
apiStages (list) --
The associated API stages of a usage plan.
(dict) --
API stage name of the associated API stage in a usage plan.
apiId (string) --
API Id of the associated API stage in a usage plan.
stage (string) --
API stage name of the associated API stage in a usage plan.
throttle (dict) --
Map containing method level throttling information for API stage in a usage plan.
(string) --
(dict) --
The API request rate limits.
burstLimit (integer) --
The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity.
rateLimit (float) --
The API request steady-state rate limit.
throttle (dict) --
The request throttle limits of a usage plan.
burstLimit (integer) --
The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity.
rateLimit (float) --
The API request steady-state rate limit.
quota (dict) --
The maximum number of permitted requests per a given unit time interval.
limit (integer) --
The maximum number of requests that can be made in a given time period.
offset (integer) --
The number of requests subtracted from the given limit in the initial time period.
period (string) --
The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".
productCode (string) --
The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.
tags (dict) --
The collection of tags. Each tag element is associated with a given resource.
(string) --
(string) --
{'tags': {'string': 'string'}}
Gets a specified VPC link under the caller's account in a region.
See also: AWS API Documentation
Request Syntax
client.get_vpc_link( vpcLinkId='string' )
string
[REQUIRED]
[Required] The identifier of the VpcLink . It is used in an Integration to reference this VpcLink .
dict
Response Syntax
{ 'id': 'string', 'name': 'string', 'description': 'string', 'targetArns': [ 'string', ], 'status': 'AVAILABLE'|'PENDING'|'DELETING'|'FAILED', 'statusMessage': 'string', 'tags': { 'string': 'string' } }
Response Structure
(dict) --
A API Gateway VPC link for a RestApi to access resources in an Amazon Virtual Private Cloud (VPC).
To enable access to a resource in an Amazon Virtual Private Cloud through Amazon API Gateway, you, as an API developer, create a VpcLink resource targeted for one or more network load balancers of the VPC and then integrate an API method with a private integration that uses the VpcLink . The private integration has an integration type of HTTP or HTTP_PROXY and has a connection type of VPC_LINK . The integration uses the connectionId property to identify the VpcLink used.
id (string) --
The identifier of the VpcLink . It is used in an Integration to reference this VpcLink .
name (string) --
The name used to label and identify the VPC link.
description (string) --
The description of the VPC link.
targetArns (list) --
The ARNs of network load balancers of the VPC targeted by the VPC link. The network load balancers must be owned by the same AWS account of the API owner.
(string) --
status (string) --
The status of the VPC link. The valid values are AVAILABLE , PENDING , DELETING , or FAILED . Deploying an API will wait if the status is PENDING and will fail if the status is DELETING .
statusMessage (string) --
A description about the VPC link status.
tags (dict) --
The collection of tags. Each tag element is associated with a given resource.
(string) --
(string) --
{'items': {'tags': {'string': 'string'}}}
Gets the VpcLinks collection under the caller's account in a selected region.
See also: AWS API Documentation
Request Syntax
client.get_vpc_links( position='string', limit=123 )
string
The current pagination position in the paged result set.
integer
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
dict
Response Syntax
{ 'position': 'string', 'items': [ { 'id': 'string', 'name': 'string', 'description': 'string', 'targetArns': [ 'string', ], 'status': 'AVAILABLE'|'PENDING'|'DELETING'|'FAILED', 'statusMessage': 'string', 'tags': { 'string': 'string' } }, ] }
Response Structure
(dict) --
The collection of VPC links under the caller's account in a region.
Getting Started with Private Integrations , Set up Private Integrations
position (string) --
items (list) --
The current page of elements from this collection.
(dict) --
A API Gateway VPC link for a RestApi to access resources in an Amazon Virtual Private Cloud (VPC).
To enable access to a resource in an Amazon Virtual Private Cloud through Amazon API Gateway, you, as an API developer, create a VpcLink resource targeted for one or more network load balancers of the VPC and then integrate an API method with a private integration that uses the VpcLink . The private integration has an integration type of HTTP or HTTP_PROXY and has a connection type of VPC_LINK . The integration uses the connectionId property to identify the VpcLink used.
id (string) --
The identifier of the VpcLink . It is used in an Integration to reference this VpcLink .
name (string) --
The name used to label and identify the VPC link.
description (string) --
The description of the VPC link.
targetArns (list) --
The ARNs of network load balancers of the VPC targeted by the VPC link. The network load balancers must be owned by the same AWS account of the API owner.
(string) --
status (string) --
The status of the VPC link. The valid values are AVAILABLE , PENDING , DELETING , or FAILED . Deploying an API will wait if the status is PENDING and will fail if the status is DELETING .
statusMessage (string) --
A description about the VPC link status.
tags (dict) --
The collection of tags. Each tag element is associated with a given resource.
(string) --
(string) --
{'tags': {'string': 'string'}}
A feature of the API Gateway control service for creating a new API from an external API definition file.
See also: AWS API Documentation
Request Syntax
client.import_rest_api( failOnWarnings=True|False, parameters={ 'string': 'string' }, body=b'bytes'|file )
boolean
A query parameter to indicate whether to rollback the API creation (true ) or not (false ) when a warning is encountered. The default value is false .
dict
A key-value map of context-specific query string parameters specifying the behavior of different API importing operations. The following shows operation-specific parameters and their supported values.
To exclude DocumentationParts from the import, set parameters as ignore=documentation .
To configure the endpoint type, set parameters as endpointConfigurationTypes=EDGE , endpointConfigurationTypes=REGIONAL , or endpointConfigurationTypes=PRIVATE . The default endpoint type is EDGE .
To handle imported basePath , set parameters as basePath=ignore , basePath=prepend or basePath=split .
For example, the AWS CLI command to exclude documentation from the imported API is:
aws apigateway import-rest-api --parameters ignore=documentation --body 'file:///path/to/imported-api-body.json'
The AWS CLI command to set the regional endpoint on the imported API is:
aws apigateway import-rest-api --parameters endpointConfigurationTypes=REGIONAL --body 'file:///path/to/imported-api-body.json'
(string) --
(string) --
bytes or seekable file-like object
[REQUIRED]
[Required] The POST request body containing external API definitions. Currently, only OpenAPI definition JSON/YAML files are supported. The maximum size of the API definition file is 2MB.
dict
Response Syntax
{ 'id': 'string', 'name': 'string', 'description': 'string', 'createdDate': datetime(2015, 1, 1), 'version': 'string', 'warnings': [ 'string', ], 'binaryMediaTypes': [ 'string', ], 'minimumCompressionSize': 123, 'apiKeySource': 'HEADER'|'AUTHORIZER', 'endpointConfiguration': { 'types': [ 'REGIONAL'|'EDGE'|'PRIVATE', ] }, 'policy': 'string', 'tags': { 'string': 'string' } }
Response Structure
(dict) --
Represents a REST API.
id (string) --
The API's identifier. This identifier is unique across all of your APIs in API Gateway.
name (string) --
The API's name.
description (string) --
The API's description.
createdDate (datetime) --
The timestamp when the API was created.
version (string) --
A version identifier for the API.
warnings (list) --
The warning messages reported when failonwarnings is turned on during API import.
(string) --
binaryMediaTypes (list) --
The list of binary media types supported by the RestApi . By default, the RestApi supports only UTF-8-encoded text payloads.
(string) --
minimumCompressionSize (integer) --
A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.
apiKeySource (string) --
The source of the API key for metering requests according to a usage plan. Valid values are:
HEADER to read the API key from the X-API-Key header of a request.
AUTHORIZER to read the API key from the UsageIdentifierKey from a custom authorizer.
endpointConfiguration (dict) --
The endpoint configuration of this RestApi showing the endpoint types of the API.
types (list) --
A list of endpoint types of an API ( RestApi ) or its custom domain name ( DomainName ). For an edge-optimized API and its custom domain name, the endpoint type is "EDGE" . For a regional API and its custom domain name, the endpoint type is REGIONAL . For a private API, the endpoint type is PRIVATE .
(string) --
The endpoint type. The valid values are EDGE for edge-optimized API setup, most suitable for mobile applications; REGIONAL for regional API endpoint setup, most suitable for calling from AWS Region; and PRIVATE for private APIs.
policy (string) -- A stringified JSON policy document that applies to this RestApi regardless of the caller and Method configuration.
tags (dict) --
The collection of tags. Each tag element is associated with a given resource.
(string) --
(string) --
{'tags': {'string': 'string'}}
A feature of the API Gateway control service for updating an existing API with an input of external API definitions. The update can take the form of merging the supplied definition into the existing API or overwriting the existing API.
See also: AWS API Documentation
Request Syntax
client.put_rest_api( restApiId='string', mode='merge'|'overwrite', failOnWarnings=True|False, parameters={ 'string': 'string' }, body=b'bytes'|file )
string
[REQUIRED]
[Required] The string identifier of the associated RestApi .
string
The mode query parameter to specify the update mode. Valid values are "merge" and "overwrite". By default, the update mode is "merge".
boolean
A query parameter to indicate whether to rollback the API update (true ) or not (false ) when a warning is encountered. The default value is false .
dict
Custom header parameters as part of the request. For example, to exclude DocumentationParts from an imported API, set ignore=documentation as a parameters value, as in the AWS CLI command of aws apigateway import-rest-api --parameters ignore=documentation --body 'file:///path/to/imported-api-body.json' .
(string) --
(string) --
bytes or seekable file-like object
[REQUIRED]
[Required] The PUT request body containing external API definitions. Currently, only OpenAPI definition JSON/YAML files are supported. The maximum size of the API definition file is 2MB.
dict
Response Syntax
{ 'id': 'string', 'name': 'string', 'description': 'string', 'createdDate': datetime(2015, 1, 1), 'version': 'string', 'warnings': [ 'string', ], 'binaryMediaTypes': [ 'string', ], 'minimumCompressionSize': 123, 'apiKeySource': 'HEADER'|'AUTHORIZER', 'endpointConfiguration': { 'types': [ 'REGIONAL'|'EDGE'|'PRIVATE', ] }, 'policy': 'string', 'tags': { 'string': 'string' } }
Response Structure
(dict) --
Represents a REST API.
id (string) --
The API's identifier. This identifier is unique across all of your APIs in API Gateway.
name (string) --
The API's name.
description (string) --
The API's description.
createdDate (datetime) --
The timestamp when the API was created.
version (string) --
A version identifier for the API.
warnings (list) --
The warning messages reported when failonwarnings is turned on during API import.
(string) --
binaryMediaTypes (list) --
The list of binary media types supported by the RestApi . By default, the RestApi supports only UTF-8-encoded text payloads.
(string) --
minimumCompressionSize (integer) --
A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.
apiKeySource (string) --
The source of the API key for metering requests according to a usage plan. Valid values are:
HEADER to read the API key from the X-API-Key header of a request.
AUTHORIZER to read the API key from the UsageIdentifierKey from a custom authorizer.
endpointConfiguration (dict) --
The endpoint configuration of this RestApi showing the endpoint types of the API.
types (list) --
A list of endpoint types of an API ( RestApi ) or its custom domain name ( DomainName ). For an edge-optimized API and its custom domain name, the endpoint type is "EDGE" . For a regional API and its custom domain name, the endpoint type is REGIONAL . For a private API, the endpoint type is PRIVATE .
(string) --
The endpoint type. The valid values are EDGE for edge-optimized API setup, most suitable for mobile applications; REGIONAL for regional API endpoint setup, most suitable for calling from AWS Region; and PRIVATE for private APIs.
policy (string) -- A stringified JSON policy document that applies to this RestApi regardless of the caller and Method configuration.
tags (dict) --
The collection of tags. Each tag element is associated with a given resource.
(string) --
(string) --
{'tags': {'string': 'string'}}
Changes information about an ApiKey resource.
See also: AWS API Documentation
Request Syntax
client.update_api_key( apiKey='string', patchOperations=[ { 'op': 'add'|'remove'|'replace'|'move'|'copy'|'test', 'path': 'string', 'value': 'string', 'from': 'string' }, ] )
string
[REQUIRED]
[Required] The identifier of the ApiKey resource to be updated.
list
A list of update operations to be applied to the specified resource and in the order specified in this list.
(dict) -- A single patch operation to apply to the specified resource. Please refer to http://tools.ietf.org/html/rfc6902#section-4 for an explanation of how each operation is used.
op (string) --
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 (string) --
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 (string) --
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": ...}'. In a Windows shell, see Using JSON for Parameters .
from (string) --
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" .
dict
Response Syntax
{ 'id': 'string', 'value': 'string', 'name': 'string', 'customerId': 'string', 'description': 'string', 'enabled': True|False, 'createdDate': datetime(2015, 1, 1), 'lastUpdatedDate': datetime(2015, 1, 1), 'stageKeys': [ 'string', ], 'tags': { 'string': 'string' } }
Response Structure
(dict) --
A resource that can be distributed to callers for executing Method resources that require an API key. API keys can be mapped to any Stage on any RestApi , which indicates that the callers with the API key can make requests to that stage.
id (string) --
The identifier of the API Key.
value (string) --
The value of the API Key.
name (string) --
The name of the API Key.
customerId (string) --
An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
description (string) --
The description of the API Key.
enabled (boolean) --
Specifies whether the API Key can be used by callers.
createdDate (datetime) --
The timestamp when the API Key was created.
lastUpdatedDate (datetime) --
The timestamp when the API Key was last updated.
stageKeys (list) --
A list of Stage resources that are associated with the ApiKey resource.
(string) --
tags (dict) --
The collection of tags. Each tag element is associated with a given resource.
(string) --
(string) --
{'tags': {'string': 'string'}}
Changes information about an ClientCertificate resource.
See also: AWS API Documentation
Request Syntax
client.update_client_certificate( clientCertificateId='string', patchOperations=[ { 'op': 'add'|'remove'|'replace'|'move'|'copy'|'test', 'path': 'string', 'value': 'string', 'from': 'string' }, ] )
string
[REQUIRED]
[Required] The identifier of the ClientCertificate resource to be updated.
list
A list of update operations to be applied to the specified resource and in the order specified in this list.
(dict) -- A single patch operation to apply to the specified resource. Please refer to http://tools.ietf.org/html/rfc6902#section-4 for an explanation of how each operation is used.
op (string) --
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 (string) --
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 (string) --
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": ...}'. In a Windows shell, see Using JSON for Parameters .
from (string) --
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" .
dict
Response Syntax
{ 'clientCertificateId': 'string', 'description': 'string', 'pemEncodedCertificate': 'string', 'createdDate': datetime(2015, 1, 1), 'expirationDate': datetime(2015, 1, 1), 'tags': { 'string': 'string' } }
Response Structure
(dict) --
Represents a client certificate used to configure client-side SSL authentication while sending requests to the integration endpoint.
Client certificates are used to authenticate an API by the backend server. To authenticate an API client (or user), use IAM roles and policies, a custom Authorizer or an Amazon Cognito user pool. Use Client-Side Certificate
clientCertificateId (string) --
The identifier of the client certificate.
description (string) --
The description of the client certificate.
pemEncodedCertificate (string) --
The PEM-encoded public key of the client certificate, which can be used to configure certificate authentication in the integration endpoint .
createdDate (datetime) --
The timestamp when the client certificate was created.
expirationDate (datetime) --
The timestamp when the client certificate will expire.
tags (dict) --
The collection of tags. Each tag element is associated with a given resource.
(string) --
(string) --
{'tags': {'string': 'string'}}
Changes information about the DomainName resource.
See also: AWS API Documentation
Request Syntax
client.update_domain_name( domainName='string', patchOperations=[ { 'op': 'add'|'remove'|'replace'|'move'|'copy'|'test', 'path': 'string', 'value': 'string', 'from': 'string' }, ] )
string
[REQUIRED]
[Required] The name of the DomainName resource to be changed.
list
A list of update operations to be applied to the specified resource and in the order specified in this list.
(dict) -- A single patch operation to apply to the specified resource. Please refer to http://tools.ietf.org/html/rfc6902#section-4 for an explanation of how each operation is used.
op (string) --
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 (string) --
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 (string) --
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": ...}'. In a Windows shell, see Using JSON for Parameters .
from (string) --
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" .
dict
Response Syntax
{ 'domainName': 'string', 'certificateName': 'string', 'certificateArn': 'string', 'certificateUploadDate': datetime(2015, 1, 1), 'regionalDomainName': 'string', 'regionalHostedZoneId': 'string', 'regionalCertificateName': 'string', 'regionalCertificateArn': 'string', 'distributionDomainName': 'string', 'distributionHostedZoneId': 'string', 'endpointConfiguration': { 'types': [ 'REGIONAL'|'EDGE'|'PRIVATE', ] }, 'tags': { 'string': 'string' } }
Response Structure
(dict) --
Represents a custom domain name as a user-friendly host name of an API ( RestApi ).
When you deploy an API, API Gateway creates a default host name for the API. This default API host name is of the {restapi-id}.execute-api.{region}.amazonaws.com format. With the default host name, you can access the API's root resource with the URL of https://{restapi-id}.execute-api.{region}.amazonaws.com/{stage}/ . When you set up a custom domain name of apis.example.com for this API, you can then access the same resource using the URL of the https://apis.examples.com/myApi , where myApi is the base path mapping ( BasePathMapping ) of your API under the custom domain name.
domainName (string) --
The custom domain name as an API host name, for example, my-api.example.com .
certificateName (string) --
The name of the certificate that will be used by edge-optimized endpoint for this domain name.
certificateArn (string) --
The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain name. AWS Certificate Manager is the only supported source.
certificateUploadDate (datetime) --
The timestamp when the certificate that was used by edge-optimized endpoint for this domain name was uploaded.
regionalDomainName (string) --
The domain name associated with the regional endpoint for this custom domain name. You set up this association by adding a DNS record that points the custom domain name to this regional domain name. The regional domain name is returned by API Gateway when you create a regional endpoint.
regionalHostedZoneId (string) --
The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway .
regionalCertificateName (string) --
The name of the certificate that will be used for validating the regional domain name.
regionalCertificateArn (string) --
The reference to an AWS-managed certificate that will be used for validating the regional domain name. AWS Certificate Manager is the only supported source.
distributionDomainName (string) --
The domain name of the Amazon CloudFront distribution associated with this custom domain name for an edge-optimized endpoint. You set up this association when adding a DNS record pointing the custom domain name to this distribution name. For more information about CloudFront distributions, see the Amazon CloudFront documentation .
distributionHostedZoneId (string) --
The region-agnostic Amazon Route 53 Hosted Zone ID of the edge-optimized endpoint. The valid value is Z2FDTNDATAQYW2 for all the regions. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway .
endpointConfiguration (dict) --
The endpoint configuration of this DomainName showing the endpoint types of the domain name.
types (list) --
A list of endpoint types of an API ( RestApi ) or its custom domain name ( DomainName ). For an edge-optimized API and its custom domain name, the endpoint type is "EDGE" . For a regional API and its custom domain name, the endpoint type is REGIONAL . For a private API, the endpoint type is PRIVATE .
(string) --
The endpoint type. The valid values are EDGE for edge-optimized API setup, most suitable for mobile applications; REGIONAL for regional API endpoint setup, most suitable for calling from AWS Region; and PRIVATE for private APIs.
tags (dict) --
The collection of tags. Each tag element is associated with a given resource.
(string) --
(string) --
{'tags': {'string': 'string'}}
Changes information about the specified API.
See also: AWS API Documentation
Request Syntax
client.update_rest_api( restApiId='string', patchOperations=[ { 'op': 'add'|'remove'|'replace'|'move'|'copy'|'test', 'path': 'string', 'value': 'string', 'from': 'string' }, ] )
string
[REQUIRED]
[Required] The string identifier of the associated RestApi .
list
A list of update operations to be applied to the specified resource and in the order specified in this list.
(dict) -- A single patch operation to apply to the specified resource. Please refer to http://tools.ietf.org/html/rfc6902#section-4 for an explanation of how each operation is used.
op (string) --
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 (string) --
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 (string) --
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": ...}'. In a Windows shell, see Using JSON for Parameters .
from (string) --
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" .
dict
Response Syntax
{ 'id': 'string', 'name': 'string', 'description': 'string', 'createdDate': datetime(2015, 1, 1), 'version': 'string', 'warnings': [ 'string', ], 'binaryMediaTypes': [ 'string', ], 'minimumCompressionSize': 123, 'apiKeySource': 'HEADER'|'AUTHORIZER', 'endpointConfiguration': { 'types': [ 'REGIONAL'|'EDGE'|'PRIVATE', ] }, 'policy': 'string', 'tags': { 'string': 'string' } }
Response Structure
(dict) --
Represents a REST API.
id (string) --
The API's identifier. This identifier is unique across all of your APIs in API Gateway.
name (string) --
The API's name.
description (string) --
The API's description.
createdDate (datetime) --
The timestamp when the API was created.
version (string) --
A version identifier for the API.
warnings (list) --
The warning messages reported when failonwarnings is turned on during API import.
(string) --
binaryMediaTypes (list) --
The list of binary media types supported by the RestApi . By default, the RestApi supports only UTF-8-encoded text payloads.
(string) --
minimumCompressionSize (integer) --
A nullable integer that is used to enable compression (with non-negative between 0 and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on an API. When compression is enabled, compression or decompression is not applied on the payload if the payload size is smaller than this value. Setting it to zero allows compression for any payload size.
apiKeySource (string) --
The source of the API key for metering requests according to a usage plan. Valid values are:
HEADER to read the API key from the X-API-Key header of a request.
AUTHORIZER to read the API key from the UsageIdentifierKey from a custom authorizer.
endpointConfiguration (dict) --
The endpoint configuration of this RestApi showing the endpoint types of the API.
types (list) --
A list of endpoint types of an API ( RestApi ) or its custom domain name ( DomainName ). For an edge-optimized API and its custom domain name, the endpoint type is "EDGE" . For a regional API and its custom domain name, the endpoint type is REGIONAL . For a private API, the endpoint type is PRIVATE .
(string) --
The endpoint type. The valid values are EDGE for edge-optimized API setup, most suitable for mobile applications; REGIONAL for regional API endpoint setup, most suitable for calling from AWS Region; and PRIVATE for private APIs.
policy (string) -- A stringified JSON policy document that applies to this RestApi regardless of the caller and Method configuration.
tags (dict) --
The collection of tags. Each tag element is associated with a given resource.
(string) --
(string) --
{'tags': {'string': 'string'}}
Updates a usage plan of a given plan Id.
See also: AWS API Documentation
Request Syntax
client.update_usage_plan( usagePlanId='string', patchOperations=[ { 'op': 'add'|'remove'|'replace'|'move'|'copy'|'test', 'path': 'string', 'value': 'string', 'from': 'string' }, ] )
string
[REQUIRED]
[Required] The Id of the to-be-updated usage plan.
list
A list of update operations to be applied to the specified resource and in the order specified in this list.
(dict) -- A single patch operation to apply to the specified resource. Please refer to http://tools.ietf.org/html/rfc6902#section-4 for an explanation of how each operation is used.
op (string) --
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 (string) --
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 (string) --
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": ...}'. In a Windows shell, see Using JSON for Parameters .
from (string) --
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" .
dict
Response Syntax
{ '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
(dict) --
Represents a usage plan than can specify who can assess associated API stages with specified request limits and quotas.
In a usage plan, you associate an API by specifying the API's Id and a stage name of the specified API. You add plan customers by adding API keys to the plan.
id (string) --
The identifier of a UsagePlan resource.
name (string) --
The name of a usage plan.
description (string) --
The description of a usage plan.
apiStages (list) --
The associated API stages of a usage plan.
(dict) --
API stage name of the associated API stage in a usage plan.
apiId (string) --
API Id of the associated API stage in a usage plan.
stage (string) --
API stage name of the associated API stage in a usage plan.
throttle (dict) --
Map containing method level throttling information for API stage in a usage plan.
(string) --
(dict) --
The API request rate limits.
burstLimit (integer) --
The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity.
rateLimit (float) --
The API request steady-state rate limit.
throttle (dict) --
The request throttle limits of a usage plan.
burstLimit (integer) --
The API request burst limit, the maximum rate limit over a time ranging from one to a few seconds, depending upon whether the underlying token bucket is at its full capacity.
rateLimit (float) --
The API request steady-state rate limit.
quota (dict) --
The maximum number of permitted requests per a given unit time interval.
limit (integer) --
The maximum number of requests that can be made in a given time period.
offset (integer) --
The number of requests subtracted from the given limit in the initial time period.
period (string) --
The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".
productCode (string) --
The AWS Markeplace product identifier to associate with the usage plan as a SaaS product on AWS Marketplace.
tags (dict) --
The collection of tags. Each tag element is associated with a given resource.
(string) --
(string) --
{'tags': {'string': 'string'}}
Updates an existing VpcLink of a specified identifier.
See also: AWS API Documentation
Request Syntax
client.update_vpc_link( vpcLinkId='string', patchOperations=[ { 'op': 'add'|'remove'|'replace'|'move'|'copy'|'test', 'path': 'string', 'value': 'string', 'from': 'string' }, ] )
string
[REQUIRED]
[Required] The identifier of the VpcLink . It is used in an Integration to reference this VpcLink .
list
A list of update operations to be applied to the specified resource and in the order specified in this list.
(dict) -- A single patch operation to apply to the specified resource. Please refer to http://tools.ietf.org/html/rfc6902#section-4 for an explanation of how each operation is used.
op (string) --
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 (string) --
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 (string) --
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": ...}'. In a Windows shell, see Using JSON for Parameters .
from (string) --
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" .
dict
Response Syntax
{ 'id': 'string', 'name': 'string', 'description': 'string', 'targetArns': [ 'string', ], 'status': 'AVAILABLE'|'PENDING'|'DELETING'|'FAILED', 'statusMessage': 'string', 'tags': { 'string': 'string' } }
Response Structure
(dict) --
A API Gateway VPC link for a RestApi to access resources in an Amazon Virtual Private Cloud (VPC).
To enable access to a resource in an Amazon Virtual Private Cloud through Amazon API Gateway, you, as an API developer, create a VpcLink resource targeted for one or more network load balancers of the VPC and then integrate an API method with a private integration that uses the VpcLink . The private integration has an integration type of HTTP or HTTP_PROXY and has a connection type of VPC_LINK . The integration uses the connectionId property to identify the VpcLink used.
id (string) --
The identifier of the VpcLink . It is used in an Integration to reference this VpcLink .
name (string) --
The name used to label and identify the VPC link.
description (string) --
The description of the VPC link.
targetArns (list) --
The ARNs of network load balancers of the VPC targeted by the VPC link. The network load balancers must be owned by the same AWS account of the API owner.
(string) --
status (string) --
The status of the VPC link. The valid values are AVAILABLE , PENDING , DELETING , or FAILED . Deploying an API will wait if the status is PENDING and will fail if the status is DELETING .
statusMessage (string) --
A description about the VPC link status.
tags (dict) --
The collection of tags. Each tag element is associated with a given resource.
(string) --
(string) --