Using Console
Using CLI
RESOURCE_TYPE
with the type of AWS resource you want to protect (e.g., AWS::CloudWatch::Alarm
) and RESOURCE_ID
with the specific resource ID you want to apply the policy to.Using Python
.py
extension and run it using the Python interpreter. Make sure your AWS credentials are properly configured on your system.