aws-sdk-cloudwatch 1.85.0 → 1.87.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 52d042734194575e9297e245ed2fbec389f5cdc0c076313cdcee7f3ef6755057
4
- data.tar.gz: 559762c2f41b66c82bc68bf263b89501e7580aaeb42b7214b53917acf5d9d85c
3
+ metadata.gz: 26d30f1437dc948ab87ef7eb2e7521dd307fa097062b21c63a0f8c43446845f2
4
+ data.tar.gz: 0df867de74254246b59792c815b772fb3a7f3ac8f1b1fa01685e585b4a272107
5
5
  SHA512:
6
- metadata.gz: 64e5cb29bd670b2f01b8998daae49011ebc93fd19ab19c1b57028f28c33e0371743d18de39eb5e66b8a8d6e81c3e17abe094674e22fc562782f0374b6bc89345
7
- data.tar.gz: 2ea02017f387f04cb82db7803031358d91af91d662bb723db138f6d8a332fe975d36e5e16528ac3ee405921de0e806d20720cbae614397537412f10fecfa6fd1
6
+ metadata.gz: 51436d044d0109e6133cd71f72165a54c6d153c4e5c38cab8601862600ea46dffd6a4f464cbdede913321d8ee2ad9cff42ba5aa4e8f819d90123b228ed1ded5c
7
+ data.tar.gz: a0a729ef3fd8f6a3bda0e8b61e342f3664df9be501efc4fe7391a03c2a6027a3bdfc83f851c534fbd1056ad47e19f92f4683a2126c12db6690a1d27980c98b5c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.87.0 (2024-04-01)
5
+ ------------------
6
+
7
+ * 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.
8
+
9
+ 1.86.0 (2024-02-12)
10
+ ------------------
11
+
12
+ * Feature - This release enables PutMetricData API request payload compression by default.
13
+
4
14
  1.85.0 (2024-01-26)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.85.0
1
+ 1.87.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,7 @@ 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].single_metric_anomaly_detector.account_id #=> String
1136
1138
  # resp.anomaly_detectors[0].single_metric_anomaly_detector.namespace #=> String
1137
1139
  # resp.anomaly_detectors[0].single_metric_anomaly_detector.metric_name #=> String
1138
1140
  # resp.anomaly_detectors[0].single_metric_anomaly_detector.dimensions #=> Array
@@ -1656,6 +1658,9 @@ module Aws::CloudWatch
1656
1658
  # oldest data first and paginates when the `MaxDatapoints` limit is
1657
1659
  # reached.
1658
1660
  #
1661
+ # If you omit this parameter, the default of `TimestampDescending` is
1662
+ # used.
1663
+ #
1659
1664
  # @option params [Integer] :max_datapoints
1660
1665
  # The maximum number of data points the request should return before
1661
1666
  # paginating. If you omit this, the default of 100,800 is used.
@@ -2407,6 +2412,11 @@ module Aws::CloudWatch
2407
2412
  # use the model to display a band of expected normal values when the
2408
2413
  # metric is graphed.
2409
2414
  #
2415
+ # If you have enabled unified cross-account observability, and this
2416
+ # account is a monitoring account, the metric can be in the same account
2417
+ # or a source account. You can specify the account ID in the object you
2418
+ # specify in the `SingleMetricAnomalyDetector` parameter.
2419
+ #
2410
2420
  # For more information, see [CloudWatch Anomaly Detection][1].
2411
2421
  #
2412
2422
  #
@@ -2447,7 +2457,7 @@ module Aws::CloudWatch
2447
2457
  #
2448
2458
  # * `Stat`
2449
2459
  #
2450
- # * the `MetricMatchAnomalyDetector` parameters of
2460
+ # * the `MetricMathAnomalyDetector` parameters of
2451
2461
  # `PutAnomalyDetectorInput`
2452
2462
  #
2453
2463
  # Instead, specify the single metric anomaly detector attributes as part
@@ -2497,6 +2507,7 @@ module Aws::CloudWatch
2497
2507
  # metric_timezone: "AnomalyDetectorMetricTimezone",
