APIGateway / Paginator / GetDocumentationParts
GetDocumentationParts#
- class APIGateway.Paginator.GetDocumentationParts#
paginator = client.get_paginator('get_documentation_parts')
- paginate(**kwargs)#
Creates an iterator that will paginate through responses from
APIGateway.Client.get_documentation_parts().See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( restApiId='string', type='API'|'AUTHORIZER'|'MODEL'|'RESOURCE'|'METHOD'|'PATH_PARAMETER'|'QUERY_PARAMETER'|'REQUEST_HEADER'|'REQUEST_BODY'|'RESPONSE'|'RESPONSE_HEADER'|'RESPONSE_BODY', nameQuery='string', path='string', locationStatus='DOCUMENTED'|'UNDOCUMENTED', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
restApiId (string) –
[REQUIRED]
The string identifier of the associated RestApi.
type (string) – The type of API entities of the to-be-retrieved documentation parts.
nameQuery (string) – The name of API entities of the to-be-retrieved documentation parts.
path (string) – The path of API entities of the to-be-retrieved documentation parts.
locationStatus (string) – The status of the API documentation parts to retrieve. Valid values are
DOCUMENTEDfor retrieving DocumentationPart resources with content andUNDOCUMENTEDfor DocumentationPart resources without content.PaginationConfig (dict) –
A dictionary that provides parameters to control pagination.
MaxItems (integer) –
The total number of items to return. If the total number of items available is more than the value specified in max-items then a
NextTokenwill be provided in the output that you can use to resume pagination.PageSize (integer) –
The size of each page.
StartingToken (string) –
A token to specify where to start paginating. This is the
NextTokenfrom a previous response.
- Return type:
dict
- Returns:
Response Syntax
{ 'items': [ { 'id': 'string', 'location': { 'type': 'API'|'AUTHORIZER'|'MODEL'|'RESOURCE'|'METHOD'|'PATH_PARAMETER'|'QUERY_PARAMETER'|'REQUEST_HEADER'|'REQUEST_BODY'|'RESPONSE'|'RESPONSE_HEADER'|'RESPONSE_BODY', 'path': 'string', 'method': 'string', 'statusCode': 'string', 'name': 'string' }, 'properties': 'string' }, ], 'NextToken': 'string' }
Response Structure
(dict) –
The collection of documentation parts of an API.
items (list) –
The current page of elements from this collection.
(dict) –
A documentation part for a targeted API entity.
id (string) –
The DocumentationPart identifier, generated by API Gateway when the
DocumentationPartis created.location (dict) –
The location of the API entity to which the documentation applies. Valid fields depend on the targeted API entity type. All the valid location fields are not required. If not explicitly specified, a valid location field is treated as a wildcard and associated documentation content may be inherited by matching entities, unless overridden.
type (string) –
The type of API entity to which the documentation content applies. Valid values are
API,AUTHORIZER,MODEL,RESOURCE,METHOD,PATH_PARAMETER,QUERY_PARAMETER,REQUEST_HEADER,REQUEST_BODY,RESPONSE,RESPONSE_HEADER, andRESPONSE_BODY. Content inheritance does not apply to any entity of theAPI,AUTHORIZER,METHOD,MODEL,REQUEST_BODY, orRESOURCEtype.path (string) –
The URL path of the target. It is a valid field for the API entity types of
RESOURCE,METHOD,PATH_PARAMETER,QUERY_PARAMETER,REQUEST_HEADER,REQUEST_BODY,RESPONSE,RESPONSE_HEADER, andRESPONSE_BODY. The default value is/for the root resource. When an applicable child entity inherits the content of another entity of the same type with more general specifications of the otherlocationattributes, the child entity’spathattribute must match that of the parent entity as a prefix.method (string) –
The HTTP verb of a method. It is a valid field for the API entity types of
METHOD,PATH_PARAMETER,QUERY_PARAMETER,REQUEST_HEADER,REQUEST_BODY,RESPONSE,RESPONSE_HEADER, andRESPONSE_BODY. The default value is*for any method. When an applicable child entity inherits the content of an entity of the same type with more general specifications of the otherlocationattributes, the child entity’smethodattribute must match that of the parent entity exactly.statusCode (string) –
The HTTP status code of a response. It is a valid field for the API entity types of
RESPONSE,RESPONSE_HEADER, andRESPONSE_BODY. The default value is*for any status code. When an applicable child entity inherits the content of an entity of the same type with more general specifications of the otherlocationattributes, the child entity’sstatusCodeattribute must match that of the parent entity exactly.name (string) –
The name of the targeted API entity. It is a valid and required field for the API entity types of
AUTHORIZER,MODEL,PATH_PARAMETER,QUERY_PARAMETER,REQUEST_HEADER,REQUEST_BODYandRESPONSE_HEADER. It is an invalid field for any other entity type.
properties (string) –
A content map of API-specific key-value pairs describing the targeted API entity. The map must be encoded as a JSON string, e.g.,
"{ \"description\": \"The API does ...\" }". Only OpenAPI-compliant documentation-related fields from the properties map are exported and, hence, published as part of the API entity definitions, while the original documentation parts are exported in a OpenAPI extension ofx-amazon-apigateway-documentation.
NextToken (string) –
A token to resume pagination.