aws-sdk-cloudwatch 1.65.0 → 1.67.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: 9882292fa5689699f213f674aca54dfc40cd6dcc3233297a7a447993317fb386
4
- data.tar.gz: d10daaa3174ea14a2667d4cf28c3758e38609fb0dc942ea5cb957da8d4fd9a7c
3
+ metadata.gz: 77aa43f9ac7f6a446224746c7bf4d2f71c4d8aa8c5a209fe0e0eaa40d6e9613a
4
+ data.tar.gz: 0f5e736cc4731e3ccd81db6b9ecd4e0743e8b517f8143006623cdda22694e013
5
5
  SHA512:
6
- metadata.gz: 0704a30c53f1ba4a13826c8fa66c3b2a46c6268d877fe26b5f9438919f2bfb9f13e01bb7fabac24434c359fbcf798332d66be78e0cdd3156273f2a8e402245ae
7
- data.tar.gz: f775047d967d586ece529236c894bf5ca0751b8de3cf29e14deeab0fe4cec346cb94d98f34aea73e9809e76e2a6ceb6aa5f61618e8af87c3087035765af581cd
6
+ metadata.gz: 5e392ee3e4e164dcb0bd7bbb1ab240cbb90a93de990a04012905488e0a8c6e250a5a635734df7ecfd9c922b3a300307079648729298fb78d4ffc4340ff24cfd1
7
+ data.tar.gz: f814e4b8fb78aebfe9e72e872858653a6b9e25d6c08c0d409caf8ea44185c22e697eaa22f10947bc4ebc6e111c8a07e4e863ea07518a91794d1b98487a927974
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.67.0 (2022-08-18)
5
+ ------------------
6
+
7
+ * Feature - Add support for managed Contributor Insights Rules
8
+
9
+ 1.66.0 (2022-08-09)
10
+ ------------------
11
+
12
+ * Feature - Various quota increases related to dimensions and custom metrics
13
+
4
14
  1.65.0 (2022-07-21)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.65.0
1
+ 1.67.0
@@ -397,7 +397,14 @@ module Aws::CloudWatch
397
397
  req.send_request(options)
398
398
  end
399
399
 
400
- # Deletes the specified anomaly detection model from your account.
400
+ # Deletes the specified anomaly detection model from your account. For
401
+ # more information about how to delete an anomaly detection model, see
402
+ # [Deleting an anomaly detection model][1] in the *CloudWatch User
403
+ # Guide*.
404
+ #
405
+ #
406
+ #
407
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Anomaly_Detection_Alarm.html#Delete_Anomaly_Detection_Model
401
408
  #
402
409
  # @option params [String] :namespace
403
410
  # The namespace associated with the anomaly detection model to delete.
@@ -1037,6 +1044,8 @@ module Aws::CloudWatch
1037
1044
  # * {Types::DescribeAnomalyDetectorsOutput#anomaly_detectors #anomaly_detectors} => Array<Types::AnomalyDetector>
1038
1045
  # * {Types::DescribeAnomalyDetectorsOutput#next_token #next_token} => String
1039
1046
  #
1047
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1048
+ #
1040
1049
  # @example Request syntax with placeholder values
1041
1050
  #
1042
1051
  # resp = client.describe_anomaly_detectors({
@@ -1138,6 +1147,7 @@ module Aws::CloudWatch
1138
1147
  # resp.insight_rules[0].state #=> String
1139
1148
  # resp.insight_rules[0].schema #=> String
1140
1149
  # resp.insight_rules[0].definition #=> String
1150
+ # resp.insight_rules[0].managed_rule #=> Boolean
1141
1151
  #
1142
1152
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeInsightRules AWS API Documentation
1143
1153
  #
@@ -2083,6 +2093,55 @@ module Aws::CloudWatch
2083
2093
  req.send_request(options)
2084
2094
  end
2085
2095
 
2096
+ # Returns a list that contains the number of managed Contributor
2097
+ # Insights rules in your account.
2098
+ #
2099
+ # @option params [required, String] :resource_arn
2100
+ # The ARN of an Amazon Web Services resource that has managed
2101
+ # Contributor Insights rules.
2102
+ #
2103
+ # @option params [String] :next_token
2104
+ # Include this value to get the next set of rules if the value was
2105
+ # returned by the previous operation.
2106
+ #
2107
+ # @option params [Integer] :max_results
2108
+ # The maximum number of results to return in one operation. If you omit
2109
+ # this parameter, the default number is used. The default number is
2110
+ # `100`.
2111
+ #
2112
+ # @return [Types::ListManagedInsightRulesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2113
+ #
2114
+ # * {Types::ListManagedInsightRulesOutput#managed_rules #managed_rules} => Array<Types::ManagedRuleDescription>
2115
+ # * {Types::ListManagedInsightRulesOutput#next_token #next_token} => String
2116
+ #
2117
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2118
+ #
2119
+ # @example Request syntax with placeholder values
2120
+ #
2121
+ # resp = client.list_managed_insight_rules({
2122
+ # resource_arn: "AmazonResourceName", # required
2123
+ # next_token: "NextToken",
2124
+ # max_results: 1,
2125
+ # })
2126
+ #
2127
+ # @example Response structure
2128
+ #
2129
+ # resp.managed_rules #=> Array
2130
+ # resp.managed_rules[0].template_name #=> String
2131
+ # resp.managed_rules[0].resource_arn #=> String
2132
+ # resp.managed_rules[0].rule_state.rule_name #=> String
2133
+ # resp.managed_rules[0].rule_state.state #=> String
2134
+ # resp.next_token #=> String
2135
+ #
2136
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListManagedInsightRules AWS API Documentation
2137
+ #
2138
+ # @overload list_managed_insight_rules(params = {})
2139
+ # @param [Hash] params ({})
2140
+ def list_managed_insight_rules(params = {}, options = {})
2141
+ req = build_request(:list_managed_insight_rules, params)
2142
+ req.send_request(options)
2143
+ end
2144
+
2086
2145
  # Returns a list of metric streams in this account.
2087
2146
  #
2088
2147
  # @option params [String] :next_token
@@ -2746,6 +2805,57 @@ module Aws::CloudWatch
2746
2805
  req.send_request(options)
2747
2806
  end
2748
2807
 
2808
+ # Creates a managed Contributor Insights rule for a specified Amazon Web
2809
+ # Services resource. When you enable a managed rule, you create a
2810
+ # Contributor Insights rule that collects data from Amazon Web Services
2811
+ # services. You cannot edit these rules with `PutInsightRule`. The rules
2812
+ # can be enabled, disabled, and deleted using `EnableInsightRules`,
2813
+ # `DisableInsightRules`, and `DeleteInsightRules`. If a previously
2814
+ # created managed rule is currently disabled, a subsequent call to this
2815
+ # API will re-enable it. Use `ListManagedInsightRules` to describe all
2816
+ # available rules.
2817
+ #
2818
+ # @option params [required, Array<Types::ManagedRule>] :managed_rules
2819
+ # A list of `ManagedRules` to enable.
2820
+ #
2821
+ # @return [Types::PutManagedInsightRulesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2822
+ #
2823
+ # * {Types::PutManagedInsightRulesOutput#failures #failures} => Array&lt;Types::PartialFailure&gt;
2824
+ #
2825
+ # @example Request syntax with placeholder values
2826
+ #
2827
+ # resp = client.put_managed_insight_rules({
2828
+ # managed_rules: [ # required
2829
+ # {
2830
+ # template_name: "TemplateName", # required
2831
+ # resource_arn: "AmazonResourceName", # required
2832
+ # tags: [
2833
+ # {
2834
+ # key: "TagKey", # required
2835
+ # value: "TagValue", # required
2836
+ # },
2837
+ # ],
2838
+ # },
2839
+ # ],
2840
+ # })
2841
+ #
2842
+ # @example Response structure
2843
+ #
2844
+ # resp.failures #=> Array
2845
+ # resp.failures[0].failure_resource #=> String
2846
+ # resp.failures[0].exception_type #=> String
2847
+ # resp.failures[0].failure_code #=> String
2848
+ # resp.failures[0].failure_description #=> String
2849
+ #
2850
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutManagedInsightRules AWS API Documentation
2851
+ #
2852
+ # @overload put_managed_insight_rules(params = {})
2853
+ # @param [Hash] params ({})
2854
+ def put_managed_insight_rules(params = {}, options = {})
2855
+ req = build_request(:put_managed_insight_rules, params)
2856
+ req.send_request(options)
2857
+ end
2858
+
2749
2859
  # Creates or updates an alarm and associates it with the specified
2750
2860
  # metric, metric math expression, or anomaly detection model.
2751
2861
  #
@@ -2949,7 +3059,7 @@ module Aws::CloudWatch
2949
3059
  #
2950
3060
  # However, if the metric is published with multiple types of units and
2951
3061
  # you don't specify a unit, the alarm's behavior is not defined and it
2952
- # behaves predictably.
3062
+ # behaves unpredictably.
2953
3063
  #
