Skip to content

Commit 1eec4a3

Browse files
committed
fix: Updates message text
1 parent 11951dc commit 1eec4a3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.changelog/44478.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
```release-note:note
2-
resource/aws_emr_service: Corrects grammar of validation messages from `be comprised of` to `comprise`
3-
resource/aws_kms_service: Corrects grammar of validation messages from `be comprised of` to `comprise`
2+
resource/aws_emr_service: Updates validation messages from `be comprised of only` to `only contain`
3+
resource/aws_kms_service: Updates validation messages from `be comprised of only` to `only contain`
44
```

internal/service/emr/validate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func validCustomAMIID(v any, k string) (ws []string, errors []error) {
1919

2020
if !regexache.MustCompile(`^ami\-[0-9a-z]+$`).MatchString(value) {
2121
errors = append(errors, fmt.Errorf(
22-
"%q must begin with 'ami-' and comprise only [0-9a-z]: %v", k, value))
22+
"%q must begin with 'ami-' and only contain [0-9a-z]: %v", k, value))
2323
}
2424

2525
return

internal/service/kms/validate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func validNameForDataSource(v any, k string) (ws []string, es []error) {
4242

4343
if !aliasNameRegex.MatchString(value) {
4444
es = append(es, fmt.Errorf(
45-
"%q must begin with 'alias/' and comprise only [0-9A-Za-z_/-]", k))
45+
"%q must begin with 'alias/' and only contain [0-9A-Za-z_/-]", k))
4646
}
4747
return
4848
}
@@ -56,7 +56,7 @@ func validNameForResource(v any, k string) (ws []string, es []error) {
5656

5757
if !aliasNameRegex.MatchString(value) {
5858
es = append(es, fmt.Errorf(
59-
"%q must begin with 'alias/' and comprise only [0-9A-Za-z_/-]", k))
59+
"%q must begin with 'alias/' and only contain [0-9A-Za-z_/-]", k))
6060
}
6161
return
6262
}

0 commit comments

Comments
 (0)