aws-sdk-cloudwatch 1.18.0 → 1.19.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/lib/aws-sdk-cloudwatch.rb +1 -1
- data/lib/aws-sdk-cloudwatch/client.rb +194 -10
- data/lib/aws-sdk-cloudwatch/client_api.rb +78 -0
- data/lib/aws-sdk-cloudwatch/metric.rb +20 -0
- data/lib/aws-sdk-cloudwatch/types.rb +181 -13
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15abef35d8e74e7afd41770ac9908a1f53ebd3ae
|
4
|
+
data.tar.gz: fde65ccd562e843c079b0e46aaaecda724ac8bcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b38ac6fe5959474ecba1d42a7010292d31faaee5d06ed2796edd289a7683be257bea401f4f9271ec93d72f8b8fc2352f52ace747a8564d4328a5181b7465cb48
|
7
|
+
data.tar.gz: c86aabcd38fa32d82699f411e73a805f479d924c95b431efef9bd47d4b67431c221e12ff9d052665d16fbaaac1c3c19d8a5d8cbc0c01043445e94396798729c9
|
data/lib/aws-sdk-cloudwatch.rb
CHANGED
@@ -199,6 +199,49 @@ module Aws::CloudWatch
|
|
199
199
|
# When `true`, request parameters are validated before
|
200
200
|
# sending the request.
|
201
201
|
#
|
202
|
+
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
203
|
+
# requests through. Formatted like 'http://proxy.com:123'.
|
204
|
+
#
|
205
|
+
# @option options [Float] :http_open_timeout (15) The number of
|
206
|
+
# seconds to wait when opening a HTTP session before rasing a
|
207
|
+
# `Timeout::Error`.
|
208
|
+
#
|
209
|
+
# @option options [Integer] :http_read_timeout (60) The default
|
210
|
+
# number of seconds to wait for response data. This value can
|
211
|
+
# safely be set
|
212
|
+
# per-request on the session yeidled by {#session_for}.
|
213
|
+
#
|
214
|
+
# @option options [Float] :http_idle_timeout (5) The number of
|
215
|
+
# seconds a connection is allowed to sit idble before it is
|
216
|
+
# considered stale. Stale connections are closed and removed
|
217
|
+
# from the pool before making a request.
|
218
|
+
#
|
219
|
+
# @option options [Float] :http_continue_timeout (1) The number of
|
220
|
+
# seconds to wait for a 100-continue response before sending the
|
221
|
+
# request body. This option has no effect unless the request has
|
222
|
+
# "Expect" header set to "100-continue". Defaults to `nil` which
|
223
|
+
# disables this behaviour. This value can safely be set per
|
224
|
+
# request on the session yeidled by {#session_for}.
|
225
|
+
#
|
226
|
+
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
227
|
+
# HTTP debug output will be sent to the `:logger`.
|
228
|
+
#
|
229
|
+
# @option options [Boolean] :ssl_verify_peer (true) When `true`,
|
230
|
+
# SSL peer certificates are verified when establishing a
|
231
|
+
# connection.
|
232
|
+
#
|
233
|
+
# @option options [String] :ssl_ca_bundle Full path to the SSL
|
234
|
+
# certificate authority bundle file that should be used when
|
235
|
+
# verifying peer certificates. If you do not pass
|
236
|
+
# `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
|
237
|
+
# will be used if available.
|
238
|
+
#
|
239
|
+
# @option options [String] :ssl_ca_directory Full path of the
|
240
|
+
# directory that contains the unbundled SSL certificate
|
241
|
+
# authority files for verifying peer certificates. If you do
|
242
|
+
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
|
243
|
+
# system default will be used if available.
|
244
|
+
#
|
202
245
|
def initialize(*args)
|
203
246
|
super
|
204
247
|
end
|
@@ -653,7 +696,7 @@ module Aws::CloudWatch
|
|
653
696
|
# align with the value of the metric's `Period` and sync up with the
|
654
697
|
# beginning and end of an hour. For example, if the `Period` of a metric
|
655
698
|
# is 5 minutes, specifying 12:05 or 12:30 as `StartTime` can get a
|
656
|
-
# faster response from CloudWatch
|
699
|
+
# faster response from CloudWatch than setting 12:07 or 12:29 as the
|
657
700
|
# `StartTime`.
|
658
701
|
#
|
659
702
|
# @option params [required, Time,DateTime,Date,Integer,String] :end_time
|
@@ -663,7 +706,7 @@ module Aws::CloudWatch
|
|
663
706
|
# align with the value of the metric's `Period` and sync up with the
|
664
707
|
# beginning and end of an hour. For example, if the `Period` of a metric
|
665
708
|
# is 5 minutes, specifying 12:05 or 12:30 as `EndTime` can get a faster
|
666
|
-
# response from CloudWatch
|
709
|
+
# response from CloudWatch than setting 12:07 or 12:29 as the `EndTime`.
|
667
710
|
#
|
668
711
|
# @option params [String] :next_token
|
669
712
|
# Include this value, if it was returned by the previous call, to get
|
@@ -995,8 +1038,7 @@ module Aws::CloudWatch
|
|
995
1038
|
# response with the content-type set to `text/xml`. The image data is in
|
996
1039
|
# a `MetricWidgetImage` field. For example:
|
997
1040
|
#
|
998
|
-
# ` <GetMetricWidgetImageResponse
|
999
|
-
# xmlns="http://monitoring.amazonaws.com/doc/2010-08-01/">`
|
1041
|
+
# ` <GetMetricWidgetImageResponse xmlns=<URLstring>>`
|
1000
1042
|
#
|
1001
1043
|
# ` <GetMetricWidgetImageResult>`
|
1002
1044
|
#
|
@@ -1156,6 +1198,43 @@ module Aws::CloudWatch
|
|
1156
1198
|
req.send_request(options)
|
1157
1199
|
end
|
1158
1200
|
|
1201
|
+
# Displays the tags associated with a CloudWatch resource. Alarms
|
1202
|
+
# support tagging.
|
1203
|
+
#
|
1204
|
+
# @option params [required, String] :resource_arn
|
1205
|
+
# The ARN of the CloudWatch resource that you want to view tags for. For
|
1206
|
+
# more information on ARN format, see [Example ARNs][1] in the *Amazon
|
1207
|
+
# Web Services General Reference*.
|
1208
|
+
#
|
1209
|
+
#
|
1210
|
+
#
|
1211
|
+
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-cloudwatch
|
1212
|
+
#
|
1213
|
+
# @return [Types::ListTagsForResourceOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1214
|
+
#
|
1215
|
+
# * {Types::ListTagsForResourceOutput#tags #tags} => Array<Types::Tag>
|
1216
|
+
#
|
1217
|
+
# @example Request syntax with placeholder values
|
1218
|
+
#
|
1219
|
+
# resp = client.list_tags_for_resource({
|
1220
|
+
# resource_arn: "AmazonResourceName", # required
|
1221
|
+
# })
|
1222
|
+
#
|
1223
|
+
# @example Response structure
|
1224
|
+
#
|
1225
|
+
# resp.tags #=> Array
|
1226
|
+
# resp.tags[0].key #=> String
|
1227
|
+
# resp.tags[0].value #=> String
|
1228
|
+
#
|
1229
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListTagsForResource AWS API Documentation
|
1230
|
+
#
|
1231
|
+
# @overload list_tags_for_resource(params = {})
|
1232
|
+
# @param [Hash] params ({})
|
1233
|
+
def list_tags_for_resource(params = {}, options = {})
|
1234
|
+
req = build_request(:list_tags_for_resource, params)
|
1235
|
+
req.send_request(options)
|
1236
|
+
end
|
1237
|
+
|
1159
1238
|
# Creates a dashboard if it does not already exist, or updates an
|
1160
1239
|
# existing dashboard. If you update a dashboard, the entire contents are
|
1161
1240
|
# replaced with what you specify here.
|
@@ -1243,8 +1322,7 @@ module Aws::CloudWatch
|
|
1243
1322
|
#
|
1244
1323
|
# * `ec2:TerminateInstances` for alarms with terminate actions
|
1245
1324
|
#
|
1246
|
-
# *
|
1247
|
-
# for alarms with recover actions
|
1325
|
+
# * No specific permissions are needed for alarms with recover actions
|
1248
1326
|
#
|
1249
1327
|
# If you have read/write permissions for Amazon CloudWatch but not for
|
1250
1328
|
# Amazon EC2, you can still create an alarm, but the stop or terminate
|
@@ -1309,6 +1387,7 @@ module Aws::CloudWatch
|
|
1309
1387
|
# Valid Values: `arn:aws:automate:region:ec2:stop` \|
|
1310
1388
|
# `arn:aws:automate:region:ec2:terminate` \|
|
1311
1389
|
# `arn:aws:automate:region:ec2:recover` \|
|
1390
|
+
# `arn:aws:automate:region:ec2:reboot` \|
|
1312
1391
|
# `arn:aws:sns:region:account-id:sns-topic-name ` \|
|
1313
1392
|
# `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-idautoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
1314
1393
|
# `
|
@@ -1328,6 +1407,7 @@ module Aws::CloudWatch
|
|
1328
1407
|
# Valid Values: `arn:aws:automate:region:ec2:stop` \|
|
1329
1408
|
# `arn:aws:automate:region:ec2:terminate` \|
|
1330
1409
|
# `arn:aws:automate:region:ec2:recover` \|
|
1410
|
+
# `arn:aws:automate:region:ec2:reboot` \|
|
1331
1411
|
# `arn:aws:sns:region:account-id:sns-topic-name ` \|
|
1332
1412
|
# `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-idautoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
1333
1413
|
# `
|
@@ -1463,12 +1543,25 @@ module Aws::CloudWatch
|
|
1463
1543
|
# the `Metrics` array either retrieves a metric or performs a math
|
1464
1544
|
# expression.
|
1465
1545
|
#
|
1546
|
+
# One item in the `Metrics` array is the expression that the alarm
|
1547
|
+
# watches. You designate this expression by setting `ReturnValue` to
|
1548
|
+
# true for this object in the array. For more information, see
|
1549
|
+
# MetricDataQuery.
|
1550
|
+
#
|
1466
1551
|
# If you use the `Metrics` parameter, you cannot include the
|
1467
1552
|
# `MetricName`, `Dimensions`, `Period`, `Namespace`, `Statistic`, or
|
1468
1553
|
# `ExtendedStatistic` parameters of `PutMetricAlarm` in the same
|
1469
1554
|
# operation. Instead, you retrieve the metrics you are using in your
|
1470
1555
|
# math expression as part of the `Metrics` array.
|
1471
1556
|
#
|
1557
|
+
# @option params [Array<Types::Tag>] :tags
|
1558
|
+
# A list of key-value pairs to associate with the alarm or dashboard.
|
1559
|
+
# You can associate as many as 50 tags with an alarm.
|
1560
|
+
#
|
1561
|
+
# Tags can help you organize and categorize your resources. You can also
|
1562
|
+
# use them to scope user permissions, by granting a user permission to
|
1563
|
+
# access or change only resources with certain tag values.
|
1564
|
+
#
|
1472
1565
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1473
1566
|
#
|
1474
1567
|
# @example Request syntax with placeholder values
|
@@ -1521,6 +1614,12 @@ module Aws::CloudWatch
|
|
1521
1614
|
# return_data: false,
|
1522
1615
|
# },
|
1523
1616
|
# ],
|
1617
|
+
# tags: [
|
1618
|
+
# {
|
1619
|
+
# key: "TagKey", # required
|
1620
|
+
# value: "TagValue", # required
|
1621
|
+
# },
|
1622
|
+
# ],
|
1524
1623
|
# })
|
1525
1624
|
#
|
1526
1625
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricAlarm AWS API Documentation
|
@@ -1557,9 +1656,9 @@ module Aws::CloudWatch
|
|
1557
1656
|
# example, NaN, +Infinity, -Infinity) are not supported.
|
1558
1657
|
#
|
1559
1658
|
# You can use up to 10 dimensions per metric to further clarify what
|
1560
|
-
# data the metric collects.
|
1561
|
-
#
|
1562
|
-
# Guide*.
|
1659
|
+
# data the metric collects. Each dimension consists of a Name and Value
|
1660
|
+
# pair. For more information about specifying dimensions, see
|
1661
|
+
# [Publishing Metrics][1] in the *Amazon CloudWatch User Guide*.
|
1563
1662
|
#
|
1564
1663
|
# Data points with time stamps from 24 hours ago or longer can take at
|
1565
1664
|
# least 48 hours to become available for GetMetricData or
|
@@ -1676,6 +1775,91 @@ module Aws::CloudWatch
|
|
1676
1775
|
req.send_request(options)
|
1677
1776
|
end
|
1678
1777
|
|
1778
|
+
# Assigns one or more tags (key-value pairs) to the specified CloudWatch
|
1779
|
+
# resource. Tags can help you organize and categorize your resources.
|
1780
|
+
# You can also use them to scope user permissions, by granting a user
|
1781
|
+
# permission to access or change only resources with certain tag values.
|
1782
|
+
# In CloudWatch, alarms can be tagged.
|
1783
|
+
#
|
1784
|
+
# Tags don't have any semantic meaning to AWS and are interpreted
|
1785
|
+
# strictly as strings of characters.
|
1786
|
+
#
|
1787
|
+
# You can use the `TagResource` action with a resource that already has
|
1788
|
+
# tags. If you specify a new tag key for the resource, this tag is
|
1789
|
+
# appended to the list of tags associated with the resource. If you
|
1790
|
+
# specify a tag key that is already associated with the resource, the
|
1791
|
+
# new tag value that you specify replaces the previous value for that
|
1792
|
+
# tag.
|
1793
|
+
#
|
1794
|
+
# You can associate as many as 50 tags with a resource.
|
1795
|
+
#
|
1796
|
+
# @option params [required, String] :resource_arn
|
1797
|
+
# The ARN of the CloudWatch resource that you're adding tags to. For
|
1798
|
+
# more information on ARN format, see [Example ARNs][1] in the *Amazon
|
1799
|
+
# Web Services General Reference*.
|
1800
|
+
#
|
1801
|
+
#
|
1802
|
+
#
|
1803
|
+
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-cloudwatch
|
1804
|
+
#
|
1805
|
+
# @option params [required, Array<Types::Tag>] :tags
|
1806
|
+
# The list of key-value pairs to associate with the resource.
|
1807
|
+
#
|
1808
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1809
|
+
#
|
1810
|
+
# @example Request syntax with placeholder values
|
1811
|
+
#
|
1812
|
+
# resp = client.tag_resource({
|
1813
|
+
# resource_arn: "AmazonResourceName", # required
|
1814
|
+
# tags: [ # required
|
1815
|
+
# {
|
1816
|
+
# key: "TagKey", # required
|
1817
|
+
# value: "TagValue", # required
|
1818
|
+
# },
|
1819
|
+
# ],
|
1820
|
+
# })
|
1821
|
+
#
|
1822
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/TagResource AWS API Documentation
|
1823
|
+
#
|
1824
|
+
# @overload tag_resource(params = {})
|
1825
|
+
# @param [Hash] params ({})
|
1826
|
+
def tag_resource(params = {}, options = {})
|
1827
|
+
req = build_request(:tag_resource, params)
|
1828
|
+
req.send_request(options)
|
1829
|
+
end
|
1830
|
+
|
1831
|
+
# Removes one or more tags from the specified resource.
|
1832
|
+
#
|
1833
|
+
# @option params [required, String] :resource_arn
|
1834
|
+
# The ARN of the CloudWatch resource that you're removing tags from.
|
1835
|
+
# For more information on ARN format, see [Example ARNs][1] in the
|
1836
|
+
# *Amazon Web Services General Reference*.
|
1837
|
+
#
|
1838
|
+
#
|
1839
|
+
#
|
1840
|
+
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-cloudwatch
|
1841
|
+
#
|
1842
|
+
# @option params [required, Array<String>] :tag_keys
|
1843
|
+
# The list of tag keys to remove from the resource.
|
1844
|
+
#
|
1845
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1846
|
+
#
|
1847
|
+
# @example Request syntax with placeholder values
|
1848
|
+
#
|
1849
|
+
# resp = client.untag_resource({
|
1850
|
+
# resource_arn: "AmazonResourceName", # required
|
1851
|
+
# tag_keys: ["TagKey"], # required
|
1852
|
+
# })
|
1853
|
+
#
|
1854
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/UntagResource AWS API Documentation
|
1855
|
+
#
|
1856
|
+
# @overload untag_resource(params = {})
|
1857
|
+
# @param [Hash] params ({})
|
1858
|
+
def untag_resource(params = {}, options = {})
|
1859
|
+
req = build_request(:untag_resource, params)
|
1860
|
+
req.send_request(options)
|
1861
|
+
end
|
1862
|
+
|
1679
1863
|
# @!endgroup
|
1680
1864
|
|
1681
1865
|
# @param params ({})
|
@@ -1689,7 +1873,7 @@ module Aws::CloudWatch
|
|
1689
1873
|
params: params,
|
1690
1874
|
config: config)
|
1691
1875
|
context[:gem_name] = 'aws-sdk-cloudwatch'
|
1692
|
-
context[:gem_version] = '1.
|
1876
|
+
context[:gem_version] = '1.19.0'
|
1693
1877
|
Seahorse::Client::Request.new(handlers, context)
|
1694
1878
|
end
|
1695
1879
|
|
@@ -20,8 +20,10 @@ module Aws::CloudWatch
|
|
20
20
|
AlarmName = Shapes::StringShape.new(name: 'AlarmName')
|
21
21
|
AlarmNamePrefix = Shapes::StringShape.new(name: 'AlarmNamePrefix')
|
22
22
|
AlarmNames = Shapes::ListShape.new(name: 'AlarmNames')
|
23
|
+
AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
|
23
24
|
AwsQueryErrorMessage = Shapes::StringShape.new(name: 'AwsQueryErrorMessage')
|
24
25
|
ComparisonOperator = Shapes::StringShape.new(name: 'ComparisonOperator')
|
26
|
+
ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
|
25
27
|
Counts = Shapes::ListShape.new(name: 'Counts')
|
26
28
|
DashboardArn = Shapes::StringShape.new(name: 'DashboardArn')
|
27
29
|
DashboardBody = Shapes::StringShape.new(name: 'DashboardBody')
|
@@ -88,6 +90,8 @@ module Aws::CloudWatch
|
|
88
90
|
ListDashboardsOutput = Shapes::StructureShape.new(name: 'ListDashboardsOutput')
|
89
91
|
ListMetricsInput = Shapes::StructureShape.new(name: 'ListMetricsInput')
|
90
92
|
ListMetricsOutput = Shapes::StructureShape.new(name: 'ListMetricsOutput')
|
93
|
+
ListTagsForResourceInput = Shapes::StructureShape.new(name: 'ListTagsForResourceInput')
|
94
|
+
ListTagsForResourceOutput = Shapes::StructureShape.new(name: 'ListTagsForResourceOutput')
|
91
95
|
MaxRecords = Shapes::IntegerShape.new(name: 'MaxRecords')
|
92
96
|
Message = Shapes::StringShape.new(name: 'Message')
|
93
97
|
MessageData = Shapes::StructureShape.new(name: 'MessageData')
|
@@ -120,9 +124,12 @@ module Aws::CloudWatch
|
|
120
124
|
PutDashboardOutput = Shapes::StructureShape.new(name: 'PutDashboardOutput')
|
121
125
|
PutMetricAlarmInput = Shapes::StructureShape.new(name: 'PutMetricAlarmInput')
|
122
126
|
PutMetricDataInput = Shapes::StructureShape.new(name: 'PutMetricDataInput')
|
127
|
+
ResourceId = Shapes::StringShape.new(name: 'ResourceId')
|
123
128
|
ResourceList = Shapes::ListShape.new(name: 'ResourceList')
|
124
129
|
ResourceName = Shapes::StringShape.new(name: 'ResourceName')
|
125
130
|
ResourceNotFound = Shapes::StructureShape.new(name: 'ResourceNotFound')
|
131
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
132
|
+
ResourceType = Shapes::StringShape.new(name: 'ResourceType')
|
126
133
|
ReturnData = Shapes::BooleanShape.new(name: 'ReturnData')
|
127
134
|
ScanBy = Shapes::StringShape.new(name: 'ScanBy')
|
128
135
|
SetAlarmStateInput = Shapes::StructureShape.new(name: 'SetAlarmStateInput')
|
@@ -137,10 +144,19 @@ module Aws::CloudWatch
|
|
137
144
|
Statistics = Shapes::ListShape.new(name: 'Statistics')
|
138
145
|
StatusCode = Shapes::StringShape.new(name: 'StatusCode')
|
139
146
|
StorageResolution = Shapes::IntegerShape.new(name: 'StorageResolution')
|
147
|
+
Tag = Shapes::StructureShape.new(name: 'Tag')
|
148
|
+
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
149
|
+
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
150
|
+
TagList = Shapes::ListShape.new(name: 'TagList')
|
151
|
+
TagResourceInput = Shapes::StructureShape.new(name: 'TagResourceInput')
|
152
|
+
TagResourceOutput = Shapes::StructureShape.new(name: 'TagResourceOutput')
|
153
|
+
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
140
154
|
Threshold = Shapes::FloatShape.new(name: 'Threshold')
|
141
155
|
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
142
156
|
Timestamps = Shapes::ListShape.new(name: 'Timestamps')
|
143
157
|
TreatMissingData = Shapes::StringShape.new(name: 'TreatMissingData')
|
158
|
+
UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput')
|
159
|
+
UntagResourceOutput = Shapes::StructureShape.new(name: 'UntagResourceOutput')
|
144
160
|
Values = Shapes::ListShape.new(name: 'Values')
|
145
161
|
|
146
162
|
AlarmHistoryItem.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, location_name: "AlarmName"))
|
@@ -314,6 +330,12 @@ module Aws::CloudWatch
|
|
314
330
|
ListMetricsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
315
331
|
ListMetricsOutput.struct_class = Types::ListMetricsOutput
|
316
332
|
|
333
|
+
ListTagsForResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
|
334
|
+
ListTagsForResourceInput.struct_class = Types::ListTagsForResourceInput
|
335
|
+
|
336
|
+
ListTagsForResourceOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
337
|
+
ListTagsForResourceOutput.struct_class = Types::ListTagsForResourceOutput
|
338
|
+
|
317
339
|
MessageData.add_member(:code, Shapes::ShapeRef.new(shape: MessageDataCode, location_name: "Code"))
|
318
340
|
MessageData.add_member(:value, Shapes::ShapeRef.new(shape: MessageDataValue, location_name: "Value"))
|
319
341
|
MessageData.struct_class = Types::MessageData
|
@@ -422,6 +444,7 @@ module Aws::CloudWatch
|
|
422
444
|
PutMetricAlarmInput.add_member(:treat_missing_data, Shapes::ShapeRef.new(shape: TreatMissingData, location_name: "TreatMissingData"))
|
423
445
|
PutMetricAlarmInput.add_member(:evaluate_low_sample_count_percentile, Shapes::ShapeRef.new(shape: EvaluateLowSampleCountPercentile, location_name: "EvaluateLowSampleCountPercentile"))
|
424
446
|
PutMetricAlarmInput.add_member(:metrics, Shapes::ShapeRef.new(shape: MetricDataQueries, location_name: "Metrics"))
|
447
|
+
PutMetricAlarmInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
425
448
|
PutMetricAlarmInput.struct_class = Types::PutMetricAlarmInput
|
426
449
|
|
427
450
|
PutMetricDataInput.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, required: true, location_name: "Namespace"))
|
@@ -444,8 +467,28 @@ module Aws::CloudWatch
|
|
444
467
|
|
445
468
|
Statistics.member = Shapes::ShapeRef.new(shape: Statistic)
|
446
469
|
|
470
|
+
Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
|
471
|
+
Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value"))
|
472
|
+
Tag.struct_class = Types::Tag
|
473
|
+
|
474
|
+
TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
|
475
|
+
|
476
|
+
TagList.member = Shapes::ShapeRef.new(shape: Tag)
|
477
|
+
|
478
|
+
TagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
|
479
|
+
TagResourceInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "Tags"))
|
480
|
+
TagResourceInput.struct_class = Types::TagResourceInput
|
481
|
+
|
482
|
+
TagResourceOutput.struct_class = Types::TagResourceOutput
|
483
|
+
|
447
484
|
Timestamps.member = Shapes::ShapeRef.new(shape: Timestamp)
|
448
485
|
|
486
|
+
UntagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
|
487
|
+
UntagResourceInput.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
|
488
|
+
UntagResourceInput.struct_class = Types::UntagResourceInput
|
489
|
+
|
490
|
+
UntagResourceOutput.struct_class = Types::UntagResourceOutput
|
491
|
+
|
449
492
|
Values.member = Shapes::ShapeRef.new(shape: DatapointValue)
|
450
493
|
|
451
494
|
|
@@ -616,6 +659,17 @@ module Aws::CloudWatch
|
|
616
659
|
)
|
617
660
|
end)
|
618
661
|
|
662
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
663
|
+
o.name = "ListTagsForResource"
|
664
|
+
o.http_method = "POST"
|
665
|
+
o.http_request_uri = "/"
|
666
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceInput)
|
667
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceOutput)
|
668
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
669
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
670
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
|
671
|
+
end)
|
672
|
+
|
619
673
|
api.add_operation(:put_dashboard, Seahorse::Model::Operation.new.tap do |o|
|
620
674
|
o.name = "PutDashboard"
|
621
675
|
o.http_method = "POST"
|
@@ -656,6 +710,30 @@ module Aws::CloudWatch
|
|
656
710
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFound)
|
657
711
|
o.errors << Shapes::ShapeRef.new(shape: InvalidFormatFault)
|
658
712
|
end)
|
713
|
+
|
714
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
715
|
+
o.name = "TagResource"
|
716
|
+
o.http_method = "POST"
|
717
|
+
o.http_request_uri = "/"
|
718
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceInput)
|
719
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceOutput)
|
720
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
721
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
722
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
723
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
|
724
|
+
end)
|
725
|
+
|
726
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
727
|
+
o.name = "UntagResource"
|
728
|
+
o.http_method = "POST"
|
729
|
+
o.http_request_uri = "/"
|
730
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceInput)
|
731
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceOutput)
|
732
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
733
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
734
|
+
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
735
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
|
736
|
+
end)
|
659
737
|
end
|
660
738
|
|
661
739
|
end
|
@@ -343,6 +343,12 @@ module Aws::CloudWatch
|
|
343
343
|
# return_data: false,
|
344
344
|
# },
|
345
345
|
# ],
|
346
|
+
# tags: [
|
347
|
+
# {
|
348
|
+
# key: "TagKey", # required
|
349
|
+
# value: "TagValue", # required
|
350
|
+
# },
|
351
|
+
# ],
|
346
352
|
# })
|
347
353
|
# @param [Hash] options ({})
|
348
354
|
# @option options [required, String] :alarm_name
|
@@ -380,6 +386,7 @@ module Aws::CloudWatch
|
|
380
386
|
# Valid Values: `arn:aws:automate:region:ec2:stop` \|
|
381
387
|
# `arn:aws:automate:region:ec2:terminate` \|
|
382
388
|
# `arn:aws:automate:region:ec2:recover` \|
|
389
|
+
# `arn:aws:automate:region:ec2:reboot` \|
|
383
390
|
# `arn:aws:sns:region:account-id:sns-topic-name ` \|
|
384
391
|
# `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-idautoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
385
392
|
# `
|
@@ -398,6 +405,7 @@ module Aws::CloudWatch
|
|
398
405
|
# Valid Values: `arn:aws:automate:region:ec2:stop` \|
|
399
406
|
# `arn:aws:automate:region:ec2:terminate` \|
|
400
407
|
# `arn:aws:automate:region:ec2:recover` \|
|
408
|
+
# `arn:aws:automate:region:ec2:reboot` \|
|
401
409
|
# `arn:aws:sns:region:account-id:sns-topic-name ` \|
|
402
410
|
# `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-idautoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
403
411
|
# `
|
@@ -510,11 +518,23 @@ module Aws::CloudWatch
|
|
510
518
|
# the `Metrics` array either retrieves a metric or performs a math
|
511
519
|
# expression.
|
512
520
|
#
|
521
|
+
# One item in the `Metrics` array is the expression that the alarm
|
522
|
+
# watches. You designate this expression by setting `ReturnValue` to
|
523
|
+
# true for this object in the array. For more information, see
|
524
|
+
# MetricDataQuery.
|
525
|
+
#
|
513
526
|
# If you use the `Metrics` parameter, you cannot include the
|
514
527
|
# `MetricName`, `Dimensions`, `Period`, `Namespace`, `Statistic`, or
|
515
528
|
# `ExtendedStatistic` parameters of `PutMetricAlarm` in the same
|
516
529
|
# operation. Instead, you retrieve the metrics you are using in your
|
517
530
|
# math expression as part of the `Metrics` array.
|
531
|
+
# @option options [Array<Types::Tag>] :tags
|
532
|
+
# A list of key-value pairs to associate with the alarm or dashboard.
|
533
|
+
# You can associate as many as 50 tags with an alarm.
|
534
|
+
#
|
535
|
+
# Tags can help you organize and categorize your resources. You can also
|
536
|
+
# use them to scope user permissions, by granting a user permission to
|
537
|
+
# access or change only resources with certain tag values.
|
518
538
|
# @return [Alarm]
|
519
539
|
def put_alarm(options = {})
|
520
540
|
options = options.merge(
|
@@ -564,7 +564,7 @@ module Aws::CloudWatch
|
|
564
564
|
# that align with the value of the metric's `Period` and sync up with
|
565
565
|
# the beginning and end of an hour. For example, if the `Period` of a
|
566
566
|
# metric is 5 minutes, specifying 12:05 or 12:30 as `StartTime` can
|
567
|
-
# get a faster response from CloudWatch
|
567
|
+
# get a faster response from CloudWatch than setting 12:07 or 12:29 as
|
568
568
|
# the `StartTime`.
|
569
569
|
# @return [Time]
|
570
570
|
#
|
@@ -575,7 +575,7 @@ module Aws::CloudWatch
|
|
575
575
|
# that align with the value of the metric's `Period` and sync up with
|
576
576
|
# the beginning and end of an hour. For example, if the `Period` of a
|
577
577
|
# metric is 5 minutes, specifying 12:05 or 12:30 as `EndTime` can get
|
578
|
-
# a faster response from CloudWatch
|
578
|
+
# a faster response from CloudWatch than setting 12:07 or 12:29 as the
|
579
579
|
# `EndTime`.
|
580
580
|
# @return [Time]
|
581
581
|
#
|
@@ -619,11 +619,16 @@ module Aws::CloudWatch
|
|
619
619
|
# @return [String]
|
620
620
|
#
|
621
621
|
# @!attribute [rw] messages
|
622
|
-
# Contains a message about
|
623
|
-
# operation results in such a message.
|
624
|
-
# be returned
|
625
|
-
#
|
626
|
-
#
|
622
|
+
# Contains a message about this `GetMetricData` operation, if the
|
623
|
+
# operation results in such a message. An example of a message that
|
624
|
+
# may be returned is `Maximum number of allowed metrics exceeded`. If
|
625
|
+
# there is a message, as much of the operation as possible is still
|
626
|
+
# executed.
|
627
|
+
#
|
628
|
+
# A message appears here only if it is related to the global
|
629
|
+
# `GetMetricData` operation. Any message about a specific metric
|
630
|
+
# returned by the operation appears in the `MetricDataResult` object
|
631
|
+
# returned for that metric.
|
627
632
|
# @return [Array<Types::MessageData>]
|
628
633
|
#
|
629
634
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricDataOutput AWS API Documentation
|
@@ -826,8 +831,7 @@ module Aws::CloudWatch
|
|
826
831
|
# response with the content-type set to `text/xml`. The image data is
|
827
832
|
# in a `MetricWidgetImage` field. For example:
|
828
833
|
#
|
829
|
-
# ` <GetMetricWidgetImageResponse
|
830
|
-
# xmlns="http://monitoring.amazonaws.com/doc/2010-08-01/">`
|
834
|
+
# ` <GetMetricWidgetImageResponse xmlns=<URLstring>>`
|
831
835
|
#
|
832
836
|
# ` <GetMetricWidgetImageResult>`
|
833
837
|
#
|
@@ -977,6 +981,42 @@ module Aws::CloudWatch
|
|
977
981
|
include Aws::Structure
|
978
982
|
end
|
979
983
|
|
984
|
+
# @note When making an API call, you may pass ListTagsForResourceInput
|
985
|
+
# data as a hash:
|
986
|
+
#
|
987
|
+
# {
|
988
|
+
# resource_arn: "AmazonResourceName", # required
|
989
|
+
# }
|
990
|
+
#
|
991
|
+
# @!attribute [rw] resource_arn
|
992
|
+
# The ARN of the CloudWatch resource that you want to view tags for.
|
993
|
+
# For more information on ARN format, see [Example ARNs][1] in the
|
994
|
+
# *Amazon Web Services General Reference*.
|
995
|
+
#
|
996
|
+
#
|
997
|
+
#
|
998
|
+
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-cloudwatch
|
999
|
+
# @return [String]
|
1000
|
+
#
|
1001
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListTagsForResourceInput AWS API Documentation
|
1002
|
+
#
|
1003
|
+
class ListTagsForResourceInput < Struct.new(
|
1004
|
+
:resource_arn)
|
1005
|
+
include Aws::Structure
|
1006
|
+
end
|
1007
|
+
|
1008
|
+
# @!attribute [rw] tags
|
1009
|
+
# The list of tag keys and values associated with the resource you
|
1010
|
+
# specified.
|
1011
|
+
# @return [Array<Types::Tag>]
|
1012
|
+
#
|
1013
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListTagsForResourceOutput AWS API Documentation
|
1014
|
+
#
|
1015
|
+
class ListTagsForResourceOutput < Struct.new(
|
1016
|
+
:tags)
|
1017
|
+
include Aws::Structure
|
1018
|
+
end
|
1019
|
+
|
980
1020
|
# A message returned by the `GetMetricData`API, including a code and a
|
981
1021
|
# description.
|
982
1022
|
#
|
@@ -1206,9 +1246,13 @@ module Aws::CloudWatch
|
|
1206
1246
|
# structures can include as many as 10 structures that contain a
|
1207
1247
|
# `MetricStat` parameter to retrieve a metric, and as many as 10
|
1208
1248
|
# structures that contain the `Expression` parameter to perform a math
|
1209
|
-
# expression.
|
1210
|
-
#
|
1211
|
-
#
|
1249
|
+
# expression. Of those `Expression` structures, one must have `True` as
|
1250
|
+
# the value for `ReturnData`. The result of this expression is the value
|
1251
|
+
# the alarm watches.
|
1252
|
+
#
|
1253
|
+
# Any expression used in a `PutMetricAlarm` operation must return a
|
1254
|
+
# single time series. For more information, see [Metric Math Syntax and
|
1255
|
+
# Functions][1] in the *Amazon CloudWatch User Guide*.
|
1212
1256
|
#
|
1213
1257
|
# Some of the parameters of this structure also have different uses
|
1214
1258
|
# whether you are using this structure in a `GetMetricData` operation or
|
@@ -1632,6 +1676,12 @@ module Aws::CloudWatch
|
|
1632
1676
|
# return_data: false,
|
1633
1677
|
# },
|
1634
1678
|
# ],
|
1679
|
+
# tags: [
|
1680
|
+
# {
|
1681
|
+
# key: "TagKey", # required
|
1682
|
+
# value: "TagValue", # required
|
1683
|
+
# },
|
1684
|
+
# ],
|
1635
1685
|
# }
|
1636
1686
|
#
|
1637
1687
|
# @!attribute [rw] alarm_name
|
@@ -1677,6 +1727,7 @@ module Aws::CloudWatch
|
|
1677
1727
|
# Valid Values: `arn:aws:automate:region:ec2:stop` \|
|
1678
1728
|
# `arn:aws:automate:region:ec2:terminate` \|
|
1679
1729
|
# `arn:aws:automate:region:ec2:recover` \|
|
1730
|
+
# `arn:aws:automate:region:ec2:reboot` \|
|
1680
1731
|
# `arn:aws:sns:region:account-id:sns-topic-name ` \|
|
1681
1732
|
# `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-idautoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
1682
1733
|
# `
|
@@ -1697,6 +1748,7 @@ module Aws::CloudWatch
|
|
1697
1748
|
# Valid Values: `arn:aws:automate:region:ec2:stop` \|
|
1698
1749
|
# `arn:aws:automate:region:ec2:terminate` \|
|
1699
1750
|
# `arn:aws:automate:region:ec2:recover` \|
|
1751
|
+
# `arn:aws:automate:region:ec2:reboot` \|
|
1700
1752
|
# `arn:aws:sns:region:account-id:sns-topic-name ` \|
|
1701
1753
|
# `arn:aws:autoscaling:region:account-id:scalingPolicy:policy-idautoScalingGroupName/group-friendly-name:policyName/policy-friendly-name
|
1702
1754
|
# `
|
@@ -1847,6 +1899,11 @@ module Aws::CloudWatch
|
|
1847
1899
|
# in the `Metrics` array either retrieves a metric or performs a math
|
1848
1900
|
# expression.
|
1849
1901
|
#
|
1902
|
+
# One item in the `Metrics` array is the expression that the alarm
|
1903
|
+
# watches. You designate this expression by setting `ReturnValue` to
|
1904
|
+
# true for this object in the array. For more information, see
|
1905
|
+
# MetricDataQuery.
|
1906
|
+
#
|
1850
1907
|
# If you use the `Metrics` parameter, you cannot include the
|
1851
1908
|
# `MetricName`, `Dimensions`, `Period`, `Namespace`, `Statistic`, or
|
1852
1909
|
# `ExtendedStatistic` parameters of `PutMetricAlarm` in the same
|
@@ -1854,6 +1911,16 @@ module Aws::CloudWatch
|
|
1854
1911
|
# math expression as part of the `Metrics` array.
|
1855
1912
|
# @return [Array<Types::MetricDataQuery>]
|
1856
1913
|
#
|
1914
|
+
# @!attribute [rw] tags
|
1915
|
+
# A list of key-value pairs to associate with the alarm or dashboard.
|
1916
|
+
# You can associate as many as 50 tags with an alarm.
|
1917
|
+
#
|
1918
|
+
# Tags can help you organize and categorize your resources. You can
|
1919
|
+
# also use them to scope user permissions, by granting a user
|
1920
|
+
# permission to access or change only resources with certain tag
|
1921
|
+
# values.
|
1922
|
+
# @return [Array<Types::Tag>]
|
1923
|
+
#
|
1857
1924
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutMetricAlarmInput AWS API Documentation
|
1858
1925
|
#
|
1859
1926
|
class PutMetricAlarmInput < Struct.new(
|
@@ -1876,7 +1943,8 @@ module Aws::CloudWatch
|
|
1876
1943
|
:comparison_operator,
|
1877
1944
|
:treat_missing_data,
|
1878
1945
|
:evaluate_low_sample_count_percentile,
|
1879
|
-
:metrics
|
1946
|
+
:metrics,
|
1947
|
+
:tags)
|
1880
1948
|
include Aws::Structure
|
1881
1949
|
end
|
1882
1950
|
|
@@ -2008,5 +2076,105 @@ module Aws::CloudWatch
|
|
2008
2076
|
include Aws::Structure
|
2009
2077
|
end
|
2010
2078
|
|
2079
|
+
# A key-value pair associated with a CloudWatch resource.
|
2080
|
+
#
|
2081
|
+
# @note When making an API call, you may pass Tag
|
2082
|
+
# data as a hash:
|
2083
|
+
#
|
2084
|
+
# {
|
2085
|
+
# key: "TagKey", # required
|
2086
|
+
# value: "TagValue", # required
|
2087
|
+
# }
|
2088
|
+
#
|
2089
|
+
# @!attribute [rw] key
|
2090
|
+
# A string that you can use to assign a value. The combination of tag
|
2091
|
+
# keys and values can help you organize and categorize your resources.
|
2092
|
+
# @return [String]
|
2093
|
+
#
|
2094
|
+
# @!attribute [rw] value
|
2095
|
+
# The value for the specified tag key.
|
2096
|
+
# @return [String]
|
2097
|
+
#
|
2098
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/Tag AWS API Documentation
|
2099
|
+
#
|
2100
|
+
class Tag < Struct.new(
|
2101
|
+
:key,
|
2102
|
+
:value)
|
2103
|
+
include Aws::Structure
|
2104
|
+
end
|
2105
|
+
|
2106
|
+
# @note When making an API call, you may pass TagResourceInput
|
2107
|
+
# data as a hash:
|
2108
|
+
#
|
2109
|
+
# {
|
2110
|
+
# resource_arn: "AmazonResourceName", # required
|
2111
|
+
# tags: [ # required
|
2112
|
+
# {
|
2113
|
+
# key: "TagKey", # required
|
2114
|
+
# value: "TagValue", # required
|
2115
|
+
# },
|
2116
|
+
# ],
|
2117
|
+
# }
|
2118
|
+
#
|
2119
|
+
# @!attribute [rw] resource_arn
|
2120
|
+
# The ARN of the CloudWatch resource that you're adding tags to. For
|
2121
|
+
# more information on ARN format, see [Example ARNs][1] in the *Amazon
|
2122
|
+
# Web Services General Reference*.
|
2123
|
+
#
|
2124
|
+
#
|
2125
|
+
#
|
2126
|
+
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-cloudwatch
|
2127
|
+
# @return [String]
|
2128
|
+
#
|
2129
|
+
# @!attribute [rw] tags
|
2130
|
+
# The list of key-value pairs to associate with the resource.
|
2131
|
+
# @return [Array<Types::Tag>]
|
2132
|
+
#
|
2133
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/TagResourceInput AWS API Documentation
|
2134
|
+
#
|
2135
|
+
class TagResourceInput < Struct.new(
|
2136
|
+
:resource_arn,
|
2137
|
+
:tags)
|
2138
|
+
include Aws::Structure
|
2139
|
+
end
|
2140
|
+
|
2141
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/TagResourceOutput AWS API Documentation
|
2142
|
+
#
|
2143
|
+
class TagResourceOutput < Aws::EmptyStructure; end
|
2144
|
+
|
2145
|
+
# @note When making an API call, you may pass UntagResourceInput
|
2146
|
+
# data as a hash:
|
2147
|
+
#
|
2148
|
+
# {
|
2149
|
+
# resource_arn: "AmazonResourceName", # required
|
2150
|
+
# tag_keys: ["TagKey"], # required
|
2151
|
+
# }
|
2152
|
+
#
|
2153
|
+
# @!attribute [rw] resource_arn
|
2154
|
+
# The ARN of the CloudWatch resource that you're removing tags from.
|
2155
|
+
# For more information on ARN format, see [Example ARNs][1] in the
|
2156
|
+
# *Amazon Web Services General Reference*.
|
2157
|
+
#
|
2158
|
+
#
|
2159
|
+
#
|
2160
|
+
# [1]: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-cloudwatch
|
2161
|
+
# @return [String]
|
2162
|
+
#
|
2163
|
+
# @!attribute [rw] tag_keys
|
2164
|
+
# The list of tag keys to remove from the resource.
|
2165
|
+
# @return [Array<String>]
|
2166
|
+
#
|
2167
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/UntagResourceInput AWS API Documentation
|
2168
|
+
#
|
2169
|
+
class UntagResourceInput < Struct.new(
|
2170
|
+
:resource_arn,
|
2171
|
+
:tag_keys)
|
2172
|
+
include Aws::Structure
|
2173
|
+
end
|
2174
|
+
|
2175
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/UntagResourceOutput AWS API Documentation
|
2176
|
+
#
|
2177
|
+
class UntagResourceOutput < Aws::EmptyStructure; end
|
2178
|
+
|
2011
2179
|
end
|
2012
2180
|
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.
|
4
|
+
version: 1.19.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: 2019-03-
|
11
|
+
date: 2019-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|