lib/aws-sdk-cloudwatch/metric.rb in aws-sdk-cloudwatch-1.18.0 vs lib/aws-sdk-cloudwatch/metric.rb in aws-sdk-cloudwatch-1.19.0
- old
+ new
@@ -341,10 +341,16 @@
# expression: "MetricExpression",
# label: "MetricLabel",
# return_data: false,
# },
# ],
+ # tags: [
+ # {
+ # key: "TagKey", # required
+ # value: "TagValue", # required
+ # },
+ # ],
# })
# @param [Hash] options ({})
# @option options [required, String] :alarm_name
# The name for the alarm. This name must be unique within your AWS
# account.
@@ -378,10 +384,11 @@
# Resource Name (ARN).
#
# Valid Values: `arn:aws:automate:region:ec2:stop` \|
# `arn:aws:automate:region:ec2:terminate` \|
# `arn:aws:automate:region:ec2:recover` \|
+ # `arn:aws:automate:region:ec2:reboot` \|
# `arn:aws:sns:region:account-id:sns-topic-name ` \|
# `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-idautoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
# `
#
# Valid Values (for use with IAM roles):
@@ -396,10 +403,11 @@
# specified as an Amazon Resource Name (ARN).
#
# Valid Values: `arn:aws:automate:region:ec2:stop` \|
# `arn:aws:automate:region:ec2:terminate` \|
# `arn:aws:automate:region:ec2:recover` \|
+ # `arn:aws:automate:region:ec2:reboot` \|
# `arn:aws:sns:region:account-id:sns-topic-name ` \|
# `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-idautoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
# `
#
# Valid Values (for use with IAM roles):
@@ -508,14 +516,26 @@
# An array of `MetricDataQuery` structures that enable you to create an
# alarm based on the result of a metric math expression. Each item in
# the `Metrics` array either retrieves a metric or performs a math
# expression.
#
+ # One item in the `Metrics` array is the expression that the alarm
+ # watches. You designate this expression by setting `ReturnValue` to
+ # true for this object in the array. For more information, see
+ # MetricDataQuery.
+ #
# If you use the `Metrics` parameter, you cannot include the
# `MetricName`, `Dimensions`, `Period`, `Namespace`, `Statistic`, or
# `ExtendedStatistic` parameters of `PutMetricAlarm` in the same
# operation. Instead, you retrieve the metrics you are using in your
# math expression as part of the `Metrics` array.
+ # @option options [Array<Types::Tag>] :tags
+ # A list of key-value pairs to associate with the alarm or dashboard.
+ # You can associate as many as 50 tags with an alarm.
+ #
+ # Tags can help you organize and categorize your resources. You can also
+ # use them to scope user permissions, by granting a user permission to
+ # access or change only resources with certain tag values.
# @return [Alarm]
def put_alarm(options = {})
options = options.merge(
namespace: @namespace,
metric_name: @name