| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.WorkDocs.CreateFolder
Description
Creates a folder with the specified name and parent folder.
Synopsis
- createFolder :: Text -> CreateFolder
- data CreateFolder
- cfAuthenticationToken :: Lens' CreateFolder (Maybe Text)
- cfName :: Lens' CreateFolder (Maybe Text)
- cfParentFolderId :: Lens' CreateFolder Text
- createFolderResponse :: Int -> CreateFolderResponse
- data CreateFolderResponse
- cfrsMetadata :: Lens' CreateFolderResponse (Maybe FolderMetadata)
- cfrsResponseStatus :: Lens' CreateFolderResponse Int
Creating a Request
Arguments
| :: Text | |
| -> CreateFolder |
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. Do not set this field 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
Request Lenses
cfAuthenticationToken :: Lens' CreateFolder (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.
cfParentFolderId :: Lens' CreateFolder Text Source #
The ID of the parent folder.
Destructuring the Response
Arguments
| :: Int | |
| -> CreateFolderResponse |
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:
cfrsMetadata- The metadata of the folder.cfrsResponseStatus- -- | The response status code.
data CreateFolderResponse Source #
See: createFolderResponse smart constructor.
Instances
Response Lenses
cfrsMetadata :: Lens' CreateFolderResponse (Maybe FolderMetadata) Source #
The metadata of the folder.
cfrsResponseStatus :: Lens' CreateFolderResponse Int Source #
- - | The response status code.