2498
2508
  # },
2499
2509
  # single_metric_anomaly_detector: {
2510
+ # account_id: "AccountId",
2500
2511
  # namespace: "Namespace",
2501
2512
  # metric_name: "MetricName",
2502
2513
  # dimensions: [
@@ -2563,8 +2574,15 @@ module Aws::CloudWatch
2563
2574
  # composite alarm that goes into ALARM state only when more than one of
2564
2575
  # the underlying metric alarms are in ALARM state.
2565
2576
  #
2566
- # Currently, the only alarm actions that can be taken by composite
2567
- # alarms are notifying SNS topics.
2577
+ # Composite alarms can take the following actions:
2578
+ #
2579
+ # * Notify Amazon SNS topics.
2580
+ #
2581
+ # * Invoke Lambda functions.
2582
+ #
2583
+ # * Create OpsItems in Systems Manager Ops Center.
2584
+ #
2585
+ # * Create incidents in Systems Manager Incident Manager.
2568
2586
  #
2569
2587
  # <note markdown="1"> It is possible to create a loop or cycle of composite alarms, where
2570
2588
  # composite alarm A depends on composite alarm B, and composite alarm B
@@ -2611,7 +2629,27 @@ module Aws::CloudWatch
2611
2629
  # state from any other state. Each action is specified as an Amazon
2612
2630
  # Resource Name (ARN).
2613
2631
  #
2614
- # Valid Values: `arn:aws:sns:region:account-id:sns-topic-name ` \|
2632
+ # Valid Values: \]
2633
+ #
2634
+ # **Amazon SNS actions:**
2635
+ #
2636
+ # `arn:aws:sns:region:account-id:sns-topic-name `
2637
+ #
2638
+ # **Lambda actions:**
2639
+ #
2640
+ # * Invoke the latest version of a Lambda function:
2641
+ # `arn:aws:lambda:region:account-id:function:function-name `
2642
+ #
2643
+ # * Invoke a specific version of a Lambda function:
2644
+ # `arn:aws:lambda:region:account-id:function:function-name:version-number
2645
+ # `
2646
+ #
2647
+ # * Invoke a function by using an alias Lambda function:
2648
+ # `arn:aws:lambda:region:account-id:function:function-name:alias-name
2649
+ # `
2650
+ #
2651
+ # **Systems Manager actions:**
2652
+ #
2615
2653
  # `arn:aws:ssm:region:account-id:opsitem:severity `
2616
2654
  #
2617
2655
  # @option params [String] :alarm_description
@@ -2684,23 +2722,68 @@ module Aws::CloudWatch
2684
2722
  # `INSUFFICIENT_DATA` state from any other state. Each action is
2685
2723
  # specified as an Amazon Resource Name (ARN).
2686
2724
  #
2687
- # Valid Values: `arn:aws:sns:region:account-id:sns-topic-name `
2725
+ # Valid Values: \]
2726
+ #
2727
+ # **Amazon SNS actions:**
2728
+ #
2729
+ # `arn:aws:sns:region:account-id:sns-topic-name `
2730
+ #
2731
+ # **Lambda actions:**
2732
+ #
2733
+ # * Invoke the latest version of a Lambda function:
2734
+ # `arn:aws:lambda:region:account-id:function:function-name `
2735
+ #
2736
+ # * Invoke a specific version of a Lambda function:
2737
+ # `arn:aws:lambda:region:account-id:function:function-name:version-number
2738
+ # `
2739
+ #
2740
+ # * Invoke a function by using an alias Lambda function:
2741
+ # `arn:aws:lambda:region:account-id:function:function-name:alias-name
2742
+ # `
2688
2743
  #
2689
2744
  # @option params [Array<String>] :ok_actions
2690
2745
  # The actions to execute when this alarm transitions to an `OK` state
2691
2746
  # from any other state. Each action is specified as an Amazon Resource
2692
2747
  # Name (ARN).
2693
2748
  #
