aws_sdk_iot/client/
delete_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 [`DeletePolicy`](crate::operation::delete_policy::builders::DeletePolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`policy_name(impl Into<String>)`](crate::operation::delete_policy::builders::DeletePolicyFluentBuilder::policy_name) / [`set_policy_name(Option<String>)`](crate::operation::delete_policy::builders::DeletePolicyFluentBuilder::set_policy_name):<br>required: **true**<br><p>The name of the policy to delete.</p><br>
7    /// - On success, responds with [`DeletePolicyOutput`](crate::operation::delete_policy::DeletePolicyOutput)
8    /// - On failure, responds with [`SdkError<DeletePolicyError>`](crate::operation::delete_policy::DeletePolicyError)
9    pub fn delete_policy(&self) -> crate::operation::delete_policy::builders::DeletePolicyFluentBuilder {
10        crate::operation::delete_policy::builders::DeletePolicyFluentBuilder::new(self.handle.clone())
11    }
12}