aws-sdk-cloudwatch 1.86.0 → 1.88.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 +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudwatch/client.rb +148 -20
- data/lib/aws-sdk-cloudwatch/client_api.rb +8 -0
- data/lib/aws-sdk-cloudwatch/metric.rb +42 -6
- data/lib/aws-sdk-cloudwatch/types.rb +169 -16
- data/lib/aws-sdk-cloudwatch.rb +1 -1
- data/sig/client.rbs +5 -0
- data/sig/types.rbs +8 -0
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 503ae029db1cabd915c02f93be1ff57273b3cb65ad17c5e3d1040a6997665df1
         | 
| 4 | 
            +
              data.tar.gz: 9b2bd2a6620f559a2fa0cb080eb9c8e3314a486537ce11d745eb777ff9c6d03c
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 962c4b2c2e9a794dab9a05ce56ef0beca5279a5d31ce8dc1eecf67bcdf0c5746f444e4a23bde2ad27ba3b30a67c8818935bf20a7c53e3214a6c93e0ac5f16352
         | 
| 7 | 
            +
              data.tar.gz: de41f911c570f190206b25f61a24c25feb2c9caf5891d7dc10e0cf8c7dfd1460f75acb79b0e0d9f8dc90ed5c0a8c8323e670123356b0de843893a50337904f9d
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -1,6 +1,16 @@ | |
| 1 1 | 
             
            Unreleased Changes
         | 
| 2 2 | 
             
            ------------------
         | 
| 3 3 |  | 
| 4 | 
            +
            1.88.0 (2024-04-11)
         | 
| 5 | 
            +
            ------------------
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            * Feature - This release adds support for Metric Characteristics for CloudWatch Anomaly Detection. Anomaly Detector now takes Metric Characteristics object with Periodic Spikes boolean field that tells Anomaly Detection that spikes that repeat at the same time every week are part of the expected pattern.
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            1.87.0 (2024-04-01)
         | 
| 10 | 
            +
            ------------------
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            * Feature - This release adds support for CloudWatch Anomaly Detection on cross-account metrics. SingleMetricAnomalyDetector and MetricDataQuery inputs to Anomaly Detection APIs now take an optional AccountId field.
         | 
| 13 | 
            +
             | 
| 4 14 | 
             
            1.86.0 (2024-02-12)
         | 
| 5 15 | 
             
            ------------------
         | 
| 6 16 |  | 
    
        data/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            1. | 
| 1 | 
            +
            1.88.0
         | 
| @@ -519,6 +519,7 @@ module Aws::CloudWatch | |
| 519 519 | 
             
                #     ],
         | 
| 520 520 | 
             
                #     stat: "AnomalyDetectorMetricStat",
         | 
| 521 521 | 
             
                #     single_metric_anomaly_detector: {
         | 
| 522 | 
            +
                #       account_id: "AccountId",
         | 
| 522 523 | 
             
                #       namespace: "Namespace",
         | 
| 523 524 | 
             
                #       metric_name: "MetricName",
         | 
| 524 525 | 
             
                #       dimensions: [
         | 
| @@ -1133,6 +1134,8 @@ module Aws::CloudWatch | |
| 1133 1134 | 
             
                #   resp.anomaly_detectors[0].configuration.excluded_time_ranges[0].end_time #=> Time
         | 
| 1134 1135 | 
             
                #   resp.anomaly_detectors[0].configuration.metric_timezone #=> String
         | 
| 1135 1136 | 
             
                #   resp.anomaly_detectors[0].state_value #=> String, one of "PENDING_TRAINING", "TRAINED_INSUFFICIENT_DATA", "TRAINED"
         | 
| 1137 | 
            +
                #   resp.anomaly_detectors[0].metric_characteristics.periodic_spikes #=> Boolean
         | 
| 1138 | 
            +
                #   resp.anomaly_detectors[0].single_metric_anomaly_detector.account_id #=> String
         | 
| 1136 1139 | 
             
                #   resp.anomaly_detectors[0].single_metric_anomaly_detector.namespace #=> String
         | 
| 1137 1140 | 
             
                #   resp.anomaly_detectors[0].single_metric_anomaly_detector.metric_name #=> String
         | 
| 1138 1141 | 
             
                #   resp.anomaly_detectors[0].single_metric_anomaly_detector.dimensions #=> Array
         | 
| @@ -1656,6 +1659,9 @@ module Aws::CloudWatch | |
| 1656 1659 | 
             
                #   oldest data first and paginates when the `MaxDatapoints` limit is
         | 
| 1657 1660 | 
             
                #   reached.
         | 
| 1658 1661 | 
             
                #
         | 
| 1662 | 
            +
                #   If you omit this parameter, the default of `TimestampDescending` is
         | 
| 1663 | 
            +
                #   used.
         | 
| 1664 | 
            +
                #
         | 
| 1659 1665 | 
             
                # @option params [Integer] :max_datapoints
         | 
| 1660 1666 | 
             
                #   The maximum number of data points the request should return before
         | 
| 1661 1667 | 
             
                #   paginating. If you omit this, the default of 100,800 is used.
         | 
| @@ -2407,6 +2413,11 @@ module Aws::CloudWatch | |
| 2407 2413 | 
             
                # use the model to display a band of expected normal values when the
         | 
| 2408 2414 | 
             
                # metric is graphed.
         | 
| 2409 2415 | 
             
                #
         | 
| 2416 | 
            +
                # If you have enabled unified cross-account observability, and this
         | 
| 2417 | 
            +
                # account is a monitoring account, the metric can be in the same account
         | 
| 2418 | 
            +
                # or a source account. You can specify the account ID in the object you
         | 
| 2419 | 
            +
                # specify in the `SingleMetricAnomalyDetector` parameter.
         | 
| 2420 | 
            +
                #
         | 
| 2410 2421 | 
             
                # For more information, see [CloudWatch Anomaly Detection][1].
         | 
| 2411 2422 | 
             
                #
         | 
| 2412 2423 | 
             
                #
         | 
| @@ -2433,6 +2444,12 @@ module Aws::CloudWatch | |
| 2433 2444 | 
             
                #   The configuration can also include the time zone to use for the
         | 
| 2434 2445 | 
             
                #   metric.
         | 
| 2435 2446 | 
             
                #
         | 
| 2447 | 
            +
                # @option params [Types::MetricCharacteristics] :metric_characteristics
         | 
| 2448 | 
            +
                #   Use this object to include parameters to provide information about
         | 
| 2449 | 
            +
                #   your metric to CloudWatch to help it build more accurate anomaly
         | 
| 2450 | 
            +
                #   detection models. Currently, it includes the `PeriodicSpikes`
         | 
| 2451 | 
            +
                #   parameter.
         | 
| 2452 | 
            +
                #
         | 
| 2436 2453 | 
             
                # @option params [Types::SingleMetricAnomalyDetector] :single_metric_anomaly_detector
         | 
| 2437 2454 | 
             
                #   A single metric anomaly detector to be created.
         | 
| 2438 2455 | 
             
                #
         | 
| @@ -2447,7 +2464,7 @@ module Aws::CloudWatch | |
| 2447 2464 | 
             
                #
         | 
| 2448 2465 | 
             
                #   * `Stat`
         | 
| 2449 2466 | 
             
                #
         | 
| 2450 | 
            -
                #   * the ` | 
| 2467 | 
            +
                #   * the `MetricMathAnomalyDetector` parameters of
         | 
| 2451 2468 | 
             
                #     `PutAnomalyDetectorInput`
         | 
| 2452 2469 | 
             
                #
         | 
