aws-sdk-cloudwatch 1.70.0 → 1.72.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 +13 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudwatch/client.rb +151 -58
- data/lib/aws-sdk-cloudwatch/client_api.rb +3 -0
- data/lib/aws-sdk-cloudwatch/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-cloudwatch/endpoint_provider.rb +41 -100
- data/lib/aws-sdk-cloudwatch/metric.rb +123 -53
- data/lib/aws-sdk-cloudwatch/types.rb +149 -54
- data/lib/aws-sdk-cloudwatch.rb +1 -1
- 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: 9b32fc5810e767e096603f224c53db881ed87b0d82513483b008b1cf8932a912
|
4
|
+
data.tar.gz: 10b46168f72d9b43fe4b5210c87d35c9b4ae8c4a53ee05c6491a0be21f010bd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e922257c3c139771777cb92b53c7db925244bd48674fe7fc17d1aa1d2f8f2179e39696b073cc1f2e4cdb72784a37576ee35036faef80bb2ee6990cdd3b064a27
|
7
|
+
data.tar.gz: dd77c220599d986e65c74b3fa1edc3a01e497efb09fce42889ff0109b0a1e863d5132e6ec903374b466b686c333df659e4bd9c5dece673b170f8c40e4c8dc220
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.72.0 (2023-03-24)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Doc-only update to correct alarm actions list
|
8
|
+
|
9
|
+
1.71.0 (2023-01-18)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Enable cross-account streams in CloudWatch Metric Streams via Observability Access Manager.
|
13
|
+
|
14
|
+
* Issue - Replace runtime endpoint resolution approach with generated ruby code.
|
15
|
+
|
4
16
|
1.70.0 (2022-12-14)
|
5
17
|
------------------
|
6
18
|
|
@@ -422,4 +434,4 @@ Unreleased Changes
|
|
422
434
|
1.0.0.rc1 (2016-12-05)
|
423
435
|
------------------
|
424
436
|
|
425
|
-
* Feature - Initial preview release of the `aws-sdk-cloudwatch` gem.
|
437
|
+
* Feature - Initial preview release of the `aws-sdk-cloudwatch` gem.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.72.0
|
@@ -374,7 +374,10 @@ module Aws::CloudWatch
|
|
374
374
|
# composite alarms with one operation, but you can't delete two
|
375
375
|
# composite alarms with one operation.
|
376
376
|
#
|
377
|
-
#
|
377
|
+
# If you specify an incorrect alarm name or make any other error in the
|
378
|
+
# operation, no alarms are deleted. To confirm that alarms were deleted
|
379
|
+
# successfully, you can use the [DescribeAlarms][1] operation after
|
380
|
+
# using `DeleteAlarms`.
|
378
381
|
#
|
379
382
|
# <note markdown="1"> It is possible to create a loop or cycle of composite alarms, where
|
380
383
|
# composite alarm A depends on composite alarm B, and composite alarm B
|
@@ -394,8 +397,13 @@ module Aws::CloudWatch
|
|
394
397
|
#
|
395
398
|
# </note>
|
396
399
|
#
|
400
|
+
#
|
401
|
+
#
|
402
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html
|
403
|
+
#
|
397
404
|
# @option params [required, Array<String>] :alarm_names
|
398
|
-
# The alarms to be deleted.
|
405
|
+
# The alarms to be deleted. Do not enclose the alarm names in quote
|
406
|
+
# marks.
|
399
407
|
#
|
400
408
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
401
409
|
#
|
@@ -1934,6 +1942,7 @@ module Aws::CloudWatch
|
|
1934
1942
|
# * {Types::GetMetricStreamOutput#last_update_date #last_update_date} => Time
|
1935
1943
|
# * {Types::GetMetricStreamOutput#output_format #output_format} => String
|
1936
1944
|
# * {Types::GetMetricStreamOutput#statistics_configurations #statistics_configurations} => Array<Types::MetricStreamStatisticsConfiguration>
|
1945
|
+
# * {Types::GetMetricStreamOutput#include_linked_accounts_metrics #include_linked_accounts_metrics} => Boolean
|
1937
1946
|
#
|
1938
1947
|
# @example Request syntax with placeholder values
|
1939
1948
|
#
|
@@ -1961,6 +1970,7 @@ module Aws::CloudWatch
|
|
1961
1970
|
# resp.statistics_configurations[0].include_metrics[0].metric_name #=> String
|
1962
1971
|
# resp.statistics_configurations[0].additional_statistics #=> Array
|
1963
1972
|
# resp.statistics_configurations[0].additional_statistics[0] #=> String
|
1973
|
+
# resp.include_linked_accounts_metrics #=> Boolean
|
1964
1974
|
#
|
1965
1975
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStream AWS API Documentation
|
1966
1976
|
#
|
@@ -2612,7 +2622,7 @@ module Aws::CloudWatch
|
|
2612
2622
|
# Alarm names specified in `AlarmRule` can be surrounded with
|
2613
2623
|
# double-quotes ("), but do not have to be.
|
2614
2624
|
#
|
2615
|
-
# The following are some examples of `AlarmRule
|
2625
|
+
# The following are some examples of `AlarmRule`:
|
2616
2626
|
#
|
2617
2627
|
# * `ALARM(CPUUtilizationTooHigh) AND ALARM(DiskReadOpsTooHigh)`
|
2618
2628
|
# specifies that the composite alarm goes into ALARM state only if
|
@@ -2921,10 +2931,11 @@ module Aws::CloudWatch
|
|
2921
2931
|
# If you are an IAM user, you must have Amazon EC2 permissions for some
|
2922
2932
|
# alarm operations:
|
2923
2933
|
#
|
2924
|
-
# * The `iam:CreateServiceLinkedRole` for all alarms with EC2
|
2934
|
+
# * The `iam:CreateServiceLinkedRole` permission for all alarms with EC2
|
2935
|
+
# actions
|
2925
2936
|
#
|
2926
|
-
# * The `iam:CreateServiceLinkedRole` to create an alarm
|
2927
|
-
# Manager OpsItem actions.
|
2937
|
+
# * The `iam:CreateServiceLinkedRole` permissions to create an alarm
|
2938
|
+
# with Systems Manager OpsItem or response plan actions.
|
2928
2939
|
#
|
2929
2940
|
# The first time you create an alarm in the Amazon Web Services
|
2930
2941
|
# Management Console, the CLI, or by using the PutMetricAlarm API,
|
@@ -2964,6 +2975,9 @@ module Aws::CloudWatch
|
|
2964
2975
|
# @option params [required, String] :alarm_name
|
2965
2976
|
# The name for the alarm. This name must be unique within the Region.
|
2966
2977
|
#
|
2978
|
+
# The name must contain only UTF-8 characters, and can't contain ASCII
|
2979
|
+
# control characters
|
2980
|
+
#
|
2967
2981
|
# @option params [String] :alarm_description
|
2968
2982
|
# The description for the alarm.
|
2969
2983
|
#
|
@@ -2974,67 +2988,134 @@ module Aws::CloudWatch
|
|
2974
2988
|
# @option params [Array<String>] :ok_actions
|
2975
2989
|
# The actions to execute when this alarm transitions to an `OK` state
|
2976
2990
|
# from any other state. Each action is specified as an Amazon Resource
|
2977
|
-
# Name (ARN).
|
2991
|
+
# Name (ARN). Valid values:
|
2992
|
+
#
|
2993
|
+
# **EC2 actions:**
|
2994
|
+
#
|
2995
|
+
# * `arn:aws:automate:region:ec2:stop`
|
2996
|
+
#
|
2997
|
+
# * `arn:aws:automate:region:ec2:terminate`
|
2998
|
+
#
|
2999
|
+
# * `arn:aws:automate:region:ec2:reboot`
|
3000
|
+
#
|
3001
|
+
# * `arn:aws:automate:region:ec2:recover`
|
3002
|
+
#
|
3003
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0`
|
3004
|
+
#
|
3005
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
|
3006
|
+
#
|
3007
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
|
3008
|
+
#
|
3009
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0`
|
3010
|
+
#
|
3011
|
+
# **Autoscaling action:**
|
3012
|
+
#
|
3013
|
+
# * `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
3014
|
+
# `
|
2978
3015
|
#
|
2979
|
-
#
|
2980
|
-
#
|
2981
|
-
#
|
2982
|
-
#
|
2983
|
-
# `arn:aws:sns:region:account-id:sns-topic-name
|
2984
|
-
#
|
2985
|
-
#
|
2986
|
-
#
|
2987
|
-
#
|
2988
|
-
#
|
2989
|
-
#
|
2990
|
-
# `arn:aws:
|
2991
|
-
#
|
2992
|
-
#
|
2993
|
-
#
|
2994
|
-
# `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0`
|
3016
|
+
# ^
|
3017
|
+
#
|
3018
|
+
# **SSN notification action:**
|
3019
|
+
#
|
3020
|
+
# * `arn:aws:sns:region:account-id:sns-topic-name:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
3021
|
+
# `
|
3022
|
+
#
|
3023
|
+
# ^
|
3024
|
+
#
|
3025
|
+
# **SSM integration actions:**
|
3026
|
+
#
|
3027
|
+
# * `arn:aws:ssm:region:account-id:opsitem:severity#CATEGORY=category-name
|
3028
|
+
# `
|
3029
|
+
#
|
3030
|
+
# * `arn:aws:ssm-incidents::account-id:responseplan/response-plan-name `
|
2995
3031
|
#
|
2996
3032
|
# @option params [Array<String>] :alarm_actions
|
2997
3033
|
# The actions to execute when this alarm transitions to the `ALARM`
|
2998
3034
|
# state from any other state. Each action is specified as an Amazon
|
2999
|
-
# Resource Name (ARN).
|
3035
|
+
# Resource Name (ARN). Valid values:
|
3036
|
+
#
|
3037
|
+
# **EC2 actions:**
|
3038
|
+
#
|
3039
|
+
# * `arn:aws:automate:region:ec2:stop`
|
3040
|
+
#
|
3041
|
+
# * `arn:aws:automate:region:ec2:terminate`
|
3042
|
+
#
|
3043
|
+
# * `arn:aws:automate:region:ec2:reboot`
|
3044
|
+
#
|
3045
|
+
# * `arn:aws:automate:region:ec2:recover`
|
3046
|
+
#
|
3047
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0`
|
3048
|
+
#
|
3049
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
|
3050
|
+
#
|
3051
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
|
3000
3052
|
#
|
3001
|
-
#
|
3002
|
-
#
|
3003
|
-
#
|
3004
|
-
#
|
3005
|
-
# `arn:aws:
|
3006
|
-
#
|
3007
|
-
#
|
3008
|
-
#
|
3009
|
-
#
|
3010
|
-
#
|
3011
|
-
#
|
3012
|
-
#
|
3013
|
-
#
|
3014
|
-
#
|
3015
|
-
#
|
3016
|
-
#
|
3017
|
-
#
|
3053
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0`
|
3054
|
+
#
|
3055
|
+
# **Autoscaling action:**
|
3056
|
+
#
|
3057
|
+
# * `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
3058
|
+
# `
|
3059
|
+
#
|
3060
|
+
# ^
|
3061
|
+
#
|
3062
|
+
# **SSN notification action:**
|
3063
|
+
#
|
3064
|
+
# * `arn:aws:sns:region:account-id:sns-topic-name:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
3065
|
+
# `
|
3066
|
+
#
|
3067
|
+
# ^
|
3068
|
+
#
|
3069
|
+
# **SSM integration actions:**
|
3070
|
+
#
|
3071
|
+
# * `arn:aws:ssm:region:account-id:opsitem:severity#CATEGORY=category-name
|
3072
|
+
# `
|
3073
|
+
#
|
3074
|
+
# * `arn:aws:ssm-incidents::account-id:responseplan/response-plan-name `
|
3018
3075
|
#
|
3019
3076
|
# @option params [Array<String>] :insufficient_data_actions
|
3020
3077
|
# The actions to execute when this alarm transitions to the
|
3021
3078
|
# `INSUFFICIENT_DATA` state from any other state. Each action is
|
3022
|
-
# specified as an Amazon Resource Name (ARN).
|
3079
|
+
# specified as an Amazon Resource Name (ARN). Valid values:
|
3080
|
+
#
|
3081
|
+
# **EC2 actions:**
|
3082
|
+
#
|
3083
|
+
# * `arn:aws:automate:region:ec2:stop`
|
3084
|
+
#
|
3085
|
+
# * `arn:aws:automate:region:ec2:terminate`
|
3086
|
+
#
|
3087
|
+
# * `arn:aws:automate:region:ec2:reboot`
|
3088
|
+
#
|
3089
|
+
# * `arn:aws:automate:region:ec2:recover`
|
3023
3090
|
#
|
3024
|
-
#
|
3025
|
-
#
|
3026
|
-
# `arn:aws:
|
3027
|
-
#
|
3028
|
-
# `arn:aws:
|
3029
|
-
#
|
3030
|
-
# `
|
3031
|
-
#
|
3032
|
-
#
|
3033
|
-
#
|
3034
|
-
#
|
3035
|
-
#
|
3036
|
-
#
|
3037
|
-
#
|
3091
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0`
|
3092
|
+
#
|
3093
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
|
3094
|
+
#
|
3095
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
|
3096
|
+
#
|
3097
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0`
|
3098
|
+
#
|
3099
|
+
# **Autoscaling action:**
|
3100
|
+
#
|
3101
|
+
# * `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
3102
|
+
# `
|
3103
|
+
#
|
3104
|
+
# ^
|
3105
|
+
#
|
3106
|
+
# **SSN notification action:**
|
3107
|
+
#
|
3108
|
+
# * `arn:aws:sns:region:account-id:sns-topic-name:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
3109
|
+
# `
|
3110
|
+
#
|
3111
|
+
# ^
|
3112
|
+
#
|
3113
|
+
# **SSM integration actions:**
|
3114
|
+
#
|
3115
|
+
# * `arn:aws:ssm:region:account-id:opsitem:severity#CATEGORY=category-name
|
3116
|
+
# `
|
3117
|
+
#
|
3118
|
+
# * `arn:aws:ssm-incidents::account-id:responseplan/response-plan-name `
|
3038
3119
|
#
|
3039
3120
|
# @option params [String] :metric_name
|
3040
3121
|
# The name for the metric associated with the alarm. For each
|
@@ -3364,7 +3445,8 @@ module Aws::CloudWatch
|
|
3364
3445
|
# [4]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html
|
3365
3446
|
#
|
3366
3447
|
# @option params [required, String] :namespace
|
3367
|
-
# The namespace for the metric data.
|
3448
|
+
# The namespace for the metric data. You can use ASCII characters for
|
3449
|
+
# the namespace, except for control characters which are not supported.
|
3368
3450
|
#
|
3369
3451
|
# To avoid conflicts with Amazon Web Services service namespaces, you
|
3370
3452
|
# should not specify a namespace that begins with `AWS/`
|
@@ -3446,10 +3528,16 @@ module Aws::CloudWatch
|
|
3446
3528
|
# stream is created in the `running` state. If you use it to update an
|
3447
3529
|
# existing stream, the state of the stream is not changed.
|
3448
3530
|
#
|
3531
|
+
# If you are using CloudWatch cross-account observability and you create
|
3532
|
+
# a metric stream in a monitoring account, you can choose whether to
|
3533
|
+
# include metrics from source accounts in the stream. For more
|
3534
|
+
# information, see [CloudWatch cross-account observability][3].
|
3535
|
+
#
|
3449
3536
|
#
|
3450
3537
|
#
|
3451
3538
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Metric-Streams.html
|
3452
3539
|
# [2]: https://aws.amazon.com/cloudwatch/pricing/
|
3540
|
+
# [3]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html
|
3453
3541
|
#
|
3454
3542
|
# @option params [required, String] :name
|
3455
3543
|
# If you are creating a new metric stream, this is the name for the new
|
@@ -3538,6 +3626,10 @@ module Aws::CloudWatch
|
|
3538
3626
|
#
|
3539
3627
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html
|
3540
3628
|
#
|
3629
|
+
# @option params [Boolean] :include_linked_accounts_metrics
|
3630
|
+
# If you are creating a metric stream in a monitoring account, specify
|
3631
|
+
# `true` to include metrics from source accounts in the metric stream.
|
3632
|
+
#
|
3541
3633
|
# @return [Types::PutMetricStreamOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3542
3634
|
#
|
3543
3635
|
# * {Types::PutMetricStreamOutput#arn #arn} => String
|
@@ -3576,6 +3668,7 @@ module Aws::CloudWatch
|
|
3576
3668
|
# additional_statistics: ["MetricStreamStatistic"], # required
|
3577
3669
|
# },
|
3578
3670
|
# ],
|
3671
|
+
# include_linked_accounts_metrics: false,
|
3579
3672
|
# })
|
3580
3673
|
#
|
3581
3674
|
# @example Response structure
|
@@ -3821,7 +3914,7 @@ module Aws::CloudWatch
|
|
3821
3914
|
params: params,
|
3822
3915
|
config: config)
|
3823
3916
|
context[:gem_name] = 'aws-sdk-cloudwatch'
|
3824
|
-
context[:gem_version] = '1.
|
3917
|
+
context[:gem_version] = '1.72.0'
|
3825
3918
|
Seahorse::Client::Request.new(handlers, context)
|
3826
3919
|
end
|
3827
3920
|
|
@@ -124,6 +124,7 @@ module Aws::CloudWatch
|
|
124
124
|
HistoryItemType = Shapes::StringShape.new(name: 'HistoryItemType')
|
125
125
|
HistorySummary = Shapes::StringShape.new(name: 'HistorySummary')
|
126
126
|
IncludeLinkedAccounts = Shapes::BooleanShape.new(name: 'IncludeLinkedAccounts')
|
127
|
+
IncludeLinkedAccountsMetrics = Shapes::BooleanShape.new(name: 'IncludeLinkedAccountsMetrics')
|
127
128
|
InsightRule = Shapes::StructureShape.new(name: 'InsightRule')
|
128
129
|
InsightRuleAggregationStatistic = Shapes::StringShape.new(name: 'InsightRuleAggregationStatistic')
|
129
130
|
InsightRuleContributor = Shapes::StructureShape.new(name: 'InsightRuleContributor')
|
@@ -572,6 +573,7 @@ module Aws::CloudWatch
|
|
572
573
|
GetMetricStreamOutput.add_member(:last_update_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastUpdateDate"))
|
573
574
|
GetMetricStreamOutput.add_member(:output_format, Shapes::ShapeRef.new(shape: MetricStreamOutputFormat, location_name: "OutputFormat"))
|
574
575
|
GetMetricStreamOutput.add_member(:statistics_configurations, Shapes::ShapeRef.new(shape: MetricStreamStatisticsConfigurations, location_name: "StatisticsConfigurations"))
|
576
|
+
GetMetricStreamOutput.add_member(:include_linked_accounts_metrics, Shapes::ShapeRef.new(shape: IncludeLinkedAccountsMetrics, location_name: "IncludeLinkedAccountsMetrics"))
|
575
577
|
GetMetricStreamOutput.struct_class = Types::GetMetricStreamOutput
|
576
578
|
|
577
579
|
GetMetricWidgetImageInput.add_member(:metric_widget, Shapes::ShapeRef.new(shape: MetricWidget, required: true, location_name: "MetricWidget"))
|
@@ -922,6 +924,7 @@ module Aws::CloudWatch
|
|
922
924
|
PutMetricStreamInput.add_member(:output_format, Shapes::ShapeRef.new(shape: MetricStreamOutputFormat, required: true, location_name: "OutputFormat"))
|
923
925
|
PutMetricStreamInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
924
926
|
PutMetricStreamInput.add_member(:statistics_configurations, Shapes::ShapeRef.new(shape: MetricStreamStatisticsConfigurations, location_name: "StatisticsConfigurations"))
|
927
|
+
PutMetricStreamInput.add_member(:include_linked_accounts_metrics, Shapes::ShapeRef.new(shape: IncludeLinkedAccountsMetrics, location_name: "IncludeLinkedAccountsMetrics"))
|
925
928
|
PutMetricStreamInput.struct_class = Types::PutMetricStreamInput
|
926
929
|
|
927
930
|
PutMetricStreamOutput.add_member(:arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "Arn"))
|
@@ -50,9 +50,6 @@ module Aws::CloudWatch
|
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
52
|
self[:region] = options[:region]
|
53
|
-
if self[:region].nil?
|
54
|
-
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
-
end
|
56
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
57
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
55
|
if self[:use_dual_stack].nil?
|
@@ -9,108 +9,49 @@
|
|
9
9
|
|
10
10
|
module Aws::CloudWatch
|
11
11
|
class EndpointProvider
|
12
|
-
def
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
15
|
+
use_fips = parameters.use_fips
|
16
|
+
endpoint = parameters.endpoint
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
20
|
+
end
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
21
25
|
end
|
22
|
-
|
23
|
-
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://monitoring-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
|
37
|
+
return Aws::Endpoints::Endpoint.new(url: "https://monitoring.#{region}.amazonaws.com", headers: {}, properties: {})
|
38
|
+
end
|
39
|
+
return Aws::Endpoints::Endpoint.new(url: "https://monitoring-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
40
|
+
end
|
41
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
42
|
+
end
|
43
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
44
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
45
|
+
return Aws::Endpoints::Endpoint.new(url: "https://monitoring.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
46
|
+
end
|
47
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
48
|
+
end
|
49
|
+
return Aws::Endpoints::Endpoint.new(url: "https://monitoring.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
50
|
+
end
|
51
|
+
end
|
52
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
53
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
24
54
|
|
25
|
-
def resolve_endpoint(parameters)
|
26
|
-
@provider.resolve_endpoint(parameters)
|
27
55
|
end
|
28
|
-
|
29
|
-
# @api private
|
30
|
-
RULES = <<-JSON
|
31
|
-
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24i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
109
|
-
b25kaXRpb25zIjpbXSwiZW5kcG9pbnQiOnsidXJsIjoiaHR0cHM6Ly9tb25p
|
110
|
-
dG9yaW5nLntSZWdpb259LntQYXJ0aXRpb25SZXN1bHQjZG5zU3VmZml4fSIs
|
111
|
-
InByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRwb2lu
|
112
|
-
dCJ9XX1dfQ==
|
113
|
-
|
114
|
-
JSON
|
115
56
|
end
|
116
57
|
end
|
@@ -365,6 +365,9 @@ module Aws::CloudWatch
|
|
365
365
|
# @param [Hash] options ({})
|
366
366
|
# @option options [required, String] :alarm_name
|
367
367
|
# The name for the alarm. This name must be unique within the Region.
|
368
|
+
#
|
369
|
+
# The name must contain only UTF-8 characters, and can't contain ASCII
|
370
|
+
# control characters
|
368
371
|
# @option options [String] :alarm_description
|
369
372
|
# The description for the alarm.
|
370
373
|
# @option options [Boolean] :actions_enabled
|
@@ -373,65 +376,132 @@ module Aws::CloudWatch
|
|
373
376
|
# @option options [Array<String>] :ok_actions
|
374
377
|
# The actions to execute when this alarm transitions to an `OK` state
|
375
378
|
# from any other state. Each action is specified as an Amazon Resource
|
376
|
-
# Name (ARN).
|
377
|
-
#
|
378
|
-
#
|
379
|
-
#
|
380
|
-
# `arn:aws:automate:region:ec2:
|
381
|
-
#
|
382
|
-
# `arn:aws:
|
383
|
-
#
|
384
|
-
# `
|
385
|
-
#
|
386
|
-
#
|
387
|
-
#
|
388
|
-
#
|
389
|
-
#
|
390
|
-
#
|
391
|
-
#
|
392
|
-
#
|
393
|
-
#
|
379
|
+
# Name (ARN). Valid values:
|
380
|
+
#
|
381
|
+
# **EC2 actions:**
|
382
|
+
#
|
383
|
+
# * `arn:aws:automate:region:ec2:stop`
|
384
|
+
#
|
385
|
+
# * `arn:aws:automate:region:ec2:terminate`
|
386
|
+
#
|
387
|
+
# * `arn:aws:automate:region:ec2:reboot`
|
388
|
+
#
|
389
|
+
# * `arn:aws:automate:region:ec2:recover`
|
390
|
+
#
|
391
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0`
|
392
|
+
#
|
393
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
|
394
|
+
#
|
395
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
|
396
|
+
#
|
397
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0`
|
398
|
+
#
|
399
|
+
# **Autoscaling action:**
|
400
|
+
#
|
401
|
+
# * `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
402
|
+
# `
|
403
|
+
#
|
404
|
+
# ^
|
405
|
+
#
|
406
|
+
# **SSN notification action:**
|
407
|
+
#
|
408
|
+
# * `arn:aws:sns:region:account-id:sns-topic-name:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
409
|
+
# `
|
410
|
+
#
|
411
|
+
# ^
|
412
|
+
#
|
413
|
+
# **SSM integration actions:**
|
414
|
+
#
|
415
|
+
# * `arn:aws:ssm:region:account-id:opsitem:severity#CATEGORY=category-name
|
416
|
+
# `
|
417
|
+
#
|
418
|
+
# * `arn:aws:ssm-incidents::account-id:responseplan/response-plan-name `
|
394
419
|
# @option options [Array<String>] :alarm_actions
|
395
420
|
# The actions to execute when this alarm transitions to the `ALARM`
|
396
421
|
# state from any other state. Each action is specified as an Amazon
|
397
|
-
# Resource Name (ARN).
|
398
|
-
#
|
399
|
-
#
|
400
|
-
#
|
401
|
-
# `arn:aws:automate:region:ec2:
|
402
|
-
#
|
403
|
-
# `arn:aws:
|
404
|
-
#
|
405
|
-
#
|
406
|
-
#
|
407
|
-
#
|
408
|
-
#
|
409
|
-
# `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0`
|
410
|
-
#
|
411
|
-
# `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
|
412
|
-
#
|
413
|
-
# `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
|
414
|
-
#
|
415
|
-
# `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0`
|
422
|
+
# Resource Name (ARN). Valid values:
|
423
|
+
#
|
424
|
+
# **EC2 actions:**
|
425
|
+
#
|
426
|
+
# * `arn:aws:automate:region:ec2:stop`
|
427
|
+
#
|
428
|
+
# * `arn:aws:automate:region:ec2:terminate`
|
429
|
+
#
|
430
|
+
# * `arn:aws:automate:region:ec2:reboot`
|
431
|
+
#
|
432
|
+
# * `arn:aws:automate:region:ec2:recover`
|
433
|
+
#
|
434
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0`
|
435
|
+
#
|
436
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
|
437
|
+
#
|
438
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
|
439
|
+
#
|
440
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0`
|
441
|
+
#
|
442
|
+
# **Autoscaling action:**
|
443
|
+
#
|
444
|
+
# * `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
445
|
+
# `
|
446
|
+
#
|
447
|
+
# ^
|
448
|
+
#
|
449
|
+
# **SSN notification action:**
|
450
|
+
#
|
451
|
+
# * `arn:aws:sns:region:account-id:sns-topic-name:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
452
|
+
# `
|
453
|
+
#
|
454
|
+
# ^
|
455
|
+
#
|
456
|
+
# **SSM integration actions:**
|
457
|
+
#
|
458
|
+
# * `arn:aws:ssm:region:account-id:opsitem:severity#CATEGORY=category-name
|
459
|
+
# `
|
460
|
+
#
|
461
|
+
# * `arn:aws:ssm-incidents::account-id:responseplan/response-plan-name `
|
416
462
|
# @option options [Array<String>] :insufficient_data_actions
|
417
463
|
# The actions to execute when this alarm transitions to the
|
418
464
|
# `INSUFFICIENT_DATA` state from any other state. Each action is
|
419
|
-
# specified as an Amazon Resource Name (ARN).
|
420
|
-
#
|
421
|
-
#
|
422
|
-
#
|
423
|
-
# `arn:aws:automate:region:ec2:
|
424
|
-
#
|
425
|
-
# `arn:aws:
|
426
|
-
#
|
427
|
-
# `
|
428
|
-
#
|
429
|
-
#
|
430
|
-
#
|
431
|
-
#
|
432
|
-
#
|
433
|
-
#
|
434
|
-
#
|
465
|
+
# specified as an Amazon Resource Name (ARN). Valid values:
|
466
|
+
#
|
467
|
+
# **EC2 actions:**
|
468
|
+
#
|
469
|
+
# * `arn:aws:automate:region:ec2:stop`
|
470
|
+
#
|
471
|
+
# * `arn:aws:automate:region:ec2:terminate`
|
472
|
+
#
|
473
|
+
# * `arn:aws:automate:region:ec2:reboot`
|
474
|
+
#
|
475
|
+
# * `arn:aws:automate:region:ec2:recover`
|
476
|
+
#
|
477
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0`
|
478
|
+
#
|
479
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
|
480
|
+
#
|
481
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
|
482
|
+
#
|
483
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0`
|
484
|
+
#
|
485
|
+
# **Autoscaling action:**
|
486
|
+
#
|
487
|
+
# * `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
488
|
+
# `
|
489
|
+
#
|
490
|
+
# ^
|
491
|
+
#
|
492
|
+
# **SSN notification action:**
|
493
|
+
#
|
494
|
+
# * `arn:aws:sns:region:account-id:sns-topic-name:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
495
|
+
# `
|
496
|
+
#
|
497
|
+
# ^
|
498
|
+
#
|
499
|
+
# **SSM integration actions:**
|
500
|
+
#
|
501
|
+
# * `arn:aws:ssm:region:account-id:opsitem:severity#CATEGORY=category-name
|
502
|
+
# `
|
503
|
+
#
|
504
|
+
# * `arn:aws:ssm-incidents::account-id:responseplan/response-plan-name `
|
435
505
|
# @option options [String] :statistic
|
436
506
|
# The statistic for the metric specified in `MetricName`, other than
|
437
507
|
# percentile. For percentile statistics, use `ExtendedStatistic`. When
|
@@ -410,7 +410,8 @@ module Aws::CloudWatch
|
|
410
410
|
end
|
411
411
|
|
412
412
|
# @!attribute [rw] alarm_names
|
413
|
-
# The alarms to be deleted.
|
413
|
+
# The alarms to be deleted. Do not enclose the alarm names in quote
|
414
|
+
# marks.
|
414
415
|
# @return [Array<String>]
|
415
416
|
#
|
416
417
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteAlarmsInput AWS API Documentation
|
@@ -929,12 +930,15 @@ module Aws::CloudWatch
|
|
929
930
|
# @!attribute [rw] name
|
930
931
|
# The name of the dimension. Dimension names must contain only ASCII
|
931
932
|
# characters, must include at least one non-whitespace character, and
|
932
|
-
# cannot start with a colon (`:`).
|
933
|
+
# cannot start with a colon (`:`). ASCII control characters are not
|
934
|
+
# supported as part of dimension names.
|
933
935
|
# @return [String]
|
934
936
|
#
|
935
937
|
# @!attribute [rw] value
|
936
938
|
# The value of the dimension. Dimension values must contain only ASCII
|
937
939
|
# characters and must include at least one non-whitespace character.
|
940
|
+
# ASCII control characters are not supported as part of dimension
|
941
|
+
# values.
|
938
942
|
# @return [String]
|
939
943
|
#
|
940
944
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/Dimension AWS API Documentation
|
@@ -1565,6 +1569,12 @@ module Aws::CloudWatch
|
|
1565
1569
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html
|
1566
1570
|
# @return [Array<Types::MetricStreamStatisticsConfiguration>]
|
1567
1571
|
#
|
1572
|
+
# @!attribute [rw] include_linked_accounts_metrics
|
1573
|
+
# If this is `true` and this metric stream is in a monitoring account,
|
1574
|
+
# then the stream includes metrics from source accounts that the
|
1575
|
+
# monitoring account is linked to.
|
1576
|
+
# @return [Boolean]
|
1577
|
+
#
|
1568
1578
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricStreamOutput AWS API Documentation
|
1569
1579
|
#
|
1570
1580
|
class GetMetricStreamOutput < Struct.new(
|
@@ -1578,7 +1588,8 @@ module Aws::CloudWatch
|
|
1578
1588
|
:creation_date,
|
1579
1589
|
:last_update_date,
|
1580
1590
|
:output_format,
|
1581
|
-
:statistics_configurations
|
1591
|
+
:statistics_configurations,
|
1592
|
+
:include_linked_accounts_metrics)
|
1582
1593
|
SENSITIVE = []
|
1583
1594
|
include Aws::Structure
|
1584
1595
|
end
|
@@ -2978,6 +2989,10 @@ module Aws::CloudWatch
|
|
2978
2989
|
# This structure contains the name of one of the metric namespaces that
|
2979
2990
|
# is listed in a filter of a metric stream.
|
2980
2991
|
#
|
2992
|
+
# The namespace can contain only ASCII printable characters (ASCII range
|
2993
|
+
# 32 through 126). It must contain at least one non-whitespace
|
2994
|
+
# character.
|
2995
|
+
#
|
2981
2996
|
# @!attribute [rw] namespace
|
2982
2997
|
# The name of the metric namespace in the filter.
|
2983
2998
|
# @return [String]
|
@@ -3246,7 +3261,7 @@ module Aws::CloudWatch
|
|
3246
3261
|
# Alarm names specified in `AlarmRule` can be surrounded with
|
3247
3262
|
# double-quotes ("), but do not have to be.
|
3248
3263
|
#
|
3249
|
-
# The following are some examples of `AlarmRule
|
3264
|
+
# The following are some examples of `AlarmRule`:
|
3250
3265
|
#
|
3251
3266
|
# * `ALARM(CPUUtilizationTooHigh) AND ALARM(DiskReadOpsTooHigh)`
|
3252
3267
|
# specifies that the composite alarm goes into ALARM state only if
|
@@ -3469,6 +3484,9 @@ module Aws::CloudWatch
|
|
3469
3484
|
|
3470
3485
|
# @!attribute [rw] alarm_name
|
3471
3486
|
# The name for the alarm. This name must be unique within the Region.
|
3487
|
+
#
|
3488
|
+
# The name must contain only UTF-8 characters, and can't contain
|
3489
|
+
# ASCII control characters
|
3472
3490
|
# @return [String]
|
3473
3491
|
#
|
3474
3492
|
# @!attribute [rw] alarm_description
|
@@ -3483,70 +3501,139 @@ module Aws::CloudWatch
|
|
3483
3501
|
# @!attribute [rw] ok_actions
|
3484
3502
|
# The actions to execute when this alarm transitions to an `OK` state
|
3485
3503
|
# from any other state. Each action is specified as an Amazon Resource
|
3486
|
-
# Name (ARN).
|
3504
|
+
# Name (ARN). Valid values:
|
3487
3505
|
#
|
3488
|
-
#
|
3489
|
-
#
|
3490
|
-
# `arn:aws:automate:region:ec2:
|
3491
|
-
#
|
3492
|
-
# `arn:aws:
|
3493
|
-
#
|
3494
|
-
# `
|
3506
|
+
# **EC2 actions:**
|
3507
|
+
#
|
3508
|
+
# * `arn:aws:automate:region:ec2:stop`
|
3509
|
+
#
|
3510
|
+
# * `arn:aws:automate:region:ec2:terminate`
|
3511
|
+
#
|
3512
|
+
# * `arn:aws:automate:region:ec2:reboot`
|
3513
|
+
#
|
3514
|
+
# * `arn:aws:automate:region:ec2:recover`
|
3515
|
+
#
|
3516
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0`
|
3517
|
+
#
|
3518
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
|
3519
|
+
#
|
3520
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
|
3521
|
+
#
|
3522
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0`
|
3523
|
+
#
|
3524
|
+
# **Autoscaling action:**
|
3495
3525
|
#
|
3496
|
-
#
|
3497
|
-
#
|
3498
|
-
#
|
3499
|
-
#
|
3500
|
-
#
|
3501
|
-
#
|
3502
|
-
#
|
3503
|
-
# `arn:aws:
|
3526
|
+
# * `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
3527
|
+
# `
|
3528
|
+
#
|
3529
|
+
# ^
|
3530
|
+
#
|
3531
|
+
# **SSN notification action:**
|
3532
|
+
#
|
3533
|
+
# * `arn:aws:sns:region:account-id:sns-topic-name:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
3534
|
+
# `
|
3535
|
+
#
|
3536
|
+
# ^
|
3537
|
+
#
|
3538
|
+
# **SSM integration actions:**
|
3539
|
+
#
|
3540
|
+
# * `arn:aws:ssm:region:account-id:opsitem:severity#CATEGORY=category-name
|
3541
|
+
# `
|
3542
|
+
#
|
3543
|
+
# * `arn:aws:ssm-incidents::account-id:responseplan/response-plan-name
|
3544
|
+
# `
|
3504
3545
|
# @return [Array<String>]
|
3505
3546
|
#
|
3506
3547
|
# @!attribute [rw] alarm_actions
|
3507
3548
|
# The actions to execute when this alarm transitions to the `ALARM`
|
3508
3549
|
# state from any other state. Each action is specified as an Amazon
|
3509
|
-
# Resource Name (ARN).
|
3550
|
+
# Resource Name (ARN). Valid values:
|
3510
3551
|
#
|
3511
|
-
#
|
3512
|
-
#
|
3513
|
-
# `arn:aws:automate:region:ec2:
|
3514
|
-
#
|
3515
|
-
# `arn:aws:
|
3516
|
-
#
|
3517
|
-
#
|
3518
|
-
#
|
3519
|
-
# `
|
3552
|
+
# **EC2 actions:**
|
3553
|
+
#
|
3554
|
+
# * `arn:aws:automate:region:ec2:stop`
|
3555
|
+
#
|
3556
|
+
# * `arn:aws:automate:region:ec2:terminate`
|
3557
|
+
#
|
3558
|
+
# * `arn:aws:automate:region:ec2:reboot`
|
3559
|
+
#
|
3560
|
+
# * `arn:aws:automate:region:ec2:recover`
|
3561
|
+
#
|
3562
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0`
|
3563
|
+
#
|
3564
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
|
3520
3565
|
#
|
3521
|
-
#
|
3522
|
-
#
|
3523
|
-
#
|
3524
|
-
#
|
3525
|
-
#
|
3526
|
-
#
|
3527
|
-
#
|
3528
|
-
#
|
3566
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
|
3567
|
+
#
|
3568
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0`
|
3569
|
+
#
|
3570
|
+
# **Autoscaling action:**
|
3571
|
+
#
|
3572
|
+
# * `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
3573
|
+
# `
|
3574
|
+
#
|
3575
|
+
# ^
|
3576
|
+
#
|
3577
|
+
# **SSN notification action:**
|
3578
|
+
#
|
3579
|
+
# * `arn:aws:sns:region:account-id:sns-topic-name:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
3580
|
+
# `
|
3581
|
+
#
|
3582
|
+
# ^
|
3583
|
+
#
|
3584
|
+
# **SSM integration actions:**
|
3585
|
+
#
|
3586
|
+
# * `arn:aws:ssm:region:account-id:opsitem:severity#CATEGORY=category-name
|
3587
|
+
# `
|
3588
|
+
#
|
3589
|
+
# * `arn:aws:ssm-incidents::account-id:responseplan/response-plan-name
|
3590
|
+
# `
|
3529
3591
|
# @return [Array<String>]
|
3530
3592
|
#
|
3531
3593
|
# @!attribute [rw] insufficient_data_actions
|
3532
3594
|
# The actions to execute when this alarm transitions to the
|
3533
3595
|
# `INSUFFICIENT_DATA` state from any other state. Each action is
|
3534
|
-
# specified as an Amazon Resource Name (ARN).
|
3596
|
+
# specified as an Amazon Resource Name (ARN). Valid values:
|
3535
3597
|
#
|
3536
|
-
#
|
3537
|
-
#
|
3538
|
-
# `arn:aws:automate:region:ec2:
|
3539
|
-
#
|
3540
|
-
# `arn:aws:
|
3541
|
-
#
|
3542
|
-
# `
|
3598
|
+
# **EC2 actions:**
|
3599
|
+
#
|
3600
|
+
# * `arn:aws:automate:region:ec2:stop`
|
3601
|
+
#
|
3602
|
+
# * `arn:aws:automate:region:ec2:terminate`
|
3603
|
+
#
|
3604
|
+
# * `arn:aws:automate:region:ec2:reboot`
|
3543
3605
|
#
|
3544
|
-
#
|
3545
|
-
#
|
3546
|
-
#
|
3547
|
-
#
|
3548
|
-
#
|
3549
|
-
#
|
3606
|
+
# * `arn:aws:automate:region:ec2:recover`
|
3607
|
+
#
|
3608
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0`
|
3609
|
+
#
|
3610
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
|
3611
|
+
#
|
3612
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
|
3613
|
+
#
|
3614
|
+
# * `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0`
|
3615
|
+
#
|
3616
|
+
# **Autoscaling action:**
|
3617
|
+
#
|
3618
|
+
# * `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
3619
|
+
# `
|
3620
|
+
#
|
3621
|
+
# ^
|
3622
|
+
#
|
3623
|
+
# **SSN notification action:**
|
3624
|
+
#
|
3625
|
+
# * `arn:aws:sns:region:account-id:sns-topic-name:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
3626
|
+
# `
|
3627
|
+
#
|
3628
|
+
# ^
|
3629
|
+
#
|
3630
|
+
# **SSM integration actions:**
|
3631
|
+
#
|
3632
|
+
# * `arn:aws:ssm:region:account-id:opsitem:severity#CATEGORY=category-name
|
3633
|
+
# `
|
3634
|
+
#
|
3635
|
+
# * `arn:aws:ssm-incidents::account-id:responseplan/response-plan-name
|
3636
|
+
# `
|
3550
3637
|
# @return [Array<String>]
|
3551
3638
|
#
|
3552
3639
|
# @!attribute [rw] metric_name
|
@@ -3797,7 +3884,9 @@ module Aws::CloudWatch
|
|
3797
3884
|
end
|
3798
3885
|
|
3799
3886
|
# @!attribute [rw] namespace
|
3800
|
-
# The namespace for the metric data.
|
3887
|
+
# The namespace for the metric data. You can use ASCII characters for
|
3888
|
+
# the namespace, except for control characters which are not
|
3889
|
+
# supported.
|
3801
3890
|
#
|
3802
3891
|
# To avoid conflicts with Amazon Web Services service namespaces, you
|
3803
3892
|
# should not specify a namespace that begins with `AWS/`
|
@@ -3914,6 +4003,11 @@ module Aws::CloudWatch
|
|
3914
4003
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html
|
3915
4004
|
# @return [Array<Types::MetricStreamStatisticsConfiguration>]
|
3916
4005
|
#
|
4006
|
+
# @!attribute [rw] include_linked_accounts_metrics
|
4007
|
+
# If you are creating a metric stream in a monitoring account, specify
|
4008
|
+
# `true` to include metrics from source accounts in the metric stream.
|
4009
|
+
# @return [Boolean]
|
4010
|
+
#
|
3917
4011
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricStreamInput AWS API Documentation
|
3918
4012
|
#
|
3919
4013
|
class PutMetricStreamInput < Struct.new(
|
@@ -3924,7 +4018,8 @@ module Aws::CloudWatch
|
|
3924
4018
|
:role_arn,
|
3925
4019
|
:output_format,
|
3926
4020
|
:tags,
|
3927
|
-
:statistics_configurations
|
4021
|
+
:statistics_configurations,
|
4022
|
+
:include_linked_accounts_metrics)
|
3928
4023
|
SENSITIVE = []
|
3929
4024
|
include Aws::Structure
|
3930
4025
|
end
|
data/lib/aws-sdk-cloudwatch.rb
CHANGED
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.72.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:
|
11
|
+
date: 2023-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|