amazonka-workdocs-2.0: Amazon WorkDocs SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.WorkDocs.DeleteDocumentVersion

Description

Deletes a version of an Amazon WorkDocs document. Use the DeletePriorVersions parameter to delete prior versions.

Synopsis

Creating a Request

data DeleteDocumentVersion Source #

See: newDeleteDocumentVersion smart constructor.

Constructors

DeleteDocumentVersion' 

Fields

Instances

Instances details
ToHeaders DeleteDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.DeleteDocumentVersion

ToPath DeleteDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.DeleteDocumentVersion

ToQuery DeleteDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.DeleteDocumentVersion

AWSRequest DeleteDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.DeleteDocumentVersion

Associated Types

type AWSResponse DeleteDocumentVersion #

Generic DeleteDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.DeleteDocumentVersion

Associated Types

type Rep DeleteDocumentVersion :: Type -> Type #

Show DeleteDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.DeleteDocumentVersion

NFData DeleteDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.DeleteDocumentVersion

Methods

rnf :: DeleteDocumentVersion -> () #

Eq DeleteDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.DeleteDocumentVersion

Hashable DeleteDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.DeleteDocumentVersion

type AWSResponse DeleteDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.DeleteDocumentVersion

type Rep DeleteDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.DeleteDocumentVersion

type Rep DeleteDocumentVersion = D1 ('MetaData "DeleteDocumentVersion" "Amazonka.WorkDocs.DeleteDocumentVersion" "amazonka-workdocs-2.0-2rElYnFvcad3yrUkWYMHCU" 'False) (C1 ('MetaCons "DeleteDocumentVersion'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "authenticationToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 ('MetaSel ('Just "documentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "versionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "deletePriorVersions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))))

newDeleteDocumentVersion Source #

Create a value of DeleteDocumentVersion with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:authenticationToken:DeleteDocumentVersion', deleteDocumentVersion_authenticationToken - Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.

$sel:documentId:DeleteDocumentVersion', deleteDocumentVersion_documentId - The ID of a document.

DeleteDocumentVersion, deleteDocumentVersion_versionId - The version ID of a document.

$sel:deletePriorVersions:DeleteDocumentVersion', deleteDocumentVersion_deletePriorVersions - When set to TRUE, deletes the specified version and /all prior versions/ of a document.

Request Lenses

deleteDocumentVersion_authenticationToken :: Lens' DeleteDocumentVersion (Maybe Text) Source #

Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.

deleteDocumentVersion_deletePriorVersions :: Lens' DeleteDocumentVersion Bool Source #

When set to TRUE, deletes the specified version and /all prior versions/ of a document.

Destructuring the Response

data DeleteDocumentVersionResponse Source #

See: newDeleteDocumentVersionResponse smart constructor.

Instances

Instances details
Generic DeleteDocumentVersionResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.DeleteDocumentVersion

Associated Types

type Rep DeleteDocumentVersionResponse :: Type -> Type #

Read DeleteDocumentVersionResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.DeleteDocumentVersion

Show DeleteDocumentVersionResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.DeleteDocumentVersion

NFData DeleteDocumentVersionResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.DeleteDocumentVersion

Eq DeleteDocumentVersionResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.DeleteDocumentVersion

type Rep DeleteDocumentVersionResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.DeleteDocumentVersion

type Rep DeleteDocumentVersionResponse = D1 ('MetaData "DeleteDocumentVersionResponse" "Amazonka.WorkDocs.DeleteDocumentVersion" "amazonka-workdocs-2.0-2rElYnFvcad3yrUkWYMHCU" 'False) (C1 ('MetaCons "DeleteDocumentVersionResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteDocumentVersionResponse :: DeleteDocumentVersionResponse Source #

Create a value of DeleteDocumentVersionResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.