---
type: resource-type
title: CloudTrailResourcePolicy
description: aws resource type AWS::CloudTrail::ResourcePolicy
name: CloudTrailResourcePolicy
lexicon: aws
resource_type: AWS::CloudTrail::ResourcePolicy
---
`AWS::CloudTrail::ResourcePolicy`, a resource type of the aws lexicon.

## Properties

- `ResourceArn` (`string`, required): The ARN of the AWS CloudTrail resource to which the policy applies.
- `ResourcePolicy` (`Record<string, unknown>`, required): A policy document containing permissions to add to the specified resource. In IAM, you must provide policy documents in JSON format. However, in CloudFormation you can provide the policy in JSON or YAML format because CloudFormation converts YAML to JSON before submitting it to IAM.
