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.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 # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentPath

Data GetDocumentPath Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentPath

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 # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentPath

Generic GetDocumentPath Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentPath

Associated Types

type Rep GetDocumentPath :: Type -> Type #

Hashable GetDocumentPath Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentPath

AWSRequest GetDocumentPath Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentPath

Associated Types

type Rs GetDocumentPath :: Type #

ToHeaders GetDocumentPath Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentPath

ToPath GetDocumentPath Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentPath

ToQuery GetDocumentPath Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentPath

NFData GetDocumentPath Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentPath

Methods

rnf :: GetDocumentPath -> () #

type Rep GetDocumentPath Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentPath

type Rep GetDocumentPath = D1 (MetaData "GetDocumentPath" "Network.AWS.WorkDocs.GetDocumentPath" "amazonka-workdocs-1.6.1-7lORy3cdAvvAKwhZON5nxY" False) (C1 (MetaCons "GetDocumentPath'" PrefixI True) ((S1 (MetaSel (Just "_gdpAuthenticationToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 (MetaSel (Just "_gdpMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_gdpLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)) :*: (S1 (MetaSel (Just "_gdpFields") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gdpDocumentId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs GetDocumentPath Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentPath

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 # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentPath

Data GetDocumentPathResponse Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentPath

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 # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentPath

Show GetDocumentPathResponse Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentPath

Generic GetDocumentPathResponse Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentPath

Associated Types

type Rep GetDocumentPathResponse :: Type -> Type #

NFData GetDocumentPathResponse Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentPath

Methods

rnf :: GetDocumentPathResponse -> () #

type Rep GetDocumentPathResponse Source # 
Instance details

Defined in Network.AWS.WorkDocs.GetDocumentPath

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

Response Lenses