Module Values.PutSchemaInputSource

Creates or updates the policy schema in the specified policy store. The schema is used to validate any Cedar policies and policy templates submitted to the policy store. Any changes to the schema validate only policies and templates submitted after the schema change. Existing policies and templates are not re-evaluated against the changed schema. If you later update a policy, then it is evaluated against the new schema at that time. Verified Permissions is eventually consistent . It can take a few seconds for a new or changed element to propagate through the service and be visible in the results of other Verified Permissions operations.

Sourcetype nonrec t = {
  1. policyStoreId : PolicyStoreId.t;
    (*

    Specifies the ID of the policy store in which to place the schema. To specify a policy store, use its ID or alias name. When using an alias name, prefix it with policy-store-alias/. For example: ID: PSEXAMPLEabcdefg111111 Alias name: policy-store-alias/example-policy-store To view aliases, use ListPolicyStoreAliases.

    *)
  2. definition : SchemaDefinition.t;
    (*

    Specifies the definition of the schema to be stored. The schema definition must be written in Cedar schema JSON.

    *)
}
Sourceval context_ : string
Sourceval make : policyStoreId:PolicyStoreId.t -> definition:SchemaDefinition.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of PolicyStoreId.t | `Structure of (string * [> `String of SchemaJson.t ]) list ]) 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