aws_sdk_appsync/client/
list_api_keys.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 [`ListApiKeys`](crate::operation::list_api_keys::builders::ListApiKeysFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_api_keys::builders::ListApiKeysFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`api_id(impl Into<String>)`](crate::operation::list_api_keys::builders::ListApiKeysFluentBuilder::api_id) / [`set_api_id(Option<String>)`](crate::operation::list_api_keys::builders::ListApiKeysFluentBuilder::set_api_id):<br>required: **true**<br><p>The API ID.</p><br>
8    ///   - [`next_token(impl Into<String>)`](crate::operation::list_api_keys::builders::ListApiKeysFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_api_keys::builders::ListApiKeysFluentBuilder::set_next_token):<br>required: **false**<br><p>An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.</p><br>
9    ///   - [`max_results(i32)`](crate::operation::list_api_keys::builders::ListApiKeysFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_api_keys::builders::ListApiKeysFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results that you want the request to return.</p><br>
10    /// - On success, responds with [`ListApiKeysOutput`](crate::operation::list_api_keys::ListApiKeysOutput) with field(s):
11    ///   - [`api_keys(Option<Vec::<ApiKey>>)`](crate::operation::list_api_keys::ListApiKeysOutput::api_keys): <p>The <code>ApiKey</code> objects.</p>
12    ///   - [`next_token(Option<String>)`](crate::operation::list_api_keys::ListApiKeysOutput::next_token): <p>An identifier to pass in the next request to this operation to return the next set of items in the list.</p>
13    /// - On failure, responds with [`SdkError<ListApiKeysError>`](crate::operation::list_api_keys::ListApiKeysError)
14    pub fn list_api_keys(&self) -> crate::operation::list_api_keys::builders::ListApiKeysFluentBuilder {
15        crate::operation::list_api_keys::builders::ListApiKeysFluentBuilder::new(self.handle.clone())
16    }
17}