| 2453 2470 | 
             
                #   Instead, specify the single metric anomaly detector attributes as part
         | 
| @@ -2496,7 +2513,11 @@ module Aws::CloudWatch | |
| 2496 2513 | 
             
                #       ],
         | 
| 2497 2514 | 
             
                #       metric_timezone: "AnomalyDetectorMetricTimezone",
         | 
| 2498 2515 | 
             
                #     },
         | 
| 2516 | 
            +
                #     metric_characteristics: {
         | 
| 2517 | 
            +
                #       periodic_spikes: false,
         | 
| 2518 | 
            +
                #     },
         | 
| 2499 2519 | 
             
                #     single_metric_anomaly_detector: {
         | 
| 2520 | 
            +
                #       account_id: "AccountId",
         | 
| 2500 2521 | 
             
                #       namespace: "Namespace",
         | 
| 2501 2522 | 
             
                #       metric_name: "MetricName",
         | 
| 2502 2523 | 
             
                #       dimensions: [
         | 
| @@ -2563,8 +2584,15 @@ module Aws::CloudWatch | |
| 2563 2584 | 
             
                # composite alarm that goes into ALARM state only when more than one of
         | 
| 2564 2585 | 
             
                # the underlying metric alarms are in ALARM state.
         | 
| 2565 2586 | 
             
                #
         | 
| 2566 | 
            -
                #  | 
| 2567 | 
            -
                # | 
| 2587 | 
            +
                # Composite alarms can take the following actions:
         | 
| 2588 | 
            +
                #
         | 
| 2589 | 
            +
                # * Notify Amazon SNS topics.
         | 
| 2590 | 
            +
                #
         | 
| 2591 | 
            +
                # * Invoke Lambda functions.
         | 
| 2592 | 
            +
                #
         | 
| 2593 | 
            +
                # * Create OpsItems in Systems Manager Ops Center.
         | 
| 2594 | 
            +
                #
         | 
| 2595 | 
            +
                # * Create incidents in Systems Manager Incident Manager.
         | 
| 2568 2596 | 
             
                #
         | 
| 2569 2597 | 
             
                # <note markdown="1"> It is possible to create a loop or cycle of composite alarms, where
         | 
| 2570 2598 | 
             
                # composite alarm A depends on composite alarm B, and composite alarm B
         | 
| @@ -2611,7 +2639,27 @@ module Aws::CloudWatch | |
| 2611 2639 | 
             
                #   state from any other state. Each action is specified as an Amazon
         | 
| 2612 2640 | 
             
                #   Resource Name (ARN).
         | 
| 2613 2641 | 
             
                #
         | 
| 2614 | 
            -
                #   Valid Values:  | 
| 2642 | 
            +
                #   Valid Values: \]
         | 
| 2643 | 
            +
                #
         | 
| 2644 | 
            +
                #   **Amazon SNS actions:**
         | 
| 2645 | 
            +
                #
         | 
| 2646 | 
            +
                #   `arn:aws:sns:region:account-id:sns-topic-name `
         | 
| 2647 | 
            +
                #
         | 
| 2648 | 
            +
                #   **Lambda actions:**
         | 
| 2649 | 
            +
                #
         | 
| 2650 | 
            +
                #   * Invoke the latest version of a Lambda function:
         | 
| 2651 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name `
         | 
| 2652 | 
            +
                #
         | 
| 2653 | 
            +
                #   * Invoke a specific version of a Lambda function:
         | 
| 2654 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:version-number
         | 
| 2655 | 
            +
                #     `
         | 
| 2656 | 
            +
                #
         | 
| 2657 | 
            +
                #   * Invoke a function by using an alias Lambda function:
         | 
| 2658 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:alias-name
         | 
| 2659 | 
            +
                #     `
         | 
| 2660 | 
            +
                #
         | 
| 2661 | 
            +
                #   **Systems Manager actions:**
         | 
| 2662 | 
            +
                #
         | 
| 2615 2663 | 
             
                #   `arn:aws:ssm:region:account-id:opsitem:severity `
         | 
| 2616 2664 | 
             
                #
         | 
| 2617 2665 | 
             
                # @option params [String] :alarm_description
         | 
| @@ -2684,23 +2732,68 @@ module Aws::CloudWatch | |
| 2684 2732 | 
             
                #   `INSUFFICIENT_DATA` state from any other state. Each action is
         | 
| 2685 2733 | 
             
                #   specified as an Amazon Resource Name (ARN).
         | 
| 2686 2734 | 
             
                #
         | 
| 2687 | 
            -
                #   Valid Values:  | 
| 2735 | 
            +
                #   Valid Values: \]
         | 
| 2736 | 
            +
                #
         | 
| 2737 | 
            +
                #   **Amazon SNS actions:**
         | 
| 2738 | 
            +
                #
         | 
| 2739 | 
            +
                #   `arn:aws:sns:region:account-id:sns-topic-name `
         | 
| 2740 | 
            +
                #
         | 
| 2741 | 
            +
                #   **Lambda actions:**
         | 
| 2742 | 
            +
                #
         | 
| 2743 | 
            +
                #   * Invoke the latest version of a Lambda function:
         | 
| 2744 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name `
         | 
| 2745 | 
            +
                #
         | 
| 2746 | 
            +
                #   * Invoke a specific version of a Lambda function:
         | 
| 2747 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:version-number
         | 
| 2748 | 
            +
                #     `
         | 
| 2749 | 
            +
                #
         | 
| 2750 | 
            +
                #   * Invoke a function by using an alias Lambda function:
         | 
| 2751 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:alias-name
         | 
| 2752 | 
            +
                #     `
         | 
| 2688 2753 | 
             
                #
         | 
| 2689 2754 | 
             
                # @option params [Array<String>] :ok_actions
         | 
| 2690 2755 | 
             
                #   The actions to execute when this alarm transitions to an `OK` state
         | 
| 2691 2756 | 
             
                #   from any other state. Each action is specified as an Amazon Resource
         | 
| 2692 2757 | 
             
                #   Name (ARN).
         | 
| 2693 2758 | 
             
                #
         | 
| 2694 | 
            -
                #   Valid Values:  | 
| 2759 | 
            +
                #   Valid Values: \]
         | 
| 2760 | 
            +
                #
         | 
| 2761 | 
            +
                #   **Amazon SNS actions:**
         | 
| 2762 | 
            +
                #
         | 
| 2763 | 
            +
                #   `arn:aws:sns:region:account-id:sns-topic-name `
         | 
| 2764 | 
            +
                #
         | 
| 2765 | 
            +
                #   **Lambda actions:**
         | 
| 2766 | 
            +
                #
         | 
| 2767 | 
            +
                #   * Invoke the latest version of a Lambda function:
         | 
| 2768 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name `
         | 
| 2769 | 
            +
                #
         | 
| 2770 | 
            +
                #   * Invoke a specific version of a Lambda function:
         | 
| 2771 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:version-number
         | 
| 2772 | 
            +
                #     `
         | 
| 2773 | 
            +
                #
         | 
| 2774 | 
            +
                #   * Invoke a function by using an alias Lambda function:
         | 
| 2775 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:alias-name
         | 
| 2776 | 
            +
                #     `
         | 
| 2695 2777 | 
             
                #
         | 
| 2696 2778 | 
             
                # @option params [Array<Types::Tag>] :tags
         | 
| 2697 | 
            -
                #   A list of key-value pairs to associate with the  | 
| 2698 | 
            -
                #    | 
| 2779 | 
            +
                #   A list of key-value pairs to associate with the alarm. You can
         | 
