Using Console
Using CLI
example.com
with the actual identity (email address or domain) and policy.json
with the file containing the policy document.Using Python
'your_identity_here'
with the actual identity that needs to be protected. The above script denies the ses:SendEmail
and ses:SendRawEmail
actions for all principals except the authorized ones.