aws-sdk-cloudwatch 1.50.0 → 1.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,6 +13,7 @@ module Aws::CloudWatch
13
13
 
14
14
  include Seahorse::Model
15
15
 
16
+ AccountId = Shapes::StringShape.new(name: 'AccountId')
16
17
  ActionPrefix = Shapes::StringShape.new(name: 'ActionPrefix')
17
18
  ActionsEnabled = Shapes::BooleanShape.new(name: 'ActionsEnabled')
18
19
  AlarmArn = Shapes::StringShape.new(name: 'AlarmArn')
@@ -66,6 +67,8 @@ module Aws::CloudWatch
66
67
  DeleteDashboardsOutput = Shapes::StructureShape.new(name: 'DeleteDashboardsOutput')
67
68
  DeleteInsightRulesInput = Shapes::StructureShape.new(name: 'DeleteInsightRulesInput')
68
69
  DeleteInsightRulesOutput = Shapes::StructureShape.new(name: 'DeleteInsightRulesOutput')
70
+ DeleteMetricStreamInput = Shapes::StructureShape.new(name: 'DeleteMetricStreamInput')
71
+ DeleteMetricStreamOutput = Shapes::StructureShape.new(name: 'DeleteMetricStreamOutput')
69
72
  DescribeAlarmHistoryInput = Shapes::StructureShape.new(name: 'DescribeAlarmHistoryInput')
70
73
  DescribeAlarmHistoryOutput = Shapes::StructureShape.new(name: 'DescribeAlarmHistoryOutput')
71
74
  DescribeAlarmsForMetricInput = Shapes::StructureShape.new(name: 'DescribeAlarmsForMetricInput')
@@ -108,6 +111,8 @@ module Aws::CloudWatch
108
111
  GetMetricDataOutput = Shapes::StructureShape.new(name: 'GetMetricDataOutput')
109
112
  GetMetricStatisticsInput = Shapes::StructureShape.new(name: 'GetMetricStatisticsInput')
110
113
  GetMetricStatisticsOutput = Shapes::StructureShape.new(name: 'GetMetricStatisticsOutput')
114
+ GetMetricStreamInput = Shapes::StructureShape.new(name: 'GetMetricStreamInput')
115
+ GetMetricStreamOutput = Shapes::StructureShape.new(name: 'GetMetricStreamOutput')
111
116
  GetMetricWidgetImageInput = Shapes::StructureShape.new(name: 'GetMetricWidgetImageInput')
112
117
  GetMetricWidgetImageOutput = Shapes::StructureShape.new(name: 'GetMetricWidgetImageOutput')
113
118
  HistoryData = Shapes::StringShape.new(name: 'HistoryData')
@@ -149,6 +154,9 @@ module Aws::CloudWatch
149
154
  LimitExceededFault = Shapes::StructureShape.new(name: 'LimitExceededFault')
150
155
  ListDashboardsInput = Shapes::StructureShape.new(name: 'ListDashboardsInput')
151
156
  ListDashboardsOutput = Shapes::StructureShape.new(name: 'ListDashboardsOutput')
157
+ ListMetricStreamsInput = Shapes::StructureShape.new(name: 'ListMetricStreamsInput')
158
+ ListMetricStreamsMaxResults = Shapes::IntegerShape.new(name: 'ListMetricStreamsMaxResults')
159
+ ListMetricStreamsOutput = Shapes::StructureShape.new(name: 'ListMetricStreamsOutput')
152
160
  ListMetricsInput = Shapes::StructureShape.new(name: 'ListMetricsInput')
153
161
  ListMetricsOutput = Shapes::StructureShape.new(name: 'ListMetricsOutput')
154
162
  ListTagsForResourceInput = Shapes::StructureShape.new(name: 'ListTagsForResourceInput')
@@ -174,6 +182,14 @@ module Aws::CloudWatch
174
182
  MetricLabel = Shapes::StringShape.new(name: 'MetricLabel')
175
183
  MetricName = Shapes::StringShape.new(name: 'MetricName')
176
184
  MetricStat = Shapes::StructureShape.new(name: 'MetricStat')
185
+ MetricStreamEntries = Shapes::ListShape.new(name: 'MetricStreamEntries')
186
+ MetricStreamEntry = Shapes::StructureShape.new(name: 'MetricStreamEntry')
187
+ MetricStreamFilter = Shapes::StructureShape.new(name: 'MetricStreamFilter')
188
+ MetricStreamFilters = Shapes::ListShape.new(name: 'MetricStreamFilters')
189
+ MetricStreamName = Shapes::StringShape.new(name: 'MetricStreamName')
190
+ MetricStreamNames = Shapes::ListShape.new(name: 'MetricStreamNames')
191
+ MetricStreamOutputFormat = Shapes::StringShape.new(name: 'MetricStreamOutputFormat')
192
+ MetricStreamState = Shapes::StringShape.new(name: 'MetricStreamState')
177
193
  MetricWidget = Shapes::StringShape.new(name: 'MetricWidget')
178
194
  MetricWidgetImage = Shapes::BlobShape.new(name: 'MetricWidgetImage')
179
195
  Metrics = Shapes::ListShape.new(name: 'Metrics')
@@ -192,6 +208,8 @@ module Aws::CloudWatch
192
208
  PutInsightRuleOutput = Shapes::StructureShape.new(name: 'PutInsightRuleOutput')
193
209
  PutMetricAlarmInput = Shapes::StructureShape.new(name: 'PutMetricAlarmInput')
194
210
  PutMetricDataInput = Shapes::StructureShape.new(name: 'PutMetricDataInput')
211
+ PutMetricStreamInput = Shapes::StructureShape.new(name: 'PutMetricStreamInput')
212
+ PutMetricStreamOutput = Shapes::StructureShape.new(name: 'PutMetricStreamOutput')
195
213
  Range = Shapes::StructureShape.new(name: 'Range')
196
214
  RecentlyActive = Shapes::StringShape.new(name: 'RecentlyActive')
197
215
  ResourceId = Shapes::StringShape.new(name: 'ResourceId')
