aws_sdk_workmail/client/
delete_retention_policy.rs

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 [`DeleteRetentionPolicy`](crate::operation::delete_retention_policy::builders::DeleteRetentionPolicyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`organization_id(impl Into<String>)`](crate::operation::delete_retention_policy::builders::DeleteRetentionPolicyFluentBuilder::organization_id) / [`set_organization_id(Option<String>)`](crate::operation::delete_retention_policy::builders::DeleteRetentionPolicyFluentBuilder::set_organization_id):<br>required: **true**<br><p>The organization ID.</p><br>
    ///   - [`id(impl Into<String>)`](crate::operation::delete_retention_policy::builders::DeleteRetentionPolicyFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::delete_retention_policy::builders::DeleteRetentionPolicyFluentBuilder::set_id):<br>required: **true**<br><p>The retention policy ID.</p><br>
    /// - On success, responds with [`DeleteRetentionPolicyOutput`](crate::operation::delete_retention_policy::DeleteRetentionPolicyOutput)
    /// - On failure, responds with [`SdkError<DeleteRetentionPolicyError>`](crate::operation::delete_retention_policy::DeleteRetentionPolicyError)
    pub fn delete_retention_policy(&self) -> crate::operation::delete_retention_policy::builders::DeleteRetentionPolicyFluentBuilder {
        crate::operation::delete_retention_policy::builders::DeleteRetentionPolicyFluentBuilder::new(self.handle.clone())
    }
}