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 |
Synopsis
- data GroupType = GroupType' {}
- newGroupType :: GroupType
- groupType_creationDate :: Lens' GroupType (Maybe UTCTime)
- groupType_description :: Lens' GroupType (Maybe Text)
- groupType_groupName :: Lens' GroupType (Maybe Text)
- groupType_lastModifiedDate :: Lens' GroupType (Maybe UTCTime)
- groupType_precedence :: Lens' GroupType (Maybe Natural)
- groupType_roleArn :: Lens' GroupType (Maybe Text)
- groupType_userPoolId :: Lens' GroupType (Maybe Text)
Documentation
The group type.
See: newGroupType
smart constructor.
GroupType' | |
|
Instances
newGroupType :: GroupType Source #
Create a value of GroupType
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:creationDate:GroupType'
, groupType_creationDate
- The date the group was created.
$sel:description:GroupType'
, groupType_description
- A string containing the description of the group.
$sel:groupName:GroupType'
, groupType_groupName
- The name of the group.
$sel:lastModifiedDate:GroupType'
, groupType_lastModifiedDate
- The date the group was last modified.
$sel:precedence:GroupType'
, groupType_precedence
- A non-negative integer value that specifies the precedence of this group
relative to the other groups that a user can belong to in the user pool.
Zero is the highest precedence value. Groups with lower Precedence
values take precedence over groups with higher ornull Precedence
values. If a user belongs to two or more groups, it is the group with
the lowest precedence value whose role ARN is given in the user's
tokens for the cognito:roles
and cognito:preferred_role
claims.
Two groups can have the same Precedence
value. If this happens,
neither group takes precedence over the other. If two groups with the
same Precedence
have the same role ARN, that role is used in the
cognito:preferred_role
claim in tokens for users in each group. If the
two groups have different role ARNs, the cognito:preferred_role
claim
isn't set in users' tokens.
The default Precedence
value is null.
$sel:roleArn:GroupType'
, groupType_roleArn
- The role Amazon Resource Name (ARN) for the group.
$sel:userPoolId:GroupType'
, groupType_userPoolId
- The user pool ID for the user pool.
groupType_description :: Lens' GroupType (Maybe Text) Source #
A string containing the description of the group.
groupType_lastModifiedDate :: Lens' GroupType (Maybe UTCTime) Source #
The date the group was last modified.
groupType_precedence :: Lens' GroupType (Maybe Natural) Source #
A non-negative integer value that specifies the precedence of this group
relative to the other groups that a user can belong to in the user pool.
Zero is the highest precedence value. Groups with lower Precedence
values take precedence over groups with higher ornull Precedence
values. If a user belongs to two or more groups, it is the group with
the lowest precedence value whose role ARN is given in the user's
tokens for the cognito:roles
and cognito:preferred_role
claims.
Two groups can have the same Precedence
value. If this happens,
neither group takes precedence over the other. If two groups with the
same Precedence
have the same role ARN, that role is used in the
cognito:preferred_role
claim in tokens for users in each group. If the
two groups have different role ARNs, the cognito:preferred_role
claim
isn't set in users' tokens.
The default Precedence
value is null.