Get ARN for Classic WAF rules

0

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 ?

Thanks.

질문됨 일 년 전472회 조회
1개 답변
0
수락된 답변

Hi,

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

arn:aws:waf::<WAF_REGION>:rule/<RULE_ID>

You would need to find the specific rule id you need, and the list_rules https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/waf/client/list_rules.html may do that trick, unless you already have it.

Hope it helps ;)

profile picture
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