Skip to content

Commit

Permalink
r/s3_bucket_metric: remove validation from bucket; update name valida…
Browse files Browse the repository at this point in the history
…tion to be minimum 1 char
  • Loading branch information
anGie44 committed Jun 21, 2022
1 parent ebcb971 commit 2b1449f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions internal/service/s3/bucket_metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ func ResourceBucketMetric() *schema.Resource {

Schema: map[string]*schema.Schema{
"bucket": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validation.StringLenBetween(1, 64),
Type: schema.TypeString,
Required: true,
ForceNew: true,
},
"filter": {
Type: schema.TypeList,
Expand All @@ -57,7 +56,7 @@ func ResourceBucketMetric() *schema.Resource {
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validation.StringLenBetween(0, 64),
ValidateFunc: validation.StringLenBetween(1, 64),
},
},
}
Expand Down

0 comments on commit 2b1449f

Please sign in to comment.