Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Amazonka.WorkDocs.DeleteDocumentVersion
Description
Deletes a version of an Amazon WorkDocs document. Use the
DeletePriorVersions
parameter to delete prior versions.
Synopsis
- data DeleteDocumentVersion = DeleteDocumentVersion' {}
- newDeleteDocumentVersion :: Text -> Text -> Bool -> DeleteDocumentVersion
- deleteDocumentVersion_authenticationToken :: Lens' DeleteDocumentVersion (Maybe Text)
- deleteDocumentVersion_documentId :: Lens' DeleteDocumentVersion Text
- deleteDocumentVersion_versionId :: Lens' DeleteDocumentVersion Text
- deleteDocumentVersion_deletePriorVersions :: Lens' DeleteDocumentVersion Bool
- data DeleteDocumentVersionResponse = DeleteDocumentVersionResponse' {
- newDeleteDocumentVersionResponse :: DeleteDocumentVersionResponse
Creating a Request
data DeleteDocumentVersion Source #
See: newDeleteDocumentVersion
smart constructor.
Constructors
DeleteDocumentVersion' | |
Fields
|
Instances
newDeleteDocumentVersion Source #
Arguments
:: Text | |
-> Text | |
-> Bool | |
-> DeleteDocumentVersion |
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_documentId :: Lens' DeleteDocumentVersion Text Source #
The ID of a document.
deleteDocumentVersion_versionId :: Lens' DeleteDocumentVersion Text Source #
The version ID of a document.
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.
Constructors
DeleteDocumentVersionResponse' | |
Instances
Generic DeleteDocumentVersionResponse Source # | |
Defined in Amazonka.WorkDocs.DeleteDocumentVersion Associated Types type Rep DeleteDocumentVersionResponse :: Type -> Type # | |
Read DeleteDocumentVersionResponse Source # | |
Show DeleteDocumentVersionResponse Source # | |
Defined in Amazonka.WorkDocs.DeleteDocumentVersion Methods showsPrec :: Int -> DeleteDocumentVersionResponse -> ShowS # show :: DeleteDocumentVersionResponse -> String # showList :: [DeleteDocumentVersionResponse] -> ShowS # | |
NFData DeleteDocumentVersionResponse Source # | |
Defined in Amazonka.WorkDocs.DeleteDocumentVersion Methods rnf :: DeleteDocumentVersionResponse -> () # | |
Eq DeleteDocumentVersionResponse Source # | |
Defined in Amazonka.WorkDocs.DeleteDocumentVersion | |
type Rep DeleteDocumentVersionResponse Source # | |
Defined in Amazonka.WorkDocs.DeleteDocumentVersion |
newDeleteDocumentVersionResponse :: DeleteDocumentVersionResponse Source #
Create a value of DeleteDocumentVersionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.