Module Values.PutImagePolicyRequestSource

Applies a policy to an image. We recommend that you call the RAM API CreateResourceShare to share resources. If you call the Image Builder API PutImagePolicy, you must also call the RAM API PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to all principals with whom the resource is shared.

Sourcetype nonrec t = {
  1. imageArn : ImageBuildVersionArn.t;
    (*

    The Amazon Resource Name (ARN) of the image that this policy should be applied to.

    *)
  2. policy : ResourcePolicyDocument.t;
    (*

    The policy to apply.

    *)
}
Sourceval context_ : string
Sourceval make : imageArn:ImageBuildVersionArn.t -> policy:ResourcePolicyDocument.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of ImageBuildVersionArn.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