| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.WorkDocs.CreateFolder
Description
Creates a folder with the specified name and parent folder.
Synopsis
- data CreateFolder = CreateFolder' {
- authenticationToken :: Maybe (Sensitive Text)
- name :: Maybe Text
- parentFolderId :: Text
- newCreateFolder :: Text -> CreateFolder
- createFolder_authenticationToken :: Lens' CreateFolder (Maybe Text)
- createFolder_name :: Lens' CreateFolder (Maybe Text)
- createFolder_parentFolderId :: Lens' CreateFolder Text
- data CreateFolderResponse = CreateFolderResponse' {}
- newCreateFolderResponse :: Int -> CreateFolderResponse
- createFolderResponse_metadata :: Lens' CreateFolderResponse (Maybe FolderMetadata)
- createFolderResponse_httpStatus :: Lens' CreateFolderResponse Int
Creating a Request
data CreateFolder Source #
See: newCreateFolder smart constructor.
Constructors
| CreateFolder' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> CreateFolder |
Create a value of CreateFolder with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:authenticationToken:CreateFolder', createFolder_authenticationToken - Amazon WorkDocs authentication token. Not required when using AWS
administrator credentials to access the API.
CreateFolder, createFolder_name - The name of the new folder.
CreateFolder, createFolder_parentFolderId - The ID of the parent folder.
Request Lenses
createFolder_authenticationToken :: Lens' CreateFolder (Maybe Text) Source #
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
createFolder_name :: Lens' CreateFolder (Maybe Text) Source #
The name of the new folder.
createFolder_parentFolderId :: Lens' CreateFolder Text Source #
The ID of the parent folder.
Destructuring the Response
data CreateFolderResponse Source #
See: newCreateFolderResponse smart constructor.
Constructors
| CreateFolderResponse' | |
Fields
| |
Instances
newCreateFolderResponse Source #
Arguments
| :: Int | |
| -> CreateFolderResponse |
Create a value of CreateFolderResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:metadata:CreateFolderResponse', createFolderResponse_metadata - The metadata of the folder.
$sel:httpStatus:CreateFolderResponse', createFolderResponse_httpStatus - The response's http status code.
Response Lenses
createFolderResponse_metadata :: Lens' CreateFolderResponse (Maybe FolderMetadata) Source #
The metadata of the folder.
createFolderResponse_httpStatus :: Lens' CreateFolderResponse Int Source #
The response's http status code.