@@ -205,6 +223,8 @@ module Aws::CloudWatch
205
223
  SetAlarmStateInput = Shapes::StructureShape.new(name: 'SetAlarmStateInput')
206
224
  Size = Shapes::IntegerShape.new(name: 'Size')
207
225
  StandardUnit = Shapes::StringShape.new(name: 'StandardUnit')
226
+ StartMetricStreamsInput = Shapes::StructureShape.new(name: 'StartMetricStreamsInput')
227
+ StartMetricStreamsOutput = Shapes::StructureShape.new(name: 'StartMetricStreamsOutput')
208
228
  Stat = Shapes::StringShape.new(name: 'Stat')
209
229
  StateReason = Shapes::StringShape.new(name: 'StateReason')
210
230
  StateReasonData = Shapes::StringShape.new(name: 'StateReasonData')
@@ -213,6 +233,8 @@ module Aws::CloudWatch
213
233
  StatisticSet = Shapes::StructureShape.new(name: 'StatisticSet')
214
234
  Statistics = Shapes::ListShape.new(name: 'Statistics')
215
235
  StatusCode = Shapes::StringShape.new(name: 'StatusCode')
236
+ StopMetricStreamsInput = Shapes::StructureShape.new(name: 'StopMetricStreamsInput')
237
+ StopMetricStreamsOutput = Shapes::StructureShape.new(name: 'StopMetricStreamsOutput')
216
238
  StorageResolution = Shapes::IntegerShape.new(name: 'StorageResolution')
217
239
  Tag = Shapes::StructureShape.new(name: 'Tag')
218
240
  TagKey = Shapes::StringShape.new(name: 'TagKey')
@@ -344,6 +366,11 @@ module Aws::CloudWatch
344
366
  DeleteInsightRulesOutput.add_member(:failures, Shapes::ShapeRef.new(shape: BatchFailures, location_name: "Failures"))
345
367
  DeleteInsightRulesOutput.struct_class = Types::DeleteInsightRulesOutput
346
368
 
369
+ DeleteMetricStreamInput.add_member(:name, Shapes::ShapeRef.new(shape: MetricStreamName, required: true, location_name: "Name"))
370
+ DeleteMetricStreamInput.struct_class = Types::DeleteMetricStreamInput
371
+
372
+ DeleteMetricStreamOutput.struct_class = Types::DeleteMetricStreamOutput
373
+
347
374
  DescribeAlarmHistoryInput.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, location_name: "AlarmName"))
348
375
  DescribeAlarmHistoryInput.add_member(:alarm_types, Shapes::ShapeRef.new(shape: AlarmTypes, location_name: "AlarmTypes"))
349
376
  DescribeAlarmHistoryInput.add_member(:history_item_type, Shapes::ShapeRef.new(shape: HistoryItemType, location_name: "HistoryItemType"))
@@ -491,6 +518,21 @@ module Aws::CloudWatch
491
518
  GetMetricStatisticsOutput.add_member(:datapoints, Shapes::ShapeRef.new(shape: Datapoints, location_name: "Datapoints"))
492
519
  GetMetricStatisticsOutput.struct_class = Types::GetMetricStatisticsOutput
493
520
 
521
+ GetMetricStreamInput.add_member(:name, Shapes::ShapeRef.new(shape: MetricStreamName, required: true, location_name: "Name"))
522
+ GetMetricStreamInput.struct_class = Types::GetMetricStreamInput
523
+
524
+ GetMetricStreamOutput.add_member(:arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "Arn"))
525
+ GetMetricStreamOutput.add_member(:name, Shapes::ShapeRef.new(shape: MetricStreamName, location_name: "Name"))
526
+ GetMetricStreamOutput.add_member(:include_filters, Shapes::ShapeRef.new(shape: MetricStreamFilters, location_name: "IncludeFilters"))
527
+ GetMetricStreamOutput.add_member(:exclude_filters, Shapes::ShapeRef.new(shape: MetricStreamFilters, location_name: "ExcludeFilters"))
528
+ GetMetricStreamOutput.add_member(:firehose_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "FirehoseArn"))
529
+ GetMetricStreamOutput.add_member(:role_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "RoleArn"))
530
+ GetMetricStreamOutput.add_member(:state, Shapes::ShapeRef.new(shape: MetricStreamState, location_name: "State"))
531
+ GetMetricStreamOutput.add_member(:creation_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationDate"))
532
+ GetMetricStreamOutput.add_member(:last_update_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastUpdateDate"))
533
+ GetMetricStreamOutput.add_member(:output_format, Shapes::ShapeRef.new(shape: MetricStreamOutputFormat, location_name: "OutputFormat"))
534
+ GetMetricStreamOutput.struct_class = Types::GetMetricStreamOutput
535
+
494
536
  GetMetricWidgetImageInput.add_member(:metric_widget, Shapes::ShapeRef.new(shape: MetricWidget, required: true, location_name: "MetricWidget"))
495
537
  GetMetricWidgetImageInput.add_member(:output_format, Shapes::ShapeRef.new(shape: OutputFormat, location_name: "OutputFormat"))
496
538
  GetMetricWidgetImageInput.struct_class = Types::GetMetricWidgetImageInput
@@ -570,6 +612,14 @@ module Aws::CloudWatch
570
612
  ListDashboardsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
571
613
  ListDashboardsOutput.struct_class = Types::ListDashboardsOutput
572
614
 
615
+ ListMetricStreamsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
616
+ ListMetricStreamsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListMetricStreamsMaxResults, location_name: "MaxResults"))
617
+ ListMetricStreamsInput.struct_class = Types::ListMetricStreamsInput
618
+
619
+ ListMetricStreamsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
620
+ ListMetricStreamsOutput.add_member(:entries, Shapes::ShapeRef.new(shape: MetricStreamEntries, location_name: "Entries"))
621
+ ListMetricStreamsOutput.struct_class = Types::ListMetricStreamsOutput
622
+
573
623
  ListMetricsInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace"))
574
624
  ListMetricsInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName"))
