Applies a policy to a component¶
Description¶
Applies a policy to a component. The preferred way to share resources is with the RAM API CreateResourceShare. If you use the PutComponentPolicy 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¶
Arguments¶
-
componentArn[required] The Amazon Resource Name (ARN) of the component that this policy should be applied to.
-
policy[required] The policy to apply.
Value¶
A list with the following syntax: