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 |
Updates the specified group with the specified attributes.
Calling this action requires developer credentials.
Synopsis
- data UpdateGroup = UpdateGroup' {
- precedence :: Maybe Natural
- description :: Maybe Text
- roleArn :: Maybe Text
- groupName :: Text
- userPoolId :: Text
- newUpdateGroup :: Text -> Text -> UpdateGroup
- updateGroup_precedence :: Lens' UpdateGroup (Maybe Natural)
- updateGroup_description :: Lens' UpdateGroup (Maybe Text)
- 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.
UpdateGroup' | |
|
Instances
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:
$sel:precedence:UpdateGroup'
, updateGroup_precedence
- The new precedence value for the group. For more information about this
parameter, see
CreateGroup.
$sel:description:UpdateGroup'
, updateGroup_description
- A string containing the new description of the group.
$sel:roleArn:UpdateGroup'
, updateGroup_roleArn
- The new role ARN for the group. This is used for setting the
cognito:roles
and cognito:preferred_role
claims in the token.
$sel:groupName:UpdateGroup'
, updateGroup_groupName
- The name of the group.
$sel:userPoolId:UpdateGroup'
, updateGroup_userPoolId
- The user pool ID for the user pool.
Request Lenses
updateGroup_precedence :: Lens' UpdateGroup (Maybe Natural) Source #
The new precedence value for the group. For more information about this parameter, see CreateGroup.
updateGroup_description :: Lens' UpdateGroup (Maybe Text) Source #
A string containing the new description of the group.
updateGroup_roleArn :: Lens' UpdateGroup (Maybe Text) Source #
The new role 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.
UpdateGroupResponse' | |
|
Instances
newUpdateGroupResponse Source #
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.