aws_sdk_datazone/client/
list_accounts_in_account_pool.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 [`ListAccountsInAccountPool`](crate::operation::list_accounts_in_account_pool::builders::ListAccountsInAccountPoolFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_accounts_in_account_pool::builders::ListAccountsInAccountPoolFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`domain_identifier(impl Into<String>)`](crate::operation::list_accounts_in_account_pool::builders::ListAccountsInAccountPoolFluentBuilder::domain_identifier) / [`set_domain_identifier(Option<String>)`](crate::operation::list_accounts_in_account_pool::builders::ListAccountsInAccountPoolFluentBuilder::set_domain_identifier):<br>required: **true**<br><p>The ID of the domain in which the accounts in the specified account pool are to be listed.</p><br>
8    ///   - [`identifier(impl Into<String>)`](crate::operation::list_accounts_in_account_pool::builders::ListAccountsInAccountPoolFluentBuilder::identifier) / [`set_identifier(Option<String>)`](crate::operation::list_accounts_in_account_pool::builders::ListAccountsInAccountPoolFluentBuilder::set_identifier):<br>required: **true**<br><p>The ID of the account pool whose accounts are to be listed.</p><br>
9    ///   - [`next_token(impl Into<String>)`](crate::operation::list_accounts_in_account_pool::builders::ListAccountsInAccountPoolFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_accounts_in_account_pool::builders::ListAccountsInAccountPoolFluentBuilder::set_next_token):<br>required: **false**<br><p>When the number of accounts is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of accounts, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListAccountsInAccountPool to list the next set of accounts.</p><br>
10    ///   - [`max_results(i32)`](crate::operation::list_accounts_in_account_pool::builders::ListAccountsInAccountPoolFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_accounts_in_account_pool::builders::ListAccountsInAccountPoolFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of accounts to return in a single call to ListAccountsInAccountPool. When the number of accounts to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to ListAccountsInAccountPool to list the next set of accounts.</p><br>
11    /// - On success, responds with [`ListAccountsInAccountPoolOutput`](crate::operation::list_accounts_in_account_pool::ListAccountsInAccountPoolOutput) with field(s):
12    ///   - [`items(Option<Vec::<AccountInfo>>)`](crate::operation::list_accounts_in_account_pool::ListAccountsInAccountPoolOutput::items): <p>The results of the ListAccountsInAccountPool operation.</p>
13    ///   - [`next_token(Option<String>)`](crate::operation::list_accounts_in_account_pool::ListAccountsInAccountPoolOutput::next_token): <p>When the number of accounts is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of accounts, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListAccountsInAccountPool to list the next set of accounts.</p>
14    /// - On failure, responds with [`SdkError<ListAccountsInAccountPoolError>`](crate::operation::list_accounts_in_account_pool::ListAccountsInAccountPoolError)
15    pub fn list_accounts_in_account_pool(&self) -> crate::operation::list_accounts_in_account_pool::builders::ListAccountsInAccountPoolFluentBuilder {
16        crate::operation::list_accounts_in_account_pool::builders::ListAccountsInAccountPoolFluentBuilder::new(self.handle.clone())
17    }
18}