Skip to content

Commit

Permalink
Merge pull request #5095 from saravanan30erd/issue-4350
Browse files Browse the repository at this point in the history
issue #4350 change datapointsToAlarm attribute in aws_cloudwatch_metric_alarm
  • Loading branch information
bflad authored Jul 6, 2018
2 parents 00a1aa7 + 2901330 commit 004db98
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 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 @@ -75,8 +76,9 @@ func resourceAwsCloudWatchMetricAlarm() *schema.Resource {
Optional: true,
},
"datapoints_to_alarm": {
Type: schema.TypeInt,
Optional: true,
Type: schema.TypeInt,
Optional: true,
ValidateFunc: validation.IntAtLeast(1),
},
"dimensions": {
Type: schema.TypeMap,
Expand Down

0 comments on commit 004db98

Please sign in to comment.