aws-sdk-cloudwatch 1.50.0 → 1.51.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 136d29a994940985d1d92bc0c15c016eb9711bf878ceaeae76330b421db20667
4
- data.tar.gz: 2aaa87af9c71d96861771b91a00100b5ecf1a2f0ae0f4d63c46da7bbb6b67ff5
3
+ metadata.gz: 4564760b7b8d0aaad992dcca3f21ab5826f3adcf37f4be062726ce64253b0d8d
4
+ data.tar.gz: 888a205121f81f9ffe4b3c39d04bc7e3365493a096503b0f6a30ed38f8decf4f
5
5
  SHA512:
6
- metadata.gz: ae560f8a53b79be1f3528e2cfac0acec6ec00de3321f9a58ed9063cd1a3482fd0718eeb4e02bf3f1e1d0d922dd54b30590e371e0a3f88fb15db969df1c37b960
7
- data.tar.gz: 847a59808fb3bf56c842fa12c86f765323454780bafe8c8db1419531ae1bde9d38c02abfd705fde81020da85c02314c6675d7dd19246fe83b0e33fa39abda08c
6
+ metadata.gz: c42f3480584c4a8513b7f6c33549b8c232ff6a5fd2463e8fb727a6a6e9105ec1f4d843d72cdb10d802ec860e551ee15df7b425e7b52b1b8ed07a2e041fb39ac5
7
+ data.tar.gz: b26baaa6c7288b95c1786c8931cbe0919f2727f27969e4df5e911664223181f4aa0599b9224bb1c552fa98a11dc6725ff2f373ac95ad6a783422c5384c86dadd
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.51.0 (2021-03-30)
5
+ ------------------
6
+
7
+ * Feature - SDK update for new Metric Streams feature
8
+
4
9
  1.50.0 (2021-03-10)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.50.0
1
+ 1.51.0
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-cloudwatch/customizations'
52
52
  # @!group service
53
53
  module Aws::CloudWatch
54
54
 
55
- GEM_VERSION = '1.50.0'
55
+ GEM_VERSION = '1.51.0'
56
56
 
57
57
  end
@@ -478,6 +478,28 @@ module Aws::CloudWatch
478
478
  req.send_request(options)
479
479
  end
480
480
 
481
+ # Permanently deletes the metric stream that you specify.
482
+ #
483
+ # @option params [required, String] :name
484
+ # The name of the metric stream to delete.
485
+ #
486
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
487
+ #
488
+ # @example Request syntax with placeholder values
489
+ #
490
+ # resp = client.delete_metric_stream({
491
+ # name: "MetricStreamName", # required
492
+ # })
493
+ #
494
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteMetricStream AWS API Documentation
495
+ #
496
+ # @overload delete_metric_stream(params = {})
497
+ # @param [Hash] params ({})
498
+ def delete_metric_stream(params = {}, options = {})
499
+ req = build_request(:delete_metric_stream, params)
500
+ req.send_request(options)
501
+ end
502
+
481
503
  # Retrieves the history for the specified alarm. You can filter the
482
504
  # results by date range or item type. If an alarm name is not specified,
483
505
  # the histories for either all metric alarms or all composite alarms are
@@ -1686,6 +1708,54 @@ module Aws::CloudWatch
1686
1708
  req.send_request(options)
1687
1709
  end
1688
1710
 
1711
+ # Returns information about the metric stream that you specify.
1712
+ #
1713
+ # @option params [required, String] :name
1714
+ # The name of the metric stream to retrieve information about.
1715
+ #
1716
+ # @return [Types::GetMetricStreamOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1717
+ #
1718
+ # * {Types::GetMetricStreamOutput#arn #arn} => String
1719
+ # * {Types::GetMetricStreamOutput#name #name} => String
1720
+ # * {Types::GetMetricStreamOutput#include_filters #include_filters} => Array<Types::MetricStreamFilter>
1721
+ # * {Types::GetMetricStreamOutput#exclude_filters #exclude_filters} => Array<Types::MetricStreamFilter>
1722
+ # * {Types::GetMetricStreamOutput#firehose_arn #firehose_arn} => String
1723
+ # * {Types::GetMetricStreamOutput#role_arn #role_arn} => String
1724
+ # * {Types::GetMetricStreamOutput#state #state} => String
1725
+ # * {Types::GetMetricStreamOutput#creation_date #creation_date} => Time
1726
+ # * {Types::GetMetricStreamOutput#last_update_date #last_update_date} => Time
1727
+ # * {Types::GetMetricStreamOutput#output_format #output_format} => String
1728
+ #
1729
+ # @example Request syntax with placeholder values
1730
+ #
1731
+ # resp = client.get_metric_stream({
1732
+ # name: "MetricStreamName", # required
1733
+ # })
1734
+ #
1735
+ # @example Response structure
1736
+ #
1737
+ # resp.arn #=> String
1738
+ # resp.name #=> String
1739
+ # resp.include_filters #=> Array
1740
+ # resp.include_filters[0].namespace #=> String
1741
+ # resp.exclude_filters #=> Array
1742
+ # resp.exclude_filters[0].namespace #=> String
1743
+ # resp.firehose_arn #=> String
1744
+ # resp.role_arn #=> String
1745
+ # resp.state #=> String
1746
+ # resp.creation_date #=> Time
1747
+ # resp.last_update_date #=> Time
1748
+ # resp.output_format #=> String, one of "json", "opentelemetry0.7"
1749
+ #
1750
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStream AWS API Documentation
1751
+ #
1752
+ # @overload get_metric_stream(params = {})
1753
+ # @param [Hash] params ({})
1754
+ def get_metric_stream(params = {}, options = {})
1755
+ req = build_request(:get_metric_stream, params)
1756
+ req.send_request(options)
1757
+ end
1758
+
1689
1759
  # You can use the `GetMetricWidgetImage` API to retrieve a snapshot
1690
1760
  # graph of one or more Amazon CloudWatch metrics as a bitmap image. You
1691
1761
  # can then embed this image into your services and products, such as
@@ -1829,6 +1899,50 @@ module Aws::CloudWatch
1829
1899
  req.send_request(options)
1830
1900
  end
1831
1901
 
1902
+ # Returns a list of metric streams in this account.
1903
+ #
1904
+ # @option params [String] :next_token
1905
+ # Include this value, if it was returned by the previous call, to get
1906
+ # the next set of metric streams.
1907
+ #
1908
+ # @option params [Integer] :max_results
1909
+ # The maximum number of results to return in one operation.
1910
+ #
1911
+ # @return [Types::ListMetricStreamsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1912
+ #
1913
+ # * {Types::ListMetricStreamsOutput#next_token #next_token} => String
1914
+ # * {Types::ListMetricStreamsOutput#entries #entries} => Array<Types::MetricStreamEntry>
1915
+ #
1916
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1917
+ #
1918
+ # @example Request syntax with placeholder values
1919
+ #
1920
+ # resp = client.list_metric_streams({
1921
+ # next_token: "NextToken",
1922
+ # max_results: 1,
1923
+ # })
1924
+ #
1925
+ # @example Response structure
1926
+ #
1927
+ # resp.next_token #=> String
1928
+ # resp.entries #=> Array
1929
+ # resp.entries[0].arn #=> String
1930
+ # resp.entries[0].creation_date #=> Time
1931
+ # resp.entries[0].last_update_date #=> Time
1932
+ # resp.entries[0].name #=> String
1933
+ # resp.entries[0].firehose_arn #=> String
1934
+ # resp.entries[0].state #=> String
1935
+ # resp.entries[0].output_format #=> String, one of "json", "opentelemetry0.7"
1936
+ #
1937
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetricStreams AWS API Documentation
1938
+ #
1939
+ # @overload list_metric_streams(params = {})
1940
+ # @param [Hash] params ({})
1941
+ def list_metric_streams(params = {}, options = {})
1942
+ req = build_request(:list_metric_streams, params)
1943
+ req.send_request(options)
1944
+ end
1945
+
1832
1946
  # List the specified metrics. You can use the returned metrics with
1833
1947
  # [GetMetricData][1] or [GetMetricStatistics][2] to obtain statistical
1834
1948
  # data.
@@ -2364,7 +2478,7 @@ module Aws::CloudWatch
2364
2478
  #
2365
2479
  # The first time you create an alarm in the AWS Management Console, the
2366
2480
  # CLI, or by using the PutMetricAlarm API, CloudWatch creates the
2367
- # necessary service-linked rolea for you. The service-linked roles are
2481
+ # necessary service-linked role for you. The service-linked roles are
2368
2482
  # called `AWSServiceRoleForCloudWatchEvents` and
2369
2483
  # `AWSServiceRoleForCloudWatchAlarms_ActionSSM`. For more information,
2370
2484
  # see [AWS service-linked role][1].
@@ -2402,6 +2516,8 @@ module Aws::CloudWatch
2402
2516
  # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
2403
2517
  # \|
2404
2518
  # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
2519
+ # \|
2520
+ # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0`
2405
2521
  #
2406
2522
  # @option params [Array<String>] :alarm_actions
2407
2523
  # The actions to execute when this alarm transitions to the `ALARM`
@@ -2812,6 +2928,134 @@ module Aws::CloudWatch
2812
2928
  req.send_request(options)
2813
2929
  end
2814
2930
 
2931
+ # Creates or updates a metric stream. Metric streams can automatically
2932
+ # stream CloudWatch metrics to AWS destinations including Amazon S3 and
2933
+ # to many third-party solutions.
2934
+ #
2935
+ # For more information, see [ Using Metric Streams][1].
2936
+ #
2937
+ # To create a metric stream, you must be logged on to an account that
2938
+ # has the `iam:PassRole` permission and either the
2939
+ # `CloudWatchFullAccess` policy or the `cloudwatch:PutMetricStream`
2940
+ # permission.
2941
+ #
2942
+ # When you create or update a metric stream, you choose one of the
2943
+ # following:
2944
+ #
2945
+ # * Stream metrics from all metric namespaces in the account.
2946
+ #
2947
+ # * Stream metrics from all metric namespaces in the account, except for
2948
+ # the namespaces that you list in `ExcludeFilters`.
2949
+ #
2950
+ # * Stream metrics from only the metric namespaces that you list in
2951
+ # `IncludeFilters`.
2952
+ #
2953
+ # When you use `PutMetricStream` to create a new metric stream, the
2954
+ # stream is created in the `running` state. If you use it to update an
2955
+ # existing stream, the state of the stream is not changed.
2956
+ #
2957
+ #
2958
+ #
2959
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Metric-Streams.html
2960
+ #
2961
+ # @option params [required, String] :name
2962
+ # If you are creating a new metric stream, this is the name for the new
2963
+ # stream. The name must be different than the names of other metric
2964
+ # streams in this account and Region.
2965
+ #
2966
+ # If you are updating a metric stream, specify the name of that stream
2967
+ # here.
2968
+ #
2969
+ # Valid characters are A-Z, a-z, 0-9, "-" and "\_".
2970
+ #
2971
+ # @option params [Array<Types::MetricStreamFilter>] :include_filters
2972
+ # If you specify this parameter, the stream sends only the metrics from
2973
+ # the metric namespaces that you specify here.
2974
+ #
2975
+ # You cannot include `IncludeFilters` and `ExcludeFilters` in the same
2976
+ # operation.
2977
+ #
2978
+ # @option params [Array<Types::MetricStreamFilter>] :exclude_filters
2979
+ # If you specify this parameter, the stream sends metrics from all
2980
+ # metric namespaces except for the namespaces that you specify here.
2981
+ #
2982
+ # You cannot include `ExcludeFilters` and `IncludeFilters` in the same
2983
+ # operation.
2984
+ #
2985
+ # @option params [required, String] :firehose_arn
2986
+ # The ARN of the Amazon Kinesis Firehose delivery stream to use for this
2987
+ # metric stream. This Amazon Kinesis Firehose delivery stream must
2988
+ # already exist and must be in the same account as the metric stream.
2989
+ #
2990
+ # @option params [required, String] :role_arn
2991
+ # The ARN of an IAM role that this metric stream will use to access
2992
+ # Amazon Kinesis Firehose resources. This IAM role must already exist
2993
+ # and must be in the same account as the metric stream. This IAM role
2994
+ # must include the following permissions:
2995
+ #
2996
+ # * firehose:PutRecord
2997
+ #
2998
+ # * firehose:PutRecordBatch
2999
+ #
3000
+ # @option params [required, String] :output_format
3001
+ # The output format for the stream. Valid values are `json` and
3002
+ # `opentelemetry0.7`. For more information about metric stream output
3003
+ # formats, see [ Metric streams output formats][1].
3004
+ #
3005
+ #
3006
+ #
3007
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html
3008
+ #
3009
+ # @option params [Array<Types::Tag>] :tags
3010
+ # A list of key-value pairs to associate with the metric stream. You can
3011
+ # associate as many as 50 tags with a metric stream.
3012
+ #
3013
+ # Tags can help you organize and categorize your resources. You can also
3014
+ # use them to scope user permissions by granting a user permission to
3015
+ # access or change only resources with certain tag values.
3016
+ #
3017
+ # @return [Types::PutMetricStreamOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3018
+ #
3019
+ # * {Types::PutMetricStreamOutput#arn #arn} => String
3020
+ #
3021
+ # @example Request syntax with placeholder values
3022
+ #
3023
+ # resp = client.put_metric_stream({
3024
+ # name: "MetricStreamName", # required
3025
+ # include_filters: [
3026
+ # {
3027
+ # namespace: "Namespace",
3028
+ # },
3029
+ # ],
3030
+ # exclude_filters: [
3031
+ # {
3032
+ # namespace: "Namespace",
3033
+ # },
3034
+ # ],
3035
+ # firehose_arn: "AmazonResourceName", # required
3036
+ # role_arn: "AmazonResourceName", # required
3037
+ # output_format: "json", # required, accepts json, opentelemetry0.7
3038
+ # tags: [
3039
+ # {
3040
+ # key: "TagKey", # required
3041
+ # value: "TagValue", # required
3042
+ # },
3043
+ # ],
3044
+ # })
3045
+ #
3046
+ # @example Response structure
3047
+ #
3048
+ # resp.arn #=> String
3049
+ #
3050
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricStream AWS API Documentation
3051
+ #
3052
+ # @overload put_metric_stream(params = {})
3053
+ # @param [Hash] params ({})
3054
+ def put_metric_stream(params = {}, options = {})
3055
+ req = build_request(:put_metric_stream, params)
3056
+ req.send_request(options)
3057
+ end
3058
+
2815
3059
  # Temporarily sets the state of an alarm for testing purposes. When the
2816
3060
  # updated state differs from the previous value, the action configured
2817
3061
  # for the appropriate state is invoked. For example, if your alarm is
@@ -2876,6 +3120,59 @@ module Aws::CloudWatch
2876
3120
  req.send_request(options)
2877
3121
  end
2878
3122
 
3123
+ # Starts the streaming of metrics for one or more of your metric
3124
+ # streams.
3125
+ #
3126
+ # @option params [required, Array<String>] :names
3127
+ # The array of the names of metric streams to start streaming.
3128
+ #
3129
+ # This is an "all or nothing" operation. If you do not have permission
3130
+ # to access all of the metric streams that you list here, then none of
3131
+ # the streams that you list in the operation will start streaming.
3132
+ #
3133
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3134
+ #
3135
+ # @example Request syntax with placeholder values
3136
+ #
3137
+ # resp = client.start_metric_streams({
3138
+ # names: ["MetricStreamName"], # required
3139
+ # })
3140
+ #
3141
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StartMetricStreams AWS API Documentation
3142
+ #
3143
+ # @overload start_metric_streams(params = {})
3144
+ # @param [Hash] params ({})
3145
+ def start_metric_streams(params = {}, options = {})
3146
+ req = build_request(:start_metric_streams, params)
3147
+ req.send_request(options)
3148
+ end
3149
+
3150
+ # Stops the streaming of metrics for one or more of your metric streams.
3151
+ #
3152
+ # @option params [required, Array<String>] :names
3153
+ # The array of the names of metric streams to stop streaming.
3154
+ #
3155
+ # This is an "all or nothing" operation. If you do not have permission
3156
+ # to access all of the metric streams that you list here, then none of
3157
+ # the streams that you list in the operation will stop streaming.
3158
+ #
3159
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3160
+ #
3161
+ # @example Request syntax with placeholder values
3162
+ #
3163
+ # resp = client.stop_metric_streams({
3164
+ # names: ["MetricStreamName"], # required
3165
+ # })
3166
+ #
3167
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StopMetricStreams AWS API Documentation
3168
+ #
3169
+ # @overload stop_metric_streams(params = {})
3170
+ # @param [Hash] params ({})
3171
+ def stop_metric_streams(params = {}, options = {})
3172
+ req = build_request(:stop_metric_streams, params)
3173
+ req.send_request(options)
3174
+ end
3175
+
2879
3176
  # Assigns one or more tags (key-value pairs) to the specified CloudWatch
2880
3177
  # resource. Currently, the only CloudWatch resources that can be tagged
2881
3178
  # are alarms and Contributor Insights rules.
@@ -2989,7 +3286,7 @@ module Aws::CloudWatch
2989
3286
  params: params,
2990
3287
  config: config)
2991
3288
  context[:gem_name] = 'aws-sdk-cloudwatch'
2992
- context[:gem_version] = '1.50.0'
3289
+ context[:gem_version] = '1.51.0'
2993
3290
  Seahorse::Client::Request.new(handlers, context)
2994
3291
  end
2995
3292
 
@@ -66,6 +66,8 @@ module Aws::CloudWatch
66
66
  DeleteDashboardsOutput = Shapes::StructureShape.new(name: 'DeleteDashboardsOutput')
67
67
  DeleteInsightRulesInput = Shapes::StructureShape.new(name: 'DeleteInsightRulesInput')
68
68
  DeleteInsightRulesOutput = Shapes::StructureShape.new(name: 'DeleteInsightRulesOutput')
69
+ DeleteMetricStreamInput = Shapes::StructureShape.new(name: 'DeleteMetricStreamInput')
70
+ DeleteMetricStreamOutput = Shapes::StructureShape.new(name: 'DeleteMetricStreamOutput')
69
71
  DescribeAlarmHistoryInput = Shapes::StructureShape.new(name: 'DescribeAlarmHistoryInput')
70
72
  DescribeAlarmHistoryOutput = Shapes::StructureShape.new(name: 'DescribeAlarmHistoryOutput')
71
73
  DescribeAlarmsForMetricInput = Shapes::StructureShape.new(name: 'DescribeAlarmsForMetricInput')
@@ -108,6 +110,8 @@ module Aws::CloudWatch
108
110
  GetMetricDataOutput = Shapes::StructureShape.new(name: 'GetMetricDataOutput')
109
111
  GetMetricStatisticsInput = Shapes::StructureShape.new(name: 'GetMetricStatisticsInput')
110
112
  GetMetricStatisticsOutput = Shapes::StructureShape.new(name: 'GetMetricStatisticsOutput')
113
+ GetMetricStreamInput = Shapes::StructureShape.new(name: 'GetMetricStreamInput')
114
+ GetMetricStreamOutput = Shapes::StructureShape.new(name: 'GetMetricStreamOutput')
111
115
  GetMetricWidgetImageInput = Shapes::StructureShape.new(name: 'GetMetricWidgetImageInput')
112
116
  GetMetricWidgetImageOutput = Shapes::StructureShape.new(name: 'GetMetricWidgetImageOutput')
113
117
  HistoryData = Shapes::StringShape.new(name: 'HistoryData')
@@ -149,6 +153,9 @@ module Aws::CloudWatch
149
153
  LimitExceededFault = Shapes::StructureShape.new(name: 'LimitExceededFault')
150
154
  ListDashboardsInput = Shapes::StructureShape.new(name: 'ListDashboardsInput')
151
155
  ListDashboardsOutput = Shapes::StructureShape.new(name: 'ListDashboardsOutput')
156
+ ListMetricStreamsInput = Shapes::StructureShape.new(name: 'ListMetricStreamsInput')
157
+ ListMetricStreamsMaxResults = Shapes::IntegerShape.new(name: 'ListMetricStreamsMaxResults')
158
+ ListMetricStreamsOutput = Shapes::StructureShape.new(name: 'ListMetricStreamsOutput')
152
159
  ListMetricsInput = Shapes::StructureShape.new(name: 'ListMetricsInput')
153
160
  ListMetricsOutput = Shapes::StructureShape.new(name: 'ListMetricsOutput')
154
161
  ListTagsForResourceInput = Shapes::StructureShape.new(name: 'ListTagsForResourceInput')
@@ -174,6 +181,14 @@ module Aws::CloudWatch
174
181
  MetricLabel = Shapes::StringShape.new(name: 'MetricLabel')
175
182
  MetricName = Shapes::StringShape.new(name: 'MetricName')
176
183
  MetricStat = Shapes::StructureShape.new(name: 'MetricStat')
184
+ MetricStreamEntries = Shapes::ListShape.new(name: 'MetricStreamEntries')
185
+ MetricStreamEntry = Shapes::StructureShape.new(name: 'MetricStreamEntry')
186
+ MetricStreamFilter = Shapes::StructureShape.new(name: 'MetricStreamFilter')
187
+ MetricStreamFilters = Shapes::ListShape.new(name: 'MetricStreamFilters')
188
+ MetricStreamName = Shapes::StringShape.new(name: 'MetricStreamName')
189
+ MetricStreamNames = Shapes::ListShape.new(name: 'MetricStreamNames')
190
+ MetricStreamOutputFormat = Shapes::StringShape.new(name: 'MetricStreamOutputFormat')
191
+ MetricStreamState = Shapes::StringShape.new(name: 'MetricStreamState')
177
192
  MetricWidget = Shapes::StringShape.new(name: 'MetricWidget')
178
193
  MetricWidgetImage = Shapes::BlobShape.new(name: 'MetricWidgetImage')
179
194
  Metrics = Shapes::ListShape.new(name: 'Metrics')
@@ -192,6 +207,8 @@ module Aws::CloudWatch
192
207
  PutInsightRuleOutput = Shapes::StructureShape.new(name: 'PutInsightRuleOutput')
193
208
  PutMetricAlarmInput = Shapes::StructureShape.new(name: 'PutMetricAlarmInput')
194
209
  PutMetricDataInput = Shapes::StructureShape.new(name: 'PutMetricDataInput')
210
+ PutMetricStreamInput = Shapes::StructureShape.new(name: 'PutMetricStreamInput')
211
+ PutMetricStreamOutput = Shapes::StructureShape.new(name: 'PutMetricStreamOutput')
195
212
  Range = Shapes::StructureShape.new(name: 'Range')
196
213
  RecentlyActive = Shapes::StringShape.new(name: 'RecentlyActive')
197
214
  ResourceId = Shapes::StringShape.new(name: 'ResourceId')
@@ -205,6 +222,8 @@ module Aws::CloudWatch
205
222
  SetAlarmStateInput = Shapes::StructureShape.new(name: 'SetAlarmStateInput')
206
223
  Size = Shapes::IntegerShape.new(name: 'Size')
207
224
  StandardUnit = Shapes::StringShape.new(name: 'StandardUnit')
225
+ StartMetricStreamsInput = Shapes::StructureShape.new(name: 'StartMetricStreamsInput')
226
+ StartMetricStreamsOutput = Shapes::StructureShape.new(name: 'StartMetricStreamsOutput')
208
227
  Stat = Shapes::StringShape.new(name: 'Stat')
209
228
  StateReason = Shapes::StringShape.new(name: 'StateReason')
210
229
  StateReasonData = Shapes::StringShape.new(name: 'StateReasonData')
@@ -213,6 +232,8 @@ module Aws::CloudWatch
213
232
  StatisticSet = Shapes::StructureShape.new(name: 'StatisticSet')
214
233
  Statistics = Shapes::ListShape.new(name: 'Statistics')
215
234
  StatusCode = Shapes::StringShape.new(name: 'StatusCode')
235
+ StopMetricStreamsInput = Shapes::StructureShape.new(name: 'StopMetricStreamsInput')
236
+ StopMetricStreamsOutput = Shapes::StructureShape.new(name: 'StopMetricStreamsOutput')
216
237
  StorageResolution = Shapes::IntegerShape.new(name: 'StorageResolution')
217
238
  Tag = Shapes::StructureShape.new(name: 'Tag')
218
239
  TagKey = Shapes::StringShape.new(name: 'TagKey')
@@ -344,6 +365,11 @@ module Aws::CloudWatch
344
365
  DeleteInsightRulesOutput.add_member(:failures, Shapes::ShapeRef.new(shape: BatchFailures, location_name: "Failures"))
345
366
  DeleteInsightRulesOutput.struct_class = Types::DeleteInsightRulesOutput
346
367
 
368
+ DeleteMetricStreamInput.add_member(:name, Shapes::ShapeRef.new(shape: MetricStreamName, required: true, location_name: "Name"))
369
+ DeleteMetricStreamInput.struct_class = Types::DeleteMetricStreamInput
370
+
371
+ DeleteMetricStreamOutput.struct_class = Types::DeleteMetricStreamOutput
372
+
347
373
  DescribeAlarmHistoryInput.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, location_name: "AlarmName"))
348
374
  DescribeAlarmHistoryInput.add_member(:alarm_types, Shapes::ShapeRef.new(shape: AlarmTypes, location_name: "AlarmTypes"))
349
375
  DescribeAlarmHistoryInput.add_member(:history_item_type, Shapes::ShapeRef.new(shape: HistoryItemType, location_name: "HistoryItemType"))
@@ -491,6 +517,21 @@ module Aws::CloudWatch
491
517
  GetMetricStatisticsOutput.add_member(:datapoints, Shapes::ShapeRef.new(shape: Datapoints, location_name: "Datapoints"))
492
518
  GetMetricStatisticsOutput.struct_class = Types::GetMetricStatisticsOutput
493
519
 
520
+ GetMetricStreamInput.add_member(:name, Shapes::ShapeRef.new(shape: MetricStreamName, required: true, location_name: "Name"))
521
+ GetMetricStreamInput.struct_class = Types::GetMetricStreamInput
522
+
523
+ GetMetricStreamOutput.add_member(:arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "Arn"))
524
+ GetMetricStreamOutput.add_member(:name, Shapes::ShapeRef.new(shape: MetricStreamName, location_name: "Name"))
525
+ GetMetricStreamOutput.add_member(:include_filters, Shapes::ShapeRef.new(shape: MetricStreamFilters, location_name: "IncludeFilters"))
526
+ GetMetricStreamOutput.add_member(:exclude_filters, Shapes::ShapeRef.new(shape: MetricStreamFilters, location_name: "ExcludeFilters"))
527
+ GetMetricStreamOutput.add_member(:firehose_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "FirehoseArn"))
528
+ GetMetricStreamOutput.add_member(:role_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "RoleArn"))
529
+ GetMetricStreamOutput.add_member(:state, Shapes::ShapeRef.new(shape: MetricStreamState, location_name: "State"))
530
+ GetMetricStreamOutput.add_member(:creation_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationDate"))
531
+ GetMetricStreamOutput.add_member(:last_update_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastUpdateDate"))
532
+ GetMetricStreamOutput.add_member(:output_format, Shapes::ShapeRef.new(shape: MetricStreamOutputFormat, location_name: "OutputFormat"))
533
+ GetMetricStreamOutput.struct_class = Types::GetMetricStreamOutput
534
+
494
535
  GetMetricWidgetImageInput.add_member(:metric_widget, Shapes::ShapeRef.new(shape: MetricWidget, required: true, location_name: "MetricWidget"))
495
536
  GetMetricWidgetImageInput.add_member(:output_format, Shapes::ShapeRef.new(shape: OutputFormat, location_name: "OutputFormat"))
496
537
  GetMetricWidgetImageInput.struct_class = Types::GetMetricWidgetImageInput
@@ -570,6 +611,14 @@ module Aws::CloudWatch
570
611
  ListDashboardsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
571
612
  ListDashboardsOutput.struct_class = Types::ListDashboardsOutput
572
613
 
614
+ ListMetricStreamsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
615
+ ListMetricStreamsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListMetricStreamsMaxResults, location_name: "MaxResults"))
616
+ ListMetricStreamsInput.struct_class = Types::ListMetricStreamsInput
617
+
618
+ ListMetricStreamsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
619
+ ListMetricStreamsOutput.add_member(:entries, Shapes::ShapeRef.new(shape: MetricStreamEntries, location_name: "Entries"))
620
+ ListMetricStreamsOutput.struct_class = Types::ListMetricStreamsOutput
621
+
573
622
  ListMetricsInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace"))
574
623
  ListMetricsInput.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName"))
575
624
  ListMetricsInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: DimensionFilters, location_name: "Dimensions"))
@@ -668,6 +717,24 @@ module Aws::CloudWatch
668
717
  MetricStat.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit"))
669
718
  MetricStat.struct_class = Types::MetricStat
670
719
 
720
+ MetricStreamEntries.member = Shapes::ShapeRef.new(shape: MetricStreamEntry)
721
+
722
+ MetricStreamEntry.add_member(:arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "Arn"))
723
+ MetricStreamEntry.add_member(:creation_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationDate"))
724
+ MetricStreamEntry.add_member(:last_update_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastUpdateDate"))
725
+ MetricStreamEntry.add_member(:name, Shapes::ShapeRef.new(shape: MetricStreamName, location_name: "Name"))
726
+ MetricStreamEntry.add_member(:firehose_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "FirehoseArn"))
727
+ MetricStreamEntry.add_member(:state, Shapes::ShapeRef.new(shape: MetricStreamState, location_name: "State"))
728
+ MetricStreamEntry.add_member(:output_format, Shapes::ShapeRef.new(shape: MetricStreamOutputFormat, location_name: "OutputFormat"))
729
+ MetricStreamEntry.struct_class = Types::MetricStreamEntry
730
+
731
+ MetricStreamFilter.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace"))
732
+ MetricStreamFilter.struct_class = Types::MetricStreamFilter
733
+
734
+ MetricStreamFilters.member = Shapes::ShapeRef.new(shape: MetricStreamFilter)
735
+
736
+ MetricStreamNames.member = Shapes::ShapeRef.new(shape: MetricStreamName)
737
+
671
738
  Metrics.member = Shapes::ShapeRef.new(shape: Metric)
672
739
 
673
740
  MissingRequiredParameterException.add_member(:message, Shapes::ShapeRef.new(shape: AwsQueryErrorMessage, location_name: "message"))
@@ -741,6 +808,18 @@ module Aws::CloudWatch
741
808
  PutMetricDataInput.add_member(:metric_data, Shapes::ShapeRef.new(shape: MetricData, required: true, location_name: "MetricData"))
742
809
  PutMetricDataInput.struct_class = Types::PutMetricDataInput
743
810
 
811
+ PutMetricStreamInput.add_member(:name, Shapes::ShapeRef.new(shape: MetricStreamName, required: true, location_name: "Name"))
812
+ PutMetricStreamInput.add_member(:include_filters, Shapes::ShapeRef.new(shape: MetricStreamFilters, location_name: "IncludeFilters"))
813
+ PutMetricStreamInput.add_member(:exclude_filters, Shapes::ShapeRef.new(shape: MetricStreamFilters, location_name: "ExcludeFilters"))
814
+ PutMetricStreamInput.add_member(:firehose_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "FirehoseArn"))
815
+ PutMetricStreamInput.add_member(:role_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "RoleArn"))
816
+ PutMetricStreamInput.add_member(:output_format, Shapes::ShapeRef.new(shape: MetricStreamOutputFormat, required: true, location_name: "OutputFormat"))
817
+ PutMetricStreamInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
818
+ PutMetricStreamInput.struct_class = Types::PutMetricStreamInput
819
+
820
+ PutMetricStreamOutput.add_member(:arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "Arn"))
821
+ PutMetricStreamOutput.struct_class = Types::PutMetricStreamOutput
822
+
744
823
  Range.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StartTime"))
745
824
  Range.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "EndTime"))
746
825
  Range.struct_class = Types::Range
@@ -760,6 +839,11 @@ module Aws::CloudWatch
760
839
  SetAlarmStateInput.add_member(:state_reason_data, Shapes::ShapeRef.new(shape: StateReasonData, location_name: "StateReasonData"))
761
840
  SetAlarmStateInput.struct_class = Types::SetAlarmStateInput
762
841
 
842
+ StartMetricStreamsInput.add_member(:names, Shapes::ShapeRef.new(shape: MetricStreamNames, required: true, location_name: "Names"))
843
+ StartMetricStreamsInput.struct_class = Types::StartMetricStreamsInput
844
+
845
+ StartMetricStreamsOutput.struct_class = Types::StartMetricStreamsOutput
846
+
763
847
  StatisticSet.add_member(:sample_count, Shapes::ShapeRef.new(shape: DatapointValue, required: true, location_name: "SampleCount"))
764
848
  StatisticSet.add_member(:sum, Shapes::ShapeRef.new(shape: DatapointValue, required: true, location_name: "Sum"))
765
849
  StatisticSet.add_member(:minimum, Shapes::ShapeRef.new(shape: DatapointValue, required: true, location_name: "Minimum"))
@@ -768,6 +852,11 @@ module Aws::CloudWatch
768
852
 
769
853
  Statistics.member = Shapes::ShapeRef.new(shape: Statistic)
770
854
 
855
+ StopMetricStreamsInput.add_member(:names, Shapes::ShapeRef.new(shape: MetricStreamNames, required: true, location_name: "Names"))
856
+ StopMetricStreamsInput.struct_class = Types::StopMetricStreamsInput
857
+
858
+ StopMetricStreamsOutput.struct_class = Types::StopMetricStreamsOutput
859
+
771
860
  Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
772
861
  Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value"))
773
862
  Tag.struct_class = Types::Tag
@@ -852,6 +941,17 @@ module Aws::CloudWatch
852
941
  o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
853
942
  end)
854
943
 
944
+ api.add_operation(:delete_metric_stream, Seahorse::Model::Operation.new.tap do |o|
945
+ o.name = "DeleteMetricStream"
946
+ o.http_method = "POST"
947
+ o.http_request_uri = "/"
948
+ o.input = Shapes::ShapeRef.new(shape: DeleteMetricStreamInput)
949
+ o.output = Shapes::ShapeRef.new(shape: DeleteMetricStreamOutput)
950
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
951
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
952
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
953
+ end)
954
+
855
955
  api.add_operation(:describe_alarm_history, Seahorse::Model::Operation.new.tap do |o|
856
956
  o.name = "DescribeAlarmHistory"
857
957
  o.http_method = "POST"
@@ -1002,6 +1102,19 @@ module Aws::CloudWatch
1002
1102
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
1003
1103
  end)
