aws_sdk_macie2/client/
enable_macie.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 [`EnableMacie`](crate::operation::enable_macie::builders::EnableMacieFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`client_token(impl Into<String>)`](crate::operation::enable_macie::builders::EnableMacieFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::enable_macie::builders::EnableMacieFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive token that you provide to ensure the idempotency of the request.</p><br>
7    ///   - [`finding_publishing_frequency(FindingPublishingFrequency)`](crate::operation::enable_macie::builders::EnableMacieFluentBuilder::finding_publishing_frequency) / [`set_finding_publishing_frequency(Option<FindingPublishingFrequency>)`](crate::operation::enable_macie::builders::EnableMacieFluentBuilder::set_finding_publishing_frequency):<br>required: **false**<br><p>Specifies how often to publish updates to policy findings for the account. This includes publishing updates to Security Hub and Amazon EventBridge (formerly Amazon CloudWatch Events).</p><br>
8    ///   - [`status(MacieStatus)`](crate::operation::enable_macie::builders::EnableMacieFluentBuilder::status) / [`set_status(Option<MacieStatus>)`](crate::operation::enable_macie::builders::EnableMacieFluentBuilder::set_status):<br>required: **false**<br><p>Specifies the new status for the account. To enable Amazon Macie and start all Macie activities for the account, set this value to ENABLED.</p><br>
9    /// - On success, responds with [`EnableMacieOutput`](crate::operation::enable_macie::EnableMacieOutput)
10    /// - On failure, responds with [`SdkError<EnableMacieError>`](crate::operation::enable_macie::EnableMacieError)
11    pub fn enable_macie(&self) -> crate::operation::enable_macie::builders::EnableMacieFluentBuilder {
12        crate::operation::enable_macie::builders::EnableMacieFluentBuilder::new(self.handle.clone())
13    }
14}