Module Values.PutResourcePolicyRequestSource

Creates or updates a resource policy. Currently, you can use policies to share snapshots across Amazon Web Services accounts.

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

    The policy to create or update. For example, the following policy grants a user authorization to restore a snapshot. "{\"Version\": \"2012-10-17\", \"Statement\" : [{ \"Sid\": \"AllowUserRestoreFromSnapshot\", \"Principal\":{\"AWS\": [\"739247239426\"]}, \"Action\": [\"redshift-serverless:RestoreFromSnapshot\"] , \"Effect\": \"Allow\" }]}"

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

    The Amazon Resource Name (ARN) of the account to create or update a resource policy for.

    *)
}
Sourceval context_ : string
Sourceval make : policy:String_.t -> resourceArn: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