SESV2Client.list_tenant_resources
rboto-sesv2==0.4.0 · Service index · Types
Model summary (excerpt): List all resources associated with a specific tenant. This operation returns a list of resources (email identities, configuration sets, or email templates) that are associated with the specified tenant. You can optionally filter the results by resource type.
Install and imports
from rboto import SESV2Client
from rboto_sesv2.types import (
ListTenantResourcesFilterKey,
ListTenantResourcesOutput,
)
Signature
async def list_tenant_resources(
*,
tenant_name: str,
filter: dict[ListTenantResourcesFilterKey, str] | None = None,
page_size: int | None = None,
next_token: str | None = None,
) -> ListTenantResourcesOutput: ...
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) |
|---|---|---|
tenant_name |
Yes | The name of the tenant to list resources for. |
filter |
No | A map of filter keys and values for filtering the list of tenant resources. Currently, the only supported filter key is RESOURCE_TYPE . |
page_size |
No | The number of results to show in a single call to ListTenantResources . If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results. |
next_token |
No | A token returned from a previous call to ListTenantResources to indicate the position in the list of tenant resources. |
Output
ListTenantResourcesOutput.
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 |
|---|---|---|---|
tenant_resources |
list[TenantResourceOutput] | None |
Always present | TenantResourceOutput |
next_token |
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
ListTenantResourcesFilterKey, ListTenantResourcesOutput
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
client.paginators.list_tenant_resources(...) accepts the same arguments and returns AsyncIterator[ListTenantResourcesOutput]. Direct calls return one page. Pages preserve the Output representation above.
Input cursors: next_token. Page-size argument: page_size.
No output stream.
Errors
Import from rboto_sesv2.exceptions:
BadRequestError, NotFoundError, TooManyRequestsError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.