

# GetResourcePolicy


Returns the current resource policy for a cluster. You can use this information, for example, to verify that permissions in AWS RAM are set up correctly.

## URI


`/resourcePolicy/ResourceArn`

## HTTP methods


### GET


**Operation ID:** `GetResourcePolicy`

Get information about the resource policy for a cluster.


**Path parameters**  

| Name | Type | Required | Description | 
| --- |--- |--- |--- |
| ResourceArn | String | True | The Amazon Resource Name (ARN) for the resource. | 


**Responses**  

| Status code | Response model | Description | 
| --- |--- |--- |
| 200 | GetResourcePolicyResponse | 200 response - Success. | 
| 404 | ResourceNotFoundException | 404 response - MalformedQueryString. The query string contains a syntax error or resource not found. | 
| 500 | InternalServerException | 500 response - InternalServiceError. Temporary service error. Retry the request. | 

### OPTIONS



**Path parameters**  

| Name | Type | Required | Description | 
| --- |--- |--- |--- |
| ResourceArn | String | True | The Amazon Resource Name (ARN) for the resource. | 


**Responses**  

| Status code | Response model | Description | 
| --- |--- |--- |
| 200 | None | Default response for CORS method. | 

## Schemas


### Response bodies


#### GetResourcePolicyResponse schema
GetResourcePolicyResponse

```
{
  "Policy": "string"
}
```

#### ResourceNotFoundException schema
ResourceNotFoundException

```
{
  "message": "string"
}
```

#### InternalServerException schema
InternalServerException

```
{
  "message": "string"
}
```

## Properties


### GetResourcePolicyResponse


Returns the current Amazon Resource Access Manager resource policy for a cluster.


| Property | Type | Required | Description | 
| --- |--- |--- |--- |
| Policy | stringPattern: `[\u0009\u000A\u000D\u0020-\u007E\u00A1-\u00FF]+`MinLength: 2MaxLength: 10240 | True | The resource policy. | 

### InternalServerException


500 response - InternalServiceError. Temporary service error. Retry the request. 


| Property | Type | Required | Description | 
| --- |--- |--- |--- |
| message | string | True |  | 

### ResourceNotFoundException


404 response - MalformedQueryString. The query string contains a syntax error or resource not found.


| Property | Type | Required | Description | 
| --- |--- |--- |--- |
| message | string | True |  | 

## See also


For more information about using this API in one of the language-specific AWS SDKs and references, see the following:

### GetResourcePolicy

+ [AWS Command Line Interface V2](/goto/cli2/route53-recovery-control-config-2020-11-02/GetResourcePolicy)
+ [AWS SDK for .NET V4](/goto/DotNetSDKV4/route53-recovery-control-config-2020-11-02/GetResourcePolicy)
+ [AWS SDK for C\$1\$1](/goto/SdkForCpp/route53-recovery-control-config-2020-11-02/GetResourcePolicy)
+ [AWS SDK for Go v2](/goto/SdkForGoV2/route53-recovery-control-config-2020-11-02/GetResourcePolicy)
+ [AWS SDK for Java V2](/goto/SdkForJavaV2/route53-recovery-control-config-2020-11-02/GetResourcePolicy)
+ [AWS SDK for JavaScript V3](/goto/SdkForJavaScriptV3/route53-recovery-control-config-2020-11-02/GetResourcePolicy)
+ [AWS SDK for Kotlin](/goto/SdkForKotlin/route53-recovery-control-config-2020-11-02/GetResourcePolicy)
+ [AWS SDK for PHP V3](/goto/SdkForPHPV3/route53-recovery-control-config-2020-11-02/GetResourcePolicy)
+ [AWS SDK for Python](/goto/boto3/route53-recovery-control-config-2020-11-02/GetResourcePolicy)
+ [AWS SDK for Ruby V3](/goto/SdkForRubyV3/route53-recovery-control-config-2020-11-02/GetResourcePolicy)