Skip to content

Commit 9b884bd

Browse files
committed
Run 'make fix-constants PKG=wafv2'.
1 parent 38db691 commit 9b884bd

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

internal/service/wafv2/ip_set.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func resourceIPSet() *schema.Resource {
111111
Optional: true,
112112
Computed: true,
113113
ForceNew: true,
114-
ConflictsWith: []string{"name_prefix"},
114+
ConflictsWith: []string{names.AttrNamePrefix},
115115
ValidateFunc: validation.All(
116116
validation.StringLenBetween(1, 128),
117117
validation.StringMatch(regexache.MustCompile(`^[0-9A-Za-z_-]+$`), "must contain only alphanumeric hyphen and underscore characters"),
@@ -122,7 +122,7 @@ func resourceIPSet() *schema.Resource {
122122
Optional: true,
123123
Computed: true,
124124
ForceNew: true,
125-
ConflictsWith: []string{"name"},
125+
ConflictsWith: []string{names.AttrName},
126126
ValidateFunc: validation.All(
127127
validation.StringLenBetween(1, 128-id.UniqueIDSuffixLength),
128128
validation.StringMatch(regexache.MustCompile(`^[0-9A-Za-z_-]+$`), "must contain only alphanumeric hyphen and underscore characters"),

internal/service/wafv2/regex_pattern_set.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func resourceRegexPatternSet() *schema.Resource {
7474
Optional: true,
7575
Computed: true,
7676
ForceNew: true,
77-
ConflictsWith: []string{"name_prefix"},
77+
ConflictsWith: []string{names.AttrNamePrefix},
7878
ValidateFunc: validation.All(
7979
validation.StringLenBetween(1, 128),
8080
validation.StringMatch(regexache.MustCompile(`^[0-9A-Za-z_-]+$`), "must contain only alphanumeric hyphen and underscore characters"),
@@ -85,7 +85,7 @@ func resourceRegexPatternSet() *schema.Resource {
8585
Optional: true,
8686
Computed: true,
8787
ForceNew: true,
88-
ConflictsWith: []string{"name"},
88+
ConflictsWith: []string{names.AttrName},
8989
ValidateFunc: validation.All(
9090
validation.StringLenBetween(1, 128-id.UniqueIDSuffixLength),
9191
validation.StringMatch(regexache.MustCompile(`^[0-9A-Za-z_-]+$`), "must contain only alphanumeric hyphen and underscore characters"),

internal/service/wafv2/web_acl.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func resourceWebACL() *schema.Resource {
100100
Optional: true,
101101
Computed: true,
102102
ForceNew: true,
103-
ConflictsWith: []string{"name_prefix"},
103+
ConflictsWith: []string{names.AttrNamePrefix},
104104
ValidateFunc: validation.All(
105105
validation.StringLenBetween(1, 128),
106106
validation.StringMatch(regexache.MustCompile(`^[0-9A-Za-z_-]+$`), "must contain only alphanumeric hyphen and underscore characters"),
@@ -111,7 +111,7 @@ func resourceWebACL() *schema.Resource {
111111
Optional: true,
112112
Computed: true,
113113
ForceNew: true,
114-
ConflictsWith: []string{"name"},
114+
ConflictsWith: []string{names.AttrName},
115115
ValidateFunc: validation.All(
116116
validation.StringLenBetween(1, 128-id.UniqueIDSuffixLength),
117117
validation.StringMatch(regexache.MustCompile(`^[0-9A-Za-z_-]+$`), "must contain only alphanumeric hyphen and underscore characters"),

0 commit comments

Comments
 (0)