File tree 1 file changed +42
-0
lines changed
1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ subcategory : " WAF"
3
+ layout : " aws"
4
+ page_title : " AWS: aws_wafv2_web_acls"
5
+ description : |-
6
+ Retrieves a list of Web ACL names in a region.
7
+ ---
8
+
9
+ # Data Source: aws_wafv2_web_acls
10
+
11
+ This resource can be useful for getting back a list of Web ACL names for a region.
12
+
13
+ ## Example Usage
14
+
15
+ The following example retrieves a list of Web ACL names with ` REGIONAL ` scope.
16
+
17
+ ``` terraform
18
+ data "aws_wafv2_web_acls" "example" {
19
+ scope = "REGIONAL"
20
+ }
21
+
22
+ output "example" {
23
+ value = data.aws_wafv2_web_acls.example.names
24
+ }
25
+
26
+ // Retrieve Web ACL names that start with "FMManagedWebACLv2"
27
+ output "example_managed_by_fm" {
28
+ value = [for acl_name in data.aws_wafv2_web_acls.example.names : acl_name if startswith(acl_name, "FMManagedWebACLv2")]
29
+ }
30
+ ```
31
+
32
+ ## Argument Reference
33
+
34
+ The following arguments are required:
35
+
36
+ * ` scope ` - (Required) The scope of the Web ACLs to be listed. Valid values are ` CLOUDFRONT ` or ` REGIONAL ` .
37
+
38
+ ## Attribute Reference
39
+
40
+ This data source exports the following attributes in addition to the arguments above:
41
+
42
+ * ` names ` - A list of Web ACL names with the specified scope.
You can’t perform that action at this time.
0 commit comments