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.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

Creating a Request

data UpdateDocumentVersion Source #

See: newUpdateDocumentVersion smart constructor.

Constructors

UpdateDocumentVersion' 

Fields

Instances

Instances details
ToJSON UpdateDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocumentVersion

ToHeaders UpdateDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocumentVersion

ToPath UpdateDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocumentVersion

ToQuery UpdateDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocumentVersion

AWSRequest UpdateDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocumentVersion

Associated Types

type AWSResponse UpdateDocumentVersion #

Generic UpdateDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocumentVersion

Associated Types

type Rep UpdateDocumentVersion :: Type -> Type #

Show UpdateDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocumentVersion

NFData UpdateDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocumentVersion

Methods

rnf :: UpdateDocumentVersion -> () #

Eq UpdateDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocumentVersion

Hashable UpdateDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocumentVersion

type AWSResponse UpdateDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocumentVersion

type Rep UpdateDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocumentVersion

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

newUpdateDocumentVersion Source #

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.

Destructuring the Response

data UpdateDocumentVersionResponse Source #

See: newUpdateDocumentVersionResponse smart constructor.

Instances

Instances details
Generic UpdateDocumentVersionResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocumentVersion

Associated Types

type Rep UpdateDocumentVersionResponse :: Type -> Type #

Read UpdateDocumentVersionResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocumentVersion

Show UpdateDocumentVersionResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocumentVersion

NFData UpdateDocumentVersionResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocumentVersion

Eq UpdateDocumentVersionResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocumentVersion

type Rep UpdateDocumentVersionResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocumentVersion

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

newUpdateDocumentVersionResponse :: UpdateDocumentVersionResponse Source #

Create a value of UpdateDocumentVersionResponse with all optional fields omitted.

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