Skip to content

Commit

Permalink
only adding validation
Browse files Browse the repository at this point in the history
  • Loading branch information
saravanan30erd committed Jul 6, 2018
1 parent 39f69b7 commit 2901330
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aws/resource_aws_cloudwatch_metric_alarm.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ func resourceAwsCloudWatchMetricAlarm() *schema.Resource {
Required: true,
},
"evaluation_periods": {
Type: schema.TypeInt,
Required: true,
Type: schema.TypeInt,
Required: true,
ValidateFunc: validation.IntAtLeast(1),
},
"metric_name": {
Type: schema.TypeString,
Expand Down Expand Up @@ -77,7 +78,6 @@ func resourceAwsCloudWatchMetricAlarm() *schema.Resource {
"datapoints_to_alarm": {
Type: schema.TypeInt,
Optional: true,
Computed: true,
ValidateFunc: validation.IntAtLeast(1),
},
"dimensions": {
Expand Down

0 comments on commit 2901330

Please sign in to comment.