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

Description

Retrieves the document versions for the specified document.

By default, only active versions are returned.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeDocumentVersions Source #

See: newDescribeDocumentVersions smart constructor.

Constructors

DescribeDocumentVersions' 

Fields

  • authenticationToken :: Maybe (Sensitive Text)

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

  • fields :: Maybe Text

    Specify "SOURCE" to include initialized versions and a URL for the source document.

  • include :: Maybe Text

    A comma-separated list of values. Specify "INITIALIZED" to include incomplete versions.

  • limit :: Maybe Natural

    The maximum number of versions to return with this call.

  • marker :: Maybe Text

    The marker for the next set of results. (You received this marker from a previous call.)

  • documentId :: Text

    The ID of the document.

Instances

Instances details
ToHeaders DescribeDocumentVersions Source # 
Instance details

Defined in Amazonka.WorkDocs.DescribeDocumentVersions

ToPath DescribeDocumentVersions Source # 
Instance details

Defined in Amazonka.WorkDocs.DescribeDocumentVersions

ToQuery DescribeDocumentVersions Source # 
Instance details

Defined in Amazonka.WorkDocs.DescribeDocumentVersions

AWSPager DescribeDocumentVersions Source # 
Instance details

Defined in Amazonka.WorkDocs.DescribeDocumentVersions

AWSRequest DescribeDocumentVersions Source # 
Instance details

Defined in Amazonka.WorkDocs.DescribeDocumentVersions

Generic DescribeDocumentVersions Source # 
Instance details

Defined in Amazonka.WorkDocs.DescribeDocumentVersions

Associated Types

type Rep DescribeDocumentVersions :: Type -> Type #

Show DescribeDocumentVersions Source # 
Instance details

Defined in Amazonka.WorkDocs.DescribeDocumentVersions

NFData DescribeDocumentVersions Source # 
Instance details

Defined in Amazonka.WorkDocs.DescribeDocumentVersions

Eq DescribeDocumentVersions Source # 
Instance details

Defined in Amazonka.WorkDocs.DescribeDocumentVersions

Hashable DescribeDocumentVersions Source # 
Instance details

Defined in Amazonka.WorkDocs.DescribeDocumentVersions

type AWSResponse DescribeDocumentVersions Source # 
Instance details

Defined in Amazonka.WorkDocs.DescribeDocumentVersions

type Rep DescribeDocumentVersions Source # 
Instance details

Defined in Amazonka.WorkDocs.DescribeDocumentVersions

type Rep DescribeDocumentVersions = D1 ('MetaData "DescribeDocumentVersions" "Amazonka.WorkDocs.DescribeDocumentVersions" "amazonka-workdocs-2.0-2rElYnFvcad3yrUkWYMHCU" 'False) (C1 ('MetaCons "DescribeDocumentVersions'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "authenticationToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: (S1 ('MetaSel ('Just "fields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "include") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "documentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newDescribeDocumentVersions Source #

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

$sel:fields:DescribeDocumentVersions', describeDocumentVersions_fields - Specify "SOURCE" to include initialized versions and a URL for the source document.

$sel:include:DescribeDocumentVersions', describeDocumentVersions_include - A comma-separated list of values. Specify "INITIALIZED" to include incomplete versions.

$sel:limit:DescribeDocumentVersions', describeDocumentVersions_limit - The maximum number of versions to return with this call.

DescribeDocumentVersions, describeDocumentVersions_marker - The marker for the next set of results. (You received this marker from a previous call.)

$sel:documentId:DescribeDocumentVersions', describeDocumentVersions_documentId - The ID of the document.

Request Lenses

describeDocumentVersions_authenticationToken :: Lens' DescribeDocumentVersions (Maybe Text) Source #

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

describeDocumentVersions_fields :: Lens' DescribeDocumentVersions (Maybe Text) Source #

Specify "SOURCE" to include initialized versions and a URL for the source document.

describeDocumentVersions_include :: Lens' DescribeDocumentVersions (Maybe Text) Source #

A comma-separated list of values. Specify "INITIALIZED" to include incomplete versions.

describeDocumentVersions_limit :: Lens' DescribeDocumentVersions (Maybe Natural) Source #

The maximum number of versions to return with this call.

describeDocumentVersions_marker :: Lens' DescribeDocumentVersions (Maybe Text) Source #

The marker for the next set of results. (You received this marker from a previous call.)

Destructuring the Response

data DescribeDocumentVersionsResponse Source #

See: newDescribeDocumentVersionsResponse smart constructor.

Constructors

DescribeDocumentVersionsResponse' 

Fields

Instances

Instances details
Generic DescribeDocumentVersionsResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.DescribeDocumentVersions

Associated Types

type Rep DescribeDocumentVersionsResponse :: Type -> Type #

Show DescribeDocumentVersionsResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.DescribeDocumentVersions

NFData DescribeDocumentVersionsResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.DescribeDocumentVersions

Eq DescribeDocumentVersionsResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.DescribeDocumentVersions

type Rep DescribeDocumentVersionsResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.DescribeDocumentVersions

type Rep DescribeDocumentVersionsResponse = D1 ('MetaData "DescribeDocumentVersionsResponse" "Amazonka.WorkDocs.DescribeDocumentVersions" "amazonka-workdocs-2.0-2rElYnFvcad3yrUkWYMHCU" 'False) (C1 ('MetaCons "DescribeDocumentVersionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "documentVersions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DocumentVersionMetadata])) :*: (S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeDocumentVersionsResponse Source #

Create a value of DescribeDocumentVersionsResponse 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:documentVersions:DescribeDocumentVersionsResponse', describeDocumentVersionsResponse_documentVersions - The document versions.

DescribeDocumentVersions, describeDocumentVersionsResponse_marker - The marker to use when requesting the next set of results. If there are no additional results, the string is empty.

$sel:httpStatus:DescribeDocumentVersionsResponse', describeDocumentVersionsResponse_httpStatus - The response's http status code.

Response Lenses

describeDocumentVersionsResponse_marker :: Lens' DescribeDocumentVersionsResponse (Maybe Text) Source #

The marker to use when requesting the next set of results. If there are no additional results, the string is empty.