amazonka-workdocs-1.6.1: Amazon WorkDocs SDK.

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

Network.AWS.WorkDocs.GetDocumentVersion

Contents

Description

Retrieves version metadata for the specified document.

Synopsis

Creating a Request

getDocumentVersion Source #

Creates a value of GetDocumentVersion with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • gdvAuthenticationToken - Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.
  • gdvIncludeCustomMetadata - Set this to TRUE to include custom metadata in the response.
  • gdvFields - A comma-separated list of values. Specify SOURCE to include a URL for the source document.
  • gdvDocumentId - The ID of the document.
  • gdvVersionId - The version ID of the document.

data GetDocumentVersion Source #

See: getDocumentVersion smart constructor.

Instances
Eq GetDocumentVersion Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentVersion

Data GetDocumentVersion Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentVersion

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetDocumentVersion -> c GetDocumentVersion #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetDocumentVersion #

toConstr :: GetDocumentVersion -> Constr #

dataTypeOf :: GetDocumentVersion -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetDocumentVersion) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetDocumentVersion) #

gmapT :: (forall b. Data b => b -> b) -> GetDocumentVersion -> GetDocumentVersion #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetDocumentVersion -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetDocumentVersion -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetDocumentVersion -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetDocumentVersion -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetDocumentVersion -> m GetDocumentVersion #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetDocumentVersion -> m GetDocumentVersion #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetDocumentVersion -> m GetDocumentVersion #

Show GetDocumentVersion Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentVersion

Generic GetDocumentVersion Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentVersion

Associated Types

type Rep GetDocumentVersion :: Type -> Type #

Hashable GetDocumentVersion Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentVersion

AWSRequest GetDocumentVersion Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentVersion

Associated Types

type Rs GetDocumentVersion :: Type #

ToHeaders GetDocumentVersion Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentVersion

ToPath GetDocumentVersion Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentVersion

ToQuery GetDocumentVersion Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentVersion

NFData GetDocumentVersion Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentVersion

Methods

rnf :: GetDocumentVersion -> () #

type Rep GetDocumentVersion Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentVersion

type Rep GetDocumentVersion = D1 (MetaData "GetDocumentVersion" "Network.AWS.WorkDocs.GetDocumentVersion" "amazonka-workdocs-1.6.1-7lORy3cdAvvAKwhZON5nxY" False) (C1 (MetaCons "GetDocumentVersion'" PrefixI True) ((S1 (MetaSel (Just "_gdvAuthenticationToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 (MetaSel (Just "_gdvIncludeCustomMetadata") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 (MetaSel (Just "_gdvFields") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_gdvDocumentId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_gdvVersionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs GetDocumentVersion Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentVersion

Request Lenses

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

Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.

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

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

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

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

gdvVersionId :: Lens' GetDocumentVersion Text Source #

The version ID of the document.

Destructuring the Response

getDocumentVersionResponse Source #

Creates a value of GetDocumentVersionResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data GetDocumentVersionResponse Source #

See: getDocumentVersionResponse smart constructor.

Instances
Eq GetDocumentVersionResponse Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentVersion

Data GetDocumentVersionResponse Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentVersion

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetDocumentVersionResponse -> c GetDocumentVersionResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetDocumentVersionResponse #

toConstr :: GetDocumentVersionResponse -> Constr #

dataTypeOf :: GetDocumentVersionResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GetDocumentVersionResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetDocumentVersionResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetDocumentVersionResponse -> GetDocumentVersionResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetDocumentVersionResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetDocumentVersionResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetDocumentVersionResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetDocumentVersionResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetDocumentVersionResponse -> m GetDocumentVersionResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetDocumentVersionResponse -> m GetDocumentVersionResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetDocumentVersionResponse -> m GetDocumentVersionResponse #

Show GetDocumentVersionResponse Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentVersion

Generic GetDocumentVersionResponse Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentVersion

Associated Types

type Rep GetDocumentVersionResponse :: Type -> Type #

NFData GetDocumentVersionResponse Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentVersion

type Rep GetDocumentVersionResponse Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentVersion

type Rep GetDocumentVersionResponse = D1 (MetaData "GetDocumentVersionResponse" "Network.AWS.WorkDocs.GetDocumentVersion" "amazonka-workdocs-1.6.1-7lORy3cdAvvAKwhZON5nxY" False) (C1 (MetaCons "GetDocumentVersionResponse'" PrefixI True) (S1 (MetaSel (Just "_gdvrsCustomMetadata") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text))) :*: (S1 (MetaSel (Just "_gdvrsMetadata") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DocumentVersionMetadata)) :*: S1 (MetaSel (Just "_gdvrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

gdvrsCustomMetadata :: Lens' GetDocumentVersionResponse (HashMap Text Text) Source #

The custom metadata on the document version.