APIGatewayClient.import_api_keys
rboto-api-gateway==0.4.0 · Service index · Types
Model summary (excerpt): Import API keys from an external source, such as a CSV-formatted file.
Install and imports
from rboto import APIGatewayClient
from rboto_api_gateway.types import (
ApiKeysFormat,
ImportApiKeysOutput,
)
Signature
async def import_api_keys(
*,
body: bytes,
format: ApiKeysFormat,
fail_on_warnings: bool | None = None,
) -> ImportApiKeysOutput: ...
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) |
|---|---|---|
body |
Yes | The payload of the POST request to import API keys. For the payload format, see API Key File Format. |
format |
Yes | A query parameter to specify the input format to imported API keys. Currently, only the csv format is supported. |
fail_on_warnings |
No | A query parameter to indicate whether to rollback ApiKey importation ( true ) or not ( false ) when error is encountered. |
Output
ImportApiKeysOutput.
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 |
|---|---|---|---|
ids |
list[str] | None |
Always present | — |
warnings |
list[str] | 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
ApiKeysFormat, ImportApiKeysOutput
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.