Class: Aws::CloudTrail::Types::ResourcePolicyNotValidException
- Inherits:
-
EmptyStructure
- Object
- Struct::AwsEmptyStructure
- EmptyStructure
- Aws::CloudTrail::Types::ResourcePolicyNotValidException
- Defined in:
- gems/aws-sdk-cloudtrail/lib/aws-sdk-cloudtrail/types.rb
Overview
This exception is thrown when the resouce-based policy has syntax errors, or contains a principal that is not valid.
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.