Copyright | (c) 2013-2021 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 |
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.
CreateFolder' | |
|
Instances
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.
$sel:name:CreateFolder'
, createFolder_name
- The name of the new folder.
$sel:parentFolderId: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.
CreateFolderResponse' | |
|
Instances
newCreateFolderResponse Source #
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.