| 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.UpdateDocumentVersion
Description
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.
Constructors
| UpdateDocumentVersion' | |
Fields
| |
Instances
newUpdateDocumentVersion Source #
Arguments
| :: 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.
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.
Constructors
| UpdateDocumentVersionResponse' | |
Instances
| Generic UpdateDocumentVersionResponse Source # | |
Defined in Amazonka.WorkDocs.UpdateDocumentVersion Associated Types type Rep UpdateDocumentVersionResponse :: Type -> Type # | |
| Read UpdateDocumentVersionResponse Source # | |
| Show UpdateDocumentVersionResponse Source # | |
Defined in Amazonka.WorkDocs.UpdateDocumentVersion Methods showsPrec :: Int -> UpdateDocumentVersionResponse -> ShowS # show :: UpdateDocumentVersionResponse -> String # showList :: [UpdateDocumentVersionResponse] -> ShowS # | |
| NFData UpdateDocumentVersionResponse Source # | |
Defined in Amazonka.WorkDocs.UpdateDocumentVersion Methods rnf :: UpdateDocumentVersionResponse -> () # | |
| Eq UpdateDocumentVersionResponse Source # | |
Defined in Amazonka.WorkDocs.UpdateDocumentVersion | |
| type Rep UpdateDocumentVersionResponse Source # | |
Defined in Amazonka.WorkDocs.UpdateDocumentVersion | |
newUpdateDocumentVersionResponse :: UpdateDocumentVersionResponse Source #
Create a value of UpdateDocumentVersionResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.