Module Values.MappingRuleSource

A rule that maps a claim name, a claim value, and a match type to a role ARN.

Sourcetype nonrec t = {
  1. claim : ClaimName.t;
    (*

    The claim name that must be present in the token, for example, "isAdmin" or "paid".

    *)
  2. matchType : MappingRuleMatchType.t;
    (*

    The match condition that specifies how closely the claim value in the IdP token must match Value.

    *)
  3. value : ClaimValue.t;
    (*

    A brief string that the claim must match, for example, "paid" or "yes".

    *)
  4. roleARN : ARNString.t;
    (*

    The role ARN.

    *)
}
Sourceval context_ : string
Sourceval make : claim:ClaimName.t -> matchType:MappingRuleMatchType.t -> value:ClaimValue.t -> roleARN:ARNString.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of ClaimName.t ]) 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