Module Values.EntitiesDefinitionSource

Contains the list of entities to be considered during an authorization request. This includes all principals, resources, and actions required to successfully evaluate the request. This data type is used as a field in the response parameter for the IsAuthorized and IsAuthorizedWithToken operations.

Sourcetype nonrec t = {
  1. entityList : EntityList.t option;
    (*

    An array of entities that are needed to successfully evaluate an authorization request. Each entity in this array must include an identifier for the entity, the attributes of the entity, and a list of any parent entities. If you include multiple entities with the same identifier, only the last one is processed in the request.

    *)
  2. cedarJson : CedarJson.t option;
    (*

    A Cedar JSON string representation of the entities needed to successfully evaluate an authorization request. Example: {"cedarJson": "[{\"uid\":{\"type\":\"Photo\",\"id\":\"VacationPhoto94.jpg\"},\"attrs\":{\"accessLevel\":\"public\"},\"parents\":[]}]"}

    *)
}
Sourceval make : ?entityList:??? -> ?cedarJson:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of EntityType.t ]) list ] list | `Map of ([> `String of String_.t ] * Awso.Botodata.value) list | `Structure of (string * [> `String of EntityType.t ]) list ]) list ] list | `String of CedarJson.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