aws-sdk-cloudwatch 1.148.0 → 1.149.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86a768e67b1bcdfa6929d08c926599bc42d04cf990348bc81f045fe35ff55b26
4
- data.tar.gz: bf227cd625a503d32eab816b302991901511b1676ec73ecf1edbcc59048b76d7
3
+ metadata.gz: 0b37e12a2524b8afa77115b2a0c56c73c41e31f4d252ed51506cc41cf4cc0c71
4
+ data.tar.gz: aa09f6f175ad9c807343d528752fa33d9f0165fcf890a64681f5d2d5a6f608ee
5
5
  SHA512:
6
- metadata.gz: 95fafed6cf6a5e33f56322fb7fa4e6772d7309ebe9bc950bcc8fd3a1d1e13d06723e2d6fe0859c66be829dba19e69bd1c5e982be4893d388cdfef83deec43f9b
7
- data.tar.gz: 37c76e80358b377b5d644e6dab62eb98563f688534c40c929b159d65dfbdb37d76449f5f03d520e774fda6ec9a769dcfe8d475e3b31f34bccefa62932f75390f
6
+ metadata.gz: 2501db9e7010cfe15a3b1c3786c94b868ed2ff3eff2dc2cbf65b4d3b688a0e0156863d6bf5d58423be4203f2a546325a8dbc928104ccaf2d5252079a5ee2e4e2
7
+ data.tar.gz: 123a2152bfc0e231f678b8e5bb985a6e102ff578e4358b89ba6c290a2b626b1c4ca85de3b47cac17d05701204a6aa31b90941ae937f3c5878387dff8fef1cb61
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.149.0 (2026-09-24)
5
+ ------------------
6
+
7
+ * Feature - This release adds Create, Get, Update, and DeleteResourceMetricsConfiguration to enable detailed metric collection for an AWS resource, and adds UpdateOTelEnrichment plus include and exclude filters on StartOTelEnrichment so you can choose which metric namespaces CloudWatch enriches.
8
+
4
9
  1.148.0 (2026-09-11)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.148.0
1
+ 1.149.0
@@ -594,6 +594,74 @@ module Aws::CloudWatch
594
594
  req.send_request(options)
595
595
  end
596
596
 
597
+ # Creates a resource metrics configuration for an Amazon Web Services
598
+ # resource. After you create a configuration, Amazon CloudWatch collects
599
+ # detailed metrics for that resource.
600
+ #
601
+ # Each Amazon Web Services resource can have only one resource metrics
602
+ # configuration. If a configuration already exists for the specified
603
+ # resource ARN, this operation returns a `ConflictException`. To modify
604
+ # an existing configuration, use
605
+ # [UpdateResourceMetricsConfiguration][1].
606
+ #
607
+ # If the Amazon Web Services resource that you specify in `ResourceArn`
608
+ # does not exist, this operation returns a `ResourceNotFoundException`.
609
+ # Verify that the resource ARN is correct and that the resource exists
610
+ # before you retry the request.
611
+ #
612
+ # To create a resource metrics configuration, you must have the
613
+ # `cloudwatch:CreateResourceMetricsConfiguration` permission. For
614
+ # information about scoping this permission to specific resources, see
615
+ # [Condition keys for resource metrics configuration access][2] in the
616
+ # *Amazon CloudWatch User Guide*.
617
+ #
618
+ #
619
+ #
620
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_UpdateResourceMetricsConfiguration.html
621
+ # [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/iam-cw-condition-keys-resource-arn.html
622
+ #
623
+ # @option params [required, String] :resource_arn
624
+ # The Amazon Resource Name (ARN) of the Amazon Web Services resource to
625
+ # enable detailed monitoring for.
626
+ #
627
+ # @option params [Array<Types::ResourceMetricSelection>] :metric_selections
628
+ # Specifies which metrics Amazon CloudWatch collects for the resource.
629
+ # If you omit this parameter, Amazon CloudWatch collects all available
630
+ # detailed metrics for the resource.
631
+ #
632
+ # @return [Types::CreateResourceMetricsConfigurationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
633
+ #
634
+ # * {Types::CreateResourceMetricsConfigurationOutput#resource_metrics_configuration #resource_metrics_configuration} => Types::ResourceMetricsConfiguration
635
+ #
636
+ # @example Request syntax with placeholder values
637
+ #
638
+ # resp = client.create_resource_metrics_configuration({
639
+ # resource_arn: "ResourceArn", # required
640
+ # metric_selections: [
641
+ # {
642
+ # include_metrics: ["MetricName"], # required
643
+ # },
644
+ # ],
645
+ # })
646
+ #
647
+ # @example Response structure
648
+ #
649
+ # resp.resource_metrics_configuration.resource_arn #=> String
650
+ # resp.resource_metrics_configuration.created_at #=> Time
651
+ # resp.resource_metrics_configuration.updated_at #=> Time
652
+ # resp.resource_metrics_configuration.metric_selections #=> Array
653
+ # resp.resource_metrics_configuration.metric_selections[0].include_metrics #=> Array
654
+ # resp.resource_metrics_configuration.metric_selections[0].include_metrics[0] #=> String
655
+ #
656
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/CreateResourceMetricsConfiguration AWS API Documentation
657
+ #
658
+ # @overload create_resource_metrics_configuration(params = {})
659
+ # @param [Hash] params ({})
660
+ def create_resource_metrics_configuration(params = {}, options = {})
661
+ req = build_request(:create_resource_metrics_configuration, params)
662
+ req.send_request(options)
663
+ end
664
+
597
665
  # Deletes a specific alarm mute rule.
