Skip to content

Commit

Permalink
Add a validator for a maximum length of 512
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Jun 29, 2020
1 parent d7076b2 commit 97ceada
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aws/resource_aws_guardduty_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ func resourceAwsGuardDutyFilter() *schema.Resource {
ValidateFunc: validation.StringLenBetween(3, 64),
},
"description": {
Type: schema.TypeString,
Optional: true,
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringLenBetween(0, 512),
},
"tags": tagsSchema(),
"finding_criteria": {
Expand Down

0 comments on commit 97ceada

Please sign in to comment.