575
625
  ListMetricsInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: DimensionFilters, location_name: "Dimensions"))
@@ -637,6 +687,7 @@ module Aws::CloudWatch
637
687
  MetricDataQuery.add_member(:label, Shapes::ShapeRef.new(shape: MetricLabel, location_name: "Label"))
638
688
  MetricDataQuery.add_member(:return_data, Shapes::ShapeRef.new(shape: ReturnData, location_name: "ReturnData"))
639
689
  MetricDataQuery.add_member(:period, Shapes::ShapeRef.new(shape: Period, location_name: "Period"))
690
+ MetricDataQuery.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
640
691
  MetricDataQuery.struct_class = Types::MetricDataQuery
641
692
 
642
693
  MetricDataResult.add_member(:id, Shapes::ShapeRef.new(shape: MetricId, location_name: "Id"))
@@ -668,6 +719,24 @@ module Aws::CloudWatch
668
719
  MetricStat.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit"))
669
720
  MetricStat.struct_class = Types::MetricStat
670
721
 
722
+ MetricStreamEntries.member = Shapes::ShapeRef.new(shape: MetricStreamEntry)
723
+
724
+ MetricStreamEntry.add_member(:arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "Arn"))
725
+ MetricStreamEntry.add_member(:creation_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationDate"))
726
+ MetricStreamEntry.add_member(:last_update_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastUpdateDate"))
727
+ MetricStreamEntry.add_member(:name, Shapes::ShapeRef.new(shape: MetricStreamName, location_name: "Name"))
728
+ MetricStreamEntry.add_member(:firehose_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "FirehoseArn"))
729
+ MetricStreamEntry.add_member(:state, Shapes::ShapeRef.new(shape: MetricStreamState, location_name: "State"))
730
+ MetricStreamEntry.add_member(:output_format, Shapes::ShapeRef.new(shape: MetricStreamOutputFormat, location_name: "OutputFormat"))
731
+ MetricStreamEntry.struct_class = Types::MetricStreamEntry
732
+
733
+ MetricStreamFilter.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace"))
734
+ MetricStreamFilter.struct_class = Types::MetricStreamFilter
735
+
736
+ MetricStreamFilters.member = Shapes::ShapeRef.new(shape: MetricStreamFilter)
737
+
738
+ MetricStreamNames.member = Shapes::ShapeRef.new(shape: MetricStreamName)
739
+
671
740
  Metrics.member = Shapes::ShapeRef.new(shape: Metric)
672
741
 
673
742
  MissingRequiredParameterException.add_member(:message, Shapes::ShapeRef.new(shape: AwsQueryErrorMessage, location_name: "message"))
@@ -741,6 +810,18 @@ module Aws::CloudWatch
741
810
  PutMetricDataInput.add_member(:metric_data, Shapes::ShapeRef.new(shape: MetricData, required: true, location_name: "MetricData"))
742
811
  PutMetricDataInput.struct_class = Types::PutMetricDataInput
743
812
 
813
+ PutMetricStreamInput.add_member(:name, Shapes::ShapeRef.new(shape: MetricStreamName, required: true, location_name: "Name"))
814
+ PutMetricStreamInput.add_member(:include_filters, Shapes::ShapeRef.new(shape: MetricStreamFilters, location_name: "IncludeFilters"))
815
+ PutMetricStreamInput.add_member(:exclude_filters, Shapes::ShapeRef.new(shape: MetricStreamFilters, location_name: "ExcludeFilters"))
816
+ PutMetricStreamInput.add_member(:firehose_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "FirehoseArn"))
817
+ PutMetricStreamInput.add_member(:role_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "RoleArn"))
818
+ PutMetricStreamInput.add_member(:output_format, Shapes::ShapeRef.new(shape: MetricStreamOutputFormat, required: true, location_name: "OutputFormat"))
819
+ PutMetricStreamInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
820
+ PutMetricStreamInput.struct_class = Types::PutMetricStreamInput
821
+
822
+ PutMetricStreamOutput.add_member(:arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "Arn"))
823
+ PutMetricStreamOutput.struct_class = Types::PutMetricStreamOutput
824
+
744
825
  Range.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StartTime"))
745
826
  Range.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "EndTime"))
746
827
  Range.struct_class = Types::Range
@@ -760,6 +841,11 @@ module Aws::CloudWatch
760
841
  SetAlarmStateInput.add_member(:state_reason_data, Shapes::ShapeRef.new(shape: StateReasonData, location_name: "StateReasonData"))
761
842
  SetAlarmStateInput.struct_class = Types::SetAlarmStateInput
762
843
 
844
+ StartMetricStreamsInput.add_member(:names, Shapes::ShapeRef.new(shape: MetricStreamNames, required: true, location_name: "Names"))
845
+ StartMetricStreamsInput.struct_class = Types::StartMetricStreamsInput
846
+
847
+ StartMetricStreamsOutput.struct_class = Types::StartMetricStreamsOutput
848
+
763
849
  StatisticSet.add_member(:sample_count, Shapes::ShapeRef.new(shape: DatapointValue, required: true, location_name: "SampleCount"))
764
850
  StatisticSet.add_member(:sum, Shapes::ShapeRef.new(shape: DatapointValue, required: true, location_name: "Sum"))
765
851
  StatisticSet.add_member(:minimum, Shapes::ShapeRef.new(shape: DatapointValue, required: true, location_name: "Minimum"))
@@ -768,6 +854,11 @@ module Aws::CloudWatch
768
854
 
769
855
  Statistics.member = Shapes::ShapeRef.new(shape: Statistic)
770
856
 
857
+ StopMetricStreamsInput.add_member(:names, Shapes::ShapeRef.new(shape: MetricStreamNames, required: true, location_name: "Names"))
858
+ StopMetricStreamsInput.struct_class = Types::StopMetricStreamsInput
859
+
860
+ StopMetricStreamsOutput.struct_class = Types::StopMetricStreamsOutput
861
+
771
862
  Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
772
863
  Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value"))
773
864
  Tag.struct_class = Types::Tag
