aws_sdk_clouddirectory/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 /// - [`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>
7 /// - [`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>
8 /// - [`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>
9 /// - On success, responds with [`DetachPolicyOutput`](crate::operation::detach_policy::DetachPolicyOutput)
10 /// - On failure, responds with [`SdkError<DetachPolicyError>`](crate::operation::detach_policy::DetachPolicyError)
11 pub fn detach_policy(&self) -> crate::operation::detach_policy::builders::DetachPolicyFluentBuilder {
12 crate::operation::detach_policy::builders::DetachPolicyFluentBuilder::new(self.handle.clone())
13 }
14}