/AWS1/CL_IMG=>PUTCOMPONENTPOLICY()
¶
About PutComponentPolicy¶
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
PutComponentPolicy
, 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.
Method Signature¶
IMPORTING¶
Required arguments:¶
IV_COMPONENTARN
TYPE /AWS1/IMGCOMPONENTBUILDVRSARN
/AWS1/IMGCOMPONENTBUILDVRSARN
¶
The Amazon Resource Name (ARN) of the component that this policy should be applied to.
IV_POLICY
TYPE /AWS1/IMGRESOURCEPOLICYDOC
/AWS1/IMGRESOURCEPOLICYDOC
¶
The policy to apply.