598
666
  #
599
667
  # When you delete a mute rule, any alarms that are currently being muted
@@ -903,6 +971,46 @@ module Aws::CloudWatch
903
971
  req.send_request(options)
904
972
  end
905
973
 
974
+ # Deletes the resource metrics configuration for an Amazon Web Services
975
+ # resource. After you delete the configuration, Amazon CloudWatch stops
976
+ # collecting detailed metrics for the resource. Metric data that Amazon
977
+ # CloudWatch already collected for the resource is not deleted.
978
+ #
979
+ # This operation returns a `ResourceNotFoundException` if no resource
980
+ # metrics configuration exists for the specified resource ARN. Verify
981
+ # that the resource ARN is correct.
982
+ #
983
+ # To delete a resource metrics configuration, you must have the
984
+ # `cloudwatch:DeleteResourceMetricsConfiguration` permission. For
985
+ # information about scoping this permission to specific resources, see
986
+ # [Condition keys for resource metrics configuration access][1] in the
987
+ # *Amazon CloudWatch User Guide*.
988
+ #
989
+ #
990
+ #
991
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/iam-cw-condition-keys-resource-arn.html
992
+ #
993
+ # @option params [required, String] :resource_arn
994
+ # The Amazon Resource Name (ARN) of the Amazon Web Services resource to
995
+ # delete the resource metrics configuration for.
996
+ #
997
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
998
+ #
999
+ # @example Request syntax with placeholder values
1000
+ #
1001
+ # resp = client.delete_resource_metrics_configuration({
1002
+ # resource_arn: "ResourceArn", # required
1003
+ # })
1004
+ #
1005
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteResourceMetricsConfiguration AWS API Documentation
1006
+ #
1007
+ # @overload delete_resource_metrics_configuration(params = {})
1008
+ # @param [Hash] params ({})
1009
+ def delete_resource_metrics_configuration(params = {}, options = {})
1010
+ req = build_request(:delete_resource_metrics_configuration, params)
1011
+ req.send_request(options)
1012
+ end
1013
+
906
1014
  # Returns the information of the current alarm contributors that are in
907
1015
  # `ALARM` state. This operation returns details about the individual
908
1016
  # time series that contribute to the alarm's state.
@@ -1849,6 +1957,19 @@ module Aws::CloudWatch
1849
1957
  # data returned within `DashboardBody` as the template for the new
