aws_sdk_clouddirectory/client/delete_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 [`DeleteObject`](crate::operation::delete_object::builders::DeleteObjectFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`directory_arn(impl Into<String>)`](crate::operation::delete_object::builders::DeleteObjectFluentBuilder::directory_arn) / [`set_directory_arn(Option<String>)`](crate::operation::delete_object::builders::DeleteObjectFluentBuilder::set_directory_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) that is associated with the <code>Directory</code> where the object resides. For more information, see <code>arns</code>.</p><br>
7 /// - [`object_reference(ObjectReference)`](crate::operation::delete_object::builders::DeleteObjectFluentBuilder::object_reference) / [`set_object_reference(Option<ObjectReference>)`](crate::operation::delete_object::builders::DeleteObjectFluentBuilder::set_object_reference):<br>required: **true**<br><p>A reference that identifies the object.</p><br>
8 /// - On success, responds with [`DeleteObjectOutput`](crate::operation::delete_object::DeleteObjectOutput)
9 /// - On failure, responds with [`SdkError<DeleteObjectError>`](crate::operation::delete_object::DeleteObjectError)
10 pub fn delete_object(&self) -> crate::operation::delete_object::builders::DeleteObjectFluentBuilder {
11 crate::operation::delete_object::builders::DeleteObjectFluentBuilder::new(self.handle.clone())
12 }
13}