You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(client-cloudwatch-logs): SDK release to support tagging for destinations and log groups with TagResource. Also supports tag on create with PutDestination.
* <p>You can use Amazon CloudWatch Logs to monitor, store, and access your log files from
@@ -320,12 +331,6 @@ export class CloudWatchLogs extends CloudWatchLogsClient {
320
331
* log group to an Amazon S3 bucket. When you perform a <code>CreateExportTask</code>
321
332
* operation, you must use credentials that have permission to write to the S3 bucket
322
333
* that you specify as the destination.</p>
323
-
* <important>
324
-
* <p>Exporting log data to Amazon S3 buckets that are encrypted by KMS is not
325
-
* supported. Exporting
326
-
* log data to Amazon S3 buckets that have S3 Object Lock enabled with a retention period is not supported.</p>
327
-
* <p>Exporting to S3 buckets that are encrypted with AES-256 is supported. </p>
328
-
* </important>
329
334
* <p>This is an asynchronous call. If all the required information is provided, this
330
335
* operation initiates an export task and responds with the ID of the task. After the task has started,
331
336
* you can use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeExportTasks.html">DescribeExportTasks</a> to get the status of the export task. Each account can
@@ -334,11 +339,8 @@ export class CloudWatchLogs extends CloudWatchLogsClient {
334
339
* <p>You can export logs from multiple log groups or multiple time ranges to the same S3
335
340
* bucket. To separate out log data for each export task, you can specify a prefix to be used as
336
341
* the Amazon S3 key prefix for all exported objects.</p>
337
-
*
338
-
* <note>
339
-
* <p>Time-based sorting on chunks of log data inside an exported file is not guaranteed. You can sort the
340
-
* exported log fild data by using Linux utilities.</p>
341
-
* </note>
342
+
* <p>Exporting to S3 buckets that are encrypted with AES-256 is supported. Exporting to S3 buckets
343
+
* encrypted with SSE-KMS is not supported. </p>
342
344
*/
343
345
publiccreateExportTask(
344
346
args: CreateExportTaskCommandInput,
@@ -1271,7 +1273,46 @@ export class CloudWatchLogs extends CloudWatchLogsClient {
1271
1273
}
1272
1274
1273
1275
/**
1274
-
* <p>Lists the tags for the specified log group.</p>
1276
+
* <p>Displays the tags associated with a CloudWatch Logs resource. Currently, log groups
* <p>Lists the tags for the specified log group.</p>
1275
1316
*/
1276
1317
publiclistTagsLogGroup(
1277
1318
args: ListTagsLogGroupCommandInput,
@@ -1730,9 +1771,15 @@ export class CloudWatchLogs extends CloudWatchLogsClient {
1730
1771
}
1731
1772
1732
1773
/**
1733
-
* <p>Adds or updates the specified tags for the specified log group.</p>
1734
-
* <p>To list the tags for a log group, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsLogGroup.html">ListTagsLogGroup</a>.
1735
-
* To remove tags, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagLogGroup.html">UntagLogGroup</a>.</p>
1774
+
* @deprecated
1775
+
*
1776
+
* <important>
1777
+
* <p>The TagLogGroup operation is on the path to deprecation. We recommend that you use
* <p>Adds or updates the specified tags for the specified log group.</p>
1781
+
* <p>To list the tags for a log group, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html">ListTagsForResource</a>.
1782
+
* To remove tags, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagResource.html">UntagResource</a>.</p>
1736
1783
* <p>For more information about tags, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html#log-group-tagging">Tag Log Groups in Amazon CloudWatch Logs</a>
1737
1784
* in the <i>Amazon CloudWatch Logs User Guide</i>.</p>
1738
1785
* <p>CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to
@@ -1764,6 +1811,43 @@ export class CloudWatchLogs extends CloudWatchLogsClient {
1764
1811
}
1765
1812
}
1766
1813
1814
+
/**
1815
+
* <p>Assigns one or more tags (key-value pairs) to the specified CloudWatch Logs resource.
1816
+
* Currently, the only CloudWatch Logs resources that
1817
+
* can be tagged are log groups and destinations. </p>
1818
+
* <p>Tags can help you organize and categorize your resources. You can also use them to scope user
1819
+
* permissions by granting a user
1820
+
* permission to access or change only resources with certain tag values.</p>
1821
+
* <p>Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.</p>
1822
+
* <p>You can use the <code>TagResource</code> action with a resource that already has tags. If you specify a new tag key for the alarm,
1823
+
* this tag is appended to the list of tags associated
1824
+
* with the alarm. If you specify a tag key that is already associated with the alarm, the new tag value that you specify replaces
1825
+
* the previous value for that tag.</p>
1826
+
* <p>You can associate as many as 50 tags with a CloudWatch Logs resource.</p>
if(typeofoptionsOrCb!=="object")thrownewError(`Expect http options but get ${typeofoptionsOrCb}`);
1845
+
this.send(command,optionsOrCb||{},cb);
1846
+
}else{
1847
+
returnthis.send(command,optionsOrCb);
1848
+
}
1849
+
}
1850
+
1767
1851
/**
1768
1852
* <p>Tests the filter pattern of a metric filter against a sample of log event messages. You
1769
1853
* can use this operation to validate the correctness of a metric filter pattern.</p>
@@ -1798,9 +1882,15 @@ export class CloudWatchLogs extends CloudWatchLogsClient {
1798
1882
}
1799
1883
1800
1884
/**
1801
-
* <p>Removes the specified tags from the specified log group.</p>
1802
-
* <p>To list the tags for a log group, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsLogGroup.html">ListTagsLogGroup</a>.
1803
-
* To add tags, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagLogGroup.html">TagLogGroup</a>.</p>
1885
+
* @deprecated
1886
+
*
1887
+
* <important>
1888
+
* <p>The UntagLogGroup operation is on the path to deprecation. We recommend that you use
* <p>Removes the specified tags from the specified log group.</p>
1892
+
* <p>To list the tags for a log group, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html">ListTagsForResource</a>.
1893
+
* To add tags, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagResource.html">TagResource</a>.</p>
1804
1894
* <p>CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to
1805
1895
* log groups using the <code>aws:Resource/<i>key-name</i>
1806
1896
* </code> or <code>aws:TagKeys</code> condition keys.
@@ -1834,4 +1924,36 @@ export class CloudWatchLogs extends CloudWatchLogsClient {
1834
1924
returnthis.send(command,optionsOrCb);
1835
1925
}
1836
1926
}
1927
+
1928
+
/**
1929
+
* <p>Removes one or more tags from the specified resource.</p>
* log group to an Amazon S3 bucket. When you perform a <code>CreateExportTask</code>
34
34
* operation, you must use credentials that have permission to write to the S3 bucket
35
35
* that you specify as the destination.</p>
36
-
* <important>
37
-
* <p>Exporting log data to Amazon S3 buckets that are encrypted by KMS is not
38
-
* supported. Exporting
39
-
* log data to Amazon S3 buckets that have S3 Object Lock enabled with a retention period is not supported.</p>
40
-
* <p>Exporting to S3 buckets that are encrypted with AES-256 is supported. </p>
41
-
* </important>
42
36
* <p>This is an asynchronous call. If all the required information is provided, this
43
37
* operation initiates an export task and responds with the ID of the task. After the task has started,
44
38
* you can use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeExportTasks.html">DescribeExportTasks</a> to get the status of the export task. Each account can
0 commit comments