1004
1104
 
1105
+ api.add_operation(:get_metric_stream, Seahorse::Model::Operation.new.tap do |o|
1106
+ o.name = "GetMetricStream"
1107
+ o.http_method = "POST"
1108
+ o.http_request_uri = "/"
1109
+ o.input = Shapes::ShapeRef.new(shape: GetMetricStreamInput)
1110
+ o.output = Shapes::ShapeRef.new(shape: GetMetricStreamOutput)
1111
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1112
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
1113
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
1114
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
1115
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
1116
+ end)
1117
+
1005
1118
  api.add_operation(:get_metric_widget_image, Seahorse::Model::Operation.new.tap do |o|
1006
1119
  o.name = "GetMetricWidgetImage"
1007
1120
  o.http_method = "POST"
@@ -1025,6 +1138,24 @@ module Aws::CloudWatch
1025
1138
  )
1026
1139
  end)
1027
1140
 
1141
+ api.add_operation(:list_metric_streams, Seahorse::Model::Operation.new.tap do |o|
1142
+ o.name = "ListMetricStreams"
1143
+ o.http_method = "POST"
1144
+ o.http_request_uri = "/"
1145
+ o.input = Shapes::ShapeRef.new(shape: ListMetricStreamsInput)
1146
+ o.output = Shapes::ShapeRef.new(shape: ListMetricStreamsOutput)
1147
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
1148
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
1149
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
1150
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
1151
+ o[:pager] = Aws::Pager.new(
1152
+ limit_key: "max_results",
1153
+ tokens: {
1154
+ "next_token" => "next_token"
1155
+ }
1156
+ )
1157
+ end)
1158
+
1028
1159
  api.add_operation(:list_metrics, Seahorse::Model::Operation.new.tap do |o|
1029
1160
  o.name = "ListMetrics"
1030
1161
  o.http_method = "POST"
@@ -1114,6 +1245,19 @@ module Aws::CloudWatch
1114
1245
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
1115
1246
  end)
1116
1247
 
1248
+ api.add_operation(:put_metric_stream, Seahorse::Model::Operation.new.tap do |o|
1249
+ o.name = "PutMetricStream"
1250
+ o.http_method = "POST"
1251
+ o.http_request_uri = "/"
1252
+ o.input = Shapes::ShapeRef.new(shape: PutMetricStreamInput)
1253
+ o.output = Shapes::ShapeRef.new(shape: PutMetricStreamOutput)
1254
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
1255
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
1256
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
1257
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
1258
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
1259
+ end)
1260
+
1117
1261
  api.add_operation(:set_alarm_state, Seahorse::Model::Operation.new.tap do |o|
1118
1262
  o.name = "SetAlarmState"
1119
1263
  o.http_method = "POST"
@@ -1124,6 +1268,28 @@ module Aws::CloudWatch
1124
1268
  o.errors << Shapes::ShapeRef.new(shape: InvalidFormatFault)
1125
1269
  end)
1126
1270
 
1271
+ api.add_operation(:start_metric_streams, Seahorse::Model::Operation.new.tap do |o|
1272
+ o.name = "StartMetricStreams"
1273
+ o.http_method = "POST"
1274
+ o.http_request_uri = "/"
1275
+ o.input = Shapes::ShapeRef.new(shape: StartMetricStreamsInput)
1276
+ o.output = Shapes::ShapeRef.new(shape: StartMetricStreamsOutput)
1277
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
1278
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
1279
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
1280
+ end)
1281
+
1282
+ api.add_operation(:stop_metric_streams, Seahorse::Model::Operation.new.tap do |o|
1283
+ o.name = "StopMetricStreams"
1284
+ o.http_method = "POST"
1285
+ o.http_request_uri = "/"
1286
+ o.input = Shapes::ShapeRef.new(shape: StopMetricStreamsInput)
1287
+ o.output = Shapes::ShapeRef.new(shape: StopMetricStreamsOutput)
1288
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
1289
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
1290
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
1291
+ end)
1292
+
1127
1293
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
1128
1294
  o.name = "TagResource"
1129
1295
  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
 
@@ -388,6 +388,8 @@ module Aws::CloudWatch
388
388
  # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
389
389
  # \|
390
390
  # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
391
+ # \|
392
+ # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0`
391
393
  # @option options [Array<String>] :alarm_actions
392
394
  # The actions to execute when this alarm transitions to the `ALARM`
393
395
  # state from any other state. Each action is specified as an Amazon
@@ -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
  #
@@ -1596,6 +1619,89 @@ module Aws::CloudWatch
1596
1619
  include Aws::Structure
1597
1620
  end
1598
1621
 
1622
+ # @note When making an API call, you may pass GetMetricStreamInput
1623
+ # data as a hash:
1624
+ #
1625
+ # {
1626
+ # name: "MetricStreamName", # required
1627
+ # }
1628
+ #
1629
+ # @!attribute [rw] name
1630
+ # The name of the metric stream to retrieve information about.
1631
+ # @return [String]
1632
+ #
1633
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStreamInput AWS API Documentation
1634
+ #
1635
+ class GetMetricStreamInput < Struct.new(
1636
+ :name)
1637
+ SENSITIVE = []
1638
+ include Aws::Structure
1639
+ end
1640
+
1641
+ # @!attribute [rw] arn
1642
+ # The ARN of the metric stream.
1643
+ # @return [String]
1644
+ #
1645
+ # @!attribute [rw] name
1646
+ # The name of the metric stream.
1647
+ # @return [String]
1648
+ #
1649
+ # @!attribute [rw] include_filters
1650
+ # If this array of metric namespaces is present, then these namespaces
1651
+ # are the only metric namespaces that are streamed by this metric
1652
+ # stream.
1653
+ # @return [Array<Types::MetricStreamFilter>]
1654
+ #
1655
+ # @!attribute [rw] exclude_filters
1656
+ # If this array of metric namespaces is present, then these namespaces
1657
+ # are the only metric namespaces that are not streamed by this metric
1658
+ # stream. In this case, all other metric namespaces in the account are
1659
+ # streamed by this metric stream.
1660
+ # @return [Array<Types::MetricStreamFilter>]
1661
+ #
1662
+ # @!attribute [rw] firehose_arn
1663
+ # The ARN of the Amazon Kinesis Firehose delivery stream that is used
1664
+ # by this metric stream.
1665
+ # @return [String]
1666
+ #
1667
+ # @!attribute [rw] role_arn
1668
+ # The ARN of the IAM role that is used by this metric stream.
1669
+ # @return [String]
1670
+ #
1671
+ # @!attribute [rw] state
1672
+ # The state of the metric stream. The possible values are `running`
1673
+ # and `stopped`.
1674
+ # @return [String]
1675
+ #
1676
+ # @!attribute [rw] creation_date
1677
+ # The date that the metric stream was created.
1678
+ # @return [Time]
1679
+ #
1680
+ # @!attribute [rw] last_update_date
1681
+ # The date of the most recent update to the metric stream's
1682
+ # configuration.
1683
+ # @return [Time]
1684
+ #
1685
+ # @!attribute [rw] output_format
1686
+ # @return [String]
1687
+ #
1688
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStreamOutput AWS API Documentation
1689
+ #
1690
+ class GetMetricStreamOutput < Struct.new(
1691
+ :arn,
1692
+ :name,
1693
+ :include_filters,
1694
+ :exclude_filters,
1695
+ :firehose_arn,
1696
+ :role_arn,
1697
+ :state,
1698
+ :creation_date,
1699
+ :last_update_date,
1700
+ :output_format)
1701
+ SENSITIVE = []
1702
+ include Aws::Structure
1703
+ end
1704
+
1599
1705
  # @note When making an API call, you may pass GetMetricWidgetImageInput
