---
title: "POST /resource-policy"
method: POST
path: "/resource-policy"
---

# POST /resource-policy

`POST /resource-policy`

Adds a resource policy for a Bedrock resource.

## Request body

- object
  - `resourceArn` string, required — The ARN of the Bedrock resource to which this resource policy applies.
  - `resourcePolicy` string, required — The JSON string representing the Bedrock resource policy.

## Response `201`

Success

- PutResourcePolicyResponse
  - `resourceArn` string — The ARN of the Bedrock resource to which this resource policy applies.

## Other responses

- `480` — AccessDeniedException
- `481` — ValidationException
- `482` — ConflictException
- `483` — InternalServerException
- `484` — ThrottlingException

---

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