| 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.CognitoIdentityProvider.UpdateGroup
Description
Updates the specified group with the specified attributes.
Calling this action requires developer credentials.
Synopsis
- data UpdateGroup = UpdateGroup' {
- description :: Maybe Text
- precedence :: Maybe Natural
- roleArn :: Maybe Text
- groupName :: Text
- userPoolId :: Text
- newUpdateGroup :: Text -> Text -> UpdateGroup
- updateGroup_description :: Lens' UpdateGroup (Maybe Text)
- updateGroup_precedence :: Lens' UpdateGroup (Maybe Natural)
- updateGroup_roleArn :: Lens' UpdateGroup (Maybe Text)
- updateGroup_groupName :: Lens' UpdateGroup Text
- updateGroup_userPoolId :: Lens' UpdateGroup Text
- data UpdateGroupResponse = UpdateGroupResponse' {
- group' :: Maybe GroupType
- httpStatus :: Int
- newUpdateGroupResponse :: Int -> UpdateGroupResponse
- updateGroupResponse_group :: Lens' UpdateGroupResponse (Maybe GroupType)
- updateGroupResponse_httpStatus :: Lens' UpdateGroupResponse Int
Creating a Request
data UpdateGroup Source #
See: newUpdateGroup smart constructor.
Constructors
| UpdateGroup' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> UpdateGroup |
Create a value of UpdateGroup 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:
UpdateGroup, updateGroup_description - A string containing the new description of the group.
UpdateGroup, updateGroup_precedence - The new precedence value for the group. For more information about this
parameter, see
CreateGroup.
UpdateGroup, updateGroup_roleArn - The new role Amazon Resource Name (ARN) for the group. This is used for
setting the cognito:roles and cognito:preferred_role claims in the
token.
UpdateGroup, updateGroup_groupName - The name of the group.
UpdateGroup, updateGroup_userPoolId - The user pool ID for the user pool.
Request Lenses
updateGroup_description :: Lens' UpdateGroup (Maybe Text) Source #
A string containing the new description of the group.
updateGroup_precedence :: Lens' UpdateGroup (Maybe Natural) Source #
The new precedence value for the group. For more information about this parameter, see CreateGroup.
updateGroup_roleArn :: Lens' UpdateGroup (Maybe Text) Source #
The new role Amazon Resource Name (ARN) for the group. This is used for
setting the cognito:roles and cognito:preferred_role claims in the
token.
updateGroup_groupName :: Lens' UpdateGroup Text Source #
The name of the group.
updateGroup_userPoolId :: Lens' UpdateGroup Text Source #
The user pool ID for the user pool.
Destructuring the Response
data UpdateGroupResponse Source #
See: newUpdateGroupResponse smart constructor.
Constructors
| UpdateGroupResponse' | |
Fields
| |
Instances
newUpdateGroupResponse Source #
Arguments
| :: Int | |
| -> UpdateGroupResponse |
Create a value of UpdateGroupResponse 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:group':UpdateGroupResponse', updateGroupResponse_group - The group object for the group.
$sel:httpStatus:UpdateGroupResponse', updateGroupResponse_httpStatus - The response's http status code.
Response Lenses
updateGroupResponse_group :: Lens' UpdateGroupResponse (Maybe GroupType) Source #
The group object for the group.
updateGroupResponse_httpStatus :: Lens' UpdateGroupResponse Int Source #
The response's http status code.