@@ -852,6 +943,17 @@ module Aws::CloudWatch
852
943
  o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
853
944
  end)
854
945
 
946
+ api.add_operation(:delete_metric_stream, Seahorse::Model::Operation.new.tap do |o|
947
+ o.name = "DeleteMetricStream"
948
+ o.http_method = "POST"
949
+ o.http_request_uri = "/"
950
+ o.input = Shapes::ShapeRef.new(shape: DeleteMetricStreamInput)
951
+ o.output = Shapes::ShapeRef.new(shape: DeleteMetricStreamOutput)
952
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
953
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
954
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
955
+ end)
956
+
855
957
  api.add_operation(:describe_alarm_history, Seahorse::Model::Operation.new.tap do |o|
856
958
  o.name = "DescribeAlarmHistory"
857
959
  o.http_method = "POST"
@@ -1002,6 +1104,19 @@ module Aws::CloudWatch
1002
1104
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
1003
1105
  end)
1004
1106
 
1107
+ api.add_operation(:get_metric_stream, Seahorse::Model::Operation.new.tap do |o|
1108
+ o.name = "GetMetricStream"
1109
+ o.http_method = "POST"
1110
+ o.http_request_uri = "/"
1111
+ o.input = Shapes::ShapeRef.new(shape: GetMetricStreamInput)
1112
+ o.output = Shapes::ShapeRef.new(shape: GetMetricStreamOutput)
1113
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1114
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
1115
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
1116
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
1117
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
1118
+ end)
1119
+
1005
1120
  api.add_operation(:get_metric_widget_image, Seahorse::Model::Operation.new.tap do |o|
1006
1121
  o.name = "GetMetricWidgetImage"
1007
1122
  o.http_method = "POST"
@@ -1025,6 +1140,24 @@ module Aws::CloudWatch
1025
1140
  )
1026
1141
  end)
1027
1142
 
1143
+ api.add_operation(:list_metric_streams, Seahorse::Model::Operation.new.tap do |o|
1144
+ o.name = "ListMetricStreams"
1145
+ o.http_method = "POST"
1146
+ o.http_request_uri = "/"
1147
+ o.input = Shapes::ShapeRef.new(shape: ListMetricStreamsInput)
1148
+ o.output = Shapes::ShapeRef.new(shape: ListMetricStreamsOutput)
1149
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
1150
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
1151
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
1152
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
1153
+ o[:pager] = Aws::Pager.new(
1154
+ limit_key: "max_results",
1155
+ tokens: {
1156
+ "next_token" => "next_token"
1157
+ }
1158
+ )
1159
+ end)
1160
+
1028
1161
  api.add_operation(:list_metrics, Seahorse::Model::Operation.new.tap do |o|
1029
1162
  o.name = "ListMetrics"
1030
1163
  o.http_method = "POST"
@@ -1114,6 +1247,19 @@ module Aws::CloudWatch
1114
1247
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
1115
1248
  end)
1116
1249
 
1250
+ api.add_operation(:put_metric_stream, Seahorse::Model::Operation.new.tap do |o|
1251
+ o.name = "PutMetricStream"
1252
+ o.http_method = "POST"
1253
+ o.http_request_uri = "/"
1254
+ o.input = Shapes::ShapeRef.new(shape: PutMetricStreamInput)
1255
+ o.output = Shapes::ShapeRef.new(shape: PutMetricStreamOutput)
1256
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
1257
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
1258
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
1259
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
1260
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
1261
+ end)
1262
+
1117
1263
  api.add_operation(:set_alarm_state, Seahorse::Model::Operation.new.tap do |o|
1118
1264
  o.name = "SetAlarmState"
1119
1265
  o.http_method = "POST"
@@ -1124,6 +1270,28 @@ module Aws::CloudWatch
1124
1270
  o.errors << Shapes::ShapeRef.new(shape: InvalidFormatFault)
1125
1271
  end)
1126
1272
 
1273
+ api.add_operation(:start_metric_streams, Seahorse::Model::Operation.new.tap do |o|
1274
+ o.name = "StartMetricStreams"
1275
+ o.http_method = "POST"
1276
+ o.http_request_uri = "/"
1277
+ o.input = Shapes::ShapeRef.new(shape: StartMetricStreamsInput)
1278
+ o.output = Shapes::ShapeRef.new(shape: StartMetricStreamsOutput)
1279
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
1280
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
1281
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
1282
+ end)
1283
+
1284
+ api.add_operation(:stop_metric_streams, Seahorse::Model::Operation.new.tap do |o|
1285
+ o.name = "StopMetricStreams"
1286
+ o.http_method = "POST"
1287
+ o.http_request_uri = "/"
1288
+ o.input = Shapes::ShapeRef.new(shape: StopMetricStreamsInput)
1289
+ o.output = Shapes::ShapeRef.new(shape: StopMetricStreamsOutput)
1290
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
1291
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
1292
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
1293
+ end)
1294
+
1127
1295
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
1128
1296
  o.name = "TagResource"
1129
1297
  o.http_method = "POST"
@@ -2,7 +2,7 @@
2
2
  # WARNING ABOUT GENERATED CODE
3
3
  #
4
4
  # This file is generated. See the contributing for info on making contributions:
5
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
6
6
  #
7
7
  # WARNING ABOUT GENERATED CODE
8
8
 
@@ -351,6 +351,7 @@ module Aws::CloudWatch
351
351
  # label: "MetricLabel",
352
352
  # return_data: false,
353
353
  # period: 1,
354
+ # account_id: "AccountId",
354
355
  # },
355
356
  # ],
356
357
  # tags: [
@@ -388,6 +389,8 @@ module Aws::CloudWatch
388
389
  # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
389
390
  # \|
390
391
  # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
392
+ # \|
393
+ # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0`
391
394
  # @option options [Array<String>] :alarm_actions
392
395
  # The actions to execute when this alarm transitions to the `ALARM`
393
396
  # state from any other state. Each action is specified as an Amazon
@@ -399,7 +402,8 @@ module Aws::CloudWatch
399
402
  # `arn:aws:automate:region:ec2:reboot` \|
