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

Description

Retrieves details of a document.

Synopsis

Creating a Request

data GetDocument Source #

See: newGetDocument smart constructor.

Constructors

GetDocument' 

Fields

Instances

Instances details
Eq GetDocument Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocument

Show GetDocument Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocument

Generic GetDocument Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocument

Associated Types

type Rep GetDocument :: Type -> Type #

NFData GetDocument Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocument

Methods

rnf :: GetDocument -> () #

Hashable GetDocument Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocument

AWSRequest GetDocument Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocument

Associated Types

type AWSResponse GetDocument #

ToHeaders GetDocument Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocument

Methods

toHeaders :: GetDocument -> [Header] #

ToPath GetDocument Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocument

ToQuery GetDocument Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocument

type Rep GetDocument Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocument

type Rep GetDocument = D1 ('MetaData "GetDocument" "Amazonka.WorkDocs.GetDocument" "libZSservicesZSamazonka-workdocsZSamazonka-workdocs" 'False) (C1 ('MetaCons "GetDocument'" '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 "documentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse GetDocument Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocument

newGetDocument Source #

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

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

$sel:documentId:GetDocument', getDocument_documentId - The ID of the document.

Request Lenses

getDocument_authenticationToken :: Lens' GetDocument (Maybe Text) Source #

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

getDocument_includeCustomMetadata :: Lens' GetDocument (Maybe Bool) Source #

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

Destructuring the Response

data GetDocumentResponse Source #

See: newGetDocumentResponse smart constructor.

Constructors

GetDocumentResponse' 

Fields

Instances

Instances details
Eq GetDocumentResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocument

Show GetDocumentResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocument

Generic GetDocumentResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocument

Associated Types

type Rep GetDocumentResponse :: Type -> Type #

NFData GetDocumentResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocument

Methods

rnf :: GetDocumentResponse -> () #

type Rep GetDocumentResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.GetDocument

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

newGetDocumentResponse Source #

Create a value of GetDocumentResponse 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:GetDocumentResponse', getDocumentResponse_customMetadata - The custom metadata on the document.

$sel:metadata:GetDocumentResponse', getDocumentResponse_metadata - The metadata details of the document.

$sel:httpStatus:GetDocumentResponse', getDocumentResponse_httpStatus - The response's http status code.

Response Lenses