From 1e6a7c45ea935722e416b230bf93fb753ecefe6c Mon Sep 17 00:00:00 2001 From: Taras <9948629+Trane9991@users.noreply.github.com> Date: Tue, 31 Dec 2019 17:48:19 +0700 Subject: [PATCH] do not omit `ReturnData` AWS documentation says *ReturnData* This option indicates whether to return the timestamps and raw data values of this metric. If you are performing this call just to do math expressions and do not also need the raw data returned, you can specify False. *If you omit this, the default of True is used.* Then, cloudformation template update with fail with the error: `Exactly one element of the metrics list should return data`, because all the omitted values assumed as `True` --- .../cloudwatch/aws-cloudwatch-alarm_metricdataquery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudformation/cloudwatch/aws-cloudwatch-alarm_metricdataquery.go b/cloudformation/cloudwatch/aws-cloudwatch-alarm_metricdataquery.go index ef170f6b81..480f62f7d4 100644 --- a/cloudformation/cloudwatch/aws-cloudwatch-alarm_metricdataquery.go +++ b/cloudformation/cloudwatch/aws-cloudwatch-alarm_metricdataquery.go @@ -31,7 +31,7 @@ type Alarm_MetricDataQuery struct { // ReturnData AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricdataquery.html#cfn-cloudwatch-alarm-metricdataquery-returndata - ReturnData bool `json:"ReturnData,omitempty"` + ReturnData bool `json:"ReturnData"` // AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"`