Module Values_2.PutResourcePolicyRequestSource

Sets the Data Catalog resource policy for access control.

Sourcetype nonrec t = {
  1. policyInJson : PolicyJsonString.t;
    (*

    Contains the policy document to set, in JSON format.

    *)
  2. resourceArn : Values_0.GlueResourceArn.t option;
    (*

    Do not use. For internal use only.

    *)
  3. policyHashCondition : Values_0.HashString.t option;
    (*

    The hash value returned when the previous policy was set using PutResourcePolicy. Its purpose is to prevent concurrent modifications of a policy. Do not use this parameter if no previous policy has been set.

    *)
  4. policyExistsCondition : Values_1.ExistCondition.t option;
    (*

    A value of MUST_EXIST is used to update a policy. A value of NOT_EXIST is used to create a new policy. If a value of NONE or a null value is used, the call does not depend on the existence of a policy.

    *)
  5. enableHybrid : Values_1.EnableHybridValues.t option;
    (*

    If 'TRUE', indicates that you are using both methods to grant cross-account access to Data Catalog resources: By directly updating the resource policy with PutResourePolicy By using the Grant permissions command on the Amazon Web Services Management Console. Must be set to 'TRUE' if you have already used the Management Console to grant cross-account access, otherwise the call fails. Default is 'FALSE'.

    *)
}
Sourceval context_ : string
Sourceval make : ?resourceArn:??? -> ?policyHashCondition:??? -> ?policyExistsCondition:??? -> ?enableHybrid:??? -> policyInJson:PolicyJsonString.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of PolicyJsonString.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