v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1456338351.9 KB

Applies a policy to a component. We recommend that you call the RAM API <a href="https://docs.aws.amazon.com/ram/latest/APIReference/API_CreateResourceShare.html">CreateResourceShare</a> to share resources. If you call the Image Builder API <code>PutComponentPolicy</code>, you must also call the RAM API <a href="https://docs.aws.amazon.com/ram/latest/APIReference/API_PromoteResourceShareCreatedFromPolicy.html">PromoteResourceShareCreatedFromPolicy</a> in order for the resource to be visible to all principals with whom the resource is shared.

put/PutComponentPolicy

Request body

componentArnstring required

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

policystring required

The policy to apply.

Response

Success

requestIdstring

The request ID that uniquely identifies this request.

componentArnstring

The Amazon Resource Name (ARN) of the component that this policy was applied to.