Module Values.RoleMappingSource

A role mapping.

Sourcetype nonrec t = {
  1. type_ : RoleMappingType.t;
    (*

    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.

    *)
  2. ambiguousRoleResolution : AmbiguousRoleResolutionType.t option;
    (*

    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.

    *)
  3. rulesConfiguration : RulesConfigurationType.t option;
    (*

    The rules to be used for mapping users to roles. If you specify Rules as the role mapping type, RulesConfiguration is required.

    *)
}
Sourceval context_ : string
Sourceval make : ?ambiguousRoleResolution:??? -> ?rulesConfiguration:??? -> type_:RoleMappingType.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Structure of (string * [> `List of [> `Structure of (string * [> `Enum of string | `String of ClaimName.t ]) list ] list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t