v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1456338351.9 KB

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 <code>PutContainerImagePolicy</code>, 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.

put/PutContainerRecipePolicy

Request body

containerRecipeArnstring required

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

policystring required

The policy to apply to the container recipe.

Response

Success

requestIdstring

The request ID that uniquely identifies this request.

containerRecipeArnstring

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