1600
1706
  # data as a hash:
1601
1707
  #
@@ -2038,6 +2144,51 @@ module Aws::CloudWatch
2038
2144
  include Aws::Structure
2039
2145
  end
2040
2146
 
2147
+ # @note When making an API call, you may pass ListMetricStreamsInput
2148
+ # data as a hash:
2149
+ #
2150
+ # {
2151
+ # next_token: "NextToken",
2152
+ # max_results: 1,
2153
+ # }
2154
+ #
2155
+ # @!attribute [rw] next_token
2156
+ # Include this value, if it was returned by the previous call, to get
2157
+ # the next set of metric streams.
2158
+ # @return [String]
2159
+ #
2160
+ # @!attribute [rw] max_results
2161
+ # The maximum number of results to return in one operation.
2162
+ # @return [Integer]
2163
+ #
2164
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetricStreamsInput AWS API Documentation
2165
+ #
2166
+ class ListMetricStreamsInput < Struct.new(
2167
+ :next_token,
2168
+ :max_results)
2169
+ SENSITIVE = []
2170
+ include Aws::Structure
2171
+ end
2172
+
2173
+ # @!attribute [rw] next_token
2174
+ # The token that marks the start of the next batch of returned
2175
+ # results. You can use this token in a subsequent operation to get the
2176
+ # next batch of results.
2177
+ # @return [String]
2178
+ #
2179
+ # @!attribute [rw] entries
2180
+ # The array of metric stream information.
2181
+ # @return [Array<Types::MetricStreamEntry>]
2182
+ #
2183
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListMetricStreamsOutput AWS API Documentation
2184
+ #
2185
+ class ListMetricStreamsOutput < Struct.new(
2186
+ :next_token,
2187
+ :entries)
2188
+ SENSITIVE = []
2189
+ include Aws::Structure
2190
+ end
2191
+
2041
2192
  # @note When making an API call, you may pass ListMetricsInput
2042
2193
  # data as a hash:
2043
2194
  #
@@ -2789,6 +2940,77 @@ module Aws::CloudWatch
2789
2940
  include Aws::Structure
2790
2941
  end
2791
2942
 
2943
+ # This structure contains the configuration information about one metric
2944
+ # stream.
2945
+ #
2946
+ # @!attribute [rw] arn
2947
+ # The ARN of the metric stream.
2948
+ # @return [String]
2949
+ #
2950
+ # @!attribute [rw] creation_date
2951
+ # The date that the metric stream was originally created.
2952
+ # @return [Time]
2953
+ #
2954
+ # @!attribute [rw] last_update_date
2955
+ # The date that the configuration of this metric stream was most
2956
+ # recently updated.
2957
+ # @return [Time]
2958
+ #
2959
+ # @!attribute [rw] name
2960
+ # The name of the metric stream.
2961
+ # @return [String]
2962
+ #
2963
+ # @!attribute [rw] firehose_arn
2964
+ # The ARN of the Kinesis Firehose devlivery stream that is used for
2965
+ # this metric stream.
2966
+ # @return [String]
2967
+ #
2968
+ # @!attribute [rw] state
2969
+ # The current state of this stream. Valid values are `running` and
2970
+ # `stopped`.
2971
+ # @return [String]
2972
+ #
2973
+ # @!attribute [rw] output_format
2974
+ # The output format of this metric stream. Valid values are `json` and
2975
+ # `opentelemetry0.7`.
2976
+ # @return [String]
2977
+ #
2978
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/MetricStreamEntry AWS API Documentation
2979
+ #
2980
+ class MetricStreamEntry < Struct.new(
2981
+ :arn,
2982
+ :creation_date,
2983
+ :last_update_date,
2984
+ :name,
2985
+ :firehose_arn,
2986
+ :state,
2987
+ :output_format)
2988
+ SENSITIVE = []
2989
+ include Aws::Structure
2990
+ end
2991
+
2992
+ # This structure contains the name of one of the metric namespaces that
2993
+ # is listed in a filter of a metric stream.
2994
+ #
2995
+ # @note When making an API call, you may pass MetricStreamFilter
2996
+ # data as a hash:
2997
+ #
2998
+ # {
2999
+ # namespace: "Namespace",
3000
+ # }
3001
+ #
3002
+ # @!attribute [rw] namespace
3003
+ # The name of the metric namespace in the filter.
3004
+ # @return [String]
3005
+ #
3006
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/MetricStreamFilter AWS API Documentation
3007
+ #
3008
+ class MetricStreamFilter < Struct.new(
3009
+ :namespace)
3010
+ SENSITIVE = []
3011
+ include Aws::Structure
3012
+ end
3013
+
2792
3014
  # An input parameter that is required is missing.
2793
3015
  #
2794
3016
  # @!attribute [rw] message
@@ -3262,6 +3484,8 @@ module Aws::CloudWatch
3262
3484
  # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
3263
3485
  # \|
3264
3486
  # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
3487
+ # \|
3488
+ # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0`
3265
3489
  # @return [Array<String>]
3266
3490
  #
3267
3491
  # @!attribute [rw] alarm_actions
@@ -3597,6 +3821,123 @@ module Aws::CloudWatch
3597
3821
  include Aws::Structure
3598
3822
  end
3599
3823
 
