aws_sdk_workdocs/client/delete_document.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 [`DeleteDocument`](crate::operation::delete_document::builders::DeleteDocumentFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`authentication_token(impl Into<String>)`](crate::operation::delete_document::builders::DeleteDocumentFluentBuilder::authentication_token) / [`set_authentication_token(Option<String>)`](crate::operation::delete_document::builders::DeleteDocumentFluentBuilder::set_authentication_token):<br>required: **false**<br><p>Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.</p><br>
7 /// - [`document_id(impl Into<String>)`](crate::operation::delete_document::builders::DeleteDocumentFluentBuilder::document_id) / [`set_document_id(Option<String>)`](crate::operation::delete_document::builders::DeleteDocumentFluentBuilder::set_document_id):<br>required: **true**<br><p>The ID of the document.</p><br>
8 /// - On success, responds with [`DeleteDocumentOutput`](crate::operation::delete_document::DeleteDocumentOutput)
9 /// - On failure, responds with [`SdkError<DeleteDocumentError>`](crate::operation::delete_document::DeleteDocumentError)
10 pub fn delete_document(&self) -> crate::operation::delete_document::builders::DeleteDocumentFluentBuilder {
11 crate::operation::delete_document::builders::DeleteDocumentFluentBuilder::new(self.handle.clone())
12 }
13}