aws_sdk_iot/client/
detach_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 [`DetachPolicy`](crate::operation::detach_policy::builders::DetachPolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`policy_name(impl Into<String>)`](crate::operation::detach_policy::builders::DetachPolicyFluentBuilder::policy_name) / [`set_policy_name(Option<String>)`](crate::operation::detach_policy::builders::DetachPolicyFluentBuilder::set_policy_name):<br>required: **true**<br><p>The policy to detach.</p><br>
7    ///   - [`target(impl Into<String>)`](crate::operation::detach_policy::builders::DetachPolicyFluentBuilder::target) / [`set_target(Option<String>)`](crate::operation::detach_policy::builders::DetachPolicyFluentBuilder::set_target):<br>required: **true**<br><p>The target from which the policy will be detached.</p><br>
8    /// - On success, responds with [`DetachPolicyOutput`](crate::operation::detach_policy::DetachPolicyOutput)
9    /// - On failure, responds with [`SdkError<DetachPolicyError>`](crate::operation::detach_policy::DetachPolicyError)
10    pub fn detach_policy(&self) -> crate::operation::detach_policy::builders::DetachPolicyFluentBuilder {
11        crate::operation::detach_policy::builders::DetachPolicyFluentBuilder::new(self.handle.clone())
12    }
13}