Skip to content

Applies a policy to an image recipe

Description

Applies a policy to an image recipe. The preferred way to share resources is with the RAM API CreateResourceShare. If you use the PutImageRecipePolicy operation instead, you must also call the RAM API PromoteResourceShareCreatedFromPolicy. Otherwise, the resource isn't visible to the principals that it's shared with.

Usage

imagebuilder_put_image_recipe_policy(imageRecipeArn, policy)

Arguments

  • imageRecipeArn

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

  • policy

    [required] The policy to apply.

Value

A list with the following syntax:

list(
  requestId = "string",
  imageRecipeArn = "string"
)

Request syntax

svc$put_image_recipe_policy(
  imageRecipeArn = "string",
  policy = "string"
)