Skip to content

SESV2Client.list_recommendations

rboto-sesv2==0.4.0 · Service index · Types

Model summary (excerpt): Lists the recommendations present in your Amazon SES account in the current Amazon Web Services Region. You can execute this operation no more than once per second.

Install and imports

python -m pip install "rboto[sesv2]==0.4.0"
from rboto import SESV2Client
from rboto_sesv2.types import (
    ListRecommendationsFilterKey,
    ListRecommendationsOutput,
)

Signature

async def list_recommendations(
    *,
    filter: dict[ListRecommendationsFilterKey, str] | None = None,
    next_token: str | None = None,
    page_size: int | None = None,
) -> ListRecommendationsOutput: ...

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)
filter No Filters applied when retrieving recommendations. Can eiter be an individual filter, or combinations of STATUS and IMPACT or STATUS and TYPE
next_token No A token returned from a previous call to ListRecommendations to indicate the position in the list of recommendations.
page_size No The number of results to show in a single call to ListRecommendations . 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. The value you specify has to be at least 1, and can be no more than 100.

Output

ListRecommendationsOutput.

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
recommendations list[RecommendationOutput] | None Always present RecommendationOutput
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.

ListRecommendationsFilterKey, ListRecommendationsOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

client.paginators.list_recommendations(...) accepts the same arguments and returns AsyncIterator[ListRecommendationsOutput]. 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.

Service guide · Pinned model