The resource-based policy.
If you set the value of the effect parameter in the policy to Deny for the PutPolicy operation, you must also set the value of the effect parameter to Deny for the AddPolicyStatement operation.
effect
policy
Deny
PutPolicy
AddPolicyStatement