Using Console
Using CLI
Using Python
list_graphql_apis
method to get all the AppSync APIs. Here is a sample script:
get_web_acl_for_resource
method to get the WAF web ACL for each AppSync API. Here is a sample script:
get_web_acl_for_resource
method returns a web ACL, then the AppSync API is associated with WAF. If it returns an error or an empty result, then the AppSync API is not associated with WAF. You can add this check to your script: