export_api
(**kwargs)¶See also: AWS API Documentation
Request Syntax
response = client.export_api(
ApiId='string',
ExportVersion='string',
IncludeExtensions=True|False,
OutputType='YAML'|'JSON',
Specification='OAS30',
StageName='string'
)
[REQUIRED]
The API identifier.
[REQUIRED]
The output type of the exported definition file. Valid values are JSON and YAML.
[REQUIRED]
The version of the API specification to use. OAS30, for OpenAPI 3.0, is the only supported value.
dict
Response Syntax
{
'body': StreamingBody()
}
Response Structure
(dict) --
Success
body (StreamingBody
) --
Represents an exported definition of an API in a particular output format, for example, YAML. The API is serialized to the requested specification, for example, OpenAPI 3.0.
Exceptions
ApiGatewayV2.Client.exceptions.NotFoundException
ApiGatewayV2.Client.exceptions.TooManyRequestsException
ApiGatewayV2.Client.exceptions.BadRequestException