libZSservicesZSamazonka-workdocsZSamazonka-workdocs
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.WorkDocs.GetDocumentVersion

Description

Retrieves version metadata for the specified document.

Synopsis

Creating a Request

data GetDocumentVersion Source #

See: newGetDocumentVersion smart constructor.

Constructors

GetDocumentVersion' 

Fields

Instances

Instances details
Eq GetDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocumentVersion

Show GetDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocumentVersion

Generic GetDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocumentVersion

Associated Types

type Rep GetDocumentVersion :: Type -> Type #

NFData GetDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocumentVersion

Methods

rnf :: GetDocumentVersion -> () #

Hashable GetDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocumentVersion

AWSRequest GetDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocumentVersion

Associated Types

type AWSResponse GetDocumentVersion #

ToHeaders GetDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocumentVersion

ToPath GetDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocumentVersion

ToQuery GetDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocumentVersion

type Rep GetDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocumentVersion

type Rep GetDocumentVersion = D1 ('MetaData "GetDocumentVersion" "Amazonka.WorkDocs.GetDocumentVersion" "libZSservicesZSamazonka-workdocsZSamazonka-workdocs" 'False) (C1 ('MetaCons "GetDocumentVersion'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "authenticationToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 ('MetaSel ('Just "includeCustomMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "fields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "documentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "versionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse GetDocumentVersion Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocumentVersion

newGetDocumentVersion Source #

Create a value of GetDocumentVersion 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:GetDocumentVersion', getDocumentVersion_authenticationToken - Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.

$sel:includeCustomMetadata:GetDocumentVersion', getDocumentVersion_includeCustomMetadata - Set this to TRUE to include custom metadata in the response.

$sel:fields:GetDocumentVersion', getDocumentVersion_fields - A comma-separated list of values. Specify "SOURCE" to include a URL for the source document.

$sel:documentId:GetDocumentVersion', getDocumentVersion_documentId - The ID of the document.

$sel:versionId:GetDocumentVersion', getDocumentVersion_versionId - The version ID of the document.

Request Lenses

getDocumentVersion_authenticationToken :: Lens' GetDocumentVersion (Maybe Text) Source #

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

getDocumentVersion_includeCustomMetadata :: Lens' GetDocumentVersion (Maybe Bool) Source #

Set this to TRUE to include custom metadata in the response.

getDocumentVersion_fields :: Lens' GetDocumentVersion (Maybe Text) Source #

A comma-separated list of values. Specify "SOURCE" to include a URL for the source document.

Destructuring the Response

data GetDocumentVersionResponse Source #

See: newGetDocumentVersionResponse smart constructor.

Constructors

GetDocumentVersionResponse' 

Fields

Instances

Instances details
Eq GetDocumentVersionResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocumentVersion

Show GetDocumentVersionResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocumentVersion

Generic GetDocumentVersionResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocumentVersion

Associated Types

type Rep GetDocumentVersionResponse :: Type -> Type #

NFData GetDocumentVersionResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocumentVersion

type Rep GetDocumentVersionResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocumentVersion

type Rep GetDocumentVersionResponse = D1 ('MetaData "GetDocumentVersionResponse" "Amazonka.WorkDocs.GetDocumentVersion" "libZSservicesZSamazonka-workdocsZSamazonka-workdocs" 'False) (C1 ('MetaCons "GetDocumentVersionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "customMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "metadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DocumentVersionMetadata)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetDocumentVersionResponse Source #

Create a value of GetDocumentVersionResponse 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:customMetadata:GetDocumentVersionResponse', getDocumentVersionResponse_customMetadata - The custom metadata on the document version.

$sel:metadata:GetDocumentVersionResponse', getDocumentVersionResponse_metadata - The version metadata.

$sel:httpStatus:GetDocumentVersionResponse', getDocumentVersionResponse_httpStatus - The response's http status code.

Response Lenses