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 Amazon QuickSight group.
The permissions resource is
arn:aws:quicksight:us-east-1:<relevant-aws-account-id>:group/default/<group-name>
.
The response is a group object.
Synopsis
- data CreateGroup = CreateGroup' {
- description :: Maybe Text
- groupName :: Text
- awsAccountId :: Text
- namespace :: Text
- newCreateGroup :: Text -> Text -> Text -> CreateGroup
- createGroup_description :: Lens' CreateGroup (Maybe Text)
- createGroup_groupName :: Lens' CreateGroup Text
- createGroup_awsAccountId :: Lens' CreateGroup Text
- createGroup_namespace :: Lens' CreateGroup Text
- data CreateGroupResponse = CreateGroupResponse' {}
- newCreateGroupResponse :: Int -> CreateGroupResponse
- createGroupResponse_requestId :: Lens' CreateGroupResponse (Maybe Text)
- createGroupResponse_group :: Lens' CreateGroupResponse (Maybe Group)
- createGroupResponse_status :: Lens' CreateGroupResponse Int
Creating a Request
data CreateGroup Source #
The request object for this operation.
See: newCreateGroup
smart constructor.
CreateGroup' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> CreateGroup |
Create a value of CreateGroup
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:description:CreateGroup'
, createGroup_description
- A description for the group that you want to create.
$sel:groupName:CreateGroup'
, createGroup_groupName
- A name for the group that you want to create.
$sel:awsAccountId:CreateGroup'
, createGroup_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:CreateGroup'
, createGroup_namespace
- The namespace. Currently, you should set this to default
.
Request Lenses
createGroup_description :: Lens' CreateGroup (Maybe Text) Source #
A description for the group that you want to create.
createGroup_groupName :: Lens' CreateGroup Text Source #
A name for the group that you want to create.
createGroup_awsAccountId :: Lens' CreateGroup 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.
createGroup_namespace :: Lens' CreateGroup Text Source #
The namespace. Currently, you should set this to default
.
Destructuring the Response
data CreateGroupResponse Source #
The response object for this operation.
See: newCreateGroupResponse
smart constructor.
Instances
newCreateGroupResponse Source #
Create a value of CreateGroupResponse
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:CreateGroupResponse'
, createGroupResponse_requestId
- The Amazon Web Services request ID for this operation.
$sel:group':CreateGroupResponse'
, createGroupResponse_group
- The name of the group.
$sel:status:CreateGroupResponse'
, createGroupResponse_status
- The HTTP status of the request.
Response Lenses
createGroupResponse_requestId :: Lens' CreateGroupResponse (Maybe Text) Source #
The Amazon Web Services request ID for this operation.
createGroupResponse_group :: Lens' CreateGroupResponse (Maybe Group) Source #
The name of the group.
createGroupResponse_status :: Lens' CreateGroupResponse Int Source #
The HTTP status of the request.