400
403
  # `arn:aws:sns:region:account-id:sns-topic-name ` \|
401
404
  # `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
402
- # ` \| `arn:aws:ssm:region:account-id:opsitem:severity `
405
+ # ` \| `arn:aws:ssm:region:account-id:opsitem:severity ` \|
406
+ # `arn:aws:ssm-incidents::account-id:response-plan:response-plan-name `
403
407
  #
404
408
  # Valid Values (for use with IAM roles):
405
409
  # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0`
@@ -407,6 +411,8 @@ module Aws::CloudWatch
407
411
  # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
408
412
  # \|
409
413
  # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
414
+ # \|
415
+ # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0`
410
416
  # @option options [Array<String>] :insufficient_data_actions
411
417
  # The actions to execute when this alarm transitions to the
412
418
  # `INSUFFICIENT_DATA` state from any other state. Each action is
@@ -486,6 +486,29 @@ module Aws::CloudWatch
486
486
  include Aws::Structure
487
487
  end
488
488
 
489
+ # @note When making an API call, you may pass DeleteMetricStreamInput
490
+ # data as a hash:
491
+ #
492
+ # {
493
+ # name: "MetricStreamName", # required
494
+ # }
495
+ #
496
+ # @!attribute [rw] name
497
+ # The name of the metric stream to delete.
498
+ # @return [String]
499
+ #
500
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteMetricStreamInput AWS API Documentation
501
+ #
502
+ class DeleteMetricStreamInput < Struct.new(
503
+ :name)
504
+ SENSITIVE = []
505
+ include Aws::Structure
506
+ end
507
+
508
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteMetricStreamOutput AWS API Documentation
509
+ #
510
+ class DeleteMetricStreamOutput < Aws::EmptyStructure; end
511
+
489
512
  # @note When making an API call, you may pass DescribeAlarmHistoryInput
490
513
  # data as a hash:
491
514
  #
@@ -922,13 +945,13 @@ module Aws::CloudWatch
922
945
  # }
923
946
  #
924
947
  # @!attribute [rw] name
925
- # The name of the dimension. Dimension names cannot contain blank
926
- # spaces or non-ASCII characters.
948
+ # The name of the dimension. Dimension names must contain only ASCII
949
+ # characters and must include at least one non-whitespace character.
927
950
  # @return [String]
928
951
  #
929
952
  # @!attribute [rw] value
930
- # The value of the dimension. Dimension values cannot contain blank
931
- # spaces or non-ASCII characters.
953
+ # The value of the dimension. Dimension values must contain only ASCII
954
+ # characters and must include at least one non-whitespace character.
932
955
  # @return [String]
933
956
  #
934
957
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/Dimension AWS API Documentation
@@ -1290,6 +1313,7 @@ module Aws::CloudWatch
1290
1313
  # label: "MetricLabel",
1291
1314
  # return_data: false,
1292
1315
  # period: 1,
1316
+ # account_id: "AccountId",
1293
1317
  # },
1294
1318
  # ],
1295
1319
  # start_time: Time.now, # required
@@ -1596,6 +1620,89 @@ module Aws::CloudWatch
1596
1620
  include Aws::Structure
1597
1621
  end
1598
1622
 
1623
+ # @note When making an API call, you may pass GetMetricStreamInput
1624
+ # data as a hash:
1625
+ #
1626
+ # {
1627
+ # name: "MetricStreamName", # required
1628
+ # }
1629
+ #
1630
+ # @!attribute [rw] name
1631
+ # The name of the metric stream to retrieve information about.
1632
+ # @return [String]
1633
+ #
1634
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStreamInput AWS API Documentation
1635
+ #
1636
+ class GetMetricStreamInput < Struct.new(
1637
+ :name)
1638
+ SENSITIVE = []
1639
+ include Aws::Structure
1640
+ end
1641
+
1642
+ # @!attribute [rw] arn
1643
+ # The ARN of the metric stream.
1644
+ # @return [String]
1645
+ #
1646
+ # @!attribute [rw] name
1647
+ # The name of the metric stream.
1648
+ # @return [String]
1649
+ #
1650
+ # @!attribute [rw] include_filters
1651
+ # If this array of metric namespaces is present, then these namespaces
1652
+ # are the only metric namespaces that are streamed by this metric
1653
+ # stream.
1654
+ # @return [Array<Types::MetricStreamFilter>]
1655
+ #
1656
+ # @!attribute [rw] exclude_filters
1657
+ # If this array of metric namespaces is present, then these namespaces
1658
+ # are the only metric namespaces that are not streamed by this metric
1659
+ # stream. In this case, all other metric namespaces in the account are
1660
+ # streamed by this metric stream.
1661
+ # @return [Array<Types::MetricStreamFilter>]
1662
+ #
1663
+ # @!attribute [rw] firehose_arn
1664
+ # The ARN of the Amazon Kinesis Firehose delivery stream that is used
1665
+ # by this metric stream.
1666
+ # @return [String]
1667
+ #
1668
+ # @!attribute [rw] role_arn
1669
+ # The ARN of the IAM role that is used by this metric stream.
1670
+ # @return [String]
1671
+ #
1672
+ # @!attribute [rw] state
1673
+ # The state of the metric stream. The possible values are `running`
1674
+ # and `stopped`.
1675
+ # @return [String]
1676
+ #
1677
+ # @!attribute [rw] creation_date
1678
+ # The date that the metric stream was created.
1679
+ # @return [Time]
1680
+ #
1681
+ # @!attribute [rw] last_update_date
1682
+ # The date of the most recent update to the metric stream's
1683
+ # configuration.
1684
+ # @return [Time]
1685
+ #
1686
+ # @!attribute [rw] output_format
1687
+ # @return [String]
1688
+ #
1689
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStreamOutput AWS API Documentation
1690
+ #
1691
+ class GetMetricStreamOutput < Struct.new(
1692
+ :arn,
1693
+ :name,
1694
+ :include_filters,
1695
+ :exclude_filters,
1696
+ :firehose_arn,
1697
+ :role_arn,
1698
+ :state,
1699
+ :creation_date,
1700
+ :last_update_date,
1701
+ :output_format)
1702
+ SENSITIVE = []
1703
+ include Aws::Structure
1704
+ end
1705
+
1599
1706
  # @note When making an API call, you may pass GetMetricWidgetImageInput
