aws_sdk_clouddirectory/client/attach_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 [`AttachPolicy`](crate::operation::attach_policy::builders::AttachPolicyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`directory_arn(impl Into<String>)`](crate::operation::attach_policy::builders::AttachPolicyFluentBuilder::directory_arn) / [`set_directory_arn(Option<String>)`](crate::operation::attach_policy::builders::AttachPolicyFluentBuilder::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::attach_policy::builders::AttachPolicyFluentBuilder::policy_reference) / [`set_policy_reference(Option<ObjectReference>)`](crate::operation::attach_policy::builders::AttachPolicyFluentBuilder::set_policy_reference):<br>required: **true**<br><p>The reference that is associated with the policy object.</p><br>
8 /// - [`object_reference(ObjectReference)`](crate::operation::attach_policy::builders::AttachPolicyFluentBuilder::object_reference) / [`set_object_reference(Option<ObjectReference>)`](crate::operation::attach_policy::builders::AttachPolicyFluentBuilder::set_object_reference):<br>required: **true**<br><p>The reference that identifies the object to which the policy will be attached.</p><br>
9 /// - On success, responds with [`AttachPolicyOutput`](crate::operation::attach_policy::AttachPolicyOutput)
10 /// - On failure, responds with [`SdkError<AttachPolicyError>`](crate::operation::attach_policy::AttachPolicyError)
11 pub fn attach_policy(&self) -> crate::operation::attach_policy::builders::AttachPolicyFluentBuilder {
12 crate::operation::attach_policy::builders::AttachPolicyFluentBuilder::new(self.handle.clone())
13 }
14}