aws_sdk_cloudwatchlogs/client/
delete_account_policy.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 [`DeleteAccountPolicy`](crate::operation::delete_account_policy::builders::DeleteAccountPolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`policy_name(impl Into<String>)`](crate::operation::delete_account_policy::builders::DeleteAccountPolicyFluentBuilder::policy_name) / [`set_policy_name(Option<String>)`](crate::operation::delete_account_policy::builders::DeleteAccountPolicyFluentBuilder::set_policy_name):<br>required: **true**<br><p>The name of the policy to delete.</p><br>
7    ///   - [`policy_type(PolicyType)`](crate::operation::delete_account_policy::builders::DeleteAccountPolicyFluentBuilder::policy_type) / [`set_policy_type(Option<PolicyType>)`](crate::operation::delete_account_policy::builders::DeleteAccountPolicyFluentBuilder::set_policy_type):<br>required: **true**<br><p>The type of policy to delete.</p><br>
8    /// - On success, responds with [`DeleteAccountPolicyOutput`](crate::operation::delete_account_policy::DeleteAccountPolicyOutput)
9    /// - On failure, responds with [`SdkError<DeleteAccountPolicyError>`](crate::operation::delete_account_policy::DeleteAccountPolicyError)
10    pub fn delete_account_policy(&self) -> crate::operation::delete_account_policy::builders::DeleteAccountPolicyFluentBuilder {
11        crate::operation::delete_account_policy::builders::DeleteAccountPolicyFluentBuilder::new(self.handle.clone())
12    }
13}