Skip to content

Commit 16e3d6f

Browse files
committed
Use 'verify.ValidAccountID'.
1 parent fa15ec8 commit 16e3d6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/service/accessanalyzer/analyzer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func resourceAnalyzer() *schema.Resource {
9999
ForceNew: true,
100100
Elem: &schema.Schema{
101101
Type: schema.TypeString,
102-
ValidateFunc: validation.StringMatch(regexache.MustCompile(`^\d{12}$`), "Must be a 12-digit account ID"),
102+
ValidateFunc: verify.ValidAccountID,
103103
},
104104
},
105105
"resource_arns": {
@@ -157,7 +157,7 @@ func resourceAnalyzer() *schema.Resource {
157157
MaxItems: 2000,
158158
Elem: &schema.Schema{
159159
Type: schema.TypeString,
160-
ValidateFunc: validation.StringMatch(regexache.MustCompile(`^\d{12}$`), "Must be a 12-digit account ID"),
160+
ValidateFunc: verify.ValidAccountID,
161161
},
162162
},
163163
names.AttrResourceTags: {

0 commit comments

Comments
 (0)