aws-sdk-cloudwatch 1.66.0 → 1.68.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
  #
@@ -3011,7 +3170,7 @@ module Aws::CloudWatch
3011
3170
  # period. Each unique value is listed just once in this array, and the
3012
3171
  # corresponding number in the `Counts` array specifies the number of
3013
3172
  # times that value occurred during the period. You can include up to
3014
- # 500 unique values in each `PutMetricData` action that specifies a
3173
+ # 150 unique values in each `PutMetricData` action that specifies a
3015
3174
  # `Values` array.
3016
3175
  #
3017
3176
  # Although the `Values` array accepts numbers of type `Double`,
@@ -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
  #
@@ -13,10 +13,14 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-cloudwatch/types'
15
15
  require_relative 'aws-sdk-cloudwatch/client_api'
16
+ require_relative 'aws-sdk-cloudwatch/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-cloudwatch/client'
17
18
  require_relative 'aws-sdk-cloudwatch/errors'
18
19
  require_relative 'aws-sdk-cloudwatch/waiters'
19
20
  require_relative 'aws-sdk-cloudwatch/resource'
21
+ require_relative 'aws-sdk-cloudwatch/endpoint_parameters'
22
+ require_relative 'aws-sdk-cloudwatch/endpoint_provider'
23
+ require_relative 'aws-sdk-cloudwatch/endpoints'
20
24
  require_relative 'aws-sdk-cloudwatch/alarm'
21
25
  require_relative 'aws-sdk-cloudwatch/composite_alarm'
22
26
  require_relative 'aws-sdk-cloudwatch/metric'
@@ -52,6 +56,6 @@ require_relative 'aws-sdk-cloudwatch/customizations'
52
56
  # @!group service
53
57
  module Aws::CloudWatch
54
58
 
55
- GEM_VERSION = '1.66.0'
59
+ GEM_VERSION = '1.68.0'
56
60
 
57
61
  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.66.0
4
+ version: 1.68.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-08-09 00:00:00.000000000 Z
11
+ date: 2022-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.127.0
22
+ version: 3.165.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -61,8 +61,12 @@ files:
61
61
  - lib/aws-sdk-cloudwatch/client_api.rb
62
62
  - lib/aws-sdk-cloudwatch/composite_alarm.rb
63
63
  - lib/aws-sdk-cloudwatch/customizations.rb
64
+ - lib/aws-sdk-cloudwatch/endpoint_parameters.rb
65
+ - lib/aws-sdk-cloudwatch/endpoint_provider.rb
66
+ - lib/aws-sdk-cloudwatch/endpoints.rb
64
67
  - lib/aws-sdk-cloudwatch/errors.rb
65
68
  - lib/aws-sdk-cloudwatch/metric.rb
69
+ - lib/aws-sdk-cloudwatch/plugins/endpoints.rb
66
70
  - lib/aws-sdk-cloudwatch/resource.rb
67
71
  - lib/aws-sdk-cloudwatch/types.rb
68
72
  - lib/aws-sdk-cloudwatch/waiters.rb