1600
1707
  # data as a hash:
1601
1708
  #
@@ -1650,10 +1757,10 @@ module Aws::CloudWatch
1650
1757
  # `</GetMetricWidgetImageResponse>`
1651
1758
  #
1652
1759
  # The `image/png` setting is intended only for custom HTTP requests.
1653
- # For most use cases, and all actions using an AWS SDK, you should use
1654
- # `png`. If you specify `image/png`, the HTTP response has a
1655
- # content-type set to `image/png`, and the body of the response is a
1656
- # PNG image.
1760
+ # For most use cases, and all actions using an Amazon Web Services
1761
+ # SDK, you should use `png`. If you specify `image/png`, the HTTP
1762
+ # response has a content-type set to `image/png`, and the body of the
1763
+ # response is a PNG image.
1657
1764
  # @return [String]
1658
1765
  #
1659
1766
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricWidgetImageInput AWS API Documentation
@@ -2038,6 +2145,51 @@ module Aws::CloudWatch
2038
2145
  include Aws::Structure
2039
2146
  end
2040
2147
 
2148
+ # @note When making an API call, you may pass ListMetricStreamsInput
2149
+ # data as a hash:
2150
+ #
2151
+ # {
2152
+ # next_token: "NextToken",
2153
+ # max_results: 1,
2154
+ # }
2155
+ #
2156
+ # @!attribute [rw] next_token
2157
+ # Include this value, if it was returned by the previous call, to get
2158
+ # the next set of metric streams.
2159
+ # @return [String]
2160
+ #
2161
+ # @!attribute [rw] max_results
2162
+ # The maximum number of results to return in one operation.
2163
+ # @return [Integer]
2164
+ #
2165
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetricStreamsInput AWS API Documentation
2166
+ #
2167
+ class ListMetricStreamsInput < Struct.new(
2168
+ :next_token,
2169
+ :max_results)
2170
+ SENSITIVE = []
2171
+ include Aws::Structure
2172
+ end
2173
+
2174
+ # @!attribute [rw] next_token
2175
+ # The token that marks the start of the next batch of returned
2176
+ # results. You can use this token in a subsequent operation to get the
2177
+ # next batch of results.
2178
+ # @return [String]
2179
+ #
2180
+ # @!attribute [rw] entries
2181
+ # The array of metric stream information.
2182
+ # @return [Array<Types::MetricStreamEntry>]
2183
+ #
2184
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetricStreamsOutput AWS API Documentation
2185
+ #
2186
+ class ListMetricStreamsOutput < Struct.new(
2187
+ :next_token,
2188
+ :entries)
2189
+ SENSITIVE = []
2190
+ include Aws::Structure
2191
+ end
2192
+
2041
2193
  # @note When making an API call, you may pass ListMetricsInput
2042
2194
  # data as a hash:
2043
2195
  #
@@ -2165,6 +2317,11 @@ module Aws::CloudWatch
2165
2317
  # A message returned by the `GetMetricData`API, including a code and a
2166
2318
  # description.
2167
2319
  #
2320
+ # If a cross-Region `GetMetricData` operation fails with a code of
2321
+ # `Forbidden` and a value of `Authentication too complex to retrieve
2322
+ # cross region data`, you can correct the problem by running the
2323
+ # `GetMetricData` operation in the same Region where the metric data is.
2324
+ #
2168
2325
  # @!attribute [rw] code
2169
2326
  # The error code or status code associated with the message.
2170
2327
  # @return [String]
@@ -2448,6 +2605,7 @@ module Aws::CloudWatch
2448
2605
  # label: "MetricLabel",
2449
2606
  # return_data: false,
2450
2607
  # period: 1,
2608
+ # account_id: "AccountId",
2451
2609
  # }
2452
2610
  #
2453
2611
  # @!attribute [rw] id
@@ -2523,6 +2681,14 @@ module Aws::CloudWatch
2523
2681
  # second`.
2524
2682
  # @return [Integer]
2525
2683
  #
2684
+ # @!attribute [rw] account_id
2685
+ # The ID of the account where the metrics are located, if this is a
2686
+ # cross-account alarm.
2687
+ #
2688
+ # Use this field only for `PutMetricAlarm` operations. It is not used
2689
+ # in `GetMetricData` operations.
2690
+ # @return [String]
2691
+ #
2526
2692
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/MetricDataQuery AWS API Documentation
2527
2693
  #
2528
2694
  class MetricDataQuery < Struct.new(
@@ -2531,7 +2697,8 @@ module Aws::CloudWatch
2531
2697
  :expression,
2532
2698
  :label,
2533
2699
  :return_data,
2534
- :period)
2700
+ :period,
2701
+ :account_id)
2535
2702
  SENSITIVE = []
2536
2703
  include Aws::Structure
2537
2704
  end
@@ -2789,6 +2956,77 @@ module Aws::CloudWatch
2789
2956
  include Aws::Structure
2790
2957
  end
2791
2958
 
