v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1444270263.9 KB

Retrieves the JSON text of the resource-based policy document attached to the CloudTrail channel.

post/#X-Amz-Target=com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.GetResourcePolicy

Headers

X-Amz-Target'com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.GetResourcePolicy' required

Request body

ResourceArnstring required

The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based policy. The following is the format of a resource ARN: <code>arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel</code>.

Response

Success

ResourceArnstring

The Amazon Resource Name (ARN) of the CloudTrail channel attached to resource-based policy.

ResourcePolicystring

A JSON-formatted string that contains the resource-based policy attached to the CloudTrail channel.