amazonka-workdocs-1.5.0: Amazon WorkDocs SDK.

Copyright(c) 2013-2017 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.CreateFolder

Contents

Description

Creates a folder with the specified name and parent folder.

Synopsis

Creating a Request

createFolder Source #

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

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

  • cfAuthenticationToken - Amazon WorkDocs authentication token. This field should not be set when using administrative API actions, as in accessing the API using AWS credentials.
  • cfName - The name of the new folder.
  • cfParentFolderId - The ID of the parent folder.

data CreateFolder Source #

See: createFolder smart constructor.

Instances

Eq CreateFolder Source # 
Data CreateFolder Source # 

Methods

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

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

toConstr :: CreateFolder -> Constr #

dataTypeOf :: CreateFolder -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CreateFolder Source # 
Generic CreateFolder Source # 

Associated Types

type Rep CreateFolder :: * -> * #

Hashable CreateFolder Source # 
ToJSON CreateFolder Source # 
NFData CreateFolder Source # 

Methods

rnf :: CreateFolder -> () #

AWSRequest CreateFolder Source # 
ToQuery CreateFolder Source # 
ToPath CreateFolder Source # 
ToHeaders CreateFolder Source # 
type Rep CreateFolder Source # 
type Rep CreateFolder = D1 (MetaData "CreateFolder" "Network.AWS.WorkDocs.CreateFolder" "amazonka-workdocs-1.5.0-BQCQjzmZAyNCgdficzQnx9" False) (C1 (MetaCons "CreateFolder'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cfAuthenticationToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Sensitive Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_cfName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_cfParentFolderId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs CreateFolder Source # 

Request Lenses

cfAuthenticationToken :: Lens' CreateFolder (Maybe Text) Source #

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

cfName :: Lens' CreateFolder (Maybe Text) Source #

The name of the new folder.

cfParentFolderId :: Lens' CreateFolder Text Source #

The ID of the parent folder.

Destructuring the Response

createFolderResponse Source #

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

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

data CreateFolderResponse Source #

See: createFolderResponse smart constructor.

Instances

Eq CreateFolderResponse Source # 
Data CreateFolderResponse Source # 

Methods

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

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

toConstr :: CreateFolderResponse -> Constr #

dataTypeOf :: CreateFolderResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateFolderResponse Source # 
Show CreateFolderResponse Source # 
Generic CreateFolderResponse Source # 
NFData CreateFolderResponse Source # 

Methods

rnf :: CreateFolderResponse -> () #

type Rep CreateFolderResponse Source # 
type Rep CreateFolderResponse = D1 (MetaData "CreateFolderResponse" "Network.AWS.WorkDocs.CreateFolder" "amazonka-workdocs-1.5.0-BQCQjzmZAyNCgdficzQnx9" False) (C1 (MetaCons "CreateFolderResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cfrsMetadata") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe FolderMetadata))) (S1 (MetaSel (Just Symbol "_cfrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

cfrsResponseStatus :: Lens' CreateFolderResponse Int Source #

  • - | The response status code.