2959
+ # This structure contains the configuration information about one metric
2960
+ # stream.
2961
+ #
2962
+ # @!attribute [rw] arn
2963
+ # The ARN of the metric stream.
2964
+ # @return [String]
2965
+ #
2966
+ # @!attribute [rw] creation_date
2967
+ # The date that the metric stream was originally created.
2968
+ # @return [Time]
2969
+ #
2970
+ # @!attribute [rw] last_update_date
2971
+ # The date that the configuration of this metric stream was most
2972
+ # recently updated.
2973
+ # @return [Time]
2974
+ #
2975
+ # @!attribute [rw] name
2976
+ # The name of the metric stream.
2977
+ # @return [String]
2978
+ #
2979
+ # @!attribute [rw] firehose_arn
2980
+ # The ARN of the Kinesis Firehose devlivery stream that is used for
2981
+ # this metric stream.
2982
+ # @return [String]
2983
+ #
2984
+ # @!attribute [rw] state
2985
+ # The current state of this stream. Valid values are `running` and
2986
+ # `stopped`.
2987
+ # @return [String]
2988
+ #
2989
+ # @!attribute [rw] output_format
2990
+ # The output format of this metric stream. Valid values are `json` and
2991
+ # `opentelemetry0.7`.
2992
+ # @return [String]
2993
+ #
2994
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/MetricStreamEntry AWS API Documentation
2995
+ #
2996
+ class MetricStreamEntry < Struct.new(
2997
+ :arn,
2998
+ :creation_date,
2999
+ :last_update_date,
3000
+ :name,
3001
+ :firehose_arn,
3002
+ :state,
3003
+ :output_format)
3004
+ SENSITIVE = []
3005
+ include Aws::Structure
3006
+ end
3007
+
3008
+ # This structure contains the name of one of the metric namespaces that
3009
+ # is listed in a filter of a metric stream.
3010
+ #
3011
+ # @note When making an API call, you may pass MetricStreamFilter
3012
+ # data as a hash:
3013
+ #
3014
+ # {
3015
+ # namespace: "Namespace",
3016
+ # }
3017
+ #
3018
+ # @!attribute [rw] namespace
3019
+ # The name of the metric namespace in the filter.
3020
+ # @return [String]
3021
+ #
3022
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/MetricStreamFilter AWS API Documentation
3023
+ #
3024
+ class MetricStreamFilter < Struct.new(
3025
+ :namespace)
3026
+ SENSITIVE = []
3027
+ include Aws::Structure
3028
+ end
3029
+
2792
3030
  # An input parameter that is required is missing.
2793
3031
  #
2794
3032
  # @!attribute [rw] message
@@ -3219,6 +3457,7 @@ module Aws::CloudWatch
3219
3457
  # label: "MetricLabel",
3220
3458
  # return_data: false,
3221
3459
  # period: 1,
3460
+ # account_id: "AccountId",
3222
3461
  # },
3223
3462
  # ],
3224
3463
  # tags: [
@@ -3262,6 +3501,8 @@ module Aws::CloudWatch
3262
3501
  # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
3263
3502
  # \|
3264
3503
  # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
3504
+ # \|
3505
+ # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0`
3265
3506
  # @return [Array<String>]
3266
3507
  #
3267
3508
  # @!attribute [rw] alarm_actions
@@ -3275,7 +3516,9 @@ module Aws::CloudWatch
3275
3516
  # `arn:aws:automate:region:ec2:reboot` \|
3276
3517
  # `arn:aws:sns:region:account-id:sns-topic-name ` \|
3277
3518
  # `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
3278
- # ` \| `arn:aws:ssm:region:account-id:opsitem:severity `
3519
+ # ` \| `arn:aws:ssm:region:account-id:opsitem:severity ` \|
3520
+ # `arn:aws:ssm-incidents::account-id:response-plan:response-plan-name
3521
+ # `
3279
3522
  #
3280
3523
  # Valid Values (for use with IAM roles):
3281
3524
  # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0`
@@ -3283,6 +3526,8 @@ module Aws::CloudWatch
3283
3526
  # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
3284
3527
  # \|
3285
3528
  # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
3529
+ # \|
3530
+ # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0`
3286
3531
  # @return [Array<String>]
3287
3532
  #
3288
3533
  # @!attribute [rw] insufficient_data_actions
@@ -3579,8 +3824,8 @@ module Aws::CloudWatch
3579
3824
  # @!attribute [rw] namespace
3580
3825
  # The namespace for the metric data.
3581
3826
  #
3582
- # To avoid conflicts with AWS service namespaces, you should not
3583
- # specify a namespace that begins with `AWS/`
3827
+ # To avoid conflicts with Amazon Web Services service namespaces, you
3828
+ # should not specify a namespace that begins with `AWS/`
3584
3829
  # @return [String]
3585
3830
  #
3586
3831
  # @!attribute [rw] metric_data
@@ -3597,6 +3842,134 @@ module Aws::CloudWatch
3597
3842
  include Aws::Structure
3598
3843
  end
3599
3844
 
