Skip to content

CloudTrail  >  Operations  >  search_sample_queries

search_sample_queries

Operation

search_sample_queries async

search_sample_queries(input: SearchSampleQueriesInput, plugins: list[Plugin] | None = None) -> SearchSampleQueriesOutput

Searches sample queries and returns a list of sample queries that are sorted by relevance. To search for sample queries, provide a natural language SearchPhrase in English.

Parameters:

Name Type Description Default
input SearchSampleQueriesInput

An instance of SearchSampleQueriesInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
SearchSampleQueriesOutput

An instance of SearchSampleQueriesOutput.

Input

SearchSampleQueriesInput dataclass

Dataclass for SearchSampleQueriesInput structure.

Attributes

max_results class-attribute instance-attribute
max_results: int | None = None

The maximum number of results to return on a single page. The default value is 10.

next_token class-attribute instance-attribute
next_token: str | None = None

A token you can use to get the next page of results. The length constraint is in characters, not words.

search_phrase class-attribute instance-attribute
search_phrase: str | None = None

The natural language phrase to use for the semantic search. The phrase must be in English. The length constraint is in characters, not words.

Output

SearchSampleQueriesOutput dataclass

Dataclass for SearchSampleQueriesOutput structure.

Attributes

next_token class-attribute instance-attribute
next_token: str | None = None

A token you can use to get the next page of results.

search_results class-attribute instance-attribute
search_results: list[SearchSampleQueriesSearchResult] | None = None

A list of objects containing the search results ordered from most relevant to least relevant.