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 RoleMapping = RoleMapping' {}
- newRoleMapping :: RoleMappingType -> RoleMapping
- roleMapping_rulesConfiguration :: Lens' RoleMapping (Maybe RulesConfigurationType)
- roleMapping_ambiguousRoleResolution :: Lens' RoleMapping (Maybe AmbiguousRoleResolutionType)
- roleMapping_type :: Lens' RoleMapping RoleMappingType
Documentation
data RoleMapping Source #
A role mapping.
See: newRoleMapping
smart constructor.
RoleMapping' | |
|
Instances
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: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: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: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_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_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_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.