Learn R Programming

paws.compute (version 0.7.0)

imagebuilder_put_component_policy: Applies a policy to a component

Description

Applies a policy to a component. We recommend that you call the RAM API CreateResourceShare to share resources. If you call the Image Builder API put_component_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.

See https://www.paws-r-sdk.com/docs/imagebuilder_put_component_policy/ for full documentation.

Usage

imagebuilder_put_component_policy(componentArn, policy)

Arguments

componentArn

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

policy

[required] The policy to apply.