CfnResourcePolicyProps
- class aws_cdk.aws_cloudtrail.CfnResourcePolicyProps(*, resource_arn, resource_policy)
- Bases: - object- Properties for defining a - CfnResourcePolicy.- Parameters:
- resource_arn ( - str) – The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based policy. The following is the format of a resource ARN:- arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel.
- resource_policy ( - Any) – A JSON-formatted string for an AWS resource-based policy. The following are requirements for the resource policy: - Contains only one action: cloudtrail-data:PutAuditEvents - Contains at least one statement. The policy can have a maximum of 20 statements. - Each statement contains at least one principal. A statement can have a maximum of 50 principals.
 
- Link:
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_cloudtrail as cloudtrail # resource_policy: Any cfn_resource_policy_props = cloudtrail.CfnResourcePolicyProps( resource_arn="resourceArn", resource_policy=resource_policy ) - Attributes - resource_arn
- The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based policy. - The following is the format of a resource ARN: - arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel.
 - resource_policy
- A JSON-formatted string for an AWS resource-based policy. - The following are requirements for the resource policy: - Contains only one action: cloudtrail-data:PutAuditEvents 
- Contains at least one statement. The policy can have a maximum of 20 statements. 
- Each statement contains at least one principal. A statement can have a maximum of 50 principals.