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

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

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

Returns the resource-based policy attached to an Amazon Web Services Payment Cryptography key.

**Cross-account use:** This operation can't be used across different Amazon Web Services accounts.

**Related operations:**

*   [PutResourcePolicy](https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_PutResourcePolicy.html)
    
*   [DeleteResourcePolicy](https://docs.aws.amazon.com/payment-cryptography/latest/APIReference/API_DeleteResourcePolicy.html)

## Headers

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

## Request body

- GetResourcePolicyInput
  - `ResourceArn` string, required — The <code>KeyARN</code> of the key whose resource-based policy you want to retrieve.

## Response `200`

Success

- GetResourcePolicyOutput
  - `ResourceArn` string, required — The <code>KeyARN</code> of the key.
  - `Policy` string, required — The resource-based policy attached to the key, in JSON format.

## Other responses

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

---

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