1850
1958
  # dashboard when you call `PutDashboard` to create the copy.
1851
1959
  #
1960
+ # You might have recently enabled an [opt-in Region (Region that is
1961
+ # disabled by default)][1] for your account. In that Region,
1962
+ # `GetDashboard` can return an access denied error for up to 24 hours
1963
+ # after you enable the Region. This delay occurs while dashboard data
1964
+ # propagates. The error does not indicate a problem with your
1965
+ # permissions. Because dashboards are global, you can call
1966
+ # `GetDashboard` in any other enabled Region, or retry after propagation
1967
+ # completes.
1968
+ #
1969
+ #
1970
+ #
1971
+ # [1]: https://docs.aws.amazon.com/glossary/latest/reference/glos-chap.html#optinregion
1972
+ #
1852
1973
  # @option params [required, String] :dashboard_name
1853
1974
  # The name of the dashboard to be described.
1854
1975
  #
@@ -2094,9 +2215,11 @@ module Aws::CloudWatch
2094
2215
  # If you include a Metrics Insights query, each `GetMetricData`
2095
2216
  # operation can include only one query. But the same `GetMetricData`
2096
2217
  # operation can also retrieve other metrics. Metrics Insights queries
2097
- # can query only the most recent three hours of metric data. For more
2098
- # information about Metrics Insights, see [Query your metrics with
2099
- # CloudWatch Metrics Insights][2].
2218
+ # can query the most recent two weeks of metric data. For alarm
2219
+ # condition evaluations, Metrics Insights queries can query only the
2220
+ # most recent three hours of metric data. For more information about
2221
+ # Metrics Insights, see [Query your metrics with CloudWatch Metrics
2222
+ # Insights][2].
2100
2223
  #
2101
2224
  # Calls to the `GetMetricData` API have a different pricing structure
2102
2225
  # than calls to `GetMetricStatistics`. For more information about
@@ -2681,10 +2804,24 @@ module Aws::CloudWatch
2681
2804
  # @return [Types::GetOTelEnrichmentOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2682
2805
  #
2683
2806
  # * {Types::GetOTelEnrichmentOutput#status #status} => String
2807
+ # * {Types::GetOTelEnrichmentOutput#include_filters #include_filters} => Array&lt;Types::OTelEnrichmentMetricSelector&gt;
2808
+ # * {Types::GetOTelEnrichmentOutput#exclude_filters #exclude_filters} => Array&lt;Types::OTelEnrichmentMetricSelector&gt;
2809
+ # * {Types::GetOTelEnrichmentOutput#created_at #created_at} => Time
2810
+ # * {Types::GetOTelEnrichmentOutput#updated_at #updated_at} => Time
2684
2811
  #
2685
2812
  # @example Response structure
2686
2813
  #
2687
2814
  # resp.status #=> String, one of "Running", "Stopped"
2815
+ # resp.include_filters #=> Array
2816
+ # resp.include_filters[0].namespace #=> String
2817
+ # resp.include_filters[0].metric_names #=> Array
2818
+ # resp.include_filters[0].metric_names[0] #=> String
2819
+ # resp.exclude_filters #=> Array
2820
+ # resp.exclude_filters[0].namespace #=> String
2821
+ # resp.exclude_filters[0].metric_names #=> Array
2822
+ # resp.exclude_filters[0].metric_names[0] #=> String
2823
+ # resp.created_at #=> Time
2824
+ # resp.updated_at #=> Time
2688
2825
  #
2689
2826
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetOTelEnrichment AWS API Documentation
2690
2827
  #
@@ -2695,6 +2832,58 @@ module Aws::CloudWatch
2695
2832
  req.send_request(options)
2696
2833
  end
2697
2834
 
2835
+ # Retrieves the current resource metrics configuration for an Amazon Web
2836
+ # Services resource. The response includes the resource ARN, any metric
2837
+ # selections, and the times at which the configuration was created and
2838
+ # last updated.
2839
+ #
2840
+ # This operation returns a `ResourceNotFoundException` if no resource
2841
+ # metrics configuration exists for the specified resource ARN. To create
2842
+ # a configuration, use [CreateResourceMetricsConfiguration][1].
2843
+ #
2844
+ # To retrieve a resource metrics configuration, you must have the
2845
+ # `cloudwatch:GetResourceMetricsConfiguration` permission. For
2846
+ # information about scoping this permission to specific resources, see
2847
+ # [Condition keys for resource metrics configuration access][2] in the
2848
+ # *Amazon CloudWatch User Guide*.
2849
+ #
2850
+ #
2851
+ #
2852
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_CreateResourceMetricsConfiguration.html
2853
+ # [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/iam-cw-condition-keys-resource-arn.html
2854
+ #
2855
+ # @option params [required, String] :resource_arn
2856
+ # The Amazon Resource Name (ARN) of the Amazon Web Services resource to
2857
+ # retrieve the resource metrics configuration for.
2858
+ #
2859
+ # @return [Types::GetResourceMetricsConfigurationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2860
+ #
2861
+ # * {Types::GetResourceMetricsConfigurationOutput#resource_metrics_configuration #resource_metrics_configuration} => Types::ResourceMetricsConfiguration
2862
+ #
2863
+ # @example Request syntax with placeholder values
2864
+ #
2865
+ # resp = client.get_resource_metrics_configuration({
2866
+ # resource_arn: "ResourceArn", # required
2867
+ # })
2868
+ #
2869
+ # @example Response structure
2870
+ #
2871
+ # resp.resource_metrics_configuration.resource_arn #=> String
2872
+ # resp.resource_metrics_configuration.created_at #=> Time
2873
+ # resp.resource_metrics_configuration.updated_at #=> Time
2874
+ # resp.resource_metrics_configuration.metric_selections #=> Array
2875
+ # resp.resource_metrics_configuration.metric_selections[0].include_metrics #=> Array
2876
+ # resp.resource_metrics_configuration.metric_selections[0].include_metrics[0] #=> String
2877
+ #
2878
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetResourceMetricsConfiguration AWS API Documentation
2879
+ #
2880
+ # @overload get_resource_metrics_configuration(params = {})
2881
+ # @param [Hash] params ({})
2882
+ def get_resource_metrics_configuration(params = {}, options = {})
2883
+ req = build_request(:get_resource_metrics_configuration, params)
2884
+ req.send_request(options)
2885
+ end
2886
+
2698
2887
  # Lists alarm mute rules in your Amazon Web Services account and region.
2699
2888
  #
2700
2889
  # You can filter the results by alarm name to find all mute rules
@@ -2771,6 +2960,19 @@ module Aws::CloudWatch
2771
2960
  # include the value you received for `NextToken` in the first call, to
2772
2961
  # receive the next 1000 results.
2773
2962
  #
2963
+ # You might have recently enabled an [opt-in Region (Region that is
2964
+ # disabled by default)][1] for your account. In that Region,
2965
+ # `ListDashboards` can return an access denied error for up to 24 hours
2966
+ # after you enable the Region. This delay occurs while dashboard data
2967
+ # propagates. The error does not indicate a problem with your
2968
+ # permissions. Because dashboards are global, you can call
2969
+ # `ListDashboards` in any other enabled Region, or retry after
2970
+ # propagation completes.
2971
+ #
2972
+ #
2973
+ #
2974
+ # [1]: https://docs.aws.amazon.com/glossary/latest/reference/glos-chap.html#optinregion
2975
+ #
2774
2976
  # @option params [String] :dashboard_name_prefix
2775
2977
  # If you specify this parameter, only the dashboards with names starting
2776
2978
  # with the specified string are listed. The maximum length is 255, and
@@ -5231,12 +5433,73 @@ module Aws::CloudWatch
5231
5433
  # telemetry for your account. For more information, see [Enable resource
5232
5434
  # tags on telemetry][2].
5233
5435
  #
