Module Values.ConditionSource

A JSON string which you can use to limit the event bus permissions you are granting to only accounts that fulfill the condition. Currently, the only supported condition is membership in a certain Amazon Web Services organization. The string must contain Type, Key, and Value fields. The Value field specifies the ID of the Amazon Web Services organization. Following is an example value for Condition: '{"Type" : "StringEquals", "Key": "aws:PrincipalOrgID", "Value": "o-1234567890"}'

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

    Specifies the type of condition. Currently the only supported value is StringEquals.

    *)
  2. key : String_.t;
    (*

    Specifies the key for the condition. Currently the only supported key is aws:PrincipalOrgID.

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

    Specifies the value for the key. Currently, this must be the ID of the organization.

    *)
}
Sourceval context_ : string
Sourceval make : type_:String_.t -> key:String_.t -> value:String_.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of String_.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