1
2
3
4
5
6
7
8
9
10
11
12
13
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`PutDataProtectionPolicy`](crate::operation::put_data_protection_policy::builders::PutDataProtectionPolicyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`resource_arn(impl Into<String>)`](crate::operation::put_data_protection_policy::builders::PutDataProtectionPolicyFluentBuilder::resource_arn) / [`set_resource_arn(Option<String>)`](crate::operation::put_data_protection_policy::builders::PutDataProtectionPolicyFluentBuilder::set_resource_arn):<br>required: **true**<br><p>The ARN of the topic whose <code>DataProtectionPolicy</code> you want to add or update.</p> <p>For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a> in the Amazon Web Services General Reference.</p><br>
    ///   - [`data_protection_policy(impl Into<String>)`](crate::operation::put_data_protection_policy::builders::PutDataProtectionPolicyFluentBuilder::data_protection_policy) / [`set_data_protection_policy(Option<String>)`](crate::operation::put_data_protection_policy::builders::PutDataProtectionPolicyFluentBuilder::set_data_protection_policy):<br>required: **true**<br><p>The JSON serialization of the topic's <code>DataProtectionPolicy</code>.</p> <p>The <code>DataProtectionPolicy</code> must be in JSON string format.</p> <p>Length Constraints: Maximum length of 30,720.</p><br>
    /// - On success, responds with [`PutDataProtectionPolicyOutput`](crate::operation::put_data_protection_policy::PutDataProtectionPolicyOutput)
    /// - On failure, responds with [`SdkError<PutDataProtectionPolicyError>`](crate::operation::put_data_protection_policy::PutDataProtectionPolicyError)
    pub fn put_data_protection_policy(&self) -> crate::operation::put_data_protection_policy::builders::PutDataProtectionPolicyFluentBuilder {
        crate::operation::put_data_protection_policy::builders::PutDataProtectionPolicyFluentBuilder::new(self.handle.clone())
    }
}