Skip to content

Commit daf9e14

Browse files
author
AWS
committed
Amazon CloudWatch Update: Amazon CloudWatch Contributor Insights adds support for tags and tagging on resource creation.
1 parent d5ae43a commit daf9e14

File tree

2 files changed

+26
-9
lines changed

2 files changed

+26
-9
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon CloudWatch",
4+
"description": "Amazon CloudWatch Contributor Insights adds support for tags and tagging on resource creation."
5+
}

services/cloudwatch/src/main/resources/codegen-resources/service-2.json

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@
344344
{"shape":"ResourceNotFoundException"},
345345
{"shape":"InternalServiceFault"}
346346
],
347-
"documentation":"<p>Displays the tags associated with a CloudWatch resource. Alarms support tagging.</p>"
347+
"documentation":"<p>Displays the tags associated with a CloudWatch resource. Currently, alarms and Contributor Insights rules support tagging.</p>"
348348
},
349349
"PutAnomalyDetector":{
350350
"name":"PutAnomalyDetector",
@@ -469,7 +469,7 @@
469469
{"shape":"ConcurrentModificationException"},
470470
{"shape":"InternalServiceFault"}
471471
],
472-
"documentation":"<p>Assigns one or more tags (key-value pairs) to the specified CloudWatch resource. Currently, the only CloudWatch resources that can be tagged are alarms.</p> <p>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.</p> <p>Tags don't have any semantic meaning to AWS and are interpreted strictly as strings of characters.</p> <p>You can use the <code>TagResource</code> action with an alarm that already has tags. If you specify a new tag key for the alarm, this tag is appended to the list of tags associated with the alarm. If you specify a tag key that is already associated with the alarm, the new tag value that you specify replaces the previous value for that tag.</p> <p>You can associate as many as 50 tags with a resource.</p>"
472+
"documentation":"<p>Assigns one or more tags (key-value pairs) to the specified CloudWatch resource. Currently, the only CloudWatch resources that can be tagged are alarms and Contributor Insights rules.</p> <p>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.</p> <p>Tags don't have any semantic meaning to AWS and are interpreted strictly as strings of characters.</p> <p>You can use the <code>TagResource</code> action with an alarm that already has tags. If you specify a new tag key for the alarm, this tag is appended to the list of tags associated with the alarm. If you specify a tag key that is already associated with the alarm, the new tag value that you specify replaces the previous value for that tag.</p> <p>You can associate as many as 50 tags with a CloudWatch resource.</p>"
473473
},
474474
"UntagResource":{
475475
"name":"UntagResource",
@@ -594,7 +594,7 @@
594594
"documentation":"<p>The metric dimensions associated with the anomaly detection model.</p>"
595595
},
596596
"Stat":{
597-
"shape":"Stat",
597+
"shape":"AnomalyDetectorMetricStat",
598598
"documentation":"<p>The statistic associated with the anomaly detection model.</p>"
599599
},
600600
"Configuration":{
@@ -626,7 +626,15 @@
626626
"type":"list",
627627
"member":{"shape":"Range"}
628628
},
629-
"AnomalyDetectorMetricTimezone":{"type":"string"},
629+
"AnomalyDetectorMetricStat":{
630+
"type":"string",
631+
"pattern":"(SampleCount|Average|Sum|Minimum|Maximum|p(\\d{1,2}|100)(\\.\\d{0,2})?|[ou]\\d+(\\.\\d*)?)(_E|_L|_H)?"
632+
},
633+
"AnomalyDetectorMetricTimezone":{
634+
"type":"string",
635+
"max":50,
636+
"pattern":".*"
637+
},
630638
"AnomalyDetectorStateValue":{
631639
"type":"string",
632640
"enum":[
@@ -927,7 +935,7 @@
927935
"documentation":"<p>The metric dimensions associated with the anomaly detection model to delete.</p>"
928936
},
929937
"Stat":{
930-
"shape":"Stat",
938+
"shape":"AnomalyDetectorMetricStat",
931939
"documentation":"<p>The statistic associated with the anomaly detection model to delete.</p>"
932940
}
933941
}
@@ -1945,7 +1953,7 @@
19451953
"members":{
19461954
"ResourceARN":{
19471955
"shape":"AmazonResourceName",
1948-
"documentation":"<p>The ARN of the CloudWatch resource that you want to view tags for. For more information on ARN format, see <a href=\"https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-cloudwatch\">Example ARNs</a> in the <i>Amazon Web Services General Reference</i>.</p>"
1956+
"documentation":"<p>The ARN of the CloudWatch resource that you want to view tags for.</p> <p>The ARN format of an alarm is <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:alarm:<i>alarm-name</i> </code> </p> <p>The ARN format of a Contributor Insights rule is <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:insight-rule:<i>insight-rule-name</i> </code> </p> <p>For more information on ARN format, see <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatch.html#amazoncloudwatch-resources-for-iam-policies\"> Resource Types Defined by Amazon CloudWatch</a> in the <i>Amazon Web Services General Reference</i>.</p>"
19491957
}
19501958
}
19511959
},
@@ -2395,7 +2403,7 @@
23952403
"documentation":"<p>The metric dimensions to create the anomaly detection model for.</p>"
23962404
},
23972405
"Stat":{
2398-
"shape":"Stat",
2406+
"shape":"AnomalyDetectorMetricStat",
23992407
"documentation":"<p>The statistic to use for the metric and the anomaly detection model.</p>"
24002408
},
24012409
"Configuration":{
@@ -2494,6 +2502,10 @@
24942502
"RuleDefinition":{
24952503
"shape":"InsightRuleDefinition",
24962504
"documentation":"<p>The definition of the rule, as a JSON object. For details on the valid syntax, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights-RuleSyntax.html\">Contributor Insights Rule Syntax</a>.</p>"
2505+
},
2506+
"Tags":{
2507+
"shape":"TagList",
2508+
"documentation":"<p>A list of key-value pairs to associate with the Contributor Insights rule. You can associate as many as 50 tags with a rule.</p> <p>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 the resources that have certain tag values.</p> <p>To be able to associate tags with a rule, you must have the <code>cloudwatch:TagResource</code> permission in addition to the <code>cloudwatch:PutInsightRule</code> permission.</p> <p>If you are using this operation to update an existing Contributor Insights rule, any tags you specify in this parameter are ignored. To change the tags of an existing rule, use <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html\">TagResource</a>.</p>"
24972509
}
24982510
}
24992511
},
@@ -2863,7 +2875,7 @@
28632875
"members":{
28642876
"ResourceARN":{
28652877
"shape":"AmazonResourceName",
2866-
"documentation":"<p>The ARN of the CloudWatch alarm that you're adding tags to. The ARN format is <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:alarm:<i>alarm-name</i> </code> </p>"
2878+
"documentation":"<p>The ARN of the CloudWatch resource that you're adding tags to.</p> <p>The ARN format of an alarm is <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:alarm:<i>alarm-name</i> </code> </p> <p>The ARN format of a Contributor Insights rule is <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:insight-rule:<i>insight-rule-name</i> </code> </p> <p>For more information on ARN format, see <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatch.html#amazoncloudwatch-resources-for-iam-policies\"> Resource Types Defined by Amazon CloudWatch</a> in the <i>Amazon Web Services General Reference</i>.</p>"
28672879
},
28682880
"Tags":{
28692881
"shape":"TagList",
@@ -2901,7 +2913,7 @@
29012913
"members":{
29022914
"ResourceARN":{
29032915
"shape":"AmazonResourceName",
2904-
"documentation":"<p>The ARN of the CloudWatch resource that you're removing tags from. For more information on ARN format, see <a href=\"https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-cloudwatch\">Example ARNs</a> in the <i>Amazon Web Services General Reference</i>.</p>"
2916+
"documentation":"<p>The ARN of the CloudWatch resource that you're removing tags from.</p> <p>The ARN format of an alarm is <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:alarm:<i>alarm-name</i> </code> </p> <p>The ARN format of a Contributor Insights rule is <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:insight-rule:<i>insight-rule-name</i> </code> </p> <p>For more information on ARN format, see <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatch.html#amazoncloudwatch-resources-for-iam-policies\"> Resource Types Defined by Amazon CloudWatch</a> in the <i>Amazon Web Services General Reference</i>.</p>"
29052917
},
29062918
"TagKeys":{
29072919
"shape":"TagKeyList",

0 commit comments

Comments
 (0)