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 an empty shared folder.
Synopsis
- data CreateFolder = CreateFolder' {
- parentFolderArn :: Maybe Text
- name :: Maybe Text
- permissions :: Maybe (NonEmpty ResourcePermission)
- folderType :: Maybe FolderType
- tags :: Maybe (NonEmpty Tag)
- awsAccountId :: Text
- folderId :: Text
- newCreateFolder :: Text -> Text -> CreateFolder
- createFolder_parentFolderArn :: Lens' CreateFolder (Maybe Text)
- createFolder_name :: Lens' CreateFolder (Maybe Text)
- createFolder_permissions :: Lens' CreateFolder (Maybe (NonEmpty ResourcePermission))
- createFolder_folderType :: Lens' CreateFolder (Maybe FolderType)
- createFolder_tags :: Lens' CreateFolder (Maybe (NonEmpty Tag))
- createFolder_awsAccountId :: Lens' CreateFolder Text
- createFolder_folderId :: Lens' CreateFolder Text
- data CreateFolderResponse = CreateFolderResponse' {}
- newCreateFolderResponse :: Int -> CreateFolderResponse
- createFolderResponse_requestId :: Lens' CreateFolderResponse (Maybe Text)
- createFolderResponse_arn :: Lens' CreateFolderResponse (Maybe Text)
- createFolderResponse_folderId :: Lens' CreateFolderResponse (Maybe Text)
- createFolderResponse_status :: 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:parentFolderArn:CreateFolder'
, createFolder_parentFolderArn
- The Amazon Resource Name (ARN) for the parent folder.
ParentFolderArn
can be null. An empty parentFolderArn
creates a
root-level folder.
$sel:name:CreateFolder'
, createFolder_name
- The name of the folder.
$sel:permissions:CreateFolder'
, createFolder_permissions
- A structure that describes the principals and the resource-level
permissions of a folder.
To specify no permissions, omit Permissions
.
$sel:folderType:CreateFolder'
, createFolder_folderType
- The type of folder. By default, folderType
is SHARED
.
$sel:tags:CreateFolder'
, createFolder_tags
- Tags for the folder.
$sel:awsAccountId:CreateFolder'
, createFolder_awsAccountId
- The AWS Account ID.
$sel:folderId:CreateFolder'
, createFolder_folderId
- The folder ID.
Request Lenses
createFolder_parentFolderArn :: Lens' CreateFolder (Maybe Text) Source #
The Amazon Resource Name (ARN) for the parent folder.
ParentFolderArn
can be null. An empty parentFolderArn
creates a
root-level folder.
createFolder_name :: Lens' CreateFolder (Maybe Text) Source #
The name of the folder.
createFolder_permissions :: Lens' CreateFolder (Maybe (NonEmpty ResourcePermission)) Source #
A structure that describes the principals and the resource-level permissions of a folder.
To specify no permissions, omit Permissions
.
createFolder_folderType :: Lens' CreateFolder (Maybe FolderType) Source #
The type of folder. By default, folderType
is SHARED
.
createFolder_tags :: Lens' CreateFolder (Maybe (NonEmpty Tag)) Source #
Tags for the folder.
createFolder_awsAccountId :: Lens' CreateFolder Text Source #
The AWS Account ID.
createFolder_folderId :: Lens' CreateFolder Text Source #
The folder ID.
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:requestId:CreateFolderResponse'
, createFolderResponse_requestId
- The request ID for the newly created folder.
$sel:arn:CreateFolderResponse'
, createFolderResponse_arn
- The Amazon Resource Name (ARN) for the newly created folder.
$sel:folderId:CreateFolder'
, createFolderResponse_folderId
- The folder ID for the newly created folder.
$sel:status:CreateFolderResponse'
, createFolderResponse_status
- The status of the newly created folder. If succeeded, the status is
SC_OK (200)
.
Response Lenses
createFolderResponse_requestId :: Lens' CreateFolderResponse (Maybe Text) Source #
The request ID for the newly created folder.
createFolderResponse_arn :: Lens' CreateFolderResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) for the newly created folder.
createFolderResponse_folderId :: Lens' CreateFolderResponse (Maybe Text) Source #
The folder ID for the newly created folder.
createFolderResponse_status :: Lens' CreateFolderResponse Int Source #
The status of the newly created folder. If succeeded, the status is
SC_OK (200)
.