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 [`DetachPolicy`](crate::operation::detach_policy::builders::DetachPolicyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`DetachPolicyOutput`](crate::operation::detach_policy::DetachPolicyOutput)
    /// - On failure, responds with [`SdkError<DetachPolicyError>`](crate::operation::detach_policy::DetachPolicyError)
    pub fn detach_policy(&self) -> crate::operation::detach_policy::builders::DetachPolicyFluentBuilder {
        crate::operation::detach_policy::builders::DetachPolicyFluentBuilder::new(self.handle.clone())
    }
}