aws-sdk-cloudwatch 1.71.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4adc9c0178915aa194475a2669cc64b83540093841112732128e55c232358a18
4
- data.tar.gz: 070d7945b97e5c15b10114c0ff432f509211e497971ca1ab661deed36eaa96b6
3
+ metadata.gz: 9b32fc5810e767e096603f224c53db881ed87b0d82513483b008b1cf8932a912
4
+ data.tar.gz: 10b46168f72d9b43fe4b5210c87d35c9b4ae8c4a53ee05c6491a0be21f010bd5
5
5
  SHA512:
6
- metadata.gz: 7ef94f4cda0da9af2169f6636b75a94fd90ce14db0cad3ea2d25fe45d5acefe82fab2f8f6cf64f5cf2ae3b04da8d673c569cca9c23c5f37bec60d1cf4fa9d4fe
7
- data.tar.gz: 91b3c748198f5a3e9493ce6b413a7857e759c6335eebb9cae4d82d31e6283e142f43ca0e6f34242202e7940e60cbdfa4df7eeddb02f5740673dc40c0d6d447a1
6
+ metadata.gz: e922257c3c139771777cb92b53c7db925244bd48674fe7fc17d1aa1d2f8f2179e39696b073cc1f2e4cdb72784a37576ee35036faef80bb2ee6990cdd3b064a27
7
+ data.tar.gz: dd77c220599d986e65c74b3fa1edc3a01e497efb09fce42889ff0109b0a1e863d5132e6ec903374b466b686c333df659e4bd9c5dece673b170f8c40e4c8dc220
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
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
+
4
9
  1.71.0 (2023-01-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.71.0
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
- # In the event of an error, no alarms are deleted.
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 actions
2934
+ # * The `iam:CreateServiceLinkedRole` permission for all alarms with EC2
2935
+ # actions
2927
2936
  #
2928
- # * The `iam:CreateServiceLinkedRole` to create an alarm with Systems
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
- # Valid Values: `arn:aws:automate:region:ec2:stop` \|
2982
- # `arn:aws:automate:region:ec2:terminate` \|
2983
- # `arn:aws:automate:region:ec2:recover` \|
2984
- # `arn:aws:automate:region:ec2:reboot` \|
2985
- # `arn:aws:sns:region:account-id:sns-topic-name ` \|
2986
- # `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
2987
- # `
2988
- #
2989
- # Valid Values (for use with IAM roles):
2990
- # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0`
2991
- # \|
2992
- # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
2993
- # \|
2994
- # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
2995
- # \|
2996
- # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0`
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
- # Valid Values: `arn:aws:automate:region:ec2:stop` \|
3004
- # `arn:aws:automate:region:ec2:terminate` \|
3005
- # `arn:aws:automate:region:ec2:recover` \|
3006
- # `arn:aws:automate:region:ec2:reboot` \|
3007
- # `arn:aws:sns:region:account-id:sns-topic-name ` \|
3008
- # `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
3009
- # ` \| `arn:aws:ssm:region:account-id:opsitem:severity ` \|
3010
- # `arn:aws:ssm-incidents::account-id:response-plan:response-plan-name `
3011
- #
3012
- # Valid Values (for use with IAM roles):
3013
- # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0`
3014
- # \|
3015
- # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
3016
- # \|
3017
- # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
3018
- # \|
3019
- # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0`
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
- # Valid Values: `arn:aws:automate:region:ec2:stop` \|
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.71.0'
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 (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint)
19
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
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?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
- 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"))
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
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
- if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
36
- return Aws::Endpoints::Endpoint.new(url: "https://monitoring.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
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
- return Aws::Endpoints::Endpoint.new(url: "https://monitoring-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
39
33
  end
40
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
41
- end
42
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
43
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
44
- return Aws::Endpoints::Endpoint.new(url: "https://monitoring.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
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
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
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
- # Valid Values: `arn:aws:automate:region:ec2:stop` \|
379
- # `arn:aws:automate:region:ec2:terminate` \|
380
- # `arn:aws:automate:region:ec2:recover` \|
381
- # `arn:aws:automate:region:ec2:reboot` \|
382
- # `arn:aws:sns:region:account-id:sns-topic-name ` \|
383
- # `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
384
- # `
385
- #
386
- # Valid Values (for use with IAM roles):
387
- # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0`
388
- # \|
389
- # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
390
- # \|
391
- # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
392
- # \|
393
- # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0`
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
- # Valid Values: `arn:aws:automate:region:ec2:stop` \|
400
- # `arn:aws:automate:region:ec2:terminate` \|
401
- # `arn:aws:automate:region:ec2:recover` \|
402
- # `arn:aws:automate:region:ec2:reboot` \|
403
- # `arn:aws:sns:region:account-id:sns-topic-name ` \|
404
- # `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
405
- # ` \| `arn:aws:ssm:region:account-id:opsitem:severity ` \|
406
- # `arn:aws:ssm-incidents::account-id:response-plan:response-plan-name `
407
- #
408
- # Valid Values (for use with IAM roles):
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
- # Valid Values: `arn:aws:automate:region:ec2:stop` \|
422
- # `arn:aws:automate:region:ec2:terminate` \|
423
- # `arn:aws:automate:region:ec2:recover` \|
424
- # `arn:aws:automate:region:ec2:reboot` \|
425
- # `arn:aws:sns:region:account-id:sns-topic-name ` \|
426
- # `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
427
- # `
428
- #
429
- # Valid Values (for use with IAM roles):
430
- # `>arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0`
431
- # \|
432
- # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
433
- # \|
434
- # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
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
- # Valid Values: `arn:aws:automate:region:ec2:stop` \|
3496
- # `arn:aws:automate:region:ec2:terminate` \|
3497
- # `arn:aws:automate:region:ec2:recover` \|
3498
- # `arn:aws:automate:region:ec2:reboot` \|
3499
- # `arn:aws:sns:region:account-id:sns-topic-name ` \|
3500
- # `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
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
- # Valid Values (for use with IAM roles):
3504
- # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0`
3505
- # \|
3506
- # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
3507
- # \|
3508
- # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
3509
- # \|
3510
- # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0`
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
- # Valid Values: `arn:aws:automate:region:ec2:stop` \|
3519
- # `arn:aws:automate:region:ec2:terminate` \|
3520
- # `arn:aws:automate:region:ec2:recover` \|
3521
- # `arn:aws:automate:region:ec2:reboot` \|
3522
- # `arn:aws:sns:region:account-id:sns-topic-name ` \|
3523
- # `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
3524
- # ` \| `arn:aws:ssm:region:account-id:opsitem:severity ` \|
3525
- # `arn:aws:ssm-incidents::account-id:response-plan:response-plan-name
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
- # Valid Values (for use with IAM roles):
3529
- # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0`
3530
- # \|
3531
- # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0`
3532
- # \|
3533
- # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0`
3534
- # \|
3535
- # `arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Recover/1.0`
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
- # Valid Values: `arn:aws:automate:region:ec2:stop` \|
3544
- # `arn:aws:automate:region:ec2:terminate` \|
3545
- # `arn:aws:automate:region:ec2:recover` \|
3546
- # `arn:aws:automate:region:ec2:reboot` \|
3547
- # `arn:aws:sns:region:account-id:sns-topic-name ` \|
3548
- # `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id:autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
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
- # Valid Values (for use with IAM roles):
3552
- # `>arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0`
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/`
@@ -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.71.0'
59
+ GEM_VERSION = '1.72.0'
60
60
 
61
61
  end
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.71.0
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-01-18 00:00:00.000000000 Z
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