---
title: "POST /PutResourcePolicy"
method: POST
path: "/PutResourcePolicy"
---

# POST /PutResourcePolicy

`POST /PutResourcePolicy`

Attaches a resource-based policy to an Entity. Examples of an entity include: <code>AmiProduct</code> and <code>ContainerProduct</code>.

## Request body

- object
  - `ResourceArn` string, required — The Amazon Resource Name (ARN) of the Entity resource you want to associate with a resource policy.
  - `Policy` string, required — The policy document to set; formatted in JSON.

## Response `200`

Success

- PutResourcePolicyResponse

## Other responses

- `480` — InternalServiceException
- `481` — AccessDeniedException
- `482` — ValidationException
- `483` — ResourceNotFoundException
- `484` — ThrottlingException

---

[API](https://skmtc.net/aws/apis/marketplace-catalog.md) · [All operations](https://skmtc.net/aws/apis/marketplace-catalog/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/marketplace-catalog/versions/a0c0fe36f775/schema)