2694
- # Valid Values: `arn:aws:sns:region:account-id:sns-topic-name `
2749
+ # Valid Values: \]
2750
+ #
2751
+ # **Amazon SNS actions:**
2752
+ #
2753
+ # `arn:aws:sns:region:account-id:sns-topic-name `
2754
+ #
2755
+ # **Lambda actions:**
2756
+ #
2757
+ # * Invoke the latest version of a Lambda function:
2758
+ # `arn:aws:lambda:region:account-id:function:function-name `
2759
+ #
2760
+ # * Invoke a specific version of a Lambda function:
2761
+ # `arn:aws:lambda:region:account-id:function:function-name:version-number
2762
+ # `
2763
+ #
2764
+ # * Invoke a function by using an alias Lambda function:
2765
+ # `arn:aws:lambda:region:account-id:function:function-name:alias-name
2766
+ # `
2695
2767
  #
2696
2768
  # @option params [Array<Types::Tag>] :tags
2697
- # A list of key-value pairs to associate with the composite alarm. You
2698
- # can associate as many as 50 tags with an alarm.
2769
+ # A list of key-value pairs to associate with the alarm. You can
2770
+ # associate as many as 50 tags with an alarm. To be able to associate
2771
+ # tags with the alarm when you create the alarm, you must have the
2772
+ # `cloudwatch:TagResource` permission.
2699
2773
  #
2700
2774
  # Tags can help you organize and categorize your resources. You can also
2701
- # use them to scope user permissions, by granting a user permission to
2775
+ # use them to scope user permissions by granting a user permission to
2702
2776
  # access or change only resources with certain tag values.
2703
2777
  #
2778
+ # If you are using this operation to update an existing alarm, any tags
2779
+ # you specify in this parameter are ignored. To change the tags of an
2780
+ # existing alarm, use [TagResource][1] or [UntagResource][2].
2781
+ #
2782
+ #
2783
+ #
2784
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html
2785
+ # [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_UntagResource.html
2786
+ #
2704
2787
  # @option params [String] :actions_suppressor
2705
2788
  # Actions will be suppressed if the suppressor alarm is in the `ALARM`
2706
2789
  # state. `ActionsSuppressor` can be an AlarmName or an Amazon Resource
@@ -3050,11 +3133,23 @@ module Aws::CloudWatch
3050
3133
  #
3051
3134
  # ^
3052
3135
  #
3053
- # **SNS notification action:**
3136
+ # **Lambda actions:**
3137
+ #
3138
+ # * Invoke the latest version of a Lambda function:
3139
+ # `arn:aws:lambda:region:account-id:function:function-name `
3140
+ #
3141
+ # * Invoke a specific version of a Lambda function:
3142
+ # `arn:aws:lambda:region:account-id:function:function-name:version-number
3143
+ # `
3054
3144
  #
3055
- # * `arn:aws:sns:region:account-id:sns-topic-name:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
3145
+ # * Invoke a function by using an alias Lambda function:
3146
+ # `arn:aws:lambda:region:account-id:function:function-name:alias-name
3056
3147
  # `
3057
3148
  #
3149
+ # **SNS notification action:**
3150
+ #
3151
+ # * `arn:aws:sns:region:account-id:sns-topic-name `
3152
+ #
3058
3153
  # ^
3059
3154
  #
3060
3155
  # **SSM integration actions:**
@@ -3094,11 +3189,23 @@ module Aws::CloudWatch
3094
3189
  #
3095
3190
  # ^
3096
3191
  #
3097
- # **SNS notification action:**
3192
+ # **Lambda actions:**
3193
+ #
3194
+ # * Invoke the latest version of a Lambda function:
3195
+ # `arn:aws:lambda:region:account-id:function:function-name `
3098
3196
  #
3099
- # * `arn:aws:sns:region:account-id:sns-topic-name:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
3197
+ # * Invoke a specific version of a Lambda function:
3198
+ # `arn:aws:lambda:region:account-id:function:function-name:version-number
3100
3199
  # `
3101
3200
  #
