Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Use the DescribeGroupMembership
operation to determine if a user is a
member of the specified group. If the user exists and is a member of the
specified group, an associated GroupMember
object is returned.
Synopsis
- data DescribeGroupMembership = DescribeGroupMembership' {
- memberName :: Text
- groupName :: Text
- awsAccountId :: Text
- namespace :: Text
- newDescribeGroupMembership :: Text -> Text -> Text -> Text -> DescribeGroupMembership
- describeGroupMembership_memberName :: Lens' DescribeGroupMembership Text
- describeGroupMembership_groupName :: Lens' DescribeGroupMembership Text
- describeGroupMembership_awsAccountId :: Lens' DescribeGroupMembership Text
- describeGroupMembership_namespace :: Lens' DescribeGroupMembership Text
- data DescribeGroupMembershipResponse = DescribeGroupMembershipResponse' {
- groupMember :: Maybe GroupMember
- requestId :: Maybe Text
- status :: Int
- newDescribeGroupMembershipResponse :: Int -> DescribeGroupMembershipResponse
- describeGroupMembershipResponse_groupMember :: Lens' DescribeGroupMembershipResponse (Maybe GroupMember)
- describeGroupMembershipResponse_requestId :: Lens' DescribeGroupMembershipResponse (Maybe Text)
- describeGroupMembershipResponse_status :: Lens' DescribeGroupMembershipResponse Int
Creating a Request
data DescribeGroupMembership Source #
See: newDescribeGroupMembership
smart constructor.
DescribeGroupMembership' | |
|
Instances
newDescribeGroupMembership Source #
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> DescribeGroupMembership |
Create a value of DescribeGroupMembership
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:
DescribeGroupMembership
, describeGroupMembership_memberName
- The user name of the user that you want to search for.
DescribeGroupMembership
, describeGroupMembership_groupName
- The name of the group that you want to search.
DescribeGroupMembership
, describeGroupMembership_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.
DescribeGroupMembership
, describeGroupMembership_namespace
- The namespace that includes the group you are searching within.
Request Lenses
describeGroupMembership_memberName :: Lens' DescribeGroupMembership Text Source #
The user name of the user that you want to search for.
describeGroupMembership_groupName :: Lens' DescribeGroupMembership Text Source #
The name of the group that you want to search.
describeGroupMembership_awsAccountId :: Lens' DescribeGroupMembership 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.
describeGroupMembership_namespace :: Lens' DescribeGroupMembership Text Source #
The namespace that includes the group you are searching within.
Destructuring the Response
data DescribeGroupMembershipResponse Source #
See: newDescribeGroupMembershipResponse
smart constructor.
DescribeGroupMembershipResponse' | |
|
Instances
newDescribeGroupMembershipResponse Source #
Create a value of DescribeGroupMembershipResponse
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:groupMember:DescribeGroupMembershipResponse'
, describeGroupMembershipResponse_groupMember
- Undocumented member.
$sel:requestId:DescribeGroupMembershipResponse'
, describeGroupMembershipResponse_requestId
- The Amazon Web Services request ID for this operation.
DescribeGroupMembershipResponse
, describeGroupMembershipResponse_status
- The HTTP status of the request.
Response Lenses
describeGroupMembershipResponse_groupMember :: Lens' DescribeGroupMembershipResponse (Maybe GroupMember) Source #
Undocumented member.
describeGroupMembershipResponse_requestId :: Lens' DescribeGroupMembershipResponse (Maybe Text) Source #
The Amazon Web Services request ID for this operation.
describeGroupMembershipResponse_status :: Lens' DescribeGroupMembershipResponse Int Source #
The HTTP status of the request.