---
title: "POST /#X-Amz-Target=AWSBilling.GetResourcePolicy"
method: POST
path: "/#X-Amz-Target=AWSBilling.GetResourcePolicy"
---

# POST /#X-Amz-Target=AWSBilling.GetResourcePolicy

`POST /#X-Amz-Target=AWSBilling.GetResourcePolicy`

Returns the resource-based policy document attached to the resource in <code>JSON</code> format.

## Headers

- `X-Amz-Target` 'AWSBilling.GetResourcePolicy', required

## Request body

- GetResourcePolicyRequest
  - `resourceArn` string, required — The Amazon Resource Name (ARN) of the billing view resource to which the policy is attached to.

## Response `200`

Success

- GetResourcePolicyResponse
  - `resourceArn` string, required — The Amazon Resource Name (ARN) of the billing view resource to which the policy is attached to.
  - `policy` string — The resource-based policy document attached to the resource in <code>JSON</code> format.

## Other responses

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

---

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