5436
+ # Optionally, `IncludeFilters` and `ExcludeFilters` limit enrichment to
5437
+ # a subset of the account's metrics. These filters are stored only when
5438
+ # this operation starts enrichment. Calling `StartOTelEnrichment` for an
5439
+ # account where enrichment is already running has no effect and does not
5440
+ # modify the filters that are applied. To change them, use
5441
+ # [UpdateOTelEnrichment][3].
5442
+ #
5234
5443
  #
5235
5444
  #
5236
5445
  # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/UsingResourceTagsForTelemetry.html
5237
5446
  # [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/EnableResourceTagsOnTelemetry.html
5447
+ # [3]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_UpdateOTelEnrichment.html
5238
5448
  #
5239
- # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
5449
+ # @option params [Array<Types::OTelEnrichmentMetricSelector>] :include_filters
5450
+ # The metric namespaces, and the metric names, to enrich. If this
5451
+ # parameter is omitted, every namespace that Amazon CloudWatch supports
5452
+ # for enrichment is in scope.
5453
+ #
5454
+ # A maximum of 100 filters is allowed across `IncludeFilters` and
5455
+ # `ExcludeFilters` combined.
5456
+ #
5457
+ # @option params [Array<Types::OTelEnrichmentMetricSelector>] :exclude_filters
5458
+ # The metric namespaces, and the metric names, to leave unenriched. If
5459
+ # this parameter is omitted, nothing is excluded.
5460
+ #
5461
+ # Amazon CloudWatch applies `ExcludeFilters` after `IncludeFilters`, so
5462
+ # a metric that both parameters match is not enriched.
5463
+ #
5464
+ # A maximum of 100 filters is allowed across `IncludeFilters` and
5465
+ # `ExcludeFilters` combined.
5466
+ #
5467
+ # @return [Types::StartOTelEnrichmentOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5468
+ #
5469
+ # * {Types::StartOTelEnrichmentOutput#include_filters #include_filters} => Array&lt;Types::OTelEnrichmentMetricSelector&gt;
5470
+ # * {Types::StartOTelEnrichmentOutput#exclude_filters #exclude_filters} => Array&lt;Types::OTelEnrichmentMetricSelector&gt;
5471
+ # * {Types::StartOTelEnrichmentOutput#created_at #created_at} => Time
5472
+ # * {Types::StartOTelEnrichmentOutput#updated_at #updated_at} => Time
5473
+ #
5474
+ # @example Request syntax with placeholder values
5475
+ #
5476
+ # resp = client.start_o_tel_enrichment({
5477
+ # include_filters: [
5478
+ # {
5479
+ # namespace: "Namespace", # required
5480
+ # metric_names: ["MetricName"],
5481
+ # },
5482
+ # ],
5483
+ # exclude_filters: [
5484
+ # {
5485
+ # namespace: "Namespace", # required
5486
+ # metric_names: ["MetricName"],
5487
+ # },
5488
+ # ],
5489
+ # })
5490
+ #
5491
+ # @example Response structure
5492
+ #
5493
+ # resp.include_filters #=> Array
5494
+ # resp.include_filters[0].namespace #=> String
5495
+ # resp.include_filters[0].metric_names #=> Array
5496
+ # resp.include_filters[0].metric_names[0] #=> String
5497
+ # resp.exclude_filters #=> Array
5498
+ # resp.exclude_filters[0].namespace #=> String
5499
+ # resp.exclude_filters[0].metric_names #=> Array
5500
+ # resp.exclude_filters[0].metric_names[0] #=> String
5501
+ # resp.created_at #=> Time
5502
+ # resp.updated_at #=> Time
5240
5503
  #
5241
5504
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/StartOTelEnrichment AWS API Documentation
5242
5505
  #
@@ -5409,6 +5672,156 @@ module Aws::CloudWatch
5409
5672
  req.send_request(options)
5410
5673
  end
5411
5674
 
