Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Changes the status of the document version to ACTIVE.
Amazon WorkDocs also sets its document container to ACTIVE. This is the last step in a document upload, after the client uploads the document to an S3-presigned URL returned by InitiateDocumentVersionUpload.
Synopsis
- data UpdateDocumentVersion = UpdateDocumentVersion' {}
- newUpdateDocumentVersion :: Text -> Text -> UpdateDocumentVersion
- updateDocumentVersion_authenticationToken :: Lens' UpdateDocumentVersion (Maybe Text)
- updateDocumentVersion_versionStatus :: Lens' UpdateDocumentVersion (Maybe DocumentVersionStatus)
- updateDocumentVersion_documentId :: Lens' UpdateDocumentVersion Text
- updateDocumentVersion_versionId :: Lens' UpdateDocumentVersion Text
- data UpdateDocumentVersionResponse = UpdateDocumentVersionResponse' {
- newUpdateDocumentVersionResponse :: UpdateDocumentVersionResponse
Creating a Request
data UpdateDocumentVersion Source #
See: newUpdateDocumentVersion
smart constructor.
UpdateDocumentVersion' | |
|
Instances
newUpdateDocumentVersion Source #
:: Text | |
-> Text | |
-> UpdateDocumentVersion |
Create a value of UpdateDocumentVersion
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:UpdateDocumentVersion'
, updateDocumentVersion_authenticationToken
- Amazon WorkDocs authentication token. Not required when using AWS
administrator credentials to access the API.
$sel:versionStatus:UpdateDocumentVersion'
, updateDocumentVersion_versionStatus
- The status of the version.
$sel:documentId:UpdateDocumentVersion'
, updateDocumentVersion_documentId
- The ID of the document.
$sel:versionId:UpdateDocumentVersion'
, updateDocumentVersion_versionId
- The version ID of the document.
Request Lenses
updateDocumentVersion_authenticationToken :: Lens' UpdateDocumentVersion (Maybe Text) Source #
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
updateDocumentVersion_versionStatus :: Lens' UpdateDocumentVersion (Maybe DocumentVersionStatus) Source #
The status of the version.
updateDocumentVersion_documentId :: Lens' UpdateDocumentVersion Text Source #
The ID of the document.
updateDocumentVersion_versionId :: Lens' UpdateDocumentVersion Text Source #
The version ID of the document.
Destructuring the Response
data UpdateDocumentVersionResponse Source #
See: newUpdateDocumentVersionResponse
smart constructor.
Instances
newUpdateDocumentVersionResponse :: UpdateDocumentVersionResponse Source #
Create a value of UpdateDocumentVersionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.