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

Contents

Description

Retrieves the path information (the hierarchy from the root folder) for the requested document.

By default, Amazon WorkDocs returns a maximum of 100 levels upwards from the requested document and only includes the IDs of the parent folders in the path. You can limit the maximum number of levels. You can also request the names of the parent folders.

Synopsis

Creating a Request

getDocumentPath Source #

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

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

  • gdpAuthenticationToken - Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.
  • gdpMarker - This value is not supported.
  • gdpLimit - The maximum number of levels in the hierarchy to return.
  • gdpFields - A comma-separated list of values. Specify NAME to include the names of the parent folders.
  • gdpDocumentId - The ID of the document.

data GetDocumentPath Source #

See: getDocumentPath smart constructor.

Instances

Eq GetDocumentPath Source # 
Data GetDocumentPath Source # 

Methods

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

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

toConstr :: GetDocumentPath -> Constr #

dataTypeOf :: GetDocumentPath -> DataType #

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

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

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

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

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

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

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

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

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

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

Show GetDocumentPath Source # 
Generic GetDocumentPath Source # 
Hashable GetDocumentPath Source # 
NFData GetDocumentPath Source # 

Methods

rnf :: GetDocumentPath -> () #

AWSRequest GetDocumentPath Source # 
ToHeaders GetDocumentPath Source # 
ToPath GetDocumentPath Source # 
ToQuery GetDocumentPath Source # 
type Rep GetDocumentPath Source # 
type Rep GetDocumentPath = D1 * (MetaData "GetDocumentPath" "Network.AWS.WorkDocs.GetDocumentPath" "amazonka-workdocs-1.6.0-1U8VphMWtKAbdAmu8y8qj" False) (C1 * (MetaCons "GetDocumentPath'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_gdpAuthenticationToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (Sensitive Text)))) (S1 * (MetaSel (Just Symbol "_gdpMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_gdpLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat))) ((:*:) * (S1 * (MetaSel (Just Symbol "_gdpFields") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_gdpDocumentId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))))
type Rs GetDocumentPath Source # 

Request Lenses

gdpAuthenticationToken :: Lens' GetDocumentPath (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.

gdpMarker :: Lens' GetDocumentPath (Maybe Text) Source #

This value is not supported.

gdpLimit :: Lens' GetDocumentPath (Maybe Natural) Source #

The maximum number of levels in the hierarchy to return.

gdpFields :: Lens' GetDocumentPath (Maybe Text) Source #

A comma-separated list of values. Specify NAME to include the names of the parent folders.

gdpDocumentId :: Lens' GetDocumentPath Text Source #

The ID of the document.

Destructuring the Response

getDocumentPathResponse Source #

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

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

data GetDocumentPathResponse Source #

See: getDocumentPathResponse smart constructor.

Instances

Eq GetDocumentPathResponse Source # 
Data GetDocumentPathResponse Source # 

Methods

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

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

toConstr :: GetDocumentPathResponse -> Constr #

dataTypeOf :: GetDocumentPathResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetDocumentPathResponse Source # 
Show GetDocumentPathResponse Source # 
Generic GetDocumentPathResponse Source # 
NFData GetDocumentPathResponse Source # 

Methods

rnf :: GetDocumentPathResponse -> () #

type Rep GetDocumentPathResponse Source # 
type Rep GetDocumentPathResponse = D1 * (MetaData "GetDocumentPathResponse" "Network.AWS.WorkDocs.GetDocumentPath" "amazonka-workdocs-1.6.0-1U8VphMWtKAbdAmu8y8qj" False) (C1 * (MetaCons "GetDocumentPathResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_gdprsPath") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe ResourcePath))) (S1 * (MetaSel (Just Symbol "_gdprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses