Class ResourcePolicyNotValidException

All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<ResourcePolicyNotValidException.Builder,ResourcePolicyNotValidException>

@Generated("software.amazon.awssdk:codegen") public final class ResourcePolicyNotValidException extends CloudTrailException implements ToCopyableBuilder<ResourcePolicyNotValidException.Builder,ResourcePolicyNotValidException>

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.

See Also: