aws_sdk_macie2/client/
batch_update_automated_discovery_accounts.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 [`BatchUpdateAutomatedDiscoveryAccounts`](crate::operation::batch_update_automated_discovery_accounts::builders::BatchUpdateAutomatedDiscoveryAccountsFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`accounts(AutomatedDiscoveryAccountUpdate)`](crate::operation::batch_update_automated_discovery_accounts::builders::BatchUpdateAutomatedDiscoveryAccountsFluentBuilder::accounts) / [`set_accounts(Option<Vec::<AutomatedDiscoveryAccountUpdate>>)`](crate::operation::batch_update_automated_discovery_accounts::builders::BatchUpdateAutomatedDiscoveryAccountsFluentBuilder::set_accounts):<br>required: **false**<br><p>An array of objects, one for each account to change the status of automated sensitive data discovery for. Each object specifies the Amazon Web Services account ID for an account and a new status for that account.</p><br>
7    /// - On success, responds with [`BatchUpdateAutomatedDiscoveryAccountsOutput`](crate::operation::batch_update_automated_discovery_accounts::BatchUpdateAutomatedDiscoveryAccountsOutput) with field(s):
8    ///   - [`errors(Option<Vec::<AutomatedDiscoveryAccountUpdateError>>)`](crate::operation::batch_update_automated_discovery_accounts::BatchUpdateAutomatedDiscoveryAccountsOutput::errors): <p>An array of objects, one for each account whose status wasn’t changed. Each object identifies the account and explains why the status of automated sensitive data discovery wasn’t changed for the account. This value is null if the request succeeded for all specified accounts.</p>
9    /// - On failure, responds with [`SdkError<BatchUpdateAutomatedDiscoveryAccountsError>`](crate::operation::batch_update_automated_discovery_accounts::BatchUpdateAutomatedDiscoveryAccountsError)
10    pub fn batch_update_automated_discovery_accounts(
11        &self,
12    ) -> crate::operation::batch_update_automated_discovery_accounts::builders::BatchUpdateAutomatedDiscoveryAccountsFluentBuilder {
13        crate::operation::batch_update_automated_discovery_accounts::builders::BatchUpdateAutomatedDiscoveryAccountsFluentBuilder::new(
14            self.handle.clone(),
15        )
16    }
17}