2954
3064
  # We recommend omitting `Unit` so that you don't inadvertently specify
2955
3065
  # an incorrect unit that is not published for this metric. Doing so
@@ -3162,16 +3272,16 @@ module Aws::CloudWatch
3162
3272
  # `PutMetricData` request, and supports retrieving percentile statistics
3163
3273
  # on this data.
3164
3274
  #
3165
- # Each `PutMetricData` request is limited to 40 KB in size for HTTP POST
3275
+ # Each `PutMetricData` request is limited to 1 MB in size for HTTP POST
3166
3276
  # requests. You can send a payload compressed by gzip. Each request is
3167
- # also limited to no more than 20 different metrics.
3277
+ # also limited to no more than 1000 different metrics.
3168
3278
  #
3169
3279
  # Although the `Value` parameter accepts numbers of type `Double`,
3170
3280
  # CloudWatch rejects values that are either too small or too large.
3171
3281
  # Values must be in the range of -2^360 to 2^360. In addition, special
3172
3282
  # values (for example, NaN, +Infinity, -Infinity) are not supported.
3173
3283
  #
3174
- # You can use up to 10 dimensions per metric to further clarify what
3284
+ # You can use up to 30 dimensions per metric to further clarify what
3175
3285
  # data the metric collects. Each dimension consists of a Name and Value
3176
3286
  # pair. For more information about specifying dimensions, see
3177
3287
  # [Publishing Metrics][2] in the *Amazon CloudWatch User Guide*.
@@ -3212,8 +3322,8 @@ module Aws::CloudWatch
3212
3322
  # should not specify a namespace that begins with `AWS/`
3213
3323
  #
3214
3324
  # @option params [required, Array<Types::MetricDatum>] :metric_data
3215
- # The data for the metric. The array can include no more than 20 metrics
3216
- # per call.
3325
+ # The data for the metric. The array can include no more than 1000
3326
+ # metrics per call.
3217
3327
  #
3218
3328
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3219
3329
  #
@@ -3662,7 +3772,7 @@ module Aws::CloudWatch
3662
3772
  params: params,
3663
3773
  config: config)
3664
3774
  context[:gem_name] = 'aws-sdk-cloudwatch'
3665
- context[:gem_version] = '1.65.0'
3775
+ context[:gem_version] = '1.67.0'
3666
3776
  Seahorse::Client::Request.new(handlers, context)
3667
3777
  end
3668
3778
 
@@ -133,6 +133,7 @@ module Aws::CloudWatch
133
133
  InsightRuleContributorKeys = Shapes::ListShape.new(name: 'InsightRuleContributorKeys')
134
134
  InsightRuleContributors = Shapes::ListShape.new(name: 'InsightRuleContributors')
135
135
  InsightRuleDefinition = Shapes::StringShape.new(name: 'InsightRuleDefinition')
136
+ InsightRuleIsManaged = Shapes::BooleanShape.new(name: 'InsightRuleIsManaged')
136
137
  InsightRuleMaxResults = Shapes::IntegerShape.new(name: 'InsightRuleMaxResults')
137
138
  InsightRuleMetricDatapoint = Shapes::StructureShape.new(name: 'InsightRuleMetricDatapoint')
138
139
  InsightRuleMetricDatapoints = Shapes::ListShape.new(name: 'InsightRuleMetricDatapoints')
@@ -158,6 +159,8 @@ module Aws::CloudWatch
158
159
  LimitExceededFault = Shapes::StructureShape.new(name: 'LimitExceededFault')
159
160
  ListDashboardsInput = Shapes::StructureShape.new(name: 'ListDashboardsInput')
160
161
  ListDashboardsOutput = Shapes::StructureShape.new(name: 'ListDashboardsOutput')
162
+ ListManagedInsightRulesInput = Shapes::StructureShape.new(name: 'ListManagedInsightRulesInput')
163
+ ListManagedInsightRulesOutput = Shapes::StructureShape.new(name: 'ListManagedInsightRulesOutput')
161
164
  ListMetricStreamsInput = Shapes::StructureShape.new(name: 'ListMetricStreamsInput')
162
165
  ListMetricStreamsMaxResults = Shapes::IntegerShape.new(name: 'ListMetricStreamsMaxResults')
163
166
  ListMetricStreamsOutput = Shapes::StructureShape.new(name: 'ListMetricStreamsOutput')
@@ -165,6 +168,11 @@ module Aws::CloudWatch
165
168
  ListMetricsOutput = Shapes::StructureShape.new(name: 'ListMetricsOutput')
