aws_sdk_clouddirectory/client/attach_object.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 [`AttachObject`](crate::operation::attach_object::builders::AttachObjectFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`directory_arn(impl Into<String>)`](crate::operation::attach_object::builders::AttachObjectFluentBuilder::directory_arn) / [`set_directory_arn(Option<String>)`](crate::operation::attach_object::builders::AttachObjectFluentBuilder::set_directory_arn):<br>required: **true**<br><p>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 /// - [`parent_reference(ObjectReference)`](crate::operation::attach_object::builders::AttachObjectFluentBuilder::parent_reference) / [`set_parent_reference(Option<ObjectReference>)`](crate::operation::attach_object::builders::AttachObjectFluentBuilder::set_parent_reference):<br>required: **true**<br><p>The parent object reference.</p><br>
8 /// - [`child_reference(ObjectReference)`](crate::operation::attach_object::builders::AttachObjectFluentBuilder::child_reference) / [`set_child_reference(Option<ObjectReference>)`](crate::operation::attach_object::builders::AttachObjectFluentBuilder::set_child_reference):<br>required: **true**<br><p>The child object reference to be attached to the object.</p><br>
9 /// - [`link_name(impl Into<String>)`](crate::operation::attach_object::builders::AttachObjectFluentBuilder::link_name) / [`set_link_name(Option<String>)`](crate::operation::attach_object::builders::AttachObjectFluentBuilder::set_link_name):<br>required: **true**<br><p>The link name with which the child object is attached to the parent.</p><br>
10 /// - On success, responds with [`AttachObjectOutput`](crate::operation::attach_object::AttachObjectOutput) with field(s):
11 /// - [`attached_object_identifier(Option<String>)`](crate::operation::attach_object::AttachObjectOutput::attached_object_identifier): <p>The attached <code>ObjectIdentifier</code>, which is the child <code>ObjectIdentifier</code>.</p>
12 /// - On failure, responds with [`SdkError<AttachObjectError>`](crate::operation::attach_object::AttachObjectError)
13 pub fn attach_object(&self) -> crate::operation::attach_object::builders::AttachObjectFluentBuilder {
14 crate::operation::attach_object::builders::AttachObjectFluentBuilder::new(self.handle.clone())
15 }
16}