aws-sdk-cloudwatch 1.0.0.rc1 → 1.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,421 +1,425 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
- module Aws
9
- module CloudWatch
10
- # @api private
11
- module ClientApi
12
-
13
- include Seahorse::Model
14
-
15
- ActionPrefix = Shapes::StringShape.new(name: 'ActionPrefix')
16
- ActionsEnabled = Shapes::BooleanShape.new(name: 'ActionsEnabled')
17
- AlarmArn = Shapes::StringShape.new(name: 'AlarmArn')
18
- AlarmDescription = Shapes::StringShape.new(name: 'AlarmDescription')
19
- AlarmHistoryItem = Shapes::StructureShape.new(name: 'AlarmHistoryItem')
20
- AlarmHistoryItems = Shapes::ListShape.new(name: 'AlarmHistoryItems')
21
- AlarmName = Shapes::StringShape.new(name: 'AlarmName')
22
- AlarmNamePrefix = Shapes::StringShape.new(name: 'AlarmNamePrefix')
23
- AlarmNames = Shapes::ListShape.new(name: 'AlarmNames')
24
- AwsQueryErrorMessage = Shapes::StringShape.new(name: 'AwsQueryErrorMessage')
25
- ComparisonOperator = Shapes::StringShape.new(name: 'ComparisonOperator')
26
- Datapoint = Shapes::StructureShape.new(name: 'Datapoint')
27
- DatapointValue = Shapes::FloatShape.new(name: 'DatapointValue')
28
- DatapointValueMap = Shapes::MapShape.new(name: 'DatapointValueMap')
29
- Datapoints = Shapes::ListShape.new(name: 'Datapoints')
30
- DeleteAlarmsInput = Shapes::StructureShape.new(name: 'DeleteAlarmsInput')
31
- DescribeAlarmHistoryInput = Shapes::StructureShape.new(name: 'DescribeAlarmHistoryInput')
32
- DescribeAlarmHistoryOutput = Shapes::StructureShape.new(name: 'DescribeAlarmHistoryOutput')
33
- DescribeAlarmsForMetricInput = Shapes::StructureShape.new(name: 'DescribeAlarmsForMetricInput')
34
- DescribeAlarmsForMetricOutput = Shapes::StructureShape.new(name: 'DescribeAlarmsForMetricOutput')
35
- DescribeAlarmsInput = Shapes::StructureShape.new(name: 'DescribeAlarmsInput')
36
- DescribeAlarmsOutput = Shapes::StructureShape.new(name: 'DescribeAlarmsOutput')
37
- Dimension = Shapes::StructureShape.new(name: 'Dimension')
38
- DimensionFilter = Shapes::StructureShape.new(name: 'DimensionFilter')
39
- DimensionFilters = Shapes::ListShape.new(name: 'DimensionFilters')
40
- DimensionName = Shapes::StringShape.new(name: 'DimensionName')
41
- DimensionValue = Shapes::StringShape.new(name: 'DimensionValue')
42
- Dimensions = Shapes::ListShape.new(name: 'Dimensions')
43
- DisableAlarmActionsInput = Shapes::StructureShape.new(name: 'DisableAlarmActionsInput')
44
- EnableAlarmActionsInput = Shapes::StructureShape.new(name: 'EnableAlarmActionsInput')
45
- ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
46
- EvaluationPeriods = Shapes::IntegerShape.new(name: 'EvaluationPeriods')
47
- ExtendedStatistic = Shapes::StringShape.new(name: 'ExtendedStatistic')
48
- ExtendedStatistics = Shapes::ListShape.new(name: 'ExtendedStatistics')
49
- FaultDescription = Shapes::StringShape.new(name: 'FaultDescription')
50
- GetMetricStatisticsInput = Shapes::StructureShape.new(name: 'GetMetricStatisticsInput')
51
- GetMetricStatisticsOutput = Shapes::StructureShape.new(name: 'GetMetricStatisticsOutput')
52
- HistoryData = Shapes::StringShape.new(name: 'HistoryData')
53
- HistoryItemType = Shapes::StringShape.new(name: 'HistoryItemType')
54
- HistorySummary = Shapes::StringShape.new(name: 'HistorySummary')
55
- InternalServiceFault = Shapes::StructureShape.new(name: 'InternalServiceFault')
56
- InvalidFormatFault = Shapes::StructureShape.new(name: 'InvalidFormatFault')
57
- InvalidNextToken = Shapes::StructureShape.new(name: 'InvalidNextToken')
58
- InvalidParameterCombinationException = Shapes::StructureShape.new(name: 'InvalidParameterCombinationException')
59
- InvalidParameterValueException = Shapes::StructureShape.new(name: 'InvalidParameterValueException')
60
- LimitExceededFault = Shapes::StructureShape.new(name: 'LimitExceededFault')
61
- ListMetricsInput = Shapes::StructureShape.new(name: 'ListMetricsInput')
62
- ListMetricsOutput = Shapes::StructureShape.new(name: 'ListMetricsOutput')
63
- MaxRecords = Shapes::IntegerShape.new(name: 'MaxRecords')
64
- Metric = Shapes::StructureShape.new(name: 'Metric')
65
- MetricAlarm = Shapes::StructureShape.new(name: 'MetricAlarm')
66
- MetricAlarms = Shapes::ListShape.new(name: 'MetricAlarms')
67
- MetricData = Shapes::ListShape.new(name: 'MetricData')
68
- MetricDatum = Shapes::StructureShape.new(name: 'MetricDatum')
69
- MetricLabel = Shapes::StringShape.new(name: 'MetricLabel')
70
- MetricName = Shapes::StringShape.new(name: 'MetricName')
71
- Metrics = Shapes::ListShape.new(name: 'Metrics')
72
- MissingRequiredParameterException = Shapes::StructureShape.new(name: 'MissingRequiredParameterException')
73
- Namespace = Shapes::StringShape.new(name: 'Namespace')
74
- NextToken = Shapes::StringShape.new(name: 'NextToken')
75
- Period = Shapes::IntegerShape.new(name: 'Period')
76
- PutMetricAlarmInput = Shapes::StructureShape.new(name: 'PutMetricAlarmInput')
77
- PutMetricDataInput = Shapes::StructureShape.new(name: 'PutMetricDataInput')
78
- ResourceList = Shapes::ListShape.new(name: 'ResourceList')
79
- ResourceName = Shapes::StringShape.new(name: 'ResourceName')
80
- ResourceNotFound = Shapes::StructureShape.new(name: 'ResourceNotFound')
81
- SetAlarmStateInput = Shapes::StructureShape.new(name: 'SetAlarmStateInput')
82
- StandardUnit = Shapes::StringShape.new(name: 'StandardUnit')
83
- StateReason = Shapes::StringShape.new(name: 'StateReason')
84
- StateReasonData = Shapes::StringShape.new(name: 'StateReasonData')
85
- StateValue = Shapes::StringShape.new(name: 'StateValue')
86
- Statistic = Shapes::StringShape.new(name: 'Statistic')
87
- StatisticSet = Shapes::StructureShape.new(name: 'StatisticSet')
88
- Statistics = Shapes::ListShape.new(name: 'Statistics')
89
- Threshold = Shapes::FloatShape.new(name: 'Threshold')
90
- Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
91
-
92
- AlarmHistoryItem.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, location_name: "AlarmName"))
93
- AlarmHistoryItem.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Timestamp"))
94
- AlarmHistoryItem.add_member(:history_item_type, Shapes::ShapeRef.new(shape: HistoryItemType, location_name: "HistoryItemType"))
95
- AlarmHistoryItem.add_member(:history_summary, Shapes::ShapeRef.new(shape: HistorySummary, location_name: "HistorySummary"))
96
- AlarmHistoryItem.add_member(:history_data, Shapes::ShapeRef.new(shape: HistoryData, location_name: "HistoryData"))
97
- AlarmHistoryItem.struct_class = Types::AlarmHistoryItem
98
-
99
- AlarmHistoryItems.member = Shapes::ShapeRef.new(shape: AlarmHistoryItem)
100
-
101
- AlarmNames.member = Shapes::ShapeRef.new(shape: AlarmName)
102
-
103
- Datapoint.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Timestamp"))
104
- Datapoint.add_member(:sample_count, Shapes::ShapeRef.new(shape: DatapointValue, location_name: "SampleCount"))
105
- Datapoint.add_member(:average, Shapes::ShapeRef.new(shape: DatapointValue, location_name: "Average"))
106
- Datapoint.add_member(:sum, Shapes::ShapeRef.new(shape: DatapointValue, location_name: "Sum"))
107
- Datapoint.add_member(:minimum, Shapes::ShapeRef.new(shape: DatapointValue, location_name: "Minimum"))
108
- Datapoint.add_member(:maximum, Shapes::ShapeRef.new(shape: DatapointValue, location_name: "Maximum"))
109
- Datapoint.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit"))
110
- Datapoint.add_member(:extended_statistics, Shapes::ShapeRef.new(shape: DatapointValueMap, location_name: "ExtendedStatistics"))
111
- Datapoint.struct_class = Types::Datapoint
112
-
113
- DatapointValueMap.key = Shapes::ShapeRef.new(shape: ExtendedStatistic)
114
- DatapointValueMap.value = Shapes::ShapeRef.new(shape: DatapointValue)
115
-
116
- Datapoints.member = Shapes::ShapeRef.new(shape: Datapoint)
117
-
118
- DeleteAlarmsInput.add_member(:alarm_names, Shapes::ShapeRef.new(shape: AlarmNames, required: true, location_name: "AlarmNames"))
119
- DeleteAlarmsInput.struct_class = Types::DeleteAlarmsInput
120
-
121
- DescribeAlarmHistoryInput.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, location_name: "AlarmName"))
122
- DescribeAlarmHistoryInput.add_member(:history_item_type, Shapes::ShapeRef.new(shape: HistoryItemType, location_name: "HistoryItemType"))
123
- DescribeAlarmHistoryInput.add_member(:start_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StartDate"))
124
- DescribeAlarmHistoryInput.add_member(:end_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "EndDate"))
125
- DescribeAlarmHistoryInput.add_member(:max_records, Shapes::ShapeRef.new(shape: MaxRecords, location_name: "MaxRecords"))
126
- DescribeAlarmHistoryInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
127
- DescribeAlarmHistoryInput.struct_class = Types::DescribeAlarmHistoryInput
128
-
129
- DescribeAlarmHistoryOutput.add_member(:alarm_history_items, Shapes::ShapeRef.new(shape: AlarmHistoryItems, location_name: "AlarmHistoryItems"))
130
- DescribeAlarmHistoryOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
131
- DescribeAlarmHistoryOutput.struct_class = Types::DescribeAlarmHistoryOutput
132
-
133
- DescribeAlarmsForMetricInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricName"))
134
- DescribeAlarmsForMetricInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, required: true, location_name: "Namespace"))
135
- DescribeAlarmsForMetricInput.add_member(:statistic, Shapes::ShapeRef.new(shape: Statistic, location_name: "Statistic"))
136
- DescribeAlarmsForMetricInput.add_member(:extended_statistic, Shapes::ShapeRef.new(shape: ExtendedStatistic, location_name: "ExtendedStatistic"))
137
- DescribeAlarmsForMetricInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
138
- DescribeAlarmsForMetricInput.add_member(:period, Shapes::ShapeRef.new(shape: Period, location_name: "Period"))
139
- DescribeAlarmsForMetricInput.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit"))
140
- DescribeAlarmsForMetricInput.struct_class = Types::DescribeAlarmsForMetricInput
141
-
142
- DescribeAlarmsForMetricOutput.add_member(:metric_alarms, Shapes::ShapeRef.new(shape: MetricAlarms, location_name: "MetricAlarms"))
143
- DescribeAlarmsForMetricOutput.struct_class = Types::DescribeAlarmsForMetricOutput
144
-
145
- DescribeAlarmsInput.add_member(:alarm_names, Shapes::ShapeRef.new(shape: AlarmNames, location_name: "AlarmNames"))
146
- DescribeAlarmsInput.add_member(:alarm_name_prefix, Shapes::ShapeRef.new(shape: AlarmNamePrefix, location_name: "AlarmNamePrefix"))
147
- DescribeAlarmsInput.add_member(:state_value, Shapes::ShapeRef.new(shape: StateValue, location_name: "StateValue"))
148
- DescribeAlarmsInput.add_member(:action_prefix, Shapes::ShapeRef.new(shape: ActionPrefix, location_name: "ActionPrefix"))
149
- DescribeAlarmsInput.add_member(:max_records, Shapes::ShapeRef.new(shape: MaxRecords, location_name: "MaxRecords"))
150
- DescribeAlarmsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
151
- DescribeAlarmsInput.struct_class = Types::DescribeAlarmsInput
152
-
153
- DescribeAlarmsOutput.add_member(:metric_alarms, Shapes::ShapeRef.new(shape: MetricAlarms, location_name: "MetricAlarms"))
154
- DescribeAlarmsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
155
- DescribeAlarmsOutput.struct_class = Types::DescribeAlarmsOutput
156
-
157
- Dimension.add_member(:name, Shapes::ShapeRef.new(shape: DimensionName, required: true, location_name: "Name"))
158
- Dimension.add_member(:value, Shapes::ShapeRef.new(shape: DimensionValue, required: true, location_name: "Value"))
159
- Dimension.struct_class = Types::Dimension
160
-
161
- DimensionFilter.add_member(:name, Shapes::ShapeRef.new(shape: DimensionName, required: true, location_name: "Name"))
162
- DimensionFilter.add_member(:value, Shapes::ShapeRef.new(shape: DimensionValue, location_name: "Value"))
163
- DimensionFilter.struct_class = Types::DimensionFilter
164
-
165
- DimensionFilters.member = Shapes::ShapeRef.new(shape: DimensionFilter)
166
-
167
- Dimensions.member = Shapes::ShapeRef.new(shape: Dimension)
168
-
169
- DisableAlarmActionsInput.add_member(:alarm_names, Shapes::ShapeRef.new(shape: AlarmNames, required: true, location_name: "AlarmNames"))
170
- DisableAlarmActionsInput.struct_class = Types::DisableAlarmActionsInput
171
-
172
- EnableAlarmActionsInput.add_member(:alarm_names, Shapes::ShapeRef.new(shape: AlarmNames, required: true, location_name: "AlarmNames"))
173
- EnableAlarmActionsInput.struct_class = Types::EnableAlarmActionsInput
174
-
175
- ExtendedStatistics.member = Shapes::ShapeRef.new(shape: ExtendedStatistic)
176
-
177
- GetMetricStatisticsInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, required: true, location_name: "Namespace"))
178
- GetMetricStatisticsInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricName"))
179
- GetMetricStatisticsInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
180
- GetMetricStatisticsInput.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StartTime"))
181
- GetMetricStatisticsInput.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "EndTime"))
182
- GetMetricStatisticsInput.add_member(:period, Shapes::ShapeRef.new(shape: Period, required: true, location_name: "Period"))
183
- GetMetricStatisticsInput.add_member(:statistics, Shapes::ShapeRef.new(shape: Statistics, location_name: "Statistics"))
184
- GetMetricStatisticsInput.add_member(:extended_statistics, Shapes::ShapeRef.new(shape: ExtendedStatistics, location_name: "ExtendedStatistics"))
185
- GetMetricStatisticsInput.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit"))
186
- GetMetricStatisticsInput.struct_class = Types::GetMetricStatisticsInput
187
-
188
- GetMetricStatisticsOutput.add_member(:label, Shapes::ShapeRef.new(shape: MetricLabel, location_name: "Label"))
189
- GetMetricStatisticsOutput.add_member(:datapoints, Shapes::ShapeRef.new(shape: Datapoints, location_name: "Datapoints"))
190
- GetMetricStatisticsOutput.struct_class = Types::GetMetricStatisticsOutput
191
-
192
- ListMetricsInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace"))
193
- ListMetricsInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName"))
194
- ListMetricsInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: DimensionFilters, location_name: "Dimensions"))
195
- ListMetricsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
196
- ListMetricsInput.struct_class = Types::ListMetricsInput
197
-
198
- ListMetricsOutput.add_member(:metrics, Shapes::ShapeRef.new(shape: Metrics, location_name: "Metrics"))
199
- ListMetricsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
200
- ListMetricsOutput.struct_class = Types::ListMetricsOutput
201
-
202
- Metric.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace"))
203
- Metric.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName"))
204
- Metric.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
205
- Metric.struct_class = Types::Metric
206
-
207
- MetricAlarm.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, location_name: "AlarmName"))
208
- MetricAlarm.add_member(:alarm_arn, Shapes::ShapeRef.new(shape: AlarmArn, location_name: "AlarmArn"))
209
- MetricAlarm.add_member(:alarm_description, Shapes::ShapeRef.new(shape: AlarmDescription, location_name: "AlarmDescription"))
210
- MetricAlarm.add_member(:alarm_configuration_updated_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "AlarmConfigurationUpdatedTimestamp"))
211
- MetricAlarm.add_member(:actions_enabled, Shapes::ShapeRef.new(shape: ActionsEnabled, location_name: "ActionsEnabled"))
212
- MetricAlarm.add_member(:ok_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "OKActions"))
213
- MetricAlarm.add_member(:alarm_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "AlarmActions"))
214
- MetricAlarm.add_member(:insufficient_data_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "InsufficientDataActions"))
215
- MetricAlarm.add_member(:state_value, Shapes::ShapeRef.new(shape: StateValue, location_name: "StateValue"))
216
- MetricAlarm.add_member(:state_reason, Shapes::ShapeRef.new(shape: StateReason, location_name: "StateReason"))
217
- MetricAlarm.add_member(:state_reason_data, Shapes::ShapeRef.new(shape: StateReasonData, location_name: "StateReasonData"))
218
- MetricAlarm.add_member(:state_updated_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StateUpdatedTimestamp"))
219
- MetricAlarm.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName"))
220
- MetricAlarm.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace"))
221
- MetricAlarm.add_member(:statistic, Shapes::ShapeRef.new(shape: Statistic, location_name: "Statistic"))
222
- MetricAlarm.add_member(:extended_statistic, Shapes::ShapeRef.new(shape: ExtendedStatistic, location_name: "ExtendedStatistic"))
223
- MetricAlarm.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
224
- MetricAlarm.add_member(:period, Shapes::ShapeRef.new(shape: Period, location_name: "Period"))
225
- MetricAlarm.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit"))
226
- MetricAlarm.add_member(:evaluation_periods, Shapes::ShapeRef.new(shape: EvaluationPeriods, location_name: "EvaluationPeriods"))
227
- MetricAlarm.add_member(:threshold, Shapes::ShapeRef.new(shape: Threshold, location_name: "Threshold"))
228
- MetricAlarm.add_member(:comparison_operator, Shapes::ShapeRef.new(shape: ComparisonOperator, location_name: "ComparisonOperator"))
229
- MetricAlarm.struct_class = Types::MetricAlarm
230
-
231
- MetricAlarms.member = Shapes::ShapeRef.new(shape: MetricAlarm)
232
-
233
- MetricData.member = Shapes::ShapeRef.new(shape: MetricDatum)
234
-
235
- MetricDatum.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricName"))
236
- MetricDatum.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
237
- MetricDatum.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Timestamp"))
238
- MetricDatum.add_member(:value, Shapes::ShapeRef.new(shape: DatapointValue, location_name: "Value"))
239
- MetricDatum.add_member(:statistic_values, Shapes::ShapeRef.new(shape: StatisticSet, location_name: "StatisticValues"))
240
- MetricDatum.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit"))
241
- MetricDatum.struct_class = Types::MetricDatum
242
-
243
- Metrics.member = Shapes::ShapeRef.new(shape: Metric)
244
-
245
- PutMetricAlarmInput.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, required: true, location_name: "AlarmName"))
246
- PutMetricAlarmInput.add_member(:alarm_description, Shapes::ShapeRef.new(shape: AlarmDescription, location_name: "AlarmDescription"))
247
- PutMetricAlarmInput.add_member(:actions_enabled, Shapes::ShapeRef.new(shape: ActionsEnabled, location_name: "ActionsEnabled"))
248
- PutMetricAlarmInput.add_member(:ok_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "OKActions"))
249
- PutMetricAlarmInput.add_member(:alarm_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "AlarmActions"))
250
- PutMetricAlarmInput.add_member(:insufficient_data_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "InsufficientDataActions"))
251
- PutMetricAlarmInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricName"))
252
- PutMetricAlarmInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, required: true, location_name: "Namespace"))
253
- PutMetricAlarmInput.add_member(:statistic, Shapes::ShapeRef.new(shape: Statistic, location_name: "Statistic"))
254
- PutMetricAlarmInput.add_member(:extended_statistic, Shapes::ShapeRef.new(shape: ExtendedStatistic, location_name: "ExtendedStatistic"))
255
- PutMetricAlarmInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
256
- PutMetricAlarmInput.add_member(:period, Shapes::ShapeRef.new(shape: Period, required: true, location_name: "Period"))
257
- PutMetricAlarmInput.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit"))
258
- PutMetricAlarmInput.add_member(:evaluation_periods, Shapes::ShapeRef.new(shape: EvaluationPeriods, required: true, location_name: "EvaluationPeriods"))
259
- PutMetricAlarmInput.add_member(:threshold, Shapes::ShapeRef.new(shape: Threshold, required: true, location_name: "Threshold"))
260
- PutMetricAlarmInput.add_member(:comparison_operator, Shapes::ShapeRef.new(shape: ComparisonOperator, required: true, location_name: "ComparisonOperator"))
261
- PutMetricAlarmInput.struct_class = Types::PutMetricAlarmInput
262
-
263
- PutMetricDataInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, required: true, location_name: "Namespace"))
264
- PutMetricDataInput.add_member(:metric_data, Shapes::ShapeRef.new(shape: MetricData, required: true, location_name: "MetricData"))
265
- PutMetricDataInput.struct_class = Types::PutMetricDataInput
266
-
267
- ResourceList.member = Shapes::ShapeRef.new(shape: ResourceName)
268
-
269
- SetAlarmStateInput.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, required: true, location_name: "AlarmName"))
270
- SetAlarmStateInput.add_member(:state_value, Shapes::ShapeRef.new(shape: StateValue, required: true, location_name: "StateValue"))
271
- SetAlarmStateInput.add_member(:state_reason, Shapes::ShapeRef.new(shape: StateReason, required: true, location_name: "StateReason"))
272
- SetAlarmStateInput.add_member(:state_reason_data, Shapes::ShapeRef.new(shape: StateReasonData, location_name: "StateReasonData"))
273
- SetAlarmStateInput.struct_class = Types::SetAlarmStateInput
274
-
275
- StatisticSet.add_member(:sample_count, Shapes::ShapeRef.new(shape: DatapointValue, required: true, location_name: "SampleCount"))
276
- StatisticSet.add_member(:sum, Shapes::ShapeRef.new(shape: DatapointValue, required: true, location_name: "Sum"))
277
- StatisticSet.add_member(:minimum, Shapes::ShapeRef.new(shape: DatapointValue, required: true, location_name: "Minimum"))
278
- StatisticSet.add_member(:maximum, Shapes::ShapeRef.new(shape: DatapointValue, required: true, location_name: "Maximum"))
279
- StatisticSet.struct_class = Types::StatisticSet
280
-
281
- Statistics.member = Shapes::ShapeRef.new(shape: Statistic)
282
-
283
-
284
- # @api private
285
- API = Seahorse::Model::Api.new.tap do |api|
286
-
287
- api.version = "2010-08-01"
288
-
289
- api.metadata = {
290
- "endpointPrefix" => "monitoring",
291
- "protocol" => "query",
292
- "serviceFullName" => "Amazon CloudWatch",
293
- "signatureVersion" => "v4",
294
- "xmlNamespace" => "http://monitoring.amazonaws.com/doc/2010-08-01/",
295
- }
296
-
297
- api.add_operation(:delete_alarms, Seahorse::Model::Operation.new.tap do |o|
298
- o.name = "DeleteAlarms"
299
- o.http_method = "POST"
300
- o.http_request_uri = "/"
301
- o.input = Shapes::ShapeRef.new(shape: DeleteAlarmsInput)
302
- o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
303
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFound)
304
- end)
305
-
306
- api.add_operation(:describe_alarm_history, Seahorse::Model::Operation.new.tap do |o|
307
- o.name = "DescribeAlarmHistory"
308
- o.http_method = "POST"
309
- o.http_request_uri = "/"
310
- o.input = Shapes::ShapeRef.new(shape: DescribeAlarmHistoryInput)
311
- o.output = Shapes::ShapeRef.new(shape: DescribeAlarmHistoryOutput)
312
- o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
313
- o[:pager] = Aws::Pager.new(
314
- limit_key: "max_records",
315
- tokens: {
316
- "next_token" => "next_token"
317
- }
318
- )
319
- end)
320
-
321
- api.add_operation(:describe_alarms, Seahorse::Model::Operation.new.tap do |o|
322
- o.name = "DescribeAlarms"
323
- o.http_method = "POST"
324
- o.http_request_uri = "/"
325
- o.input = Shapes::ShapeRef.new(shape: DescribeAlarmsInput)
326
- o.output = Shapes::ShapeRef.new(shape: DescribeAlarmsOutput)
327
- o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
328
- o[:pager] = Aws::Pager.new(
329
- limit_key: "max_records",
330
- tokens: {
331
- "next_token" => "next_token"
332
- }
333
- )
334
- end)
335
-
336
- api.add_operation(:describe_alarms_for_metric, Seahorse::Model::Operation.new.tap do |o|
337
- o.name = "DescribeAlarmsForMetric"
338
- o.http_method = "POST"
339
- o.http_request_uri = "/"
340
- o.input = Shapes::ShapeRef.new(shape: DescribeAlarmsForMetricInput)
341
- o.output = Shapes::ShapeRef.new(shape: DescribeAlarmsForMetricOutput)
342
- end)
343
-
344
- api.add_operation(:disable_alarm_actions, Seahorse::Model::Operation.new.tap do |o|
345
- o.name = "DisableAlarmActions"
346
- o.http_method = "POST"
347
- o.http_request_uri = "/"
348
- o.input = Shapes::ShapeRef.new(shape: DisableAlarmActionsInput)
349
- o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
350
- end)
351
-
352
- api.add_operation(:enable_alarm_actions, Seahorse::Model::Operation.new.tap do |o|
353
- o.name = "EnableAlarmActions"
354
- o.http_method = "POST"
355
- o.http_request_uri = "/"
356
- o.input = Shapes::ShapeRef.new(shape: EnableAlarmActionsInput)
357
- o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
358
- end)
359
-
360
- api.add_operation(:get_metric_statistics, Seahorse::Model::Operation.new.tap do |o|
361
- o.name = "GetMetricStatistics"
362
- o.http_method = "POST"
363
- o.http_request_uri = "/"
364
- o.input = Shapes::ShapeRef.new(shape: GetMetricStatisticsInput)
365
- o.output = Shapes::ShapeRef.new(shape: GetMetricStatisticsOutput)
366
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
367
- o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
368
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
369
- o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
370
- end)
371
-
372
- api.add_operation(:list_metrics, Seahorse::Model::Operation.new.tap do |o|
373
- o.name = "ListMetrics"
374
- o.http_method = "POST"
375
- o.http_request_uri = "/"
376
- o.input = Shapes::ShapeRef.new(shape: ListMetricsInput)
377
- o.output = Shapes::ShapeRef.new(shape: ListMetricsOutput)
378
- o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
379
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
380
- o[:pager] = Aws::Pager.new(
381
- tokens: {
382
- "next_token" => "next_token"
383
- }
384
- )
385
- end)
386
-
387
- api.add_operation(:put_metric_alarm, Seahorse::Model::Operation.new.tap do |o|
388
- o.name = "PutMetricAlarm"
389
- o.http_method = "POST"
390
- o.http_request_uri = "/"
391
- o.input = Shapes::ShapeRef.new(shape: PutMetricAlarmInput)
392
- o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
393
- o.errors << Shapes::ShapeRef.new(shape: LimitExceededFault)
394
- end)
395
-
396
- api.add_operation(:put_metric_data, Seahorse::Model::Operation.new.tap do |o|
397
- o.name = "PutMetricData"
398
- o.http_method = "POST"
399
- o.http_request_uri = "/"
400
- o.input = Shapes::ShapeRef.new(shape: PutMetricDataInput)
401
- o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
402
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
403
- o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
404
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
405
- o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
406
- end)
407
-
408
- api.add_operation(:set_alarm_state, Seahorse::Model::Operation.new.tap do |o|
409
- o.name = "SetAlarmState"
410
- o.http_method = "POST"
411
- o.http_request_uri = "/"
412
- o.input = Shapes::ShapeRef.new(shape: SetAlarmStateInput)
413
- o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
414
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFound)
415
- o.errors << Shapes::ShapeRef.new(shape: InvalidFormatFault)
416
- end)
417
- end
8
+ module Aws::CloudWatch
9
+ # @api private
10
+ module ClientApi
11
+
12
+ include Seahorse::Model
13
+
14
+ ActionPrefix = Shapes::StringShape.new(name: 'ActionPrefix')
15
+ ActionsEnabled = Shapes::BooleanShape.new(name: 'ActionsEnabled')
16
+ AlarmArn = Shapes::StringShape.new(name: 'AlarmArn')
17
+ AlarmDescription = Shapes::StringShape.new(name: 'AlarmDescription')
18
+ AlarmHistoryItem = Shapes::StructureShape.new(name: 'AlarmHistoryItem')
19
+ AlarmHistoryItems = Shapes::ListShape.new(name: 'AlarmHistoryItems')
20
+ AlarmName = Shapes::StringShape.new(name: 'AlarmName')
21
+ AlarmNamePrefix = Shapes::StringShape.new(name: 'AlarmNamePrefix')
22
+ AlarmNames = Shapes::ListShape.new(name: 'AlarmNames')
23
+ AwsQueryErrorMessage = Shapes::StringShape.new(name: 'AwsQueryErrorMessage')
24
+ ComparisonOperator = Shapes::StringShape.new(name: 'ComparisonOperator')
25
+ Datapoint = Shapes::StructureShape.new(name: 'Datapoint')
26
+ DatapointValue = Shapes::FloatShape.new(name: 'DatapointValue')
27
+ DatapointValueMap = Shapes::MapShape.new(name: 'DatapointValueMap')
28
+ Datapoints = Shapes::ListShape.new(name: 'Datapoints')
29
+ DeleteAlarmsInput = Shapes::StructureShape.new(name: 'DeleteAlarmsInput')
30
+ DescribeAlarmHistoryInput = Shapes::StructureShape.new(name: 'DescribeAlarmHistoryInput')
31
+ DescribeAlarmHistoryOutput = Shapes::StructureShape.new(name: 'DescribeAlarmHistoryOutput')
32
+ DescribeAlarmsForMetricInput = Shapes::StructureShape.new(name: 'DescribeAlarmsForMetricInput')
33
+ DescribeAlarmsForMetricOutput = Shapes::StructureShape.new(name: 'DescribeAlarmsForMetricOutput')
34
+ DescribeAlarmsInput = Shapes::StructureShape.new(name: 'DescribeAlarmsInput')
35
+ DescribeAlarmsOutput = Shapes::StructureShape.new(name: 'DescribeAlarmsOutput')
36
+ Dimension = Shapes::StructureShape.new(name: 'Dimension')
37
+ DimensionFilter = Shapes::StructureShape.new(name: 'DimensionFilter')
38
+ DimensionFilters = Shapes::ListShape.new(name: 'DimensionFilters')
39
+ DimensionName = Shapes::StringShape.new(name: 'DimensionName')
40
+ DimensionValue = Shapes::StringShape.new(name: 'DimensionValue')
41
+ Dimensions = Shapes::ListShape.new(name: 'Dimensions')
42
+ DisableAlarmActionsInput = Shapes::StructureShape.new(name: 'DisableAlarmActionsInput')
43
+ EnableAlarmActionsInput = Shapes::StructureShape.new(name: 'EnableAlarmActionsInput')
44
+ ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
45
+ EvaluateLowSampleCountPercentile = Shapes::StringShape.new(name: 'EvaluateLowSampleCountPercentile')
46
+ EvaluationPeriods = Shapes::IntegerShape.new(name: 'EvaluationPeriods')
47
+ ExtendedStatistic = Shapes::StringShape.new(name: 'ExtendedStatistic')
48
+ ExtendedStatistics = Shapes::ListShape.new(name: 'ExtendedStatistics')
49
+ FaultDescription = Shapes::StringShape.new(name: 'FaultDescription')
50
+ GetMetricStatisticsInput = Shapes::StructureShape.new(name: 'GetMetricStatisticsInput')
51
+ GetMetricStatisticsOutput = Shapes::StructureShape.new(name: 'GetMetricStatisticsOutput')
52
+ HistoryData = Shapes::StringShape.new(name: 'HistoryData')
53
+ HistoryItemType = Shapes::StringShape.new(name: 'HistoryItemType')
54
+ HistorySummary = Shapes::StringShape.new(name: 'HistorySummary')
55
+ InternalServiceFault = Shapes::StructureShape.new(name: 'InternalServiceFault')
56
+ InvalidFormatFault = Shapes::StructureShape.new(name: 'InvalidFormatFault')
57
+ InvalidNextToken = Shapes::StructureShape.new(name: 'InvalidNextToken')
58
+ InvalidParameterCombinationException = Shapes::StructureShape.new(name: 'InvalidParameterCombinationException')
59
+ InvalidParameterValueException = Shapes::StructureShape.new(name: 'InvalidParameterValueException')
60
+ LimitExceededFault = Shapes::StructureShape.new(name: 'LimitExceededFault')
61
+ ListMetricsInput = Shapes::StructureShape.new(name: 'ListMetricsInput')
62
+ ListMetricsOutput = Shapes::StructureShape.new(name: 'ListMetricsOutput')
63
+ MaxRecords = Shapes::IntegerShape.new(name: 'MaxRecords')
64
+ Metric = Shapes::StructureShape.new(name: 'Metric')
65
+ MetricAlarm = Shapes::StructureShape.new(name: 'MetricAlarm')
66
+ MetricAlarms = Shapes::ListShape.new(name: 'MetricAlarms')
67
+ MetricData = Shapes::ListShape.new(name: 'MetricData')
68
+ MetricDatum = Shapes::StructureShape.new(name: 'MetricDatum')
69
+ MetricLabel = Shapes::StringShape.new(name: 'MetricLabel')
70
+ MetricName = Shapes::StringShape.new(name: 'MetricName')
71
+ Metrics = Shapes::ListShape.new(name: 'Metrics')
72
+ MissingRequiredParameterException = Shapes::StructureShape.new(name: 'MissingRequiredParameterException')
73
+ Namespace = Shapes::StringShape.new(name: 'Namespace')
74
+ NextToken = Shapes::StringShape.new(name: 'NextToken')
75
+ Period = Shapes::IntegerShape.new(name: 'Period')
76
+ PutMetricAlarmInput = Shapes::StructureShape.new(name: 'PutMetricAlarmInput')
77
+ PutMetricDataInput = Shapes::StructureShape.new(name: 'PutMetricDataInput')
78
+ ResourceList = Shapes::ListShape.new(name: 'ResourceList')
79
+ ResourceName = Shapes::StringShape.new(name: 'ResourceName')
80
+ ResourceNotFound = Shapes::StructureShape.new(name: 'ResourceNotFound')
81
+ SetAlarmStateInput = Shapes::StructureShape.new(name: 'SetAlarmStateInput')
82
+ StandardUnit = Shapes::StringShape.new(name: 'StandardUnit')
83
+ StateReason = Shapes::StringShape.new(name: 'StateReason')
84
+ StateReasonData = Shapes::StringShape.new(name: 'StateReasonData')
85
+ StateValue = Shapes::StringShape.new(name: 'StateValue')
86
+ Statistic = Shapes::StringShape.new(name: 'Statistic')
87
+ StatisticSet = Shapes::StructureShape.new(name: 'StatisticSet')
88
+ Statistics = Shapes::ListShape.new(name: 'Statistics')
89
+ Threshold = Shapes::FloatShape.new(name: 'Threshold')
90
+ Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
91
+ TreatMissingData = Shapes::StringShape.new(name: 'TreatMissingData')
92
+
93
+ AlarmHistoryItem.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, location_name: "AlarmName"))
94
+ AlarmHistoryItem.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Timestamp"))
95
+ AlarmHistoryItem.add_member(:history_item_type, Shapes::ShapeRef.new(shape: HistoryItemType, location_name: "HistoryItemType"))
96
+ AlarmHistoryItem.add_member(:history_summary, Shapes::ShapeRef.new(shape: HistorySummary, location_name: "HistorySummary"))
97
+ AlarmHistoryItem.add_member(:history_data, Shapes::ShapeRef.new(shape: HistoryData, location_name: "HistoryData"))
98
+ AlarmHistoryItem.struct_class = Types::AlarmHistoryItem
99
+
100
+ AlarmHistoryItems.member = Shapes::ShapeRef.new(shape: AlarmHistoryItem)
101
+
102
+ AlarmNames.member = Shapes::ShapeRef.new(shape: AlarmName)
103
+
104
+ Datapoint.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Timestamp"))
105
+ Datapoint.add_member(:sample_count, Shapes::ShapeRef.new(shape: DatapointValue, location_name: "SampleCount"))
106
+ Datapoint.add_member(:average, Shapes::ShapeRef.new(shape: DatapointValue, location_name: "Average"))
107
+ Datapoint.add_member(:sum, Shapes::ShapeRef.new(shape: DatapointValue, location_name: "Sum"))
108
+ Datapoint.add_member(:minimum, Shapes::ShapeRef.new(shape: DatapointValue, location_name: "Minimum"))
109
+ Datapoint.add_member(:maximum, Shapes::ShapeRef.new(shape: DatapointValue, location_name: "Maximum"))
110
+ Datapoint.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit"))
111
+ Datapoint.add_member(:extended_statistics, Shapes::ShapeRef.new(shape: DatapointValueMap, location_name: "ExtendedStatistics"))
112
+ Datapoint.struct_class = Types::Datapoint
113
+
114
+ DatapointValueMap.key = Shapes::ShapeRef.new(shape: ExtendedStatistic)
115
+ DatapointValueMap.value = Shapes::ShapeRef.new(shape: DatapointValue)
116
+
117
+ Datapoints.member = Shapes::ShapeRef.new(shape: Datapoint)
118
+
119
+ DeleteAlarmsInput.add_member(:alarm_names, Shapes::ShapeRef.new(shape: AlarmNames, required: true, location_name: "AlarmNames"))
120
+ DeleteAlarmsInput.struct_class = Types::DeleteAlarmsInput
121
+
122
+ DescribeAlarmHistoryInput.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, location_name: "AlarmName"))
123
+ DescribeAlarmHistoryInput.add_member(:history_item_type, Shapes::ShapeRef.new(shape: HistoryItemType, location_name: "HistoryItemType"))
124
+ DescribeAlarmHistoryInput.add_member(:start_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StartDate"))
125
+ DescribeAlarmHistoryInput.add_member(:end_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "EndDate"))
126
+ DescribeAlarmHistoryInput.add_member(:max_records, Shapes::ShapeRef.new(shape: MaxRecords, location_name: "MaxRecords"))
127
+ DescribeAlarmHistoryInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
128
+ DescribeAlarmHistoryInput.struct_class = Types::DescribeAlarmHistoryInput
129
+
130
+ DescribeAlarmHistoryOutput.add_member(:alarm_history_items, Shapes::ShapeRef.new(shape: AlarmHistoryItems, location_name: "AlarmHistoryItems"))
131
+ DescribeAlarmHistoryOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
132
+ DescribeAlarmHistoryOutput.struct_class = Types::DescribeAlarmHistoryOutput
133
+
134
+ DescribeAlarmsForMetricInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricName"))
135
+ DescribeAlarmsForMetricInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, required: true, location_name: "Namespace"))
136
+ DescribeAlarmsForMetricInput.add_member(:statistic, Shapes::ShapeRef.new(shape: Statistic, location_name: "Statistic"))
137
+ DescribeAlarmsForMetricInput.add_member(:extended_statistic, Shapes::ShapeRef.new(shape: ExtendedStatistic, location_name: "ExtendedStatistic"))
138
+ DescribeAlarmsForMetricInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
139
+ DescribeAlarmsForMetricInput.add_member(:period, Shapes::ShapeRef.new(shape: Period, location_name: "Period"))
140
+ DescribeAlarmsForMetricInput.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit"))
141
+ DescribeAlarmsForMetricInput.struct_class = Types::DescribeAlarmsForMetricInput
142
+
143
+ DescribeAlarmsForMetricOutput.add_member(:metric_alarms, Shapes::ShapeRef.new(shape: MetricAlarms, location_name: "MetricAlarms"))
144
+ DescribeAlarmsForMetricOutput.struct_class = Types::DescribeAlarmsForMetricOutput
145
+
146
+ DescribeAlarmsInput.add_member(:alarm_names, Shapes::ShapeRef.new(shape: AlarmNames, location_name: "AlarmNames"))
147
+ DescribeAlarmsInput.add_member(:alarm_name_prefix, Shapes::ShapeRef.new(shape: AlarmNamePrefix, location_name: "AlarmNamePrefix"))
148
+ DescribeAlarmsInput.add_member(:state_value, Shapes::ShapeRef.new(shape: StateValue, location_name: "StateValue"))
149
+ DescribeAlarmsInput.add_member(:action_prefix, Shapes::ShapeRef.new(shape: ActionPrefix, location_name: "ActionPrefix"))
150
+ DescribeAlarmsInput.add_member(:max_records, Shapes::ShapeRef.new(shape: MaxRecords, location_name: "MaxRecords"))
151
+ DescribeAlarmsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
152
+ DescribeAlarmsInput.struct_class = Types::DescribeAlarmsInput
153
+
154
+ DescribeAlarmsOutput.add_member(:metric_alarms, Shapes::ShapeRef.new(shape: MetricAlarms, location_name: "MetricAlarms"))
155
+ DescribeAlarmsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
156
+ DescribeAlarmsOutput.struct_class = Types::DescribeAlarmsOutput
157
+
158
+ Dimension.add_member(:name, Shapes::ShapeRef.new(shape: DimensionName, required: true, location_name: "Name"))
159
+ Dimension.add_member(:value, Shapes::ShapeRef.new(shape: DimensionValue, required: true, location_name: "Value"))
160
+ Dimension.struct_class = Types::Dimension
161
+
162
+ DimensionFilter.add_member(:name, Shapes::ShapeRef.new(shape: DimensionName, required: true, location_name: "Name"))
163
+ DimensionFilter.add_member(:value, Shapes::ShapeRef.new(shape: DimensionValue, location_name: "Value"))
164
+ DimensionFilter.struct_class = Types::DimensionFilter
165
+
166
+ DimensionFilters.member = Shapes::ShapeRef.new(shape: DimensionFilter)
167
+
168
+ Dimensions.member = Shapes::ShapeRef.new(shape: Dimension)
169
+
170
+ DisableAlarmActionsInput.add_member(:alarm_names, Shapes::ShapeRef.new(shape: AlarmNames, required: true, location_name: "AlarmNames"))
171
+ DisableAlarmActionsInput.struct_class = Types::DisableAlarmActionsInput
172
+
173
+ EnableAlarmActionsInput.add_member(:alarm_names, Shapes::ShapeRef.new(shape: AlarmNames, required: true, location_name: "AlarmNames"))
174
+ EnableAlarmActionsInput.struct_class = Types::EnableAlarmActionsInput
175
+
176
+ ExtendedStatistics.member = Shapes::ShapeRef.new(shape: ExtendedStatistic)
177
+
178
+ GetMetricStatisticsInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, required: true, location_name: "Namespace"))
179
+ GetMetricStatisticsInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricName"))
180
+ GetMetricStatisticsInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
181
+ GetMetricStatisticsInput.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StartTime"))
182
+ GetMetricStatisticsInput.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "EndTime"))
183
+ GetMetricStatisticsInput.add_member(:period, Shapes::ShapeRef.new(shape: Period, required: true, location_name: "Period"))
184
+ GetMetricStatisticsInput.add_member(:statistics, Shapes::ShapeRef.new(shape: Statistics, location_name: "Statistics"))
185
+ GetMetricStatisticsInput.add_member(:extended_statistics, Shapes::ShapeRef.new(shape: ExtendedStatistics, location_name: "ExtendedStatistics"))
186
+ GetMetricStatisticsInput.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit"))
187
+ GetMetricStatisticsInput.struct_class = Types::GetMetricStatisticsInput
188
+
189
+ GetMetricStatisticsOutput.add_member(:label, Shapes::ShapeRef.new(shape: MetricLabel, location_name: "Label"))
190
+ GetMetricStatisticsOutput.add_member(:datapoints, Shapes::ShapeRef.new(shape: Datapoints, location_name: "Datapoints"))
191
+ GetMetricStatisticsOutput.struct_class = Types::GetMetricStatisticsOutput
192
+
193
+ ListMetricsInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace"))
194
+ ListMetricsInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName"))
195
+ ListMetricsInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: DimensionFilters, location_name: "Dimensions"))
196
+ ListMetricsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
197
+ ListMetricsInput.struct_class = Types::ListMetricsInput
198
+
199
+ ListMetricsOutput.add_member(:metrics, Shapes::ShapeRef.new(shape: Metrics, location_name: "Metrics"))
200
+ ListMetricsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
201
+ ListMetricsOutput.struct_class = Types::ListMetricsOutput
202
+
203
+ Metric.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace"))
204
+ Metric.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName"))
205
+ Metric.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
206
+ Metric.struct_class = Types::Metric
207
+
208
+ MetricAlarm.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, location_name: "AlarmName"))
209
+ MetricAlarm.add_member(:alarm_arn, Shapes::ShapeRef.new(shape: AlarmArn, location_name: "AlarmArn"))
210
+ MetricAlarm.add_member(:alarm_description, Shapes::ShapeRef.new(shape: AlarmDescription, location_name: "AlarmDescription"))
211
+ MetricAlarm.add_member(:alarm_configuration_updated_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "AlarmConfigurationUpdatedTimestamp"))
212
+ MetricAlarm.add_member(:actions_enabled, Shapes::ShapeRef.new(shape: ActionsEnabled, location_name: "ActionsEnabled"))
213
+ MetricAlarm.add_member(:ok_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "OKActions"))
214
+ MetricAlarm.add_member(:alarm_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "AlarmActions"))
215
+ MetricAlarm.add_member(:insufficient_data_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "InsufficientDataActions"))
216
+ MetricAlarm.add_member(:state_value, Shapes::ShapeRef.new(shape: StateValue, location_name: "StateValue"))
217
+ MetricAlarm.add_member(:state_reason, Shapes::ShapeRef.new(shape: StateReason, location_name: "StateReason"))
218
+ MetricAlarm.add_member(:state_reason_data, Shapes::ShapeRef.new(shape: StateReasonData, location_name: "StateReasonData"))
219
+ MetricAlarm.add_member(:state_updated_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StateUpdatedTimestamp"))
220
+ MetricAlarm.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName"))
221
+ MetricAlarm.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace"))
222
+ MetricAlarm.add_member(:statistic, Shapes::ShapeRef.new(shape: Statistic, location_name: "Statistic"))
223
+ MetricAlarm.add_member(:extended_statistic, Shapes::ShapeRef.new(shape: ExtendedStatistic, location_name: "ExtendedStatistic"))
224
+ MetricAlarm.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
225
+ MetricAlarm.add_member(:period, Shapes::ShapeRef.new(shape: Period, location_name: "Period"))
226
+ MetricAlarm.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit"))
227
+ MetricAlarm.add_member(:evaluation_periods, Shapes::ShapeRef.new(shape: EvaluationPeriods, location_name: "EvaluationPeriods"))
228
+ MetricAlarm.add_member(:threshold, Shapes::ShapeRef.new(shape: Threshold, location_name: "Threshold"))
229
+ MetricAlarm.add_member(:comparison_operator, Shapes::ShapeRef.new(shape: ComparisonOperator, location_name: "ComparisonOperator"))
230
+ MetricAlarm.add_member(:treat_missing_data, Shapes::ShapeRef.new(shape: TreatMissingData, location_name: "TreatMissingData"))
231
+ MetricAlarm.add_member(:evaluate_low_sample_count_percentile, Shapes::ShapeRef.new(shape: EvaluateLowSampleCountPercentile, location_name: "EvaluateLowSampleCountPercentile"))
232
+ MetricAlarm.struct_class = Types::MetricAlarm
233
+
234
+ MetricAlarms.member = Shapes::ShapeRef.new(shape: MetricAlarm)
235
+
236
+ MetricData.member = Shapes::ShapeRef.new(shape: MetricDatum)
237
+
238
+ MetricDatum.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricName"))
239
+ MetricDatum.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
240
+ MetricDatum.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Timestamp"))
241
+ MetricDatum.add_member(:value, Shapes::ShapeRef.new(shape: DatapointValue, location_name: "Value"))
242
+ MetricDatum.add_member(:statistic_values, Shapes::ShapeRef.new(shape: StatisticSet, location_name: "StatisticValues"))
243
+ MetricDatum.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit"))
244
+ MetricDatum.struct_class = Types::MetricDatum
245
+
246
+ Metrics.member = Shapes::ShapeRef.new(shape: Metric)
247
+
248
+ PutMetricAlarmInput.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, required: true, location_name: "AlarmName"))
249
+ PutMetricAlarmInput.add_member(:alarm_description, Shapes::ShapeRef.new(shape: AlarmDescription, location_name: "AlarmDescription"))
250
+ PutMetricAlarmInput.add_member(:actions_enabled, Shapes::ShapeRef.new(shape: ActionsEnabled, location_name: "ActionsEnabled"))
251
+ PutMetricAlarmInput.add_member(:ok_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "OKActions"))
252
+ PutMetricAlarmInput.add_member(:alarm_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "AlarmActions"))
253
+ PutMetricAlarmInput.add_member(:insufficient_data_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "InsufficientDataActions"))
254
+ PutMetricAlarmInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricName"))
255
+ PutMetricAlarmInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, required: true, location_name: "Namespace"))
256
+ PutMetricAlarmInput.add_member(:statistic, Shapes::ShapeRef.new(shape: Statistic, location_name: "Statistic"))
257
+ PutMetricAlarmInput.add_member(:extended_statistic, Shapes::ShapeRef.new(shape: ExtendedStatistic, location_name: "ExtendedStatistic"))
258
+ PutMetricAlarmInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
259
+ PutMetricAlarmInput.add_member(:period, Shapes::ShapeRef.new(shape: Period, required: true, location_name: "Period"))
260
+ PutMetricAlarmInput.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit"))
261
+ PutMetricAlarmInput.add_member(:evaluation_periods, Shapes::ShapeRef.new(shape: EvaluationPeriods, required: true, location_name: "EvaluationPeriods"))
262
+ PutMetricAlarmInput.add_member(:threshold, Shapes::ShapeRef.new(shape: Threshold, required: true, location_name: "Threshold"))
263
+ PutMetricAlarmInput.add_member(:comparison_operator, Shapes::ShapeRef.new(shape: ComparisonOperator, required: true, location_name: "ComparisonOperator"))
264
+ PutMetricAlarmInput.add_member(:treat_missing_data, Shapes::ShapeRef.new(shape: TreatMissingData, location_name: "TreatMissingData"))
265
+ PutMetricAlarmInput.add_member(:evaluate_low_sample_count_percentile, Shapes::ShapeRef.new(shape: EvaluateLowSampleCountPercentile, location_name: "EvaluateLowSampleCountPercentile"))
266
+ PutMetricAlarmInput.struct_class = Types::PutMetricAlarmInput
267
+
268
+ PutMetricDataInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, required: true, location_name: "Namespace"))
269
+ PutMetricDataInput.add_member(:metric_data, Shapes::ShapeRef.new(shape: MetricData, required: true, location_name: "MetricData"))
270
+ PutMetricDataInput.struct_class = Types::PutMetricDataInput
271
+
272
+ ResourceList.member = Shapes::ShapeRef.new(shape: ResourceName)
273
+
274
+ SetAlarmStateInput.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, required: true, location_name: "AlarmName"))
275
+ SetAlarmStateInput.add_member(:state_value, Shapes::ShapeRef.new(shape: StateValue, required: true, location_name: "StateValue"))
276
+ SetAlarmStateInput.add_member(:state_reason, Shapes::ShapeRef.new(shape: StateReason, required: true, location_name: "StateReason"))
277
+ SetAlarmStateInput.add_member(:state_reason_data, Shapes::ShapeRef.new(shape: StateReasonData, location_name: "StateReasonData"))
278
+ SetAlarmStateInput.struct_class = Types::SetAlarmStateInput
279
+
280
+ StatisticSet.add_member(:sample_count, Shapes::ShapeRef.new(shape: DatapointValue, required: true, location_name: "SampleCount"))
281
+ StatisticSet.add_member(:sum, Shapes::ShapeRef.new(shape: DatapointValue, required: true, location_name: "Sum"))
282
+ StatisticSet.add_member(:minimum, Shapes::ShapeRef.new(shape: DatapointValue, required: true, location_name: "Minimum"))
283
+ StatisticSet.add_member(:maximum, Shapes::ShapeRef.new(shape: DatapointValue, required: true, location_name: "Maximum"))
284
+ StatisticSet.struct_class = Types::StatisticSet
285
+
286
+ Statistics.member = Shapes::ShapeRef.new(shape: Statistic)
287
+
418
288
 
