amazonka-workdocs-1.6.0: 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 # 
Data GetDocumentVersion Source # 

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 # 
Generic GetDocumentVersion Source # 
Hashable GetDocumentVersion Source # 
NFData GetDocumentVersion Source # 

Methods

rnf :: GetDocumentVersion -> () #

AWSRequest GetDocumentVersion Source # 
ToHeaders GetDocumentVersion Source # 
ToPath GetDocumentVersion Source # 
ToQuery GetDocumentVersion Source # 
type Rep GetDocumentVersion Source # 
type Rep GetDocumentVersion = D1 * (MetaData "GetDocumentVersion" "Network.AWS.WorkDocs.GetDocumentVersion" "amazonka-workdocs-1.6.0-1U8VphMWtKAbdAmu8y8qj" False) (C1 * (MetaCons "GetDocumentVersion'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_gdvAuthenticationToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (Sensitive Text)))) (S1 * (MetaSel (Just Symbol "_gdvIncludeCustomMetadata") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_gdvFields") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_gdvDocumentId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_gdvVersionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))))
type Rs GetDocumentVersion Source # 

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 # 
Data GetDocumentVersionResponse Source # 

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 # 
Generic GetDocumentVersionResponse Source # 
NFData GetDocumentVersionResponse Source # 
type Rep GetDocumentVersionResponse Source # 
type Rep GetDocumentVersionResponse = D1 * (MetaData "GetDocumentVersionResponse" "Network.AWS.WorkDocs.GetDocumentVersion" "amazonka-workdocs-1.6.0-1U8VphMWtKAbdAmu8y8qj" False) (C1 * (MetaCons "GetDocumentVersionResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_gdvrsCustomMetadata") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (Map Text Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_gdvrsMetadata") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe DocumentVersionMetadata))) (S1 * (MetaSel (Just Symbol "_gdvrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

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

The custom metadata on the document version.