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 |
Synopsis
- data GroupType = GroupType' {}
- newGroupType :: GroupType
- groupType_lastModifiedDate :: Lens' GroupType (Maybe UTCTime)
- groupType_userPoolId :: Lens' GroupType (Maybe Text)
- groupType_creationDate :: Lens' GroupType (Maybe UTCTime)
- groupType_precedence :: Lens' GroupType (Maybe Natural)
- groupType_groupName :: Lens' GroupType (Maybe Text)
- groupType_description :: Lens' GroupType (Maybe Text)
- groupType_roleArn :: 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:lastModifiedDate:GroupType'
, groupType_lastModifiedDate
- The date the group was last modified.
$sel:userPoolId:GroupType'
, groupType_userPoolId
- The user pool ID for the user pool.
$sel:creationDate:GroupType'
, groupType_creationDate
- The date the group was created.
$sel:precedence:GroupType'
, groupType_precedence
- A nonnegative integer value that specifies the precedence of this group
relative to the other groups that a user can belong to in the user pool.
If a user belongs to two or more groups, it is the group with the
highest precedence whose role ARN will be used in the cognito:roles
and cognito:preferred_role
claims in the user's tokens. Groups with
higher Precedence
values take precedence over groups with lower
Precedence
values or with null Precedence
values.
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
is not set in users' tokens.
The default Precedence
value is null.
$sel:groupName:GroupType'
, groupType_groupName
- The name of the group.
$sel:description:GroupType'
, groupType_description
- A string containing the description of the group.
$sel:roleArn:GroupType'
, groupType_roleArn
- The role ARN for the group.
groupType_lastModifiedDate :: Lens' GroupType (Maybe UTCTime) Source #
The date the group was last modified.
groupType_precedence :: Lens' GroupType (Maybe Natural) Source #
A nonnegative integer value that specifies the precedence of this group
relative to the other groups that a user can belong to in the user pool.
If a user belongs to two or more groups, it is the group with the
highest precedence whose role ARN will be used in the cognito:roles
and cognito:preferred_role
claims in the user's tokens. Groups with
higher Precedence
values take precedence over groups with lower
Precedence
values or with null Precedence
values.
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
is not set in users' tokens.
The default Precedence
value is null.