aws_sdk_athena/client/
list_named_queries.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`ListNamedQueries`](crate::operation::list_named_queries::builders::ListNamedQueriesFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_named_queries::builders::ListNamedQueriesFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`next_token(impl Into<String>)`](crate::operation::list_named_queries::builders::ListNamedQueriesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_named_queries::builders::ListNamedQueriesFluentBuilder::set_next_token):<br>required: **false**<br><p>A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the <code>NextToken</code> from the response object of the previous page call.</p><br>
8    ///   - [`max_results(i32)`](crate::operation::list_named_queries::builders::ListNamedQueriesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_named_queries::builders::ListNamedQueriesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of queries to return in this request.</p><br>
9    ///   - [`work_group(impl Into<String>)`](crate::operation::list_named_queries::builders::ListNamedQueriesFluentBuilder::work_group) / [`set_work_group(Option<String>)`](crate::operation::list_named_queries::builders::ListNamedQueriesFluentBuilder::set_work_group):<br>required: **false**<br><p>The name of the workgroup from which the named queries are being returned. If a workgroup is not specified, the saved queries for the primary workgroup are returned.</p><br>
10    /// - On success, responds with [`ListNamedQueriesOutput`](crate::operation::list_named_queries::ListNamedQueriesOutput) with field(s):
11    ///   - [`named_query_ids(Option<Vec::<String>>)`](crate::operation::list_named_queries::ListNamedQueriesOutput::named_query_ids): <p>The list of unique query IDs.</p>
12    ///   - [`next_token(Option<String>)`](crate::operation::list_named_queries::ListNamedQueriesOutput::next_token): <p>A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the <code>NextToken</code> from the response object of the previous page call.</p>
13    /// - On failure, responds with [`SdkError<ListNamedQueriesError>`](crate::operation::list_named_queries::ListNamedQueriesError)
14    pub fn list_named_queries(&self) -> crate::operation::list_named_queries::builders::ListNamedQueriesFluentBuilder {
15        crate::operation::list_named_queries::builders::ListNamedQueriesFluentBuilder::new(self.handle.clone())
16    }
17}