289
+ # @api private
290
+ API = Seahorse::Model::Api.new.tap do |api|
291
+
292
+ api.version = "2010-08-01"
293
+
294
+ api.metadata = {
295
+ "endpointPrefix" => "monitoring",
296
+ "protocol" => "query",
297
+ "serviceFullName" => "Amazon CloudWatch",
298
+ "signatureVersion" => "v4",
299
+ "xmlNamespace" => "http://monitoring.amazonaws.com/doc/2010-08-01/",
300
+ }
301
+
302
+ api.add_operation(:delete_alarms, Seahorse::Model::Operation.new.tap do |o|
303
+ o.name = "DeleteAlarms"
304
+ o.http_method = "POST"
305
+ o.http_request_uri = "/"
306
+ o.input = Shapes::ShapeRef.new(shape: DeleteAlarmsInput)
307
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
308
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFound)
309
+ end)
310
+
311
+ api.add_operation(:describe_alarm_history, Seahorse::Model::Operation.new.tap do |o|
312
+ o.name = "DescribeAlarmHistory"
313
+ o.http_method = "POST"
314
+ o.http_request_uri = "/"
315
+ o.input = Shapes::ShapeRef.new(shape: DescribeAlarmHistoryInput)
316
+ o.output = Shapes::ShapeRef.new(shape: DescribeAlarmHistoryOutput)
317
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
318
+ o[:pager] = Aws::Pager.new(
319
+ limit_key: "max_records",
320
+ tokens: {
321
+ "next_token" => "next_token"
322
+ }
323
+ )
324
+ end)
325
+
326
+ api.add_operation(:describe_alarms, Seahorse::Model::Operation.new.tap do |o|
327
+ o.name = "DescribeAlarms"
328
+ o.http_method = "POST"
329
+ o.http_request_uri = "/"
330
+ o.input = Shapes::ShapeRef.new(shape: DescribeAlarmsInput)
331
+ o.output = Shapes::ShapeRef.new(shape: DescribeAlarmsOutput)
332
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
333
+ o[:pager] = Aws::Pager.new(
334
+ limit_key: "max_records",
335
+ tokens: {
336
+ "next_token" => "next_token"
337
+ }
338
+ )
339
+ end)
340
+
341
+ api.add_operation(:describe_alarms_for_metric, Seahorse::Model::Operation.new.tap do |o|
342
+ o.name = "DescribeAlarmsForMetric"
343
+ o.http_method = "POST"
344
+ o.http_request_uri = "/"
345
+ o.input = Shapes::ShapeRef.new(shape: DescribeAlarmsForMetricInput)
346
+ o.output = Shapes::ShapeRef.new(shape: DescribeAlarmsForMetricOutput)
347
+ end)
348
+
349
+ api.add_operation(:disable_alarm_actions, Seahorse::Model::Operation.new.tap do |o|
350
+ o.name = "DisableAlarmActions"
351
+ o.http_method = "POST"
352
+ o.http_request_uri = "/"
353
+ o.input = Shapes::ShapeRef.new(shape: DisableAlarmActionsInput)
354
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
355
+ end)
356
+
357
+ api.add_operation(:enable_alarm_actions, Seahorse::Model::Operation.new.tap do |o|
358
+ o.name = "EnableAlarmActions"
359
+ o.http_method = "POST"
360
+ o.http_request_uri = "/"
361
+ o.input = Shapes::ShapeRef.new(shape: EnableAlarmActionsInput)
362
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
363
+ end)
364
+
365
+ api.add_operation(:get_metric_statistics, Seahorse::Model::Operation.new.tap do |o|
366
+ o.name = "GetMetricStatistics"
367
+ o.http_method = "POST"
368
+ o.http_request_uri = "/"
369
+ o.input = Shapes::ShapeRef.new(shape: GetMetricStatisticsInput)
370
+ o.output = Shapes::ShapeRef.new(shape: GetMetricStatisticsOutput)
371
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
372
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
373
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
374
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
375
+ end)
376
+
377
+ api.add_operation(:list_metrics, Seahorse::Model::Operation.new.tap do |o|
378
+ o.name = "ListMetrics"
379
+ o.http_method = "POST"
380
+ o.http_request_uri = "/"
381
+ o.input = Shapes::ShapeRef.new(shape: ListMetricsInput)
382
+ o.output = Shapes::ShapeRef.new(shape: ListMetricsOutput)
383
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
384
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
385
+ o[:pager] = Aws::Pager.new(
386
+ tokens: {
387
+ "next_token" => "next_token"
388
+ }
389
+ )
390
+ end)
391
+
392
+ api.add_operation(:put_metric_alarm, Seahorse::Model::Operation.new.tap do |o|
393
+ o.name = "PutMetricAlarm"
394
+ o.http_method = "POST"
395
+ o.http_request_uri = "/"
396
+ o.input = Shapes::ShapeRef.new(shape: PutMetricAlarmInput)
397
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
398
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededFault)
399
+ end)
400
+
401
+ api.add_operation(:put_metric_data, Seahorse::Model::Operation.new.tap do |o|
402
+ o.name = "PutMetricData"
403
+ o.http_method = "POST"
404
+ o.http_request_uri = "/"
405
+ o.input = Shapes::ShapeRef.new(shape: PutMetricDataInput)
406
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
407
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
408
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
409
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
410
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
411
+ end)
412
+
413
+ api.add_operation(:set_alarm_state, Seahorse::Model::Operation.new.tap do |o|
414
+ o.name = "SetAlarmState"
415
+ o.http_method = "POST"
416
+ o.http_request_uri = "/"
417
+ o.input = Shapes::ShapeRef.new(shape: SetAlarmStateInput)
418
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
419
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFound)
420
+ o.errors << Shapes::ShapeRef.new(shape: InvalidFormatFault)
421
+ end)
419
422
  end
423
+
420
424
  end
421
425
  end