aws-sdk-cloudwatch 1.71.0 → 1.72.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudwatch/client.rb +138 -58
- data/lib/aws-sdk-cloudwatch/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-cloudwatch/endpoint_provider.rb +29 -26
- data/lib/aws-sdk-cloudwatch/metric.rb +123 -53
- data/lib/aws-sdk-cloudwatch/types.rb +134 -52
- 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
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
|
#
|
@@ -2614,7 +2622,7 @@ module Aws::CloudWatch
|
|
2614
2622
|
# Alarm names specified in `AlarmRule` can be surrounded with
|
2615
2623
|
# double-quotes ("), but do not have to be.
|
2616
2624
|
#
|
2617
|
-
# The following are some examples of `AlarmRule
|
2625
|
+
# The following are some examples of `AlarmRule`:
|
2618
2626
|
#
|
2619
2627
|
# * `ALARM(CPUUtilizationTooHigh) AND ALARM(DiskReadOpsTooHigh)`
|
2620
2628
|
# specifies that the composite alarm goes into ALARM state only if
|
@@ -2923,10 +2931,11 @@ module Aws::CloudWatch
|
|
2923
2931
|
# If you are an IAM user, you must have Amazon EC2 permissions for some
|
2924
2932
|
# alarm operations:
|
2925
2933
|
#
|
2926
|
-
# * The `iam:CreateServiceLinkedRole` for all alarms with EC2
|
2934
|
+
# * The `iam:CreateServiceLinkedRole` permission for all alarms with EC2
|
2935
|
+
# actions
|
2927
2936
|
#
|
2928
|
-
# * The `iam:CreateServiceLinkedRole` to create an alarm
|
2929
|
-
# Manager OpsItem actions.
|
2937
|
+
# * The `iam:CreateServiceLinkedRole` permissions to create an alarm
|
2938
|
+
# with Systems Manager OpsItem or response plan actions.
|
2930
2939
|
#
|
2931
2940
|
# The first time you create an alarm in the Amazon Web Services
|
2932
2941
|
# Management Console, the CLI, or by using the PutMetricAlarm API,
|
@@ -2966,6 +2975,9 @@ module Aws::CloudWatch
|
|
2966
2975
|
# @option params [required, String] :alarm_name
|
2967
2976
|
# The name for the alarm. This name must be unique within the Region.
|
2968
2977
|
#
|
2978
|
+
# The name must contain only UTF-8 characters, and can't contain ASCII
|
2979
|
+
# control characters
|
2980
|
+
#
|
2969
2981
|
# @option params [String] :alarm_description
|
2970
2982
|
# The description for the alarm.
|
2971
2983
|
#
|
@@ -2976,67 +2988,134 @@ module Aws::CloudWatch
|
|
2976
2988
|
# @option params [Array<String>] :ok_actions
|
2977
2989
|
# The actions to execute when this alarm transitions to an `OK` state
|
2978
2990
|
# from any other state. Each action is specified as an Amazon Resource
|
2979
|
-
# 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:**
|
2980
3012
|
#
|
2981
|
-
#
|
2982
|
-
#
|
2983
|
-
#
|
2984
|
-
#
|
2985
|
-
#
|
2986
|
-
#
|
2987
|
-
#
|
2988
|
-
#
|
2989
|
-
#
|
2990
|
-
#
|
2991
|
-
#
|
2992
|
-
#
|
2993
|
-
#
|
2994
|
-
#
|
2995
|
-
#
|
2996
|
-
#
|
3013
|
+
# * `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
3014
|
+
# `
|
3015
|
+
#
|
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 `
|
2997
3031
|
#
|
2998
3032
|
# @option params [Array<String>] :alarm_actions
|
2999
3033
|
# The actions to execute when this alarm transitions to the `ALARM`
|
3000
3034
|
# state from any other state. Each action is specified as an Amazon
|
3001
|
-
# 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`
|
3002
3048
|
#
|
3003
|
-
#
|
3004
|
-
#
|
3005
|
-
# `arn:aws:
|
3006
|
-
#
|
3007
|
-
# `arn:aws:
|
3008
|
-
#
|
3009
|
-
#
|
3010
|
-
#
|
3011
|
-
#
|
3012
|
-
#
|
3013
|
-
#
|
3014
|
-
#
|
3015
|
-
#
|
3016
|
-
#
|
3017
|
-
#
|
3018
|
-
#
|
3019
|
-
#
|
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`
|
3052
|
+
#
|
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 `
|
3020
3075
|
#
|
3021
3076
|
# @option params [Array<String>] :insufficient_data_actions
|
3022
3077
|
# The actions to execute when this alarm transitions to the
|
3023
3078
|
# `INSUFFICIENT_DATA` state from any other state. Each action is
|
3024
|
-
# 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`
|
3090
|
+
#
|
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
|
+
# `
|
3025
3117
|
#
|
3026
|
-
#
|
3027
|
-
# `arn:aws:automate:region:ec2:terminate` \|
|
3028
|
-
# `arn:aws:automate:region:ec2:recover` \|
|
3029
|
-
# `arn:aws:automate:region:ec2:reboot` \|
|
3030
|
-
# `arn:aws:sns:region:account-id:sns-topic-name ` \|
|
3031
|
-
# `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
3032
|
-
# `
|
3033
|
-
#
|
3034
|
-
# Valid Values (for use with IAM roles):
|
3035
|
-
# `>arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0`
|
3036
|
-
# \|
|
3037
|
-
# `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
|
3038
|
-
# \|
|
3039
|
-
# `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
|
3118
|
+
# * `arn:aws:ssm-incidents::account-id:responseplan/response-plan-name `
|
3040
3119
|
#
|
3041
3120
|
# @option params [String] :metric_name
|
3042
3121
|
# The name for the metric associated with the alarm. For each
|
@@ -3366,7 +3445,8 @@ module Aws::CloudWatch
|
|
3366
3445
|
# [4]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html
|
3367
3446
|
#
|
3368
3447
|
# @option params [required, String] :namespace
|
3369
|
-
# 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.
|
3370
3450
|
#
|
3371
3451
|
# To avoid conflicts with Amazon Web Services service namespaces, you
|
3372
3452
|
# should not specify a namespace that begins with `AWS/`
|
@@ -3834,7 +3914,7 @@ module Aws::CloudWatch
|
|
3834
3914
|
params: params,
|
3835
3915
|
config: config)
|
3836
3916
|
context[:gem_name] = 'aws-sdk-cloudwatch'
|
3837
|
-
context[:gem_version] = '1.
|
3917
|
+
context[:gem_version] = '1.72.0'
|
3838
3918
|
Seahorse::Client::Request.new(handlers, context)
|
3839
3919
|
end
|
3840
3920
|
|
@@ -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?
|
@@ -14,39 +14,42 @@ module Aws::CloudWatch
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
18
|
-
if Aws::Endpoints::Matchers.
|
19
|
-
|
20
|
-
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
-
end
|
22
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
-
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
-
end
|
25
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
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"
|
26
20
|
end
|
27
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
28
|
-
|
29
|
-
return Aws::Endpoints::Endpoint.new(url: "https://monitoring-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
-
end
|
31
|
-
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
32
23
|
end
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
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: {})
|
37
31
|
end
|
38
|
-
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
39
33
|
end
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
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"
|
45
48
|
end
|
46
|
-
|
49
|
+
return Aws::Endpoints::Endpoint.new(url: "https://monitoring.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
47
50
|
end
|
48
|
-
return Aws::Endpoints::Endpoint.new(url: "https://monitoring.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
49
51
|
end
|
52
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
50
53
|
raise ArgumentError, 'No endpoint could be resolved'
|
51
54
|
|
52
55
|
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
|
@@ -2985,6 +2989,10 @@ module Aws::CloudWatch
|
|
2985
2989
|
# This structure contains the name of one of the metric namespaces that
|
2986
2990
|
# is listed in a filter of a metric stream.
|
2987
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
|
+
#
|
2988
2996
|
# @!attribute [rw] namespace
|
2989
2997
|
# The name of the metric namespace in the filter.
|
2990
2998
|
# @return [String]
|
@@ -3253,7 +3261,7 @@ module Aws::CloudWatch
|
|
3253
3261
|
# Alarm names specified in `AlarmRule` can be surrounded with
|
3254
3262
|
# double-quotes ("), but do not have to be.
|
3255
3263
|
#
|
3256
|
-
# The following are some examples of `AlarmRule
|
3264
|
+
# The following are some examples of `AlarmRule`:
|
3257
3265
|
#
|
3258
3266
|
# * `ALARM(CPUUtilizationTooHigh) AND ALARM(DiskReadOpsTooHigh)`
|
3259
3267
|
# specifies that the composite alarm goes into ALARM state only if
|
@@ -3476,6 +3484,9 @@ module Aws::CloudWatch
|
|
3476
3484
|
|
3477
3485
|
# @!attribute [rw] alarm_name
|
3478
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
|
3479
3490
|
# @return [String]
|
3480
3491
|
#
|
3481
3492
|
# @!attribute [rw] alarm_description
|
@@ -3490,70 +3501,139 @@ module Aws::CloudWatch
|
|
3490
3501
|
# @!attribute [rw] ok_actions
|
3491
3502
|
# The actions to execute when this alarm transitions to an `OK` state
|
3492
3503
|
# from any other state. Each action is specified as an Amazon Resource
|
3493
|
-
# Name (ARN).
|
3504
|
+
# Name (ARN). Valid values:
|
3494
3505
|
#
|
3495
|
-
#
|
3496
|
-
#
|
3497
|
-
# `arn:aws:automate:region:ec2:
|
3498
|
-
#
|
3499
|
-
# `arn:aws:
|
3500
|
-
#
|
3501
|
-
# `
|
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:**
|
3525
|
+
#
|
3526
|
+
# * `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
3527
|
+
# `
|
3502
3528
|
#
|
3503
|
-
#
|
3504
|
-
#
|
3505
|
-
#
|
3506
|
-
#
|
3507
|
-
#
|
3508
|
-
#
|
3509
|
-
#
|
3510
|
-
#
|
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
|
+
# `
|
3511
3545
|
# @return [Array<String>]
|
3512
3546
|
#
|
3513
3547
|
# @!attribute [rw] alarm_actions
|
3514
3548
|
# The actions to execute when this alarm transitions to the `ALARM`
|
3515
3549
|
# state from any other state. Each action is specified as an Amazon
|
3516
|
-
# Resource Name (ARN).
|
3550
|
+
# Resource Name (ARN). Valid values:
|
3517
3551
|
#
|
3518
|
-
#
|
3519
|
-
#
|
3520
|
-
# `arn:aws:automate:region:ec2:
|
3521
|
-
#
|
3522
|
-
# `arn:aws:
|
3523
|
-
#
|
3524
|
-
#
|
3525
|
-
#
|
3526
|
-
# `
|
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`
|
3527
3565
|
#
|
3528
|
-
#
|
3529
|
-
#
|
3530
|
-
#
|
3531
|
-
#
|
3532
|
-
#
|
3533
|
-
#
|
3534
|
-
#
|
3535
|
-
#
|
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
|
+
# `
|
3536
3591
|
# @return [Array<String>]
|
3537
3592
|
#
|
3538
3593
|
# @!attribute [rw] insufficient_data_actions
|
3539
3594
|
# The actions to execute when this alarm transitions to the
|
3540
3595
|
# `INSUFFICIENT_DATA` state from any other state. Each action is
|
3541
|
-
# specified as an Amazon Resource Name (ARN).
|
3596
|
+
# specified as an Amazon Resource Name (ARN). Valid values:
|
3542
3597
|
#
|
3543
|
-
#
|
3544
|
-
#
|
3545
|
-
# `arn:aws:automate:region:ec2:
|
3546
|
-
#
|
3547
|
-
# `arn:aws:
|
3548
|
-
#
|
3549
|
-
# `
|
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`
|
3605
|
+
#
|
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
|
+
# `
|
3550
3634
|
#
|
3551
|
-
#
|
3552
|
-
#
|
3553
|
-
# \|
|
3554
|
-
# `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
|
3555
|
-
# \|
|
3556
|
-
# `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
|
3635
|
+
# * `arn:aws:ssm-incidents::account-id:responseplan/response-plan-name
|
3636
|
+
# `
|
3557
3637
|
# @return [Array<String>]
|
3558
3638
|
#
|
3559
3639
|
# @!attribute [rw] metric_name
|
@@ -3804,7 +3884,9 @@ module Aws::CloudWatch
|
|
3804
3884
|
end
|
3805
3885
|
|
3806
3886
|
# @!attribute [rw] namespace
|
3807
|
-
# 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.
|
3808
3890
|
#
|
3809
3891
|
# To avoid conflicts with Amazon Web Services service namespaces, you
|
3810
3892
|
# should not specify a namespace that begins with `AWS/`
|
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: 2023-
|
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
|