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 |
Adds an asset, such as a dashboard, analysis, or dataset into a folder.
Synopsis
- data CreateFolderMembership = CreateFolderMembership' {
- awsAccountId :: Text
- folderId :: Text
- memberId :: Text
- memberType :: MemberType
- newCreateFolderMembership :: Text -> Text -> Text -> MemberType -> CreateFolderMembership
- createFolderMembership_awsAccountId :: Lens' CreateFolderMembership Text
- createFolderMembership_folderId :: Lens' CreateFolderMembership Text
- createFolderMembership_memberId :: Lens' CreateFolderMembership Text
- createFolderMembership_memberType :: Lens' CreateFolderMembership MemberType
- data CreateFolderMembershipResponse = CreateFolderMembershipResponse' {
- requestId :: Maybe Text
- status :: Maybe Int
- folderMember :: Maybe FolderMember
- httpStatus :: Int
- newCreateFolderMembershipResponse :: Int -> CreateFolderMembershipResponse
- createFolderMembershipResponse_requestId :: Lens' CreateFolderMembershipResponse (Maybe Text)
- createFolderMembershipResponse_status :: Lens' CreateFolderMembershipResponse (Maybe Int)
- createFolderMembershipResponse_folderMember :: Lens' CreateFolderMembershipResponse (Maybe FolderMember)
- createFolderMembershipResponse_httpStatus :: Lens' CreateFolderMembershipResponse Int
Creating a Request
data CreateFolderMembership Source #
See: newCreateFolderMembership
smart constructor.
CreateFolderMembership' | |
|
Instances
newCreateFolderMembership Source #
:: Text | |
-> Text | |
-> Text | |
-> MemberType | |
-> CreateFolderMembership |
Create a value of CreateFolderMembership
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:awsAccountId:CreateFolderMembership'
, createFolderMembership_awsAccountId
- The AWS Account ID.
$sel:folderId:CreateFolderMembership'
, createFolderMembership_folderId
- The folder ID.
$sel:memberId:CreateFolderMembership'
, createFolderMembership_memberId
- The ID of the asset (the dashboard, analysis, or dataset).
$sel:memberType:CreateFolderMembership'
, createFolderMembership_memberType
- The type of the member, including DASHBOARD
, ANALYSIS
, and
DATASET
.
Request Lenses
createFolderMembership_awsAccountId :: Lens' CreateFolderMembership Text Source #
The AWS Account ID.
createFolderMembership_folderId :: Lens' CreateFolderMembership Text Source #
The folder ID.
createFolderMembership_memberId :: Lens' CreateFolderMembership Text Source #
The ID of the asset (the dashboard, analysis, or dataset).
createFolderMembership_memberType :: Lens' CreateFolderMembership MemberType Source #
The type of the member, including DASHBOARD
, ANALYSIS
, and
DATASET
.
Destructuring the Response
data CreateFolderMembershipResponse Source #
See: newCreateFolderMembershipResponse
smart constructor.
CreateFolderMembershipResponse' | |
|
Instances
newCreateFolderMembershipResponse Source #
Create a value of CreateFolderMembershipResponse
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:CreateFolderMembershipResponse'
, createFolderMembershipResponse_requestId
- The request ID.
$sel:status:CreateFolderMembershipResponse'
, createFolderMembershipResponse_status
- The status of the folder membership. If succeeded, the status is
SC_OK (200)
.
$sel:folderMember:CreateFolderMembershipResponse'
, createFolderMembershipResponse_folderMember
- Information about the member in the folder.
$sel:httpStatus:CreateFolderMembershipResponse'
, createFolderMembershipResponse_httpStatus
- The response's http status code.
Response Lenses
createFolderMembershipResponse_requestId :: Lens' CreateFolderMembershipResponse (Maybe Text) Source #
The request ID.
createFolderMembershipResponse_status :: Lens' CreateFolderMembershipResponse (Maybe Int) Source #
The status of the folder membership. If succeeded, the status is
SC_OK (200)
.
createFolderMembershipResponse_folderMember :: Lens' CreateFolderMembershipResponse (Maybe FolderMember) Source #
Information about the member in the folder.
createFolderMembershipResponse_httpStatus :: Lens' CreateFolderMembershipResponse Int Source #
The response's http status code.