RoleMapping¶
Structure Class¶
RoleMapping
dataclass
¶
A role mapping.
Attributes¶
ambiguous_role_resolution
class-attribute
instance-attribute
¶
ambiguous_role_resolution: str | None = None
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.
rules_configuration
class-attribute
instance-attribute
¶
rules_configuration: RulesConfigurationType | None = None
The rules to be used for mapping users to roles.
If you specify Rules as the role mapping type, RulesConfiguration is
required.