Module Values.CreateAccessPolicyRequestSource

Creates a data access policy for OpenSearch Serverless. Access policies limit access to collections and the resources within them, and allow a user to access that data irrespective of the access mechanism or network source. For more information, see Data access control for Amazon OpenSearch Serverless.

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

    The type of policy.

    *)
  2. name : PolicyName.t;
    (*

    The name of the policy.

    *)
  3. description : PolicyDescription.t option;
    (*

    A description of the policy. Typically used to store information about the permissions defined in the policy.

    *)
  4. policy : PolicyDocument.t;
    (*

    The JSON policy document to use as the content for the policy.

    *)
  5. clientToken : ClientToken.t option;
    (*

    Unique, case-sensitive identifier to ensure idempotency of the request.

    *)
}
Sourceval context_ : string
Sourceval make : ?description:??? -> ?clientToken:??? -> type_:AccessPolicyType.t -> name:PolicyName.t -> policy:PolicyDocument.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of PolicyName.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