3824
+ # @note When making an API call, you may pass PutMetricStreamInput
3825
+ # data as a hash:
3826
+ #
3827
+ # {
3828
+ # name: "MetricStreamName", # required
3829
+ # include_filters: [
3830
+ # {
3831
+ # namespace: "Namespace",
3832
+ # },
3833
+ # ],
3834
+ # exclude_filters: [
3835
+ # {
3836
+ # namespace: "Namespace",
3837
+ # },
3838
+ # ],
3839
+ # firehose_arn: "AmazonResourceName", # required
3840
+ # role_arn: "AmazonResourceName", # required
3841
+ # output_format: "json", # required, accepts json, opentelemetry0.7
3842
+ # tags: [
3843
+ # {
3844
+ # key: "TagKey", # required
3845
+ # value: "TagValue", # required
3846
+ # },
3847
+ # ],
3848
+ # }
3849
+ #
3850
+ # @!attribute [rw] name
3851
+ # If you are creating a new metric stream, this is the name for the
3852
+ # new stream. The name must be different than the names of other
3853
+ # metric streams in this account and Region.
3854
+ #
3855
+ # If you are updating a metric stream, specify the name of that stream
3856
+ # here.
3857
+ #
3858
+ # Valid characters are A-Z, a-z, 0-9, "-" and "\_".
3859
+ # @return [String]
3860
+ #
3861
+ # @!attribute [rw] include_filters
3862
+ # If you specify this parameter, the stream sends only the metrics
3863
+ # from the metric namespaces that you specify here.
3864
+ #
3865
+ # You cannot include `IncludeFilters` and `ExcludeFilters` in the same
3866
+ # operation.
3867
+ # @return [Array<Types::MetricStreamFilter>]
3868
+ #
3869
+ # @!attribute [rw] exclude_filters
3870
+ # If you specify this parameter, the stream sends metrics from all
3871
+ # metric namespaces except for the namespaces that you specify here.
3872
+ #
3873
+ # You cannot include `ExcludeFilters` and `IncludeFilters` in the same
3874
+ # operation.
3875
+ # @return [Array<Types::MetricStreamFilter>]
3876
+ #
3877
+ # @!attribute [rw] firehose_arn
3878
+ # The ARN of the Amazon Kinesis Firehose delivery stream to use for
3879
+ # this metric stream. This Amazon Kinesis Firehose delivery stream
3880
+ # must already exist and must be in the same account as the metric
3881
+ # stream.
3882
+ # @return [String]
3883
+ #
3884
+ # @!attribute [rw] role_arn
3885
+ # The ARN of an IAM role that this metric stream will use to access
3886
+ # Amazon Kinesis Firehose resources. This IAM role must already exist
3887
+ # and must be in the same account as the metric stream. This IAM role
3888
+ # must include the following permissions:
3889
+ #
3890
+ # * firehose:PutRecord
3891
+ #
3892
+ # * firehose:PutRecordBatch
3893
+ # @return [String]
3894
+ #
3895
+ # @!attribute [rw] output_format
3896
+ # The output format for the stream. Valid values are `json` and
3897
+ # `opentelemetry0.7`. For more information about metric stream output
3898
+ # formats, see [ Metric streams output formats][1].
3899
+ #
3900
+ #
3901
+ #
3902
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html
3903
+ # @return [String]
3904
+ #
3905
+ # @!attribute [rw] tags
3906
+ # A list of key-value pairs to associate with the metric stream. You
3907
+ # can associate as many as 50 tags with a metric stream.
3908
+ #
3909
+ # Tags can help you organize and categorize your resources. You can
3910
+ # also use them to scope user permissions by granting a user
3911
+ # permission to access or change only resources with certain tag
3912
+ # values.
3913
+ # @return [Array<Types::Tag>]
3914
+ #
3915
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricStreamInput AWS API Documentation
3916
+ #
3917
+ class PutMetricStreamInput < Struct.new(
3918
+ :name,
3919
+ :include_filters,
3920
+ :exclude_filters,
3921
+ :firehose_arn,
3922
+ :role_arn,
3923
+ :output_format,
3924
+ :tags)
3925
+ SENSITIVE = []
3926
+ include Aws::Structure
3927
+ end
3928
+
3929
+ # @!attribute [rw] arn
3930
+ # The ARN of the metric stream.
3931
+ # @return [String]
3932
+ #
3933
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricStreamOutput AWS API Documentation
3934
+ #
3935
+ class PutMetricStreamOutput < Struct.new(
3936
+ :arn)
3937
+ SENSITIVE = []
3938
+ include Aws::Structure
3939
+ end
3940
+
3600
3941
  # Specifies one range of days or times to exclude from use for training
3601
3942
  # an anomaly detection model.
3602
3943
  #
@@ -3701,6 +4042,34 @@ module Aws::CloudWatch
3701
4042
  include Aws::Structure
3702
4043
  end
3703
4044
 
4045
+ # @note When making an API call, you may pass StartMetricStreamsInput
4046
+ # data as a hash:
4047
+ #
4048
+ # {
4049
+ # names: ["MetricStreamName"], # required
4050
+ # }
4051
+ #
4052
+ # @!attribute [rw] names
4053
+ # The array of the names of metric streams to start streaming.
4054
+ #
4055
+ # This is an "all or nothing" operation. If you do not have
4056
+ # permission to access all of the metric streams that you list here,
4057
+ # then none of the streams that you list in the operation will start
4058
+ # streaming.
4059
+ # @return [Array<String>]
4060
+ #
4061
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StartMetricStreamsInput AWS API Documentation
4062
+ #
4063
+ class StartMetricStreamsInput < Struct.new(
4064
+ :names)
4065
+ SENSITIVE = []
4066
+ include Aws::Structure
4067
+ end
4068
+
4069
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StartMetricStreamsOutput AWS API Documentation
4070
+ #
4071
+ class StartMetricStreamsOutput < Aws::EmptyStructure; end
4072
+
3704
4073
  # Represents a set of statistics that describes a specific metric.
3705
4074
  #
3706
4075
  # @note When making an API call, you may pass StatisticSet
@@ -3740,6 +4109,34 @@ module Aws::CloudWatch
3740
4109
  include Aws::Structure
3741
4110
  end
3742
4111
 
4112
+ # @note When making an API call, you may pass StopMetricStreamsInput
4113
+ # data as a hash:
4114
+ #
4115
+ # {
4116
+ # names: ["MetricStreamName"], # required
4117
+ # }
4118
+ #
4119
+ # @!attribute [rw] names
4120
+ # The array of the names of metric streams to stop streaming.
4121
+ #
4122
+ # This is an "all or nothing" operation. If you do not have
4123
+ # permission to access all of the metric streams that you list here,
4124
+ # then none of the streams that you list in the operation will stop
4125
+ # streaming.
4126
+ # @return [Array<String>]
4127
+ #
4128
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StopMetricStreamsInput AWS API Documentation
4129
+ #
4130
+ class StopMetricStreamsInput < Struct.new(
4131
+ :names)
4132
+ SENSITIVE = []
4133
+ include Aws::Structure
4134
+ end
4135
+
4136
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StopMetricStreamsOutput AWS API Documentation
4137
+ #
4138
+ class StopMetricStreamsOutput < Aws::EmptyStructure; end
4139
+
3743
4140
  # A key-value pair associated with a CloudWatch resource.
3744
4141
  #
3745
4142
  # @note When making an API call, you may pass Tag
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudwatch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.50.0
4
+ version: 1.51.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-10 00:00:00.000000000 Z
11
+ date: 2021-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -70,8 +70,8 @@ homepage: https://github.com/aws/aws-sdk-ruby
70
70
  licenses:
71
71
  - Apache-2.0
72
72
  metadata:
73
- source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-cloudwatch
74
- changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-cloudwatch/CHANGELOG.md
73
+ source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-cloudwatch
74
+ changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-cloudwatch/CHANGELOG.md
75
75
  post_install_message:
76
76
  rdoc_options: []
77
77
  require_paths: