1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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:
    ///   - [`directory_arn(impl Into<String>)`](crate::operation::detach_policy::builders::DetachPolicyFluentBuilder::directory_arn) / [`set_directory_arn(Option<String>)`](crate::operation::detach_policy::builders::DetachPolicyFluentBuilder::set_directory_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) that is associated with the <code>Directory</code> where both objects reside. For more information, see <code>arns</code>.</p><br>
    ///   - [`policy_reference(ObjectReference)`](crate::operation::detach_policy::builders::DetachPolicyFluentBuilder::policy_reference) / [`set_policy_reference(Option<ObjectReference>)`](crate::operation::detach_policy::builders::DetachPolicyFluentBuilder::set_policy_reference):<br>required: **true**<br><p>Reference that identifies the policy object.</p><br>
    ///   - [`object_reference(ObjectReference)`](crate::operation::detach_policy::builders::DetachPolicyFluentBuilder::object_reference) / [`set_object_reference(Option<ObjectReference>)`](crate::operation::detach_policy::builders::DetachPolicyFluentBuilder::set_object_reference):<br>required: **true**<br><p>Reference that identifies the object whose policy object 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())
    }
}