aws_sdk_workdocs/client/
delete_document.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DeleteDocument`](crate::operation::delete_document::builders::DeleteDocumentFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`DeleteDocumentOutput`](crate::operation::delete_document::DeleteDocumentOutput)
    /// - On failure, responds with [`SdkError<DeleteDocumentError>`](crate::operation::delete_document::DeleteDocumentError)
    pub fn delete_document(&self) -> crate::operation::delete_document::builders::DeleteDocumentFluentBuilder {
        crate::operation::delete_document::builders::DeleteDocumentFluentBuilder::new(self.handle.clone())
    }
}