3845
+ # @note When making an API call, you may pass PutMetricStreamInput
3846
+ # data as a hash:
3847
+ #
3848
+ # {
3849
+ # name: "MetricStreamName", # required
3850
+ # include_filters: [
3851
+ # {
3852
+ # namespace: "Namespace",
3853
+ # },
3854
+ # ],
3855
+ # exclude_filters: [
3856
+ # {
3857
+ # namespace: "Namespace",
3858
+ # },
3859
+ # ],
3860
+ # firehose_arn: "AmazonResourceName", # required
3861
+ # role_arn: "AmazonResourceName", # required
3862
+ # output_format: "json", # required, accepts json, opentelemetry0.7
3863
+ # tags: [
3864
+ # {
3865
+ # key: "TagKey", # required
3866
+ # value: "TagValue", # required
3867
+ # },
3868
+ # ],
3869
+ # }
3870
+ #
3871
+ # @!attribute [rw] name
3872
+ # If you are creating a new metric stream, this is the name for the
3873
+ # new stream. The name must be different than the names of other
3874
+ # metric streams in this account and Region.
3875
+ #
3876
+ # If you are updating a metric stream, specify the name of that stream
3877
+ # here.
3878
+ #
3879
+ # Valid characters are A-Z, a-z, 0-9, "-" and "\_".
3880
+ # @return [String]
3881
+ #
3882
+ # @!attribute [rw] include_filters
3883
+ # If you specify this parameter, the stream sends only the metrics
3884
+ # from the metric namespaces that you specify here.
3885
+ #
3886
+ # You cannot include `IncludeFilters` and `ExcludeFilters` in the same
3887
+ # operation.
3888
+ # @return [Array<Types::MetricStreamFilter>]
3889
+ #
3890
+ # @!attribute [rw] exclude_filters
3891
+ # If you specify this parameter, the stream sends metrics from all
3892
+ # metric namespaces except for the namespaces that you specify here.
3893
+ #
3894
+ # You cannot include `ExcludeFilters` and `IncludeFilters` in the same
3895
+ # operation.
3896
+ # @return [Array<Types::MetricStreamFilter>]
3897
+ #
3898
+ # @!attribute [rw] firehose_arn
3899
+ # The ARN of the Amazon Kinesis Firehose delivery stream to use for
3900
+ # this metric stream. This Amazon Kinesis Firehose delivery stream
3901
+ # must already exist and must be in the same account as the metric
3902
+ # stream.
3903
+ # @return [String]
3904
+ #
3905
+ # @!attribute [rw] role_arn
3906
+ # The ARN of an IAM role that this metric stream will use to access
3907
+ # Amazon Kinesis Firehose resources. This IAM role must already exist
3908
+ # and must be in the same account as the metric stream. This IAM role
3909
+ # must include the following permissions:
3910
+ #
3911
+ # * firehose:PutRecord
3912
+ #
3913
+ # * firehose:PutRecordBatch
3914
+ # @return [String]
3915
+ #
3916
+ # @!attribute [rw] output_format
3917
+ # The output format for the stream. Valid values are `json` and
3918
+ # `opentelemetry0.7`. For more information about metric stream output
3919
+ # formats, see [ Metric streams output formats][1].
3920
+ #
3921
+ #
3922
+ #
3923
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html
3924
+ # @return [String]
3925
+ #
3926
+ # @!attribute [rw] tags
3927
+ # A list of key-value pairs to associate with the metric stream. You
3928
+ # can associate as many as 50 tags with a metric stream.
3929
+ #
3930
+ # Tags can help you organize and categorize your resources. You can
3931
+ # also use them to scope user permissions by granting a user
3932
+ # permission to access or change only resources with certain tag
3933
+ # values.
3934
+ #
3935
+ # You can use this parameter only when you are creating a new metric
3936
+ # stream. If you are using this operation to update an existing metric
3937
+ # stream, any tags you specify in this parameter are ignored. To
3938
+ # change the tags of an existing metric stream, use [TagResource][1]
3939
+ # or [UntagResource][2].
3940
+ #
3941
+ #
3942
+ #
3943
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html
3944
+ # [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_UntagResource.html
3945
+ # @return [Array<Types::Tag>]
3946
+ #
3947
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricStreamInput AWS API Documentation
3948
+ #
3949
+ class PutMetricStreamInput < Struct.new(
3950
+ :name,
3951
+ :include_filters,
3952
+ :exclude_filters,
3953
+ :firehose_arn,
3954
+ :role_arn,
3955
+ :output_format,
3956
+ :tags)
3957
+ SENSITIVE = []
3958
+ include Aws::Structure
3959
+ end
3960
+
3961
+ # @!attribute [rw] arn
3962
+ # The ARN of the metric stream.
3963
+ # @return [String]
3964
+ #
3965
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricStreamOutput AWS API Documentation
3966
+ #
3967
+ class PutMetricStreamOutput < Struct.new(
3968
+ :arn)
3969
+ SENSITIVE = []
3970
+ include Aws::Structure
3971
+ end
3972
+
3600
3973
  # Specifies one range of days or times to exclude from use for training
3601
3974
  # an anomaly detection model.
3602
3975
  #
@@ -3701,6 +4074,34 @@ module Aws::CloudWatch
3701
4074
  include Aws::Structure
3702
4075
  end
3703
4076
 
4077
+ # @note When making an API call, you may pass StartMetricStreamsInput
4078
+ # data as a hash:
4079
+ #
4080
+ # {
4081
+ # names: ["MetricStreamName"], # required
4082
+ # }
4083
+ #
4084
+ # @!attribute [rw] names
4085
+ # The array of the names of metric streams to start streaming.
4086
+ #
4087
+ # This is an "all or nothing" operation. If you do not have
4088
+ # permission to access all of the metric streams that you list here,
4089
+ # then none of the streams that you list in the operation will start
4090
+ # streaming.
4091
+ # @return [Array<String>]
4092
+ #
4093
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StartMetricStreamsInput AWS API Documentation
4094
+ #
4095
+ class StartMetricStreamsInput < Struct.new(
4096
+ :names)
4097
+ SENSITIVE = []
4098
+ include Aws::Structure
4099
+ end
4100
+
4101
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StartMetricStreamsOutput AWS API Documentation
4102
+ #
4103
+ class StartMetricStreamsOutput < Aws::EmptyStructure; end
4104
+
3704
4105
  # Represents a set of statistics that describes a specific metric.
3705
4106
  #
3706
4107
  # @note When making an API call, you may pass StatisticSet
@@ -3740,6 +4141,34 @@ module Aws::CloudWatch
3740
4141
  include Aws::Structure
3741
4142
  end
3742
4143
 
4144
+ # @note When making an API call, you may pass StopMetricStreamsInput
4145
+ # data as a hash:
4146
+ #
4147
+ # {
4148
+ # names: ["MetricStreamName"], # required
4149
+ # }
4150
+ #
4151
+ # @!attribute [rw] names
4152
+ # The array of the names of metric streams to stop streaming.
4153
+ #
4154
+ # This is an "all or nothing" operation. If you do not have
4155
+ # permission to access all of the metric streams that you list here,
4156
+ # then none of the streams that you list in the operation will stop
4157
+ # streaming.
4158
+ # @return [Array<String>]
4159
+ #
4160
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StopMetricStreamsInput AWS API Documentation
4161
+ #
4162
+ class StopMetricStreamsInput < Struct.new(
4163
+ :names)
4164
+ SENSITIVE = []
4165
+ include Aws::Structure
4166
+ end
4167
+
4168
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StopMetricStreamsOutput AWS API Documentation
4169
+ #
4170
+ class StopMetricStreamsOutput < Aws::EmptyStructure; end
4171
+
3743
4172
  # A key-value pair associated with a CloudWatch resource.
3744
4173
  #
3745
4174
  # @note When making an API call, you may pass Tag