Module Values.AttributeValue

The value of an attribute. Contains information about the runtime context for a request for which an authorization decision is made. This data type is used as a member of the ContextDefinition structure which is used as a request parameter for the IsAuthorized, BatchIsAuthorized, and IsAuthorizedWithToken operations.

Sourcetype nonrec t = {
  1. boolean : BooleanAttribute.t option;
    (*

    An attribute value of Boolean type. Example: {"boolean": true}

    *)
  2. entityIdentifier : EntityIdentifier.t option;
    (*

    An attribute value of type EntityIdentifier. Example: {"entityIdentifier": { "entityId": "alice", "entityType": "User"} }

    *)
  3. long : LongAttribute.t option;
    (*

    An attribute value of Long type. Example: {"long": 0}

    *)
  4. string : StringAttribute.t option;
    (*

    An attribute value of String type. Example: {"string": "abc"}

    *)
  5. set : SetAttribute.t option;
    (*

    An attribute value of Set type. Example: {"set": [ {} ] }

    *)
  6. record : RecordAttribute.t option;
    (*

    An attribute value of Record type. Example: {"record": { "keyName": {} } }

    *)
  7. ipaddr : IpAddr.t option;
    (*

    An attribute value of ipaddr type. Example: {"ip": "192.168.1.100"}

    *)
  8. decimal : Decimal.t option;
    (*

    An attribute value of decimal type. Example: {"decimal": "1.1"}

    *)
  9. datetime : DatetimeAttribute.t option;
    (*

    An attribute value of datetime type. Example: {"datetime": "2024-10-15T11:35:00Z"}

    *)
  10. duration : Duration.t option;
    (*

    An attribute value of duration type. Example: {"duration": "1h30m"}

    *)
}
Sourceval make : ?boolean:BooleanAttribute.t -> ?entityIdentifier:EntityIdentifier.t -> ?long:LongAttribute.t -> ?string:StringAttribute.t -> ?set:SetAttribute.t -> ?record:RecordAttribute.t -> ?ipaddr:IpAddr.t -> ?decimal:Decimal.t -> ?datetime:DatetimeAttribute.t -> ?duration:Duration.t -> unit -> t
Sourceval to_value : t -> Awso.Botodata.value
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t