Registry /
cloud / aws-aws-sdk-go-v2-service-wafv2
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
wafv2
✓ github.com/aws/aws-sdk-go-v2/service/wafv2
List WAF V2 web ACLs using AWS SDK
package main
import (
"context"
"fmt"
"github.com/aws/aws-sdk-go-v2/config"
"github.com/aws/aws-sdk-go-v2/service/wafv2"
)
func main() {
cfg, err := config.LoadDefaultConfig(context.TODO())
if err != nil {
panic(err)
}
client := wafv2.NewFromConfig(cfg)
output, err := client.ListWebACLs(context.TODO(), &wafv2.ListWebACLsInput{Scope: "REGIONAL"})
if err != nil {
fmt.Println(err)
return
}
fmt.Println(output.WebACLs)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.73.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.