APIGatewayClient.get_export
rboto-api-gateway==0.4.0 · Service index · Types
Model summary (excerpt): Exports a deployed version of a RestApi in a specified format.
Install and imports
Signature
async def get_export(
*,
rest_api_id: str,
stage_name: str,
export_type: str,
parameters: dict[str, str] | None = None,
accepts: str | None = None,
) -> GetExportOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
rest_api_id |
Yes | The string identifier of the associated RestApi. |
stage_name |
Yes | The name of the Stage that will be exported. |
export_type |
Yes | The type of export. Acceptable values are 'oas30' for OpenAPI 3.0.x and 'swagger' for Swagger/OpenAPI 2.0. |
parameters |
No | A key-value map of query string parameters that specify properties of the export, depending on the requested exportType . For exportType oas30 and swagger , any combination of the following parameters are supported: extensions='integrations' or extensions='apigateway' will export the API with x-amazon-apigateway-integration extensions. extensions='authorizers' will export the API with... |
accepts |
No | The content-type of the export, for example application/json . Currently application/json and application/yaml are supported for exportType of oas30 and swagger . This should be specified in the Accept header for direct API requests. |
Output
GetExportOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
content_type |
str | None |
Always present | — |
content_disposition |
str | None |
Always present | — |
body |
bytes | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_api_gateway.exceptions:
BadRequestError, ConflictError, LimitExceededError, NotFoundError, TooManyRequestsError, UnauthorizedError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.