RoleMapping class

A role mapping.

Constructors

RoleMapping({required RoleMappingType type, AmbiguousRoleResolutionType? ambiguousRoleResolution, RulesConfigurationType? rulesConfiguration})
RoleMapping.fromJson(Map<String, dynamic> json)
factory

Properties

ambiguousRoleResolution AmbiguousRoleResolutionType?
If you specify Token or Rules as the Type, AmbiguousRoleResolution is required.
final
hashCode int
The hash code for this object.
no setterinherited
rulesConfiguration RulesConfigurationType?
The rules to be used for mapping users to roles.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type RoleMappingType
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.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited