Skip to content

Applies a policy to a container recipe

Description

Applies a policy to a container recipe. The preferred way to share resources is with the RAM API CreateResourceShare. If you use the PutContainerRecipePolicy 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_container_recipe_policy(containerRecipeArn, policy)

Arguments

  • containerRecipeArn

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

  • policy

    [required] The policy to apply to the container recipe.

Value

A list with the following syntax:

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

Request syntax

svc$put_container_recipe_policy(
  containerRecipeArn = "string",
  policy = "string"
)