// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`AttachPolicy`](crate::operation::attach_policy::builders::AttachPolicyFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`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>
/// - [`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>
/// - [`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>
/// - On success, responds with [`AttachPolicyOutput`](crate::operation::attach_policy::AttachPolicyOutput)
/// - On failure, responds with [`SdkError<AttachPolicyError>`](crate::operation::attach_policy::AttachPolicyError)
pub fn attach_policy(&self) -> crate::operation::attach_policy::builders::AttachPolicyFluentBuilder {
crate::operation::attach_policy::builders::AttachPolicyFluentBuilder::new(self.handle.clone())
}
}