CloudTrailClient.search_sample_queries
rboto-cloudtrail==0.4.0 · Service index · Types
Model summary (excerpt): CloudTrail Lake will no longer be open to new customers starting May 31, 2026. If you would like to use CloudTrail Lake, sign up prior to that date. Existing customers can continue to use the service as normal. For more information, see CloudTrail Lake availability change . Searches sample queries and returns a list of sample queries that are sorted by relevance. To search for sample queries,...
Install and imports
from rboto import CloudTrailClient
from rboto_cloudtrail.types import (
SearchSampleQueriesOutput,
)
Signature
async def search_sample_queries(
*,
search_phrase: str,
max_results: int | None = None,
next_token: str | None = None,
) -> SearchSampleQueriesOutput: ...
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) |
|---|---|---|
search_phrase |
Yes | The natural language phrase to use for the semantic search. The phrase must be in English. The length constraint is in characters, not words. |
max_results |
No | The maximum number of results to return on a single page. The default value is 10. |
next_token |
No | A token you can use to get the next page of results. The length constraint is in characters, not words. |
Output
SearchSampleQueriesOutput.
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 |
|---|---|---|---|
search_results |
list[SearchSampleQueriesSearchResultOutput] | None |
Always present | SearchSampleQueriesSearchResultOutput |
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
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_cloudtrail.exceptions:
InvalidParameterError, OperationNotPermittedError, UnsupportedOperationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.