3201
+ # * Invoke a function by using an alias Lambda function:
3202
+ # `arn:aws:lambda:region:account-id:function:function-name:alias-name
3203
+ # `
3204
+ #
3205
+ # **SNS notification action:**
3206
+ #
3207
+ # * `arn:aws:sns:region:account-id:sns-topic-name `
3208
+ #
3102
3209
  # ^
3103
3210
  #
3104
3211
  # **SSM integration actions:**
@@ -3138,11 +3245,23 @@ module Aws::CloudWatch
3138
3245
  #
3139
3246
  # ^
3140
3247
  #
3141
- # **SNS notification action:**
3248
+ # **Lambda actions:**
3249
+ #
3250
+ # * Invoke the latest version of a Lambda function:
3251
+ # `arn:aws:lambda:region:account-id:function:function-name `
3252
+ #
3253
+ # * Invoke a specific version of a Lambda function:
3254
+ # `arn:aws:lambda:region:account-id:function:function-name:version-number
3255
+ # `
3142
3256
  #
3143
- # * `arn:aws:sns:region:account-id:sns-topic-name:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
3257
+ # * Invoke a function by using an alias Lambda function:
3258
+ # `arn:aws:lambda:region:account-id:function:function-name:alias-name
3144
3259
  # `
3145
3260
  #
3261
+ # **SNS notification action:**
3262
+ #
3263
+ # * `arn:aws:sns:region:account-id:sns-topic-name `
3264
+ #
3146
3265
  # ^
3147
3266
  #
3148
3267
  # **SSM integration actions:**
@@ -3466,10 +3585,9 @@ module Aws::CloudWatch
3466
3585
  # You can publish either individual data points in the `Value` field, or
3467
3586
  # arrays of values and the number of times each value occurred during
3468
3587
  # the period by using the `Values` and `Counts` fields in the
3469
- # `MetricDatum` structure. Using the `Values` and `Counts` method
3470
- # enables you to publish up to 150 values per metric with one
3471
- # `PutMetricData` request, and supports retrieving percentile statistics
3472
- # on this data.
3588
+ # `MetricData` structure. Using the `Values` and `Counts` method enables
3589
+ # you to publish up to 150 values per metric with one `PutMetricData`
3590
+ # request, and supports retrieving percentile statistics on this data.
3473
3591
  #
3474
3592
  # Each `PutMetricData` request is limited to 1 MB in size for HTTP POST
3475
3593
  # requests. You can send a payload compressed by gzip. Each request is
@@ -3986,7 +4104,7 @@ module Aws::CloudWatch
3986
4104
  params: params,
3987
4105
  config: config)
3988
4106
  context[:gem_name] = 'aws-sdk-cloudwatch'
3989
- context[:gem_version] = '1.85.0'
4107
+ context[:gem_version] = '1.87.0'
3990
4108
  Seahorse::Client::Request.new(handlers, context)
3991
4109
  end
3992
4110
 
@@ -953,6 +953,7 @@ module Aws::CloudWatch
953
953
  SetAlarmStateInput.add_member(:state_reason_data, Shapes::ShapeRef.new(shape: StateReasonData, location_name: "StateReasonData"))
954
954
  SetAlarmStateInput.struct_class = Types::SetAlarmStateInput
955
955
 
956
+ SingleMetricAnomalyDetector.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "AccountId"))
956
957
  SingleMetricAnomalyDetector.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace"))
957
958
  SingleMetricAnomalyDetector.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, location_name: "MetricName"))
958
959
  SingleMetricAnomalyDetector.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
@@ -1393,6 +1394,9 @@ module Aws::CloudWatch
1393
1394
  o.name = "PutMetricData"
1394
1395
  o.http_method = "POST"
1395
1396
  o.http_request_uri = "/"
1397
+ o.request_compression = {
1398
+ "encodings" => ["gzip"],
1399
+ }
1396
1400
  o.input = Shapes::ShapeRef.new(shape: PutMetricDataInput)
1397
1401
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
1398
1402
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
@@ -409,11 +409,23 @@ module Aws::CloudWatch
409
409
  #
410
410
  # ^
411
411
  #
412
- # **SNS notification action:**
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
- # * `arn:aws:sns:region:account-id:sns-topic-name:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
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
- # **SNS notification action:**
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
- # * `arn:aws:sns:region:account-id:sns-topic-name:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
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
- # **SNS notification action:**
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
- # * `arn:aws:sns:region:account-id:sns-topic-name:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
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.
@@ -1295,6 +1299,9 @@ module Aws::CloudWatch
1295
1299
  # when the `MaxDatapoints` limit is reached. `TimestampAscending`
1296
1300
  # returns the oldest data first and paginates when the `MaxDatapoints`
1297
1301
  # limit is reached.
1302
+ #
1303
+ # If you omit this parameter, the default of `TimestampDescending` is
1304
+ # used.
1298
1305
  # @return [String]
1299
1306
  #
1300
1307
  # @!attribute [rw] max_datapoints
@@ -3190,7 +3197,7 @@ module Aws::CloudWatch
3190
3197
  #
3191
3198
  # * `Stat`
3192
3199
  #
3193
- # * the `MetricMatchAnomalyDetector` parameters of
3200
+ # * the `MetricMathAnomalyDetector` parameters of
3194
3201
  # `PutAnomalyDetectorInput`
3195
3202
  #
3196
3203
  # Instead, specify the single metric anomaly detector attributes as
@@ -3246,7 +3253,27 @@ module Aws::CloudWatch
3246
3253
  # state from any other state. Each action is specified as an Amazon
3247
3254
  # Resource Name (ARN).
3248
3255
  #
3249
- # Valid Values: `arn:aws:sns:region:account-id:sns-topic-name ` \|
3256
+ # Valid Values: \]
3257
+ #
3258
+ # **Amazon SNS actions:**
3259
+ #
3260
+ # `arn:aws:sns:region:account-id:sns-topic-name `
3261
+ #
3262
+ # **Lambda actions:**
3263
+ #
3264
+ # * Invoke the latest version of a Lambda function:
3265
+ # `arn:aws:lambda:region:account-id:function:function-name `
3266
+ #
3267
+ # * Invoke a specific version of a Lambda function:
3268
+ # `arn:aws:lambda:region:account-id:function:function-name:version-number
3269
+ # `
3270
+ #
3271
+ # * Invoke a function by using an alias Lambda function:
3272
+ # `arn:aws:lambda:region:account-id:function:function-name:alias-name
3273
+ # `
3274
+ #
3275
+ # **Systems Manager actions:**
3276
+ #
3250
3277
  # `arn:aws:ssm:region:account-id:opsitem:severity `
3251
3278
  # @return [Array<String>]
3252
3279
  #
@@ -3323,7 +3350,24 @@ module Aws::CloudWatch
3323
3350
  # `INSUFFICIENT_DATA` state from any other state. Each action is
3324
3351
  # specified as an Amazon Resource Name (ARN).
3325
3352
  #
3326
- # Valid Values: `arn:aws:sns:region:account-id:sns-topic-name `
3353
+ # Valid Values: \]
3354
+ #
3355
+ # **Amazon SNS actions:**
3356
+ #
3357
+ # `arn:aws:sns:region:account-id:sns-topic-name `
3358
+ #
3359
+ # **Lambda actions:**
3360
+ #
3361
+ # * Invoke the latest version of a Lambda function:
3362
+ # `arn:aws:lambda:region:account-id:function:function-name `
3363
+ #
3364
+ # * Invoke a specific version of a Lambda function:
3365
+ # `arn:aws:lambda:region:account-id:function:function-name:version-number
3366
+ # `
3367
+ #
3368
+ # * Invoke a function by using an alias Lambda function:
3369
+ # `arn:aws:lambda:region:account-id:function:function-name:alias-name
3370
+ # `
3327
3371
  # @return [Array<String>]
3328
3372
  #
3329
3373
  # @!attribute [rw] ok_actions
@@ -3331,17 +3375,45 @@ module Aws::CloudWatch
3331
3375
  # from any other state. Each action is specified as an Amazon Resource
3332
3376
  # Name (ARN).
3333
3377
  #
3334
- # Valid Values: `arn:aws:sns:region:account-id:sns-topic-name `
3378
+ # Valid Values: \]
3379
+ #
3380
+ # **Amazon SNS actions:**
3381
+ #
3382
+ # `arn:aws:sns:region:account-id:sns-topic-name `
3383
+ #
3384
+ # **Lambda actions:**
3385
+ #
3386
+ # * Invoke the latest version of a Lambda function:
3387
+ # `arn:aws:lambda:region:account-id:function:function-name `
3388
+ #
3389
+ # * Invoke a specific version of a Lambda function:
3390
+ # `arn:aws:lambda:region:account-id:function:function-name:version-number
3391
+ # `
3392
+ #
3393
+ # * Invoke a function by using an alias Lambda function:
3394
+ # `arn:aws:lambda:region:account-id:function:function-name:alias-name
3395
+ # `
3335
3396
  # @return [Array<String>]
3336
3397
  #
3337
3398
  # @!attribute [rw] tags
3338
- # A list of key-value pairs to associate with the composite alarm. You
3339
- # can associate as many as 50 tags with an alarm.
3399
+ # A list of key-value pairs to associate with the alarm. You can
3400
+ # associate as many as 50 tags with an alarm. To be able to associate
3401
+ # tags with the alarm when you create the alarm, you must have the
3402
+ # `cloudwatch:TagResource` permission.
3340
3403
  #
3341
3404
  # Tags can help you organize and categorize your resources. You can
3342
- # also use them to scope user permissions, by granting a user
3405
+ # also use them to scope user permissions by granting a user
3343
3406
  # permission to access or change only resources with certain tag
3344
3407
  # values.
3408
+ #
3409
+ # If you are using this operation to update an existing alarm, any
3410
+ # tags you specify in this parameter are ignored. To change the tags
3411
+ # of an existing alarm, use [TagResource][1] or [UntagResource][2].
3412
+ #
3413
+ #
3414
+ #
3415
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html
3416
+ # [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_UntagResource.html
3345
3417
  # @return [Array<Types::Tag>]
3346
3418
  #
3347
3419
  # @!attribute [rw] actions_suppressor
@@ -3559,11 +3631,23 @@ module Aws::CloudWatch
3559
3631
  #
3560
3632
  # ^
3561
3633
  #
3562
- # **SNS notification action:**
3634
+ # **Lambda actions:**
3635
+ #
3636
+ # * Invoke the latest version of a Lambda function:
3637
+ # `arn:aws:lambda:region:account-id:function:function-name `
3638
+ #
3639
+ # * Invoke a specific version of a Lambda function:
3640
+ # `arn:aws:lambda:region:account-id:function:function-name:version-number
3641
+ # `
3563
3642
  #
3564
- # * `arn:aws:sns:region:account-id:sns-topic-name:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
3643
+ # * Invoke a function by using an alias Lambda function:
3644
+ # `arn:aws:lambda:region:account-id:function:function-name:alias-name
3565
3645
  # `
3566
3646
  #
3647
+ # **SNS notification action:**
3648
+ #
3649
+ # * `arn:aws:sns:region:account-id:sns-topic-name `
3650
+ #
3567
3651
  # ^
3568
3652
  #
3569
3653
  # **SSM integration actions:**
@@ -3605,11 +3689,23 @@ module Aws::CloudWatch
3605
3689
  #
3606
3690
  # ^
3607
3691
  #
3608
- # **SNS notification action:**
3692
+ # **Lambda actions:**
3609
3693
  #
3610
- # * `arn:aws:sns:region:account-id:sns-topic-name:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
3694
+ # * Invoke the latest version of a Lambda function:
3695
+ # `arn:aws:lambda:region:account-id:function:function-name `
3696
+ #
3697
+ # * Invoke a specific version of a Lambda function:
3698
+ # `arn:aws:lambda:region:account-id:function:function-name:version-number
3699
+ # `
3700
+ #
3701
+ # * Invoke a function by using an alias Lambda function:
3702
+ # `arn:aws:lambda:region:account-id:function:function-name:alias-name
3611
3703
  # `
3612
3704
  #
3705
+ # **SNS notification action:**
3706
+ #
3707
+ # * `arn:aws:sns:region:account-id:sns-topic-name `
3708
+ #
3613
3709
  # ^
3614
3710
  #
3615
3711
  # **SSM integration actions:**
@@ -3651,11 +3747,23 @@ module Aws::CloudWatch
3651
3747
  #
3652
3748
  # ^
3653
3749
  #
3654
- # **SNS notification action:**
3750
+ # **Lambda actions:**
3655
3751
  #
3656
- # * `arn:aws:sns:region:account-id:sns-topic-name:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
3752
+ # * Invoke the latest version of a Lambda function:
3753
+ # `arn:aws:lambda:region:account-id:function:function-name `
3754
+ #
3755
+ # * Invoke a specific version of a Lambda function:
3756
+ # `arn:aws:lambda:region:account-id:function:function-name:version-number
3657
3757
  # `
3658
3758
  #
3759
+ # * Invoke a function by using an alias Lambda function:
3760
+ # `arn:aws:lambda:region:account-id:function:function-name:alias-name
3761
+ # `
3762
+ #
3763
+ # **SNS notification action:**
3764
+ #
3765
+ # * `arn:aws:sns:region:account-id:sns-topic-name `
3766
+ #
3659
3767
  # ^
3660
3768
  #
3661
3769
  # **SSM integration actions:**
@@ -4189,7 +4297,16 @@ module Aws::CloudWatch
4189
4297
  end
4190
4298
 
4191
4299
  # Designates the CloudWatch metric and statistic that provides the time
4192
- # series the anomaly detector uses as input.
4300
+ # series the anomaly detector uses as input. If you have enabled unified
4301
+ # cross-account observability, and this account is a monitoring account,
4302
+ # the metric can be in the same account or a source account.
4303
+ #
4304
+ # @!attribute [rw] account_id
4305
+ # If the CloudWatch metric that provides the time series that the
4306
+ # anomaly detector uses as input is in another account, specify that
4307
+ # account ID here. If you omit this parameter, the current account is
4308
+ # used.
4309
+ # @return [String]
4193
4310
  #
4194
4311
  # @!attribute [rw] namespace
4195
4312
  # The namespace of the metric to create the anomaly detection model
@@ -4211,6 +4328,7 @@ module Aws::CloudWatch
4211
4328
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/SingleMetricAnomalyDetector AWS API Documentation
4212
4329
  #
4213
4330
  class SingleMetricAnomalyDetector < Struct.new(
4331
+ :account_id,
4214
4332
  :namespace,
4215
4333
  :metric_name,
4216
4334
  :dimensions,
@@ -56,6 +56,6 @@ require_relative 'aws-sdk-cloudwatch/customizations'
56
56
  # @!group service
57
57
  module Aws::CloudWatch
58
58
 
59
- GEM_VERSION = '1.85.0'
59
+ GEM_VERSION = '1.87.0'
60
60
 
61
61
  end
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[
@@ -512,6 +513,7 @@ module Aws
512
513
  metric_timezone: ::String?
513
514
  },
514
515
  ?single_metric_anomaly_detector: {
516
+ account_id: ::String?,
515
517
  namespace: ::String?,
516
518
  metric_name: ::String?,
517
519
  dimensions: Array[
data/sig/types.rbs CHANGED
@@ -798,6 +798,7 @@ module Aws::CloudWatch
798
798
  end
799
799
 
800
800
  class SingleMetricAnomalyDetector
801
+ attr_accessor account_id: ::String
801
802
  attr_accessor namespace: ::String
802
803
  attr_accessor metric_name: ::String
803
804
  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.85.0
4
+ version: 1.87.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-01-26 00:00:00.000000000 Z
11
+ date: 2024-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core