| 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 |
Amazonka.IdentityStore.CreateGroupMembership
Description
Creates a relationship between a member and a group. The following
identifiers must be specified: GroupId, IdentityStoreId, and
MemberId.
Synopsis
- data CreateGroupMembership = CreateGroupMembership' {}
- newCreateGroupMembership :: Text -> Text -> MemberId -> CreateGroupMembership
- createGroupMembership_identityStoreId :: Lens' CreateGroupMembership Text
- createGroupMembership_groupId :: Lens' CreateGroupMembership Text
- createGroupMembership_memberId :: Lens' CreateGroupMembership MemberId
- data CreateGroupMembershipResponse = CreateGroupMembershipResponse' {
- httpStatus :: Int
- membershipId :: Text
- identityStoreId :: Text
- newCreateGroupMembershipResponse :: Int -> Text -> Text -> CreateGroupMembershipResponse
- createGroupMembershipResponse_httpStatus :: Lens' CreateGroupMembershipResponse Int
- createGroupMembershipResponse_membershipId :: Lens' CreateGroupMembershipResponse Text
- createGroupMembershipResponse_identityStoreId :: Lens' CreateGroupMembershipResponse Text
Creating a Request
data CreateGroupMembership Source #
See: newCreateGroupMembership smart constructor.
Constructors
| CreateGroupMembership' | |
Fields
| |
Instances
newCreateGroupMembership Source #
Arguments
| :: Text | |
| -> Text | |
| -> MemberId | |
| -> 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:
CreateGroupMembership, createGroupMembership_identityStoreId - The globally unique identifier for the identity store.
CreateGroupMembership, createGroupMembership_groupId - The identifier for a group in the identity store.
CreateGroupMembership, createGroupMembership_memberId - An object that contains the identifier of a group member. Setting the
UserID field to the specific identifier for a user indicates that the
user is a member of the group.
Request Lenses
createGroupMembership_identityStoreId :: Lens' CreateGroupMembership Text Source #
The globally unique identifier for the identity store.
createGroupMembership_groupId :: Lens' CreateGroupMembership Text Source #
The identifier for a group in the identity store.
createGroupMembership_memberId :: Lens' CreateGroupMembership MemberId Source #
An object that contains the identifier of a group member. Setting the
UserID field to the specific identifier for a user indicates that the
user is a member of the group.
Destructuring the Response
data CreateGroupMembershipResponse Source #
See: newCreateGroupMembershipResponse smart constructor.
Constructors
| CreateGroupMembershipResponse' | |
Fields
| |
Instances
newCreateGroupMembershipResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> Text | |
| -> CreateGroupMembershipResponse |
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:httpStatus:CreateGroupMembershipResponse', createGroupMembershipResponse_httpStatus - The response's http status code.
CreateGroupMembershipResponse, createGroupMembershipResponse_membershipId - The identifier for a newly created GroupMembership in an identity
store.
CreateGroupMembership, createGroupMembershipResponse_identityStoreId - The globally unique identifier for the identity store.
Response Lenses
createGroupMembershipResponse_httpStatus :: Lens' CreateGroupMembershipResponse Int Source #
The response's http status code.
createGroupMembershipResponse_membershipId :: Lens' CreateGroupMembershipResponse Text Source #
The identifier for a newly created GroupMembership in an identity
store.
createGroupMembershipResponse_identityStoreId :: Lens' CreateGroupMembershipResponse Text Source #
The globally unique identifier for the identity store.