5675
+ # Replaces the filters that determine which CloudWatch vended metrics
5676
+ # are enriched with resource ARN and resource tag labels for the
5677
+ # account. Enrichment must already be running for the account. If it is
5678
+ # not, this operation returns a `ResourceNotFoundException`. To start
5679
+ # enrichment, use [StartOTelEnrichment][1].
5680
+ #
5681
+ # The filters in the request completely replace the stored filters; they
5682
+ # are not merged with them. `IncludeFilters` and `ExcludeFilters` are
5683
+ # replaced as a pair, so a request that specifies only `IncludeFilters`
5684
+ # also clears the stored `ExcludeFilters`, and a request that specifies
5685
+ # neither clears both.
5686
+ #
5687
+ #
5688
+ #
5689
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_StartOTelEnrichment.html
5690
+ #
5691
+ # @option params [Array<Types::OTelEnrichmentMetricSelector>] :include_filters
5692
+ # The metric namespaces, and the metric names, to enrich. If this
5693
+ # parameter is omitted, every namespace that Amazon CloudWatch supports
5694
+ # for enrichment is in scope.
5695
+ #
5696
+ # A maximum of 100 filters is allowed across `IncludeFilters` and
5697
+ # `ExcludeFilters` combined.
5698
+ #
5699
+ # @option params [Array<Types::OTelEnrichmentMetricSelector>] :exclude_filters
5700
+ # The metric namespaces, and the metric names, to leave unenriched. If
5701
+ # this parameter is omitted, nothing is excluded.
5702
+ #
5703
+ # Amazon CloudWatch applies `ExcludeFilters` after `IncludeFilters`, so
5704
+ # a metric that both parameters match is not enriched.
5705
+ #
5706
+ # A maximum of 100 filters is allowed across `IncludeFilters` and
5707
+ # `ExcludeFilters` combined.
5708
+ #
5709
+ # @return [Types::UpdateOTelEnrichmentOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5710
+ #
5711
+ # * {Types::UpdateOTelEnrichmentOutput#include_filters #include_filters} => Array&lt;Types::OTelEnrichmentMetricSelector&gt;
5712
+ # * {Types::UpdateOTelEnrichmentOutput#exclude_filters #exclude_filters} => Array&lt;Types::OTelEnrichmentMetricSelector&gt;
5713
+ # * {Types::UpdateOTelEnrichmentOutput#created_at #created_at} => Time
5714
+ # * {Types::UpdateOTelEnrichmentOutput#updated_at #updated_at} => Time
5715
+ #
5716
+ # @example Request syntax with placeholder values
5717
+ #
5718
+ # resp = client.update_o_tel_enrichment({
5719
+ # include_filters: [
5720
+ # {
5721
+ # namespace: "Namespace", # required
5722
+ # metric_names: ["MetricName"],
5723
+ # },
5724
+ # ],
5725
+ # exclude_filters: [
5726
+ # {
5727
+ # namespace: "Namespace", # required
5728
+ # metric_names: ["MetricName"],
5729
+ # },
5730
+ # ],
5731
+ # })
5732
+ #
5733
+ # @example Response structure
5734
+ #
5735
+ # resp.include_filters #=> Array
5736
+ # resp.include_filters[0].namespace #=> String
5737
+ # resp.include_filters[0].metric_names #=> Array
5738
+ # resp.include_filters[0].metric_names[0] #=> String
5739
+ # resp.exclude_filters #=> Array
5740
+ # resp.exclude_filters[0].namespace #=> String
5741
+ # resp.exclude_filters[0].metric_names #=> Array
5742
+ # resp.exclude_filters[0].metric_names[0] #=> String
5743
+ # resp.created_at #=> Time
5744
+ # resp.updated_at #=> Time
5745
+ #
5746
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/UpdateOTelEnrichment AWS API Documentation
5747
+ #
5748
+ # @overload update_o_tel_enrichment(params = {})
5749
+ # @param [Hash] params ({})
5750
+ def update_o_tel_enrichment(params = {}, options = {})
5751
+ req = build_request(:update_o_tel_enrichment, params)
5752
+ req.send_request(options)
5753
+ end
5754
+
5755
+ # Updates the resource metrics configuration for an Amazon Web Services
5756
+ # resource. The `MetricSelections` value that you provide replaces any
5757
+ # existing metric selections for the resource; it is not merged with
5758
+ # them.
5759
+ #
5760
+ # If you omit `MetricSelections`, Amazon CloudWatch removes any existing
5761
+ # metric selection filter and collects all available detailed metrics
5762
+ # for the resource.
5763
+ #
5764
+ # This operation returns a `ResourceNotFoundException` if no resource
5765
+ # metrics configuration exists for the specified resource ARN. To create
5766
+ # a configuration, use [CreateResourceMetricsConfiguration][1].
5767
+ #
5768
+ # To update a resource metrics configuration, you must have the
5769
+ # `cloudwatch:UpdateResourceMetricsConfiguration` permission. For
5770
+ # information about scoping this permission to specific resources, see
5771
+ # [Condition keys for resource metrics configuration access][2] in the
5772
+ # *Amazon CloudWatch User Guide*.
5773
+ #
5774
+ #
5775
+ #
5776
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_CreateResourceMetricsConfiguration.html
5777
+ # [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/iam-cw-condition-keys-resource-arn.html
5778
+ #
5779
+ # @option params [required, String] :resource_arn
5780
+ # The Amazon Resource Name (ARN) of the Amazon Web Services resource to
5781
+ # update the resource metrics configuration for.
5782
+ #
5783
+ # @option params [Array<Types::ResourceMetricSelection>] :metric_selections
5784
+ # Specifies which metrics Amazon CloudWatch collects for the resource.
5785
+ # The selections that you provide completely replace any existing metric
5786
+ # selections.
5787
+ #
5788
+ # If you omit this parameter, Amazon CloudWatch removes any existing
5789
+ # metric selection filter and collects all available detailed metrics
5790
+ # for the resource.
5791
+ #
5792
+ # @return [Types::UpdateResourceMetricsConfigurationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5793
+ #
5794
+ # * {Types::UpdateResourceMetricsConfigurationOutput#resource_metrics_configuration #resource_metrics_configuration} => Types::ResourceMetricsConfiguration
5795
+ #
5796
+ # @example Request syntax with placeholder values
5797
+ #
5798
+ # resp = client.update_resource_metrics_configuration({
5799
+ # resource_arn: "ResourceArn", # required
5800
+ # metric_selections: [
5801
+ # {
5802
+ # include_metrics: ["MetricName"], # required
5803
+ # },
5804
+ # ],
5805
+ # })
5806
+ #
5807
+ # @example Response structure
5808
+ #
5809
+ # resp.resource_metrics_configuration.resource_arn #=> String
5810
+ # resp.resource_metrics_configuration.created_at #=> Time
5811
+ # resp.resource_metrics_configuration.updated_at #=> Time
5812
+ # resp.resource_metrics_configuration.metric_selections #=> Array
5813
+ # resp.resource_metrics_configuration.metric_selections[0].include_metrics #=> Array
5814
+ # resp.resource_metrics_configuration.metric_selections[0].include_metrics[0] #=> String
5815
+ #
5816
+ # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/UpdateResourceMetricsConfiguration AWS API Documentation
5817
+ #
5818
+ # @overload update_resource_metrics_configuration(params = {})
5819
+ # @param [Hash] params ({})
5820
+ def update_resource_metrics_configuration(params = {}, options = {})
5821
+ req = build_request(:update_resource_metrics_configuration, params)
5822
+ req.send_request(options)
5823
+ end
5824
+
5412
5825
  # @!endgroup
5413
5826
 
5414
5827
  # @param params ({})
@@ -5427,7 +5840,7 @@ module Aws::CloudWatch
5427
5840
  tracer: tracer
5428
5841
  )
5429
5842
  context[:gem_name] = 'aws-sdk-cloudwatch'
5430
- context[:gem_version] = '1.148.0'
5843
+ context[:gem_version] = '1.149.0'
5431
5844
  Seahorse::Client::Request.new(handlers, context)
5432
5845
  end
5433
5846