166
169
  ListTagsForResourceInput = Shapes::StructureShape.new(name: 'ListTagsForResourceInput')
167
170
  ListTagsForResourceOutput = Shapes::StructureShape.new(name: 'ListTagsForResourceOutput')
171
+ ManagedRule = Shapes::StructureShape.new(name: 'ManagedRule')
172
+ ManagedRuleDescription = Shapes::StructureShape.new(name: 'ManagedRuleDescription')
173
+ ManagedRuleDescriptions = Shapes::ListShape.new(name: 'ManagedRuleDescriptions')
174
+ ManagedRuleState = Shapes::StructureShape.new(name: 'ManagedRuleState')
175
+ ManagedRules = Shapes::ListShape.new(name: 'ManagedRules')
168
176
  MaxRecords = Shapes::IntegerShape.new(name: 'MaxRecords')
169
177
  MaxReturnedResultsCount = Shapes::IntegerShape.new(name: 'MaxReturnedResultsCount')
170
178
  Message = Shapes::StringShape.new(name: 'Message')
@@ -217,6 +225,8 @@ module Aws::CloudWatch
217
225
  PutDashboardOutput = Shapes::StructureShape.new(name: 'PutDashboardOutput')
218
226
  PutInsightRuleInput = Shapes::StructureShape.new(name: 'PutInsightRuleInput')
219
227
  PutInsightRuleOutput = Shapes::StructureShape.new(name: 'PutInsightRuleOutput')
228
+ PutManagedInsightRulesInput = Shapes::StructureShape.new(name: 'PutManagedInsightRulesInput')
229
+ PutManagedInsightRulesOutput = Shapes::StructureShape.new(name: 'PutManagedInsightRulesOutput')
220
230
  PutMetricAlarmInput = Shapes::StructureShape.new(name: 'PutMetricAlarmInput')
221
231
  PutMetricDataInput = Shapes::StructureShape.new(name: 'PutMetricDataInput')
222
232
  PutMetricStreamInput = Shapes::StructureShape.new(name: 'PutMetricStreamInput')
@@ -256,6 +266,7 @@ module Aws::CloudWatch
256
266
  TagResourceInput = Shapes::StructureShape.new(name: 'TagResourceInput')
257
267
  TagResourceOutput = Shapes::StructureShape.new(name: 'TagResourceOutput')
258
268
  TagValue = Shapes::StringShape.new(name: 'TagValue')
269
+ TemplateName = Shapes::StringShape.new(name: 'TemplateName')
259
270
  Threshold = Shapes::FloatShape.new(name: 'Threshold')
260
271
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
261
272
  Timestamps = Shapes::ListShape.new(name: 'Timestamps')
@@ -571,6 +582,7 @@ module Aws::CloudWatch
571
582
  InsightRule.add_member(:state, Shapes::ShapeRef.new(shape: InsightRuleState, required: true, location_name: "State"))
572
583
  InsightRule.add_member(:schema, Shapes::ShapeRef.new(shape: InsightRuleSchema, required: true, location_name: "Schema"))
573
584
  InsightRule.add_member(:definition, Shapes::ShapeRef.new(shape: InsightRuleDefinition, required: true, location_name: "Definition"))
585
+ InsightRule.add_member(:managed_rule, Shapes::ShapeRef.new(shape: InsightRuleIsManaged, location_name: "ManagedRule"))
574
586
  InsightRule.struct_class = Types::InsightRule
575
587
 
576
588
  InsightRuleContributor.add_member(:keys, Shapes::ShapeRef.new(shape: InsightRuleContributorKeys, required: true, location_name: "Keys"))
@@ -639,6 +651,15 @@ module Aws::CloudWatch
639
651
  ListDashboardsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
640
652
  ListDashboardsOutput.struct_class = Types::ListDashboardsOutput
641
653
 
654
+ ListManagedInsightRulesInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
655
+ ListManagedInsightRulesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
656
+ ListManagedInsightRulesInput.add_member(:max_results, Shapes::ShapeRef.new(shape: InsightRuleMaxResults, location_name: "MaxResults"))
657
+ ListManagedInsightRulesInput.struct_class = Types::ListManagedInsightRulesInput
658
+
659
+ ListManagedInsightRulesOutput.add_member(:managed_rules, Shapes::ShapeRef.new(shape: ManagedRuleDescriptions, location_name: "ManagedRules"))
660
+ ListManagedInsightRulesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
661
+ ListManagedInsightRulesOutput.struct_class = Types::ListManagedInsightRulesOutput
662
+
642
663
  ListMetricStreamsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