| 2780 | 
            +
                #   associate as many as 50 tags with an alarm. To be able to associate
         | 
| 2781 | 
            +
                #   tags with the alarm when you create the alarm, you must have the
         | 
| 2782 | 
            +
                #   `cloudwatch:TagResource` permission.
         | 
| 2699 2783 | 
             
                #
         | 
| 2700 2784 | 
             
                #   Tags can help you organize and categorize your resources. You can also
         | 
| 2701 | 
            -
                #   use them to scope user permissions | 
| 2785 | 
            +
                #   use them to scope user permissions by granting a user permission to
         | 
| 2702 2786 | 
             
                #   access or change only resources with certain tag values.
         | 
| 2703 2787 | 
             
                #
         | 
| 2788 | 
            +
                #   If you are using this operation to update an existing alarm, any tags
         | 
| 2789 | 
            +
                #   you specify in this parameter are ignored. To change the tags of an
         | 
| 2790 | 
            +
                #   existing alarm, use [TagResource][1] or [UntagResource][2].
         | 
| 2791 | 
            +
                #
         | 
| 2792 | 
            +
                #
         | 
| 2793 | 
            +
                #
         | 
| 2794 | 
            +
                #   [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html
         | 
| 2795 | 
            +
                #   [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_UntagResource.html
         | 
| 2796 | 
            +
                #
         | 
| 2704 2797 | 
             
                # @option params [String] :actions_suppressor
         | 
| 2705 2798 | 
             
                #   Actions will be suppressed if the suppressor alarm is in the `ALARM`
         | 
| 2706 2799 | 
             
                #   state. `ActionsSuppressor` can be an AlarmName or an Amazon Resource
         | 
| @@ -3050,11 +3143,23 @@ module Aws::CloudWatch | |
| 3050 3143 | 
             
                #
         | 
| 3051 3144 | 
             
                #   ^
         | 
| 3052 3145 | 
             
                #
         | 
| 3053 | 
            -
                #   ** | 
| 3146 | 
            +
                #   **Lambda actions:**
         | 
| 3147 | 
            +
                #
         | 
| 3148 | 
            +
                #   * Invoke the latest version of a Lambda function:
         | 
| 3149 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name `
         | 
| 3150 | 
            +
                #
         | 
| 3151 | 
            +
                #   * Invoke a specific version of a Lambda function:
         | 
| 3152 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:version-number
         | 
| 3153 | 
            +
                #     `
         | 
| 3054 3154 | 
             
                #
         | 
| 3055 | 
            -
                #   *  | 
| 3155 | 
            +
                #   * Invoke a function by using an alias Lambda function:
         | 
| 3156 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:alias-name
         | 
| 3056 3157 | 
             
                #     `
         | 
| 3057 3158 | 
             
                #
         | 
| 3159 | 
            +
                #   **SNS notification action:**
         | 
| 3160 | 
            +
                #
         | 
| 3161 | 
            +
                #   * `arn:aws:sns:region:account-id:sns-topic-name `
         | 
| 3162 | 
            +
                #
         | 
| 3058 3163 | 
             
                #   ^
         | 
| 3059 3164 | 
             
                #
         | 
| 3060 3165 | 
             
                #   **SSM integration actions:**
         | 
| @@ -3094,11 +3199,23 @@ module Aws::CloudWatch | |
| 3094 3199 | 
             
                #
         | 
| 3095 3200 | 
             
                #   ^
         | 
| 3096 3201 | 
             
                #
         | 
| 3097 | 
            -
                #   ** | 
| 3202 | 
            +
                #   **Lambda actions:**
         | 
| 3203 | 
            +
                #
         | 
| 3204 | 
            +
                #   * Invoke the latest version of a Lambda function:
         | 
| 3205 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name `
         | 
| 3098 3206 | 
             
                #
         | 
| 3099 | 
            -
                #   *  | 
| 3207 | 
            +
                #   * Invoke a specific version of a Lambda function:
         | 
| 3208 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:version-number
         | 
| 3100 3209 | 
             
                #     `
         | 
| 3101 3210 | 
             
                #
         | 
| 3211 | 
            +
                #   * Invoke a function by using an alias Lambda function:
         | 
| 3212 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:alias-name
         | 
| 3213 | 
            +
                #     `
         | 
| 3214 | 
            +
                #
         | 
| 3215 | 
            +
                #   **SNS notification action:**
         | 
| 3216 | 
            +
                #
         | 
| 3217 | 
            +
                #   * `arn:aws:sns:region:account-id:sns-topic-name `
         | 
| 3218 | 
            +
                #
         | 
| 3102 3219 | 
             
                #   ^
         | 
| 3103 3220 | 
             
                #
         | 
| 3104 3221 | 
             
                #   **SSM integration actions:**
         | 
| @@ -3138,11 +3255,23 @@ module Aws::CloudWatch | |
| 3138 3255 | 
             
                #
         | 
| 3139 3256 | 
             
                #   ^
         | 
| 3140 3257 | 
             
                #
         | 
| 3141 | 
            -
                #   ** | 
| 3258 | 
            +
                #   **Lambda actions:**
         | 
| 3259 | 
            +
                #
         | 
| 3260 | 
            +
                #   * Invoke the latest version of a Lambda function:
         | 
| 3261 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name `
         | 
| 3262 | 
            +
                #
         | 
| 3263 | 
            +
                #   * Invoke a specific version of a Lambda function:
         | 
| 3264 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:version-number
         | 
| 3265 | 
            +
                #     `
         | 
| 3142 3266 | 
             
                #
         | 
| 3143 | 
            -
                #   *  | 
| 3267 | 
            +
                #   * Invoke a function by using an alias Lambda function:
         | 
| 3268 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:alias-name
         | 
| 3144 3269 | 
             
                #     `
         | 
| 3145 3270 | 
             
                #
         | 
| 3271 | 
            +
                #   **SNS notification action:**
         | 
| 3272 | 
            +
                #
         | 
| 3273 | 
            +
                #   * `arn:aws:sns:region:account-id:sns-topic-name `
         | 
| 3274 | 
            +
                #
         | 
| 3146 3275 | 
             
                #   ^
         | 
| 3147 3276 | 
             
                #
         | 
| 3148 3277 | 
             
                #   **SSM integration actions:**
         | 
| @@ -3466,10 +3595,9 @@ module Aws::CloudWatch | |
| 3466 3595 | 
             
                # You can publish either individual data points in the `Value` field, or
         | 
| 3467 3596 | 
             
                # arrays of values and the number of times each value occurred during
         | 
| 3468 3597 | 
             
                # the period by using the `Values` and `Counts` fields in the
         | 
| 3469 | 
            -
                # ` | 
| 3470 | 
            -
                #  | 
| 3471 | 
            -
                #  | 
| 3472 | 
            -
                # on this data.
         | 
| 3598 | 
            +
                # `MetricData` structure. Using the `Values` and `Counts` method enables
         | 
| 3599 | 
            +
                # you to publish up to 150 values per metric with one `PutMetricData`
         | 
| 3600 | 
            +
                # request, and supports retrieving percentile statistics on this data.
         | 
| 3473 3601 | 
             
                #
         | 
| 3474 3602 | 
             
                # Each `PutMetricData` request is limited to 1 MB in size for HTTP POST
         | 
| 3475 3603 | 
             
                # requests. You can send a payload compressed by gzip. Each request is
         | 
| @@ -3986,7 +4114,7 @@ module Aws::CloudWatch | |
| 3986 4114 | 
             
                    params: params,
         | 
| 3987 4115 | 
             
                    config: config)
         | 
| 3988 4116 | 
             
                  context[:gem_name] = 'aws-sdk-cloudwatch'
         | 
| 3989 | 
            -
                  context[:gem_version] = '1. | 
| 4117 | 
            +
                  context[:gem_version] = '1.88.0'
         | 
| 3990 4118 | 
             
                  Seahorse::Client::Request.new(handlers, context)
         | 
| 3991 4119 | 
             
                end
         | 
| 3992 4120 |  | 
| @@ -185,6 +185,7 @@ module Aws::CloudWatch | |
| 185 185 | 
             
                Metric = Shapes::StructureShape.new(name: 'Metric')
         | 
| 186 186 | 
             
                MetricAlarm = Shapes::StructureShape.new(name: 'MetricAlarm')
         | 
| 187 187 | 
             
                MetricAlarms = Shapes::ListShape.new(name: 'MetricAlarms')
         | 
| 188 | 
            +
                MetricCharacteristics = Shapes::StructureShape.new(name: 'MetricCharacteristics')
         | 
| 188 189 | 
             
                MetricData = Shapes::ListShape.new(name: 'MetricData')
         | 
| 189 190 | 
             
                MetricDataQueries = Shapes::ListShape.new(name: 'MetricDataQueries')
         | 
| 190 191 | 
             
                MetricDataQuery = Shapes::StructureShape.new(name: 'MetricDataQuery')
         | 
| @@ -223,6 +224,7 @@ module Aws::CloudWatch | |
| 223 224 | 
             
                OwningAccounts = Shapes::ListShape.new(name: 'OwningAccounts')
         | 
| 224 225 | 
             
                PartialFailure = Shapes::StructureShape.new(name: 'PartialFailure')
         | 
| 225 226 | 
             
                Period = Shapes::IntegerShape.new(name: 'Period')
         | 
| 227 | 
            +
                PeriodicSpikes = Shapes::BooleanShape.new(name: 'PeriodicSpikes')
         | 
| 226 228 | 
             
                PutAnomalyDetectorInput = Shapes::StructureShape.new(name: 'PutAnomalyDetectorInput')
         | 
| 227 229 | 
             
                PutAnomalyDetectorOutput = Shapes::StructureShape.new(name: 'PutAnomalyDetectorOutput')
         | 
| 228 230 | 
             
                PutCompositeAlarmInput = Shapes::StructureShape.new(name: 'PutCompositeAlarmInput')
         | 
| @@ -300,6 +302,7 @@ module Aws::CloudWatch | |
| 300 302 | 
             
                AnomalyDetector.add_member(:stat, Shapes::ShapeRef.new(shape: AnomalyDetectorMetricStat, deprecated: true, location_name: "Stat", metadata: {"deprecatedMessage"=>"Use SingleMetricAnomalyDetector.Stat property."}))
         | 
| 301 303 | 
             
                AnomalyDetector.add_member(:configuration, Shapes::ShapeRef.new(shape: AnomalyDetectorConfiguration, location_name: "Configuration"))
         | 
| 302 304 | 
             
                AnomalyDetector.add_member(:state_value, Shapes::ShapeRef.new(shape: AnomalyDetectorStateValue, location_name: "StateValue"))
         | 
| 305 | 
            +
                AnomalyDetector.add_member(:metric_characteristics, Shapes::ShapeRef.new(shape: MetricCharacteristics, location_name: "MetricCharacteristics"))
         | 
| 303 306 | 
             
                AnomalyDetector.add_member(:single_metric_anomaly_detector, Shapes::ShapeRef.new(shape: SingleMetricAnomalyDetector, location_name: "SingleMetricAnomalyDetector"))
         | 
| 304 307 | 
             
                AnomalyDetector.add_member(:metric_math_anomaly_detector, Shapes::ShapeRef.new(shape: MetricMathAnomalyDetector, location_name: "MetricMathAnomalyDetector"))
         | 
| 305 308 | 
             
                AnomalyDetector.struct_class = Types::AnomalyDetector
         | 
| @@ -754,6 +757,9 @@ module Aws::CloudWatch | |
| 754 757 |  | 
| 755 758 | 
             
                MetricAlarms.member = Shapes::ShapeRef.new(shape: MetricAlarm)
         | 
| 756 759 |  | 
| 760 | 
            +
                MetricCharacteristics.add_member(:periodic_spikes, Shapes::ShapeRef.new(shape: PeriodicSpikes, location_name: "PeriodicSpikes"))
         | 
| 761 | 
            +
                MetricCharacteristics.struct_class = Types::MetricCharacteristics
         | 
| 762 | 
            +
             | 
| 757 763 | 
             
                MetricData.member = Shapes::ShapeRef.new(shape: MetricDatum)
         | 
| 758 764 |  | 
| 759 765 | 
             
                MetricDataQueries.member = Shapes::ShapeRef.new(shape: MetricDataQuery)
         | 
| @@ -852,6 +858,7 @@ module Aws::CloudWatch | |
| 852 858 | 
             
                PutAnomalyDetectorInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, deprecated: true, location_name: "Dimensions", metadata: {"deprecatedMessage"=>"Use SingleMetricAnomalyDetector."}))
         | 
| 853 859 | 
             
                PutAnomalyDetectorInput.add_member(:stat, Shapes::ShapeRef.new(shape: AnomalyDetectorMetricStat, deprecated: true, location_name: "Stat", metadata: {"deprecatedMessage"=>"Use SingleMetricAnomalyDetector."}))
         | 
| 854 860 | 
             
                PutAnomalyDetectorInput.add_member(:configuration, Shapes::ShapeRef.new(shape: AnomalyDetectorConfiguration, location_name: "Configuration"))
         | 
| 861 | 
            +
                PutAnomalyDetectorInput.add_member(:metric_characteristics, Shapes::ShapeRef.new(shape: MetricCharacteristics, location_name: "MetricCharacteristics"))
         | 
| 855 862 | 
             
                PutAnomalyDetectorInput.add_member(:single_metric_anomaly_detector, Shapes::ShapeRef.new(shape: SingleMetricAnomalyDetector, location_name: "SingleMetricAnomalyDetector"))
         | 
| 856 863 | 
             
                PutAnomalyDetectorInput.add_member(:metric_math_anomaly_detector, Shapes::ShapeRef.new(shape: MetricMathAnomalyDetector, location_name: "MetricMathAnomalyDetector"))
         | 
| 857 864 | 
             
                PutAnomalyDetectorInput.struct_class = Types::PutAnomalyDetectorInput
         | 
| @@ -953,6 +960,7 @@ module Aws::CloudWatch | |
| 953 960 | 
             
                SetAlarmStateInput.add_member(:state_reason_data, Shapes::ShapeRef.new(shape: StateReasonData, location_name: "StateReasonData"))
         | 
| 954 961 | 
             
                SetAlarmStateInput.struct_class = Types::SetAlarmStateInput
         | 
| 955 962 |  | 
| 963 | 
            +
                SingleMetricAnomalyDetector.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
         | 
| 956 964 | 
             
                SingleMetricAnomalyDetector.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace"))
         | 
| 957 965 | 
             
                SingleMetricAnomalyDetector.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName"))
         | 
| 958 966 | 
             
                SingleMetricAnomalyDetector.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
         | 
| @@ -409,11 +409,23 @@ module Aws::CloudWatch | |
| 409 409 | 
             
                #
         | 
| 410 410 | 
             
                #   ^
         | 
| 411 411 | 
             
                #
         | 
| 412 | 
            -
                #   ** | 
| 412 | 
            +
                #   **Lambda actions:**
         | 
| 413 | 
            +
                #
         | 
| 414 | 
            +
                #   * Invoke the latest version of a Lambda function:
         | 
| 415 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name `
         | 
| 416 | 
            +
                #
         | 
| 417 | 
            +
                #   * Invoke a specific version of a Lambda function:
         | 
| 418 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:version-number
         | 
| 419 | 
            +
                #     `
         | 
| 413 420 | 
             
                #
         | 
| 414 | 
            -
                #   *  | 
| 421 | 
            +
                #   * Invoke a function by using an alias Lambda function:
         | 
| 422 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:alias-name
         | 
| 415 423 | 
             
                #     `
         | 
| 416 424 | 
             
                #
         | 
| 425 | 
            +
                #   **SNS notification action:**
         | 
| 426 | 
            +
                #
         | 
| 427 | 
            +
                #   * `arn:aws:sns:region:account-id:sns-topic-name `
         | 
| 428 | 
            +
                #
         | 
| 417 429 | 
             
                #   ^
         | 
| 418 430 | 
             
                #
         | 
| 419 431 | 
             
                #   **SSM integration actions:**
         | 
| @@ -452,11 +464,23 @@ module Aws::CloudWatch | |
| 452 464 | 
             
                #
         | 
| 453 465 | 
             
                #   ^
         | 
| 454 466 | 
             
                #
         | 
| 455 | 
            -
                #   ** | 
| 467 | 
            +
                #   **Lambda actions:**
         | 
| 468 | 
            +
                #
         | 
| 469 | 
            +
                #   * Invoke the latest version of a Lambda function:
         | 
| 470 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name `
         | 
| 471 | 
            +
                #
         | 
| 472 | 
            +
                #   * Invoke a specific version of a Lambda function:
         | 
| 473 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:version-number
         | 
| 474 | 
            +
                #     `
         | 
| 456 475 | 
             
                #
         | 
| 457 | 
            -
                #   *  | 
| 476 | 
            +
                #   * Invoke a function by using an alias Lambda function:
         | 
| 477 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:alias-name
         | 
| 458 478 | 
             
                #     `
         | 
| 459 479 | 
             
                #
         | 
| 480 | 
            +
                #   **SNS notification action:**
         | 
| 481 | 
            +
                #
         | 
| 482 | 
            +
                #   * `arn:aws:sns:region:account-id:sns-topic-name `
         | 
| 483 | 
            +
                #
         | 
| 460 484 | 
             
                #   ^
         | 
| 461 485 | 
             
                #
         | 
| 462 486 | 
             
                #   **SSM integration actions:**
         | 
| @@ -495,11 +519,23 @@ module Aws::CloudWatch | |
| 495 519 | 
             
                #
         | 
| 496 520 | 
             
                #   ^
         | 
| 497 521 | 
             
                #
         | 
| 498 | 
            -
                #   ** | 
| 522 | 
            +
                #   **Lambda actions:**
         | 
| 523 | 
            +
                #
         | 
| 524 | 
            +
                #   * Invoke the latest version of a Lambda function:
         | 
| 525 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name `
         | 
| 499 526 | 
             
                #
         | 
| 500 | 
            -
                #   *  | 
| 527 | 
            +
                #   * Invoke a specific version of a Lambda function:
         | 
| 528 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:version-number
         | 
| 501 529 | 
             
                #     `
         | 
| 502 530 | 
             
                #
         | 
| 531 | 
            +
                #   * Invoke a function by using an alias Lambda function:
         | 
| 532 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:alias-name
         | 
| 533 | 
            +
                #     `
         | 
| 534 | 
            +
                #
         | 
| 535 | 
            +
                #   **SNS notification action:**
         | 
| 536 | 
            +
                #
         | 
| 537 | 
            +
                #   * `arn:aws:sns:region:account-id:sns-topic-name `
         | 
| 538 | 
            +
                #
         | 
| 503 539 | 
             
                #   ^
         | 
| 504 540 | 
             
                #
         | 
| 505 541 | 
             
                #   **SSM integration actions:**
         | 
| @@ -53,6 +53,10 @@ module Aws::CloudWatch | |
| 53 53 | 
             
                # metric, statistic, or metric math expression. You can use the model to
         | 
| 54 54 | 
             
                # display a band of expected, normal values when the metric is graphed.
         | 
| 55 55 | 
             
                #
         | 
| 56 | 
            +
                # If you have enabled unified cross-account observability, and this
         | 
| 57 | 
            +
                # account is a monitoring account, the metric can be in the same account
         | 
| 58 | 
            +
                # or a source account.
         | 
| 59 | 
            +
                #
         | 
| 56 60 | 
             
                # @!attribute [rw] namespace
         | 
| 57 61 | 
             
                #   The namespace of the metric associated with the anomaly detection
         | 
| 58 62 | 
             
                #   model.
         | 
| @@ -77,10 +81,16 @@ module Aws::CloudWatch | |
| 77 81 | 
             
                #   @return [Types::AnomalyDetectorConfiguration]
         | 
| 78 82 | 
             
                #
         | 
| 79 83 | 
             
                # @!attribute [rw] state_value
         | 
| 80 | 
            -
                #   The current status of the anomaly detector's training. | 
| 81 | 
            -
                #   values are `TRAINED | PENDING_TRAINING | TRAINED_INSUFFICIENT_DATA`
         | 
| 84 | 
            +
                #   The current status of the anomaly detector's training.
         | 
| 82 85 | 
             
                #   @return [String]
         | 
| 83 86 | 
             
                #
         | 
| 87 | 
            +
                # @!attribute [rw] metric_characteristics
         | 
| 88 | 
            +
                #   This object includes parameters that you can use to provide
         | 
| 89 | 
            +
                #   information about your metric to CloudWatch to help it build more
         | 
| 90 | 
            +
                #   accurate anomaly detection models. Currently, it includes the
         | 
| 91 | 
            +
                #   `PeriodicSpikes` parameter.
         | 
| 92 | 
            +
                #   @return [Types::MetricCharacteristics]
         | 
| 93 | 
            +
                #
         | 
| 84 94 | 
             
                # @!attribute [rw] single_metric_anomaly_detector
         | 
| 85 95 | 
             
                #   The CloudWatch metric and statistic for this anomaly detector.
         | 
| 86 96 | 
             
                #   @return [Types::SingleMetricAnomalyDetector]
         | 
| @@ -98,6 +108,7 @@ module Aws::CloudWatch | |
| 98 108 | 
             
                  :stat,
         | 
| 99 109 | 
             
                  :configuration,
         | 
| 100 110 | 
             
                  :state_value,
         | 
| 111 | 
            +
                  :metric_characteristics,
         | 
| 101 112 | 
             
                  :single_metric_anomaly_detector,
         | 
| 102 113 | 
             
                  :metric_math_anomaly_detector)
         | 
| 103 114 | 
             
                  SENSITIVE = []
         | 
| @@ -1295,6 +1306,9 @@ module Aws::CloudWatch | |
| 1295 1306 | 
             
                #   when the `MaxDatapoints` limit is reached. `TimestampAscending`
         | 
| 1296 1307 | 
             
                #   returns the oldest data first and paginates when the `MaxDatapoints`
         | 
| 1297 1308 | 
             
                #   limit is reached.
         | 
| 1309 | 
            +
                #
         | 
| 1310 | 
            +
                #   If you omit this parameter, the default of `TimestampDescending` is
         | 
| 1311 | 
            +
                #   used.
         | 
| 1298 1312 | 
             
                #   @return [String]
         | 
| 1299 1313 | 
             
                #
         | 
| 1300 1314 | 
             
                # @!attribute [rw] max_datapoints
         | 
| @@ -2575,6 +2589,26 @@ module Aws::CloudWatch | |
| 2575 2589 | 
             
                  include Aws::Structure
         | 
| 2576 2590 | 
             
                end
         | 
| 2577 2591 |  | 
| 2592 | 
            +
                # This object includes parameters that you can use to provide
         | 
| 2593 | 
            +
                # information to CloudWatch to help it build more accurate anomaly
         | 
| 2594 | 
            +
                # detection models.
         | 
| 2595 | 
            +
                #
         | 
| 2596 | 
            +
                # @!attribute [rw] periodic_spikes
         | 
| 2597 | 
            +
                #   Set this parameter to `true` if values for this metric consistently
         | 
| 2598 | 
            +
                #   include spikes that should not be considered to be anomalies. With
         | 
| 2599 | 
            +
                #   this set to `true`, CloudWatch will expect to see spikes that
         | 
| 2600 | 
            +
                #   occurred consistently during the model training period, and won't
         | 
| 2601 | 
            +
                #   flag future similar spikes as anomalies.
         | 
| 2602 | 
            +
                #   @return [Boolean]
         | 
| 2603 | 
            +
                #
         | 
| 2604 | 
            +
                # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/MetricCharacteristics AWS API Documentation
         | 
| 2605 | 
            +
                #
         | 
| 2606 | 
            +
                class MetricCharacteristics < Struct.new(
         | 
| 2607 | 
            +
                  :periodic_spikes)
         | 
| 2608 | 
            +
                  SENSITIVE = []
         | 
| 2609 | 
            +
                  include Aws::Structure
         | 
| 2610 | 
            +
                end
         | 
| 2611 | 
            +
             | 
| 2578 2612 | 
             
                # This structure is used in both `GetMetricData` and `PutMetricAlarm`.
         | 
| 2579 2613 | 
             
                # The supported use of this structure is different for those two
         | 
| 2580 2614 | 
             
                # operations.
         | 
| @@ -3176,6 +3210,13 @@ module Aws::CloudWatch | |
| 3176 3210 | 
             
                #   metric.
         | 
| 3177 3211 | 
             
                #   @return [Types::AnomalyDetectorConfiguration]
         | 
| 3178 3212 | 
             
                #
         | 
| 3213 | 
            +
                # @!attribute [rw] metric_characteristics
         | 
| 3214 | 
            +
                #   Use this object to include parameters to provide information about
         | 
| 3215 | 
            +
                #   your metric to CloudWatch to help it build more accurate anomaly
         | 
| 3216 | 
            +
                #   detection models. Currently, it includes the `PeriodicSpikes`
         | 
| 3217 | 
            +
                #   parameter.
         | 
| 3218 | 
            +
                #   @return [Types::MetricCharacteristics]
         | 
| 3219 | 
            +
                #
         | 
| 3179 3220 | 
             
                # @!attribute [rw] single_metric_anomaly_detector
         | 
| 3180 3221 | 
             
                #   A single metric anomaly detector to be created.
         | 
| 3181 3222 | 
             
                #
         | 
| @@ -3190,7 +3231,7 @@ module Aws::CloudWatch | |
| 3190 3231 | 
             
                #
         | 
| 3191 3232 | 
             
                #   * `Stat`
         | 
| 3192 3233 | 
             
                #
         | 
| 3193 | 
            -
                #   * the ` | 
| 3234 | 
            +
                #   * the `MetricMathAnomalyDetector` parameters of
         | 
| 3194 3235 | 
             
                #     `PutAnomalyDetectorInput`
         | 
| 3195 3236 | 
             
                #
         | 
| 3196 3237 | 
             
                #   Instead, specify the single metric anomaly detector attributes as
         | 
| @@ -3226,6 +3267,7 @@ module Aws::CloudWatch | |
| 3226 3267 | 
             
                  :dimensions,
         | 
| 3227 3268 | 
             
                  :stat,
         | 
| 3228 3269 | 
             
                  :configuration,
         | 
| 3270 | 
            +
                  :metric_characteristics,
         | 
| 3229 3271 | 
             
                  :single_metric_anomaly_detector,
         | 
| 3230 3272 | 
             
                  :metric_math_anomaly_detector)
         | 
| 3231 3273 | 
             
                  SENSITIVE = []
         | 
| @@ -3246,7 +3288,27 @@ module Aws::CloudWatch | |
| 3246 3288 | 
             
                #   state from any other state. Each action is specified as an Amazon
         | 
| 3247 3289 | 
             
                #   Resource Name (ARN).
         | 
| 3248 3290 | 
             
                #
         | 
| 3249 | 
            -
                #   Valid Values:  | 
| 3291 | 
            +
                #   Valid Values: \]
         | 
| 3292 | 
            +
                #
         | 
| 3293 | 
            +
                #   **Amazon SNS actions:**
         | 
| 3294 | 
            +
                #
         | 
| 3295 | 
            +
                #   `arn:aws:sns:region:account-id:sns-topic-name `
         | 
| 3296 | 
            +
                #
         | 
| 3297 | 
            +
                #   **Lambda actions:**
         | 
| 3298 | 
            +
                #
         | 
| 3299 | 
            +
                #   * Invoke the latest version of a Lambda function:
         | 
| 3300 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name `
         | 
| 3301 | 
            +
                #
         | 
| 3302 | 
            +
                #   * Invoke a specific version of a Lambda function:
         | 
| 3303 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:version-number
         | 
| 3304 | 
            +
                #     `
         | 
| 3305 | 
            +
                #
         | 
| 3306 | 
            +
                #   * Invoke a function by using an alias Lambda function:
         | 
| 3307 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:alias-name
         | 
| 3308 | 
            +
                #     `
         | 
| 3309 | 
            +
                #
         | 
| 3310 | 
            +
                #   **Systems Manager actions:**
         | 
| 3311 | 
            +
                #
         | 
| 3250 3312 | 
             
                #   `arn:aws:ssm:region:account-id:opsitem:severity `
         | 
| 3251 3313 | 
             
                #   @return [Array<String>]
         | 
| 3252 3314 | 
             
                #
         | 
| @@ -3323,7 +3385,24 @@ module Aws::CloudWatch | |
| 3323 3385 | 
             
                #   `INSUFFICIENT_DATA` state from any other state. Each action is
         | 
| 3324 3386 | 
             
                #   specified as an Amazon Resource Name (ARN).
         | 
| 3325 3387 | 
             
                #
         | 
| 3326 | 
            -
                #   Valid Values:  | 
| 3388 | 
            +
                #   Valid Values: \]
         | 
| 3389 | 
            +
                #
         | 
| 3390 | 
            +
                #   **Amazon SNS actions:**
         | 
| 3391 | 
            +
                #
         | 
| 3392 | 
            +
                #   `arn:aws:sns:region:account-id:sns-topic-name `
         | 
| 3393 | 
            +
                #
         | 
| 3394 | 
            +
                #   **Lambda actions:**
         | 
| 3395 | 
            +
                #
         | 
| 3396 | 
            +
                #   * Invoke the latest version of a Lambda function:
         | 
| 3397 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name `
         | 
| 3398 | 
            +
                #
         | 
| 3399 | 
            +
                #   * Invoke a specific version of a Lambda function:
         | 
| 3400 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:version-number
         | 
| 3401 | 
            +
                #     `
         | 
| 3402 | 
            +
                #
         | 
| 3403 | 
            +
                #   * Invoke a function by using an alias Lambda function:
         | 
| 3404 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:alias-name
         | 
| 3405 | 
            +
                #     `
         | 
| 3327 3406 | 
             
                #   @return [Array<String>]
         | 
| 3328 3407 | 
             
                #
         | 
| 3329 3408 | 
             
                # @!attribute [rw] ok_actions
         | 
| @@ -3331,17 +3410,45 @@ module Aws::CloudWatch | |
| 3331 3410 | 
             
                #   from any other state. Each action is specified as an Amazon Resource
         | 
| 3332 3411 | 
             
                #   Name (ARN).
         | 
| 3333 3412 | 
             
                #
         | 
| 3334 | 
            -
                #   Valid Values:  | 
| 3413 | 
            +
                #   Valid Values: \]
         | 
| 3414 | 
            +
                #
         | 
| 3415 | 
            +
                #   **Amazon SNS actions:**
         | 
| 3416 | 
            +
                #
         | 
| 3417 | 
            +
                #   `arn:aws:sns:region:account-id:sns-topic-name `
         | 
| 3418 | 
            +
                #
         | 
| 3419 | 
            +
                #   **Lambda actions:**
         | 
| 3420 | 
            +
                #
         | 
| 3421 | 
            +
                #   * Invoke the latest version of a Lambda function:
         | 
| 3422 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name `
         | 
| 3423 | 
            +
                #
         | 
| 3424 | 
            +
                #   * Invoke a specific version of a Lambda function:
         | 
| 3425 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:version-number
         | 
| 3426 | 
            +
                #     `
         | 
| 3427 | 
            +
                #
         | 
| 3428 | 
            +
                #   * Invoke a function by using an alias Lambda function:
         | 
| 3429 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:alias-name
         | 
| 3430 | 
            +
                #     `
         | 
| 3335 3431 | 
             
                #   @return [Array<String>]
         | 
| 3336 3432 | 
             
                #
         | 
| 3337 3433 | 
             
                # @!attribute [rw] tags
         | 
| 3338 | 
            -
                #   A list of key-value pairs to associate with the  | 
| 3339 | 
            -
                #    | 
| 3434 | 
            +
                #   A list of key-value pairs to associate with the alarm. You can
         | 
| 3435 | 
            +
                #   associate as many as 50 tags with an alarm. To be able to associate
         | 
| 3436 | 
            +
                #   tags with the alarm when you create the alarm, you must have the
         | 
| 3437 | 
            +
                #   `cloudwatch:TagResource` permission.
         | 
| 3340 3438 | 
             
                #
         | 
| 3341 3439 | 
             
                #   Tags can help you organize and categorize your resources. You can
         | 
| 3342 | 
            -
                #   also use them to scope user permissions | 
| 3440 | 
            +
                #   also use them to scope user permissions by granting a user
         | 
| 3343 3441 | 
             
                #   permission to access or change only resources with certain tag
         | 
| 3344 3442 | 
             
                #   values.
         | 
| 3443 | 
            +
                #
         | 
| 3444 | 
            +
                #   If you are using this operation to update an existing alarm, any
         | 
| 3445 | 
            +
                #   tags you specify in this parameter are ignored. To change the tags
         | 
| 3446 | 
            +
                #   of an existing alarm, use [TagResource][1] or [UntagResource][2].
         | 
| 3447 | 
            +
                #
         | 
| 3448 | 
            +
                #
         | 
| 3449 | 
            +
                #
         | 
| 3450 | 
            +
                #   [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html
         | 
| 3451 | 
            +
                #   [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_UntagResource.html
         | 
| 3345 3452 | 
             
                #   @return [Array<Types::Tag>]
         | 
| 3346 3453 | 
             
                #
         | 
| 3347 3454 | 
             
                # @!attribute [rw] actions_suppressor
         | 
| @@ -3559,11 +3666,23 @@ module Aws::CloudWatch | |
| 3559 3666 | 
             
                #
         | 
| 3560 3667 | 
             
                #   ^
         | 
| 3561 3668 | 
             
                #
         | 
| 3562 | 
            -
                #   ** | 
| 3669 | 
            +
                #   **Lambda actions:**
         | 
| 3563 3670 | 
             
                #
         | 
| 3564 | 
            -
                #   *  | 
| 3671 | 
            +
                #   * Invoke the latest version of a Lambda function:
         | 
| 3672 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name `
         | 
| 3673 | 
            +
                #
         | 
| 3674 | 
            +
                #   * Invoke a specific version of a Lambda function:
         | 
| 3675 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:version-number
         | 
| 3676 | 
            +
                #     `
         | 
| 3677 | 
            +
                #
         | 
| 3678 | 
            +
                #   * Invoke a function by using an alias Lambda function:
         | 
| 3679 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:alias-name
         | 
| 3565 3680 | 
             
                #     `
         | 
| 3566 3681 | 
             
                #
         | 
| 3682 | 
            +
                #   **SNS notification action:**
         | 
| 3683 | 
            +
                #
         | 
| 3684 | 
            +
                #   * `arn:aws:sns:region:account-id:sns-topic-name `
         | 
| 3685 | 
            +
                #
         | 
| 3567 3686 | 
             
                #   ^
         | 
| 3568 3687 | 
             
                #
         | 
| 3569 3688 | 
             
                #   **SSM integration actions:**
         | 
| @@ -3605,11 +3724,23 @@ module Aws::CloudWatch | |
| 3605 3724 | 
             
                #
         | 
| 3606 3725 | 
             
                #   ^
         | 
| 3607 3726 | 
             
                #
         | 
| 3608 | 
            -
                #   ** | 
| 3727 | 
            +
                #   **Lambda actions:**
         | 
| 3728 | 
            +
                #
         | 
| 3729 | 
            +
                #   * Invoke the latest version of a Lambda function:
         | 
| 3730 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name `
         | 
| 3731 | 
            +
                #
         | 
| 3732 | 
            +
                #   * Invoke a specific version of a Lambda function:
         | 
| 3733 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:version-number
         | 
| 3734 | 
            +
                #     `
         | 
| 3609 3735 | 
             
                #
         | 
| 3610 | 
            -
                #   *  | 
| 3736 | 
            +
                #   * Invoke a function by using an alias Lambda function:
         | 
| 3737 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:alias-name
         | 
| 3611 3738 | 
             
                #     `
         | 
| 3612 3739 | 
             
                #
         | 
| 3740 | 
            +
                #   **SNS notification action:**
         | 
| 3741 | 
            +
                #
         | 
| 3742 | 
            +
                #   * `arn:aws:sns:region:account-id:sns-topic-name `
         | 
| 3743 | 
            +
                #
         | 
| 3613 3744 | 
             
                #   ^
         | 
| 3614 3745 | 
             
                #
         | 
| 3615 3746 | 
             
                #   **SSM integration actions:**
         | 
| @@ -3651,11 +3782,23 @@ module Aws::CloudWatch | |
| 3651 3782 | 
             
                #
         | 
| 3652 3783 | 
             
                #   ^
         | 
| 3653 3784 | 
             
                #
         | 
| 3654 | 
            -
                #   ** | 
| 3785 | 
            +
                #   **Lambda actions:**
         | 
| 3786 | 
            +
                #
         | 
| 3787 | 
            +
                #   * Invoke the latest version of a Lambda function:
         | 
| 3788 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name `
         | 
| 3655 3789 | 
             
                #
         | 
| 3656 | 
            -
                #   *  | 
| 3790 | 
            +
                #   * Invoke a specific version of a Lambda function:
         | 
| 3791 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:version-number
         | 
| 3657 3792 | 
             
                #     `
         | 
