KMSClient.list_aliases
rboto-kms==0.4.0 · Service index · Types
Model summary (excerpt): Gets a list of aliases in the caller's Amazon Web Services account and region. For more information about aliases, see CreateAlias . By default, the ListAliases operation returns all aliases in the account and region. To get only the aliases associated with a particular KMS key, use the KeyId parameter. The ListAliases response can include aliases that you created and associated with your...
Install and imports
Signature
async def list_aliases(
*,
key_id: str | None = None,
limit: int | None = None,
marker: str | None = None,
) -> ListAliasesOutput: ...
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) |
|---|---|---|
key_id |
No | Lists only aliases that are associated with the specified KMS key. Enter a KMS key in your Amazon Web Services account. This parameter is optional. If you omit it, ListAliases returns all aliases in the account and Region. Specify the key ID or key ARN of the KMS key. For example: Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab Key ARN:... |
limit |
No | Use this parameter to specify the maximum number of items to return. When this value is present, KMS does not return more than the specified number of items, but it might return fewer. This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50. |
marker |
No | Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker from the truncated response you just received. |
Output
ListAliasesOutput.
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 |
|---|---|---|---|
aliases |
list[AliasListEntryOutput] | None |
Always present | AliasListEntryOutput |
next_marker |
str | None |
Always present | — |
truncated |
bool |
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
client.paginators.list_aliases(...) accepts the same arguments and returns AsyncIterator[ListAliasesOutput]. Direct calls return one page. Pages preserve the Output representation above.
Input cursors: marker. Page-size argument: limit.
No output stream.
Errors
Import from rboto_kms.exceptions:
DependencyTimeoutError, InvalidArnError, InvalidMarkerError, KMSInternalError, NotFoundError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.