643
664
  ListMetricStreamsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListMetricStreamsMaxResults, location_name: "MaxResults"))
644
665
  ListMetricStreamsInput.struct_class = Types::ListMetricStreamsInput
@@ -664,6 +685,24 @@ module Aws::CloudWatch
664
685
  ListTagsForResourceOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
665
686
  ListTagsForResourceOutput.struct_class = Types::ListTagsForResourceOutput
666
687
 
688
+ ManagedRule.add_member(:template_name, Shapes::ShapeRef.new(shape: TemplateName, required: true, location_name: "TemplateName"))
689
+ ManagedRule.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
690
+ ManagedRule.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
691
+ ManagedRule.struct_class = Types::ManagedRule
692
+
693
+ ManagedRuleDescription.add_member(:template_name, Shapes::ShapeRef.new(shape: TemplateName, location_name: "TemplateName"))
694
+ ManagedRuleDescription.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "ResourceARN"))
695
+ ManagedRuleDescription.add_member(:rule_state, Shapes::ShapeRef.new(shape: ManagedRuleState, location_name: "RuleState"))
696
+ ManagedRuleDescription.struct_class = Types::ManagedRuleDescription
697
+
698
+ ManagedRuleDescriptions.member = Shapes::ShapeRef.new(shape: ManagedRuleDescription)
699
+
700
+ ManagedRuleState.add_member(:rule_name, Shapes::ShapeRef.new(shape: InsightRuleName, required: true, location_name: "RuleName"))
701
+ ManagedRuleState.add_member(:state, Shapes::ShapeRef.new(shape: InsightRuleState, required: true, location_name: "State"))
702
+ ManagedRuleState.struct_class = Types::ManagedRuleState
703
+
704
+ ManagedRules.member = Shapes::ShapeRef.new(shape: ManagedRule)
705
+
667
706
  MessageData.add_member(:code, Shapes::ShapeRef.new(shape: MessageDataCode, location_name: "Code"))
668
707
  MessageData.add_member(:value, Shapes::ShapeRef.new(shape: MessageDataValue, location_name: "Value"))
669
708
  MessageData.struct_class = Types::MessageData
@@ -831,6 +870,12 @@ module Aws::CloudWatch
831
870
 
832
871
  PutInsightRuleOutput.struct_class = Types::PutInsightRuleOutput
833
872
 
873
+ PutManagedInsightRulesInput.add_member(:managed_rules, Shapes::ShapeRef.new(shape: ManagedRules, required: true, location_name: "ManagedRules"))
874
+ PutManagedInsightRulesInput.struct_class = Types::PutManagedInsightRulesInput
875
+
876
+ PutManagedInsightRulesOutput.add_member(:failures, Shapes::ShapeRef.new(shape: BatchFailures, location_name: "Failures"))
877
+ PutManagedInsightRulesOutput.struct_class = Types::PutManagedInsightRulesOutput
878
+
834
879
  PutMetricAlarmInput.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, required: true, location_name: "AlarmName"))
835
880
  PutMetricAlarmInput.add_member(:alarm_description, Shapes::ShapeRef.new(shape: AlarmDescription, location_name: "AlarmDescription"))
836
881
  PutMetricAlarmInput.add_member(:actions_enabled, Shapes::ShapeRef.new(shape: ActionsEnabled, location_name: "ActionsEnabled"))
@@ -1059,6 +1104,12 @@ module Aws::CloudWatch
1059
1104
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
1060
1105
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
1061
1106
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
1107
+ o[:pager] = Aws::Pager.new(
1108
+ limit_key: "max_results",
1109
+ tokens: {
1110
+ "next_token" => "next_token"
1111
+ }
1112
+ )
1062
1113
  end)
1063
1114
 
1064
1115
  api.add_operation(:describe_insight_rules, Seahorse::Model::Operation.new.tap do |o|
@@ -1198,6 +1249,23 @@ module Aws::CloudWatch
1198
1249
  )
1199
1250
  end)
1200
1251
 
1252
+ api.add_operation(:list_managed_insight_rules, Seahorse::Model::Operation.new.tap do |o|
1253
+ o.name = "ListManagedInsightRules"
1254
+ o.http_method = "POST"
1255
+ o.http_request_uri = "/"
1256
+ o.input = Shapes::ShapeRef.new(shape: ListManagedInsightRulesInput)
1257
+ o.output = Shapes::ShapeRef.new(shape: ListManagedInsightRulesOutput)
1258
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
1259
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
1260
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
1261
+ o[:pager] = Aws::Pager.new(
1262
+ limit_key: "max_results",
1263
+ tokens: {
1264
+ "next_token" => "next_token"
1265
+ }
1266
+ )
1267
+ end)
1268
+
1201
1269
  api.add_operation(:list_metric_streams, Seahorse::Model::Operation.new.tap do |o|
1202
1270
  o.name = "ListMetricStreams"
1203
1271
  o.http_method = "POST"
@@ -1285,6 +1353,16 @@ module Aws::CloudWatch
1285
1353
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1286
1354
  end)