| 3658 3793 | 
             
                #
         | 
| 3794 | 
            +
                #   * Invoke a function by using an alias Lambda function:
         | 
| 3795 | 
            +
                #     `arn:aws:lambda:region:account-id:function:function-name:alias-name
         | 
| 3796 | 
            +
                #     `
         | 
| 3797 | 
            +
                #
         | 
| 3798 | 
            +
                #   **SNS notification action:**
         | 
| 3799 | 
            +
                #
         | 
| 3800 | 
            +
                #   * `arn:aws:sns:region:account-id:sns-topic-name `
         | 
| 3801 | 
            +
                #
         | 
| 3659 3802 | 
             
                #   ^
         | 
| 3660 3803 | 
             
                #
         | 
| 3661 3804 | 
             
                #   **SSM integration actions:**
         | 
| @@ -4189,7 +4332,16 @@ module Aws::CloudWatch | |
| 4189 4332 | 
             
                end
         | 
| 4190 4333 |  | 
| 4191 4334 | 
             
                # Designates the CloudWatch metric and statistic that provides the time
         | 
| 4192 | 
            -
                # series the anomaly detector uses as input.
         | 
| 4335 | 
            +
                # series the anomaly detector uses as input. If you have enabled unified
         | 
| 4336 | 
            +
                # cross-account observability, and this account is a monitoring account,
         | 
| 4337 | 
            +
                # the metric can be in the same account or a source account.
         | 
| 4338 | 
            +
                #
         | 
| 4339 | 
            +
                # @!attribute [rw] account_id
         | 
| 4340 | 
            +
                #   If the CloudWatch metric that provides the time series that the
         | 
| 4341 | 
            +
                #   anomaly detector uses as input is in another account, specify that
         | 
| 4342 | 
            +
                #   account ID here. If you omit this parameter, the current account is
         | 
| 4343 | 
            +
                #   used.
         | 
| 4344 | 
            +
                #   @return [String]
         | 
| 4193 4345 | 
             
                #
         | 
| 4194 4346 | 
             
                # @!attribute [rw] namespace
         | 
| 4195 4347 | 
             
                #   The namespace of the metric to create the anomaly detection model
         | 
| @@ -4211,6 +4363,7 @@ module Aws::CloudWatch | |
| 4211 4363 | 
             
                # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/SingleMetricAnomalyDetector AWS API Documentation
         | 
| 4212 4364 | 
             
                #
         | 
| 4213 4365 | 
             
                class SingleMetricAnomalyDetector < Struct.new(
         | 
| 4366 | 
            +
                  :account_id,
         | 
| 4214 4367 | 
             
                  :namespace,
         | 
| 4215 4368 | 
             
                  :metric_name,
         | 
| 4216 4369 | 
             
                  :dimensions,
         | 
    
        data/lib/aws-sdk-cloudwatch.rb
    CHANGED
    
    
    
        data/sig/client.rbs
    CHANGED
    
    | @@ -93,6 +93,7 @@ module Aws | |
| 93 93 | 
             
                                                 ],
         | 
| 94 94 | 
             
                                                 ?stat: ::String,
         | 
| 95 95 | 
             
                                                 ?single_metric_anomaly_detector: {
         | 
| 96 | 
            +
                                                   account_id: ::String?,
         | 
| 96 97 | 
             
                                                   namespace: ::String?,
         | 
| 97 98 | 
             
                                                   metric_name: ::String?,
         | 
| 98 99 | 
             
                                                   dimensions: Array[
         | 
| @@ -511,7 +512,11 @@ module Aws | |
| 511 512 | 
             
                                                ]?,
         | 
| 512 513 | 
             
                                                metric_timezone: ::String?
         | 
| 513 514 | 
             
                                              },
         | 
| 515 | 
            +
                                              ?metric_characteristics: {
         | 
| 516 | 
            +
                                                periodic_spikes: bool?
         | 
| 517 | 
            +
                                              },
         | 
| 514 518 | 
             
                                              ?single_metric_anomaly_detector: {
         | 
| 519 | 
            +
                                                account_id: ::String?,
         | 
| 515 520 | 
             
                                                namespace: ::String?,
         | 
| 516 521 | 
             
                                                metric_name: ::String?,
         | 
| 517 522 | 
             
                                                dimensions: Array[
         | 
    
        data/sig/types.rbs
    CHANGED
    
    | @@ -25,6 +25,7 @@ module Aws::CloudWatch | |
| 25 25 | 
             
                  attr_accessor stat: ::String
         | 
| 26 26 | 
             
                  attr_accessor configuration: Types::AnomalyDetectorConfiguration
         | 
| 27 27 | 
             
                  attr_accessor state_value: ("PENDING_TRAINING" | "TRAINED_INSUFFICIENT_DATA" | "TRAINED")
         | 
| 28 | 
            +
                  attr_accessor metric_characteristics: Types::MetricCharacteristics
         | 
| 28 29 | 
             
                  attr_accessor single_metric_anomaly_detector: Types::SingleMetricAnomalyDetector
         | 
| 29 30 | 
             
                  attr_accessor metric_math_anomaly_detector: Types::MetricMathAnomalyDetector
         | 
| 30 31 | 
             
                  SENSITIVE: []
         | 
| @@ -572,6 +573,11 @@ module Aws::CloudWatch | |
| 572 573 | 
             
                  SENSITIVE: []
         | 
| 573 574 | 
             
                end
         | 
| 574 575 |  | 
| 576 | 
            +
                class MetricCharacteristics
         | 
| 577 | 
            +
                  attr_accessor periodic_spikes: bool
         | 
| 578 | 
            +
                  SENSITIVE: []
         | 
| 579 | 
            +
                end
         | 
| 580 | 
            +
             | 
| 575 581 | 
             
                class MetricDataQuery
         | 
| 576 582 | 
             
                  attr_accessor id: ::String
         | 
| 577 583 | 
             
                  attr_accessor metric_stat: Types::MetricStat
         | 
| @@ -667,6 +673,7 @@ module Aws::CloudWatch | |
| 667 673 | 
             
                  attr_accessor dimensions: ::Array[Types::Dimension]
         | 
| 668 674 | 
             
                  attr_accessor stat: ::String
         | 
| 669 675 | 
             
                  attr_accessor configuration: Types::AnomalyDetectorConfiguration
         | 
| 676 | 
            +
                  attr_accessor metric_characteristics: Types::MetricCharacteristics
         | 
| 670 677 | 
             
                  attr_accessor single_metric_anomaly_detector: Types::SingleMetricAnomalyDetector
         | 
| 671 678 | 
             
                  attr_accessor metric_math_anomaly_detector: Types::MetricMathAnomalyDetector
         | 
| 672 679 | 
             
                  SENSITIVE: []
         | 
| @@ -798,6 +805,7 @@ module Aws::CloudWatch | |
| 798 805 | 
             
                end
         | 
| 799 806 |  | 
| 800 807 | 
             
                class SingleMetricAnomalyDetector
         | 
| 808 | 
            +
                  attr_accessor account_id: ::String
         | 
| 801 809 | 
             
                  attr_accessor namespace: ::String
         | 
| 802 810 | 
             
                  attr_accessor metric_name: ::String
         | 
| 803 811 | 
             
                  attr_accessor dimensions: ::Array[Types::Dimension]
         | 
    
        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. | 
| 4 | 
            +
              version: 1.88.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: 2024- | 
| 11 | 
            +
            date: 2024-04-11 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: aws-sdk-core
         |