Module Values.PutContainerRecipePolicyRequestSource

Applies a policy to a container image. We recommend that you call the RAM API CreateResourceShare (https://docs.aws.amazon.com//ram/latest/APIReference/API_CreateResourceShare.html) to share resources. If you call the Image Builder API PutContainerImagePolicy, you must also call the RAM API PromoteResourceShareCreatedFromPolicy (https://docs.aws.amazon.com//ram/latest/APIReference/API_PromoteResourceShareCreatedFromPolicy.html) in order for the resource to be visible to all principals with whom the resource is shared.

Sourcetype nonrec t = {
  1. containerRecipeArn : ContainerRecipeArn.t;
    (*

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

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

    The policy to apply to the container recipe.

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