1287
1355
 
1356
+ api.add_operation(:put_managed_insight_rules, Seahorse::Model::Operation.new.tap do |o|
1357
+ o.name = "PutManagedInsightRules"
1358
+ o.http_method = "POST"
1359
+ o.http_request_uri = "/"
1360
+ o.input = Shapes::ShapeRef.new(shape: PutManagedInsightRulesInput)
1361
+ o.output = Shapes::ShapeRef.new(shape: PutManagedInsightRulesOutput)
1362
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
1363
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
1364
+ end)
1365
+
1288
1366
  api.add_operation(:put_metric_alarm, Seahorse::Model::Operation.new.tap do |o|
1289
1367
  o.name = "PutMetricAlarm"
1290
1368
  o.http_method = "POST"
@@ -486,7 +486,7 @@ module Aws::CloudWatch
486
486
  #
487
487
  # However, if the metric is published with multiple types of units and
488
488
  # you don't specify a unit, the alarm's behavior is not defined and it
489
- # behaves predictably.
489
+ # behaves unpredictably.
490
490
  #
491
491
  # We recommend omitting `Unit` so that you don't inadvertently specify
492
492
  # an incorrect unit that is not published for this metric. Doing so
@@ -645,8 +645,8 @@ module Aws::CloudWatch
645
645
  # })
646
646
  # @param [Hash] options ({})
647
647
  # @option options [required, Array<Types::MetricDatum>] :metric_data
648
- # The data for the metric. The array can include no more than 20 metrics
649
- # per call.
648
+ # The data for the metric. The array can include no more than 1000
649
+ # metrics per call.
650
650
  # @return [EmptyStructure]
651
651
  def put_data(options = {})
652
652
  options = Aws::Util.deep_merge(options,
@@ -1090,7 +1090,7 @@ module Aws::CloudWatch
1090
1090
  # many Amazon EC2 metrics publish `InstanceId` as a dimension name, and
1091
1091
  # the actual instance ID as the value for that dimension.
1092
1092
  #
1093
- # You can assign up to 10 dimensions to a metric.
1093
+ # You can assign up to 30 dimensions to a metric.
1094
1094
  #
1095
1095
  # @note When making an API call, you may pass Dimension
1096
1096
  # data as a hash:
@@ -1843,7 +1843,7 @@ module Aws::CloudWatch
1843
1843
  # @!attribute [rw] output_format
1844
1844
  # The output format for the stream. Valid values are `json` and
1845
1845
  # `opentelemetry0.7`. For more information about metric stream output
1846
- # formats, see [ Metric streams output formats][1].
1846
+ # formats, see [Metric streams output formats][1].
1847
1847
  #
1848
1848
  #
1849
1849
  #
@@ -1996,13 +1996,18 @@ module Aws::CloudWatch
1996
1996
  # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights-RuleSyntax.html
1997
1997
  # @return [String]
1998
1998
  #
1999
+ # @!attribute [rw] managed_rule
2000
+ # An optional built-in rule that Amazon Web Services manages.
2001
+ # @return [Boolean]
2002
+ #
1999
2003
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/InsightRule AWS API Documentation
2000
2004
  #
2001
2005
  class InsightRule < Struct.new(
2002
2006
  :name,
2003
2007
  :state,
2004
2008
  :schema,
2005
- :definition)
2009
+ :definition,
2010
+ :managed_rule)
2006
2011
  SENSITIVE = []
2007
2012
  include Aws::Structure
2008
2013
  end
@@ -2327,6 +2332,60 @@ module Aws::CloudWatch
2327
2332
  include Aws::Structure
2328
2333
  end
2329
2334
 
2335
+ # @note When making an API call, you may pass ListManagedInsightRulesInput
2336
+ # data as a hash:
2337
+ #
2338
+ # {
2339
+ # resource_arn: "AmazonResourceName", # required
2340
+ # next_token: "NextToken",
2341
+ # max_results: 1,
2342
+ # }
2343
+ #
2344
+ # @!attribute [rw] resource_arn
2345
+ # The ARN of an Amazon Web Services resource that has managed
2346
+ # Contributor Insights rules.
2347
+ # @return [String]
2348
+ #
2349
+ # @!attribute [rw] next_token
2350
+ # Include this value to get the next set of rules if the value was
2351
+ # returned by the previous operation.
2352
+ # @return [String]
2353
+ #
2354
+ # @!attribute [rw] max_results
2355
+ # The maximum number of results to return in one operation. If you
2356
+ # omit this parameter, the default number is used. The default number
2357
+ # is `100`.
2358
+ # @return [Integer]
2359
+ #
2360
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListManagedInsightRulesInput AWS API Documentation
2361
+ #
2362
+ class ListManagedInsightRulesInput < Struct.new(
2363
+ :resource_arn,
2364
+ :next_token,
2365
+ :max_results)
2366
+ SENSITIVE = []
2367
+ include Aws::Structure
2368
+ end
2369
+
2370
+ # @!attribute [rw] managed_rules
2371
+ # The managed rules that are available for the specified Amazon Web
2372
+ # Services resource.
2373
+ # @return [Array<Types::ManagedRuleDescription>]
2374
+ #
2375
+ # @!attribute [rw] next_token
2376
+ # Include this value to get the next set of rules if the value was
2377
+ # returned by the previous operation.
2378
+ # @return [String]
2379
+ #
2380
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListManagedInsightRulesOutput AWS API Documentation
2381
+ #
2382
+ class ListManagedInsightRulesOutput < Struct.new(
2383
+ :managed_rules,
2384
+ :next_token)
2385
+ SENSITIVE = []
2386
+ include Aws::Structure
2387
+ end
2388
+
2330
2389
  # @note When making an API call, you may pass ListMetricStreamsInput
2331
2390
  # data as a hash:
2332
2391
  #
@@ -2496,6 +2555,106 @@ module Aws::CloudWatch
2496
2555
  include Aws::Structure
2497
2556
  end
2498
2557
 
2558
+ # Contains the information that's required to enable a managed
2559
+ # Contributor Insights rule for an Amazon Web Services resource.
2560
+ #
2561
+ # @note When making an API call, you may pass ManagedRule
2562
+ # data as a hash:
2563
+ #
2564
+ # {
2565
+ # template_name: "TemplateName", # required
2566
+ # resource_arn: "AmazonResourceName", # required
2567
+ # tags: [
2568
+ # {
2569
+ # key: "TagKey", # required
2570
+ # value: "TagValue", # required
2571
+ # },
2572
+ # ],
2573
+ # }
2574
+ #
2575
+ # @!attribute [rw] template_name
2576
+ # The template name for the managed Contributor Insights rule, as
2577
+ # returned by `ListManagedInsightRules`.
2578
+ # @return [String]
2579
+ #
2580
+ # @!attribute [rw] resource_arn
2581
+ # The ARN of an Amazon Web Services resource that has managed
2582
+ # Contributor Insights rules.
2583
+ # @return [String]
2584
+ #
2585
+ # @!attribute [rw] tags
2586
+ # A list of key-value pairs that you can associate with a managed
2587
+ # Contributor Insights rule. You can associate as many as 50 tags with
2588
+ # a rule. Tags can help you organize and categorize your resources.
2589
+ # You also can use them to scope user permissions by granting a user
2590
+ # permission to access or change only the resources that have certain
2591
+ # tag values. To associate tags with a rule, you must have the
2592
+ # `cloudwatch:TagResource` permission in addition to the
2593
+ # `cloudwatch:PutInsightRule` permission. If you are using this
2594
+ # operation to update an existing Contributor Insights rule, any tags
2595
+ # that you specify in this parameter are ignored. To change the tags
2596
+ # of an existing rule, use `TagResource`.
2597
+ # @return [Array<Types::Tag>]
2598
+ #
2599
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ManagedRule AWS API Documentation
2600
+ #
2601
+ class ManagedRule < Struct.new(
2602
+ :template_name,
2603
+ :resource_arn,
2604
+ :tags)
2605
+ SENSITIVE = []
2606
+ include Aws::Structure
2607
+ end
2608
+
2609
+ # Contains information about managed Contributor Insights rules, as
2610
+ # returned by `ListManagedInsightRules`.
2611
+ #
2612
+ # @!attribute [rw] template_name
2613
+ # The template name for the managed rule. Used to enable managed rules
2614
+ # using `PutManagedInsightRules`.
2615
+ # @return [String]
2616
+ #
2617
+ # @!attribute [rw] resource_arn
2618
+ # If a managed rule is enabled, this is the ARN for the related Amazon
2619
+ # Web Services resource.
2620
+ # @return [String]
2621
+ #
2622
+ # @!attribute [rw] rule_state
2623
+ # Describes the state of a managed rule. If present, it contains
2624
+ # information about the Contributor Insights rule that contains
2625
+ # information about the related Amazon Web Services resource.
2626
+ # @return [Types::ManagedRuleState]
2627
+ #
2628
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ManagedRuleDescription AWS API Documentation
2629
+ #
2630
+ class ManagedRuleDescription < Struct.new(
2631
+ :template_name,
2632
+ :resource_arn,
2633
+ :rule_state)
2634
+ SENSITIVE = []
2635
+ include Aws::Structure
2636
+ end
2637
+
2638
+ # The status of a managed Contributor Insights rule.
2639
+ #
2640
+ # @!attribute [rw] rule_name
2641
+ # The name of the Contributor Insights rule that contains data for the
2642
+ # specified Amazon Web Services resource.
2643
+ # @return [String]
2644
+ #
2645
+ # @!attribute [rw] state
2646
+ # Indicates whether the rule is enabled or disabled.
2647
+ # @return [String]
2648
+ #
2649
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ManagedRuleState AWS API Documentation
2650
+ #
2651
+ class ManagedRuleState < Struct.new(
2652
+ :rule_name,
2653
+ :state)
2654
+ SENSITIVE = []
2655
+ include Aws::Structure
2656
+ end
2657
+
2499
2658
  # A message returned by the `GetMetricData`API, including a code and a
2500
2659
  # description.
2501
2660
  #
@@ -3859,6 +4018,48 @@ module Aws::CloudWatch
3859
4018
  #
3860
4019
  class PutInsightRuleOutput < Aws::EmptyStructure; end
3861
4020
 
4021
+ # @note When making an API call, you may pass PutManagedInsightRulesInput
4022
+ # data as a hash:
4023
+ #
4024
+ # {
4025
+ # managed_rules: [ # required
4026
+ # {
4027
+ # template_name: "TemplateName", # required
4028
+ # resource_arn: "AmazonResourceName", # required
4029
+ # tags: [
4030
+ # {
4031
+ # key: "TagKey", # required
4032
+ # value: "TagValue", # required
4033
+ # },
4034
+ # ],
4035
+ # },
4036
+ # ],
4037
+ # }
4038
+ #
4039
+ # @!attribute [rw] managed_rules
4040
+ # A list of `ManagedRules` to enable.
4041
+ # @return [Array<Types::ManagedRule>]
4042
+ #
4043
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutManagedInsightRulesInput AWS API Documentation
4044
+ #
4045
+ class PutManagedInsightRulesInput < Struct.new(
4046
+ :managed_rules)
4047
+ SENSITIVE = []
4048
+ include Aws::Structure
4049
+ end
4050
+
4051
+ # @!attribute [rw] failures
4052
+ # An array that lists the rules that could not be enabled.
4053
+ # @return [Array<Types::PartialFailure>]
4054
+ #
4055
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutManagedInsightRulesOutput AWS API Documentation
4056
+ #
4057
+ class PutManagedInsightRulesOutput < Struct.new(
4058
+ :failures)
4059
+ SENSITIVE = []
4060
+ include Aws::Structure
4061
+ end
4062
+
3862
4063
  # @note When making an API call, you may pass PutMetricAlarmInput
3863
4064
  # data as a hash:
3864
4065
  #
@@ -4082,7 +4283,7 @@ module Aws::CloudWatch
4082
4283
  #
4083
4284
  # However, if the metric is published with multiple types of units and
4084
4285
  # you don't specify a unit, the alarm's behavior is not defined and
4085
- # it behaves predictably.
4286
+ # it behaves unpredictably.
4086
4287
  #
4087
4288
  # We recommend omitting `Unit` so that you don't inadvertently
4088
4289
  # specify an incorrect unit that is not published for this metric.
@@ -4288,7 +4489,7 @@ module Aws::CloudWatch
4288
4489
  # @return [String]
4289
4490
  #
4290
4491
  # @!attribute [rw] metric_data
4291
- # The data for the metric. The array can include no more than 20
4492
+ # The data for the metric. The array can include no more than 1000
4292
4493
  # metrics per call.
4293
4494
  # @return [Array<Types::MetricDatum>]
4294
4495
  #
@@ -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.65.0'
55
+ GEM_VERSION = '1.67.0'
56
56
 
57
57
  end
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.65.0
4
+ version: 1.67.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: 2022-07-21 00:00:00.000000000 Z
11
+ date: 2022-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core