Skip to content

Put Image Recipe Policy

imagebuilder_put_image_recipe_policy R Documentation

Applies a policy to an image recipe

Description

Applies a policy to an image recipe. We recommend that you call the RAM API CreateResourceShare to share resources. If you call the Image Builder API put_image_recipe_policy, 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.

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"
)