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 Amazon QuickSight user to an Amazon QuickSight group.
Synopsis
- data CreateGroupMembership = CreateGroupMembership' {
- memberName :: Text
- groupName :: Text
- awsAccountId :: Text
- namespace :: Text
- newCreateGroupMembership :: Text -> Text -> Text -> Text -> CreateGroupMembership
- createGroupMembership_memberName :: Lens' CreateGroupMembership Text
- createGroupMembership_groupName :: Lens' CreateGroupMembership Text
- createGroupMembership_awsAccountId :: Lens' CreateGroupMembership Text
- createGroupMembership_namespace :: Lens' CreateGroupMembership Text
- data CreateGroupMembershipResponse = CreateGroupMembershipResponse' {
- requestId :: Maybe Text
- groupMember :: Maybe GroupMember
- status :: Int
- newCreateGroupMembershipResponse :: Int -> CreateGroupMembershipResponse
- createGroupMembershipResponse_requestId :: Lens' CreateGroupMembershipResponse (Maybe Text)
- createGroupMembershipResponse_groupMember :: Lens' CreateGroupMembershipResponse (Maybe GroupMember)
- createGroupMembershipResponse_status :: Lens' CreateGroupMembershipResponse Int
Creating a Request
data CreateGroupMembership Source #
See: newCreateGroupMembership
smart constructor.
CreateGroupMembership' | |
|
Instances
newCreateGroupMembership Source #
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> CreateGroupMembership |
Create a value of CreateGroupMembership
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:memberName:CreateGroupMembership'
, createGroupMembership_memberName
- The name of the user that you want to add to the group membership.
$sel:groupName:CreateGroupMembership'
, createGroupMembership_groupName
- The name of the group that you want to add the user to.
$sel:awsAccountId:CreateGroupMembership'
, createGroupMembership_awsAccountId
- The ID for the Amazon Web Services account that the group is in.
Currently, you use the ID for the Amazon Web Services account that
contains your Amazon QuickSight account.
$sel:namespace:CreateGroupMembership'
, createGroupMembership_namespace
- The namespace. Currently, you should set this to default
.
Request Lenses
createGroupMembership_memberName :: Lens' CreateGroupMembership Text Source #
The name of the user that you want to add to the group membership.
createGroupMembership_groupName :: Lens' CreateGroupMembership Text Source #
The name of the group that you want to add the user to.
createGroupMembership_awsAccountId :: Lens' CreateGroupMembership Text Source #
The ID for the Amazon Web Services account that the group is in. Currently, you use the ID for the Amazon Web Services account that contains your Amazon QuickSight account.
createGroupMembership_namespace :: Lens' CreateGroupMembership Text Source #
The namespace. Currently, you should set this to default
.
Destructuring the Response
data CreateGroupMembershipResponse Source #
See: newCreateGroupMembershipResponse
smart constructor.
CreateGroupMembershipResponse' | |
|
Instances
newCreateGroupMembershipResponse Source #
Create a value of CreateGroupMembershipResponse
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:CreateGroupMembershipResponse'
, createGroupMembershipResponse_requestId
- The Amazon Web Services request ID for this operation.
$sel:groupMember:CreateGroupMembershipResponse'
, createGroupMembershipResponse_groupMember
- The group member.
$sel:status:CreateGroupMembershipResponse'
, createGroupMembershipResponse_status
- The HTTP status of the request.
Response Lenses
createGroupMembershipResponse_requestId :: Lens' CreateGroupMembershipResponse (Maybe Text) Source #
The Amazon Web Services request ID for this operation.
createGroupMembershipResponse_groupMember :: Lens' CreateGroupMembershipResponse (Maybe GroupMember) Source #
The group member.
createGroupMembershipResponse_status :: Lens' CreateGroupMembershipResponse Int Source #
The HTTP status of the request.