aws_sdk_workdocs/client/
delete_document_version.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DeleteDocumentVersion`](crate::operation::delete_document_version::builders::DeleteDocumentVersionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`authentication_token(impl Into<String>)`](crate::operation::delete_document_version::builders::DeleteDocumentVersionFluentBuilder::authentication_token) / [`set_authentication_token(Option<String>)`](crate::operation::delete_document_version::builders::DeleteDocumentVersionFluentBuilder::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_version::builders::DeleteDocumentVersionFluentBuilder::document_id) / [`set_document_id(Option<String>)`](crate::operation::delete_document_version::builders::DeleteDocumentVersionFluentBuilder::set_document_id):<br>required: **true**<br><p>The ID of the document associated with the version being deleted.</p><br>
    ///   - [`version_id(impl Into<String>)`](crate::operation::delete_document_version::builders::DeleteDocumentVersionFluentBuilder::version_id) / [`set_version_id(Option<String>)`](crate::operation::delete_document_version::builders::DeleteDocumentVersionFluentBuilder::set_version_id):<br>required: **true**<br><p>The ID of the version being deleted.</p><br>
    ///   - [`delete_prior_versions(bool)`](crate::operation::delete_document_version::builders::DeleteDocumentVersionFluentBuilder::delete_prior_versions) / [`set_delete_prior_versions(Option<bool>)`](crate::operation::delete_document_version::builders::DeleteDocumentVersionFluentBuilder::set_delete_prior_versions):<br>required: **true**<br><p>Deletes all versions of a document prior to the current version.</p><br>
    /// - On success, responds with [`DeleteDocumentVersionOutput`](crate::operation::delete_document_version::DeleteDocumentVersionOutput)
    /// - On failure, responds with [`SdkError<DeleteDocumentVersionError>`](crate::operation::delete_document_version::DeleteDocumentVersionError)
    pub fn delete_document_version(&self) -> crate::operation::delete_document_version::builders::DeleteDocumentVersionFluentBuilder {
        crate::operation::delete_document_version::builders::DeleteDocumentVersionFluentBuilder::new(self.handle.clone())
    }
}