Get ARN for Classic WAF rules


Hi There,

I'm looking for a way to check rules tags with Classic WAF in python. However list_tags_for_resource requires an ARN. As far as I know, it is not possible to get an ARN with get_rule or create_rule (or update_rule). Is there a way to get the ARN for a Classic WAF rule in python or to get rule tags without using an ARN ?


asked 10 months ago338 views
1 Answer
Accepted Answer


would it be possible for you to construct it yourself? I guess the nature and format of a WAF ARN is kinda of known.


You would need to find the specific rule id you need, and the list_rules may do that trick, unless you already have it.

Hope it helps ;)

profile picture
answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions