@@ -99,12 +99,6 @@ defmodule AWS.CloudWatchLogs do
9999 When you perform a `CreateExportTask` operation, you must use credentials that
100100 have permission to write to the S3 bucket that you specify as the destination.
101101
102- Exporting log data to Amazon S3 buckets that are encrypted by KMS is not
103- supported. Exporting log data to Amazon S3 buckets that have S3 Object Lock
104- enabled with a retention period is not supported.
105-
106- Exporting to S3 buckets that are encrypted with AES-256 is supported.
107-
108102 This is an asynchronous call. If all the required information is provided, this
109103 operation initiates an export task and responds with the ID of the task. After
110104 the task has started, you can use
@@ -116,8 +110,8 @@ defmodule AWS.CloudWatchLogs do
116110 S3 bucket. To separate out log data for each export task, you can specify a
117111 prefix to be used as the Amazon S3 key prefix for all exported objects.
118112
119- Time-based sorting on chunks of log data inside an exported file is not
120- guaranteed. You can sort the exported log fild data by using Linux utilities .
113+ Exporting to S3 buckets that are encrypted with AES-256 is supported. Exporting
114+ to S3 buckets encrypted with SSE-KMS is not supported .
121115 """
122116 def create_export_task ( % Client { } = client , input , options \\ [ ] ) do
123117 meta = metadata ( )
@@ -506,6 +500,23 @@ defmodule AWS.CloudWatchLogs do
506500 end
507501
508502 @ doc """
503+ Displays the tags associated with a CloudWatch Logs resource.
504+
505+ Currently, log groups and destinations support tagging.
506+ """
507+ def list_tags_for_resource ( % Client { } = client , input , options \\ [ ] ) do
508+ meta = metadata ( )
509+
510+ Request . request_post ( client , meta , "ListTagsForResource" , input , options )
511+ end
512+
513+ @ doc """
514+ The ListTagsLogGroup operation is on the path to deprecation.
515+
516+ We recommend that you use
517+ [ListTagsForResource](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html)
518+ instead.
519+
509520 Lists the tags for the specified log group.
510521 """
511522 def list_tags_log_group ( % Client { } = client , input , options \\ [ ] ) do
@@ -750,13 +761,18 @@ defmodule AWS.CloudWatchLogs do
750761 end
751762
752763 @ doc """
764+ The TagLogGroup operation is on the path to deprecation.
765+
766+ We recommend that you use
767+ [TagResource](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagResource.html) instead.
768+
753769 Adds or updates the specified tags for the specified log group.
754770
755771 To list the tags for a log group, use
756- [ListTagsLogGroup ](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsLogGroup .html). To remove tags, use
757- [UntagLogGroup](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagLogGroup.html).
758-
759- For more information about tags, see [Tag Log Groups in Amazon CloudWatch Logs](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html#log-group-tagging)
772+ [ListTagsForResource ](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource .html).
773+ To remove tags, use
774+ [UntagResource](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagResource.html). For more information about tags, see [Tag Log Groups in Amazon CloudWatch
775+ Logs](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html#log-group-tagging)
760776 in the *Amazon CloudWatch Logs User Guide*.
761777
762778 CloudWatch Logs doesn’t support IAM policies that prevent users from assigning
@@ -770,6 +786,34 @@ defmodule AWS.CloudWatchLogs do
770786 Request . request_post ( client , meta , "TagLogGroup" , input , options )
771787 end
772788
789+ @ doc """
790+ Assigns one or more tags (key-value pairs) to the specified CloudWatch Logs
791+ resource.
792+
793+ Currently, the only CloudWatch Logs resources that can be tagged are log groups
794+ and destinations.
795+
796+ Tags can help you organize and categorize your resources. You can also use them
797+ to scope user permissions by granting a user permission to access or change only
798+ resources with certain tag values.
799+
800+ Tags don't have any semantic meaning to Amazon Web Services and are interpreted
801+ strictly as strings of characters.
802+
803+ You can use the `TagResource` action with a resource that already has tags. If
804+ you specify a new tag key for the alarm, this tag is appended to the list of
805+ tags associated with the alarm. If you specify a tag key that is already
806+ associated with the alarm, the new tag value that you specify replaces the
807+ previous value for that tag.
808+
809+ You can associate as many as 50 tags with a CloudWatch Logs resource.
810+ """
811+ def tag_resource ( % Client { } = client , input , options \\ [ ] ) do
812+ meta = metadata ( )
813+
814+ Request . request_post ( client , meta , "TagResource" , input , options )
815+ end
816+
773817 @ doc """
774818 Tests the filter pattern of a metric filter against a sample of log event
775819 messages.
@@ -784,11 +828,17 @@ defmodule AWS.CloudWatchLogs do
784828 end
785829
786830 @ doc """
831+ The UntagLogGroup operation is on the path to deprecation.
832+
833+ We recommend that you use
834+ [UntagResource](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagResource.html) instead.
835+
787836 Removes the specified tags from the specified log group.
788837
789838 To list the tags for a log group, use
790- [ListTagsLogGroup](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsLogGroup.html). To add tags, use
791- [TagLogGroup](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagLogGroup.html).
839+ [ListTagsForResource](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html).
840+ To add tags, use
841+ [TagResource](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagResource.html).
792842
793843 CloudWatch Logs doesn’t support IAM policies that prevent users from assigning
794844 specified tags to log groups using the `aws:Resource/*key-name* ` or
@@ -799,4 +849,13 @@ defmodule AWS.CloudWatchLogs do
799849
800850 Request . request_post ( client , meta , "UntagLogGroup" , input , options )
801851 end
852+
853+ @ doc """
854+ Removes one or more tags from the specified resource.
855+ """
856+ def untag_resource ( % Client { } = client , input , options \\ [ ] ) do
857+ meta = metadata ( )
858+
859+ Request . request_post ( client , meta , "UntagResource" , input , options )
860+ end
802861end
0 commit comments