| 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.CognitoIdentity.Types.RoleMapping
Description
Synopsis
- data RoleMapping = RoleMapping' {}
- newRoleMapping :: RoleMappingType -> RoleMapping
- roleMapping_ambiguousRoleResolution :: Lens' RoleMapping (Maybe AmbiguousRoleResolutionType)
- roleMapping_rulesConfiguration :: Lens' RoleMapping (Maybe RulesConfigurationType)
- roleMapping_type :: Lens' RoleMapping RoleMappingType
Documentation
data RoleMapping Source #
A role mapping.
See: newRoleMapping smart constructor.
Constructors
| RoleMapping' | |
Fields
| |
Instances
Arguments
| :: RoleMappingType | |
| -> RoleMapping |
Create a value of RoleMapping 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:ambiguousRoleResolution:RoleMapping', roleMapping_ambiguousRoleResolution - If you specify Token or Rules as the Type, AmbiguousRoleResolution
is required.
Specifies the action to be taken if either no rules match the claim
value for the Rules type, or there is no cognito:preferred_role
claim and there are multiple cognito:roles matches for the Token
type.
$sel:rulesConfiguration:RoleMapping', roleMapping_rulesConfiguration - The rules to be used for mapping users to roles.
If you specify Rules as the role mapping type, RulesConfiguration is
required.
$sel:type':RoleMapping', roleMapping_type - The role mapping type. Token will use cognito:roles and
cognito:preferred_role claims from the Cognito identity provider token
to map groups to roles. Rules will attempt to match claims from the
token to map to a role.
roleMapping_ambiguousRoleResolution :: Lens' RoleMapping (Maybe AmbiguousRoleResolutionType) Source #
If you specify Token or Rules as the Type, AmbiguousRoleResolution
is required.
Specifies the action to be taken if either no rules match the claim
value for the Rules type, or there is no cognito:preferred_role
claim and there are multiple cognito:roles matches for the Token
type.
roleMapping_rulesConfiguration :: Lens' RoleMapping (Maybe RulesConfigurationType) Source #
The rules to be used for mapping users to roles.
If you specify Rules as the role mapping type, RulesConfiguration is
required.
roleMapping_type :: Lens' RoleMapping RoleMappingType Source #
The role mapping type. Token will use cognito:roles and
cognito:preferred_role claims from the Cognito identity provider token
to map groups to roles. Rules will attempt to match claims from the
token to map to a role.