Skip to content

Commit 8a87924

Browse files
author
awstools
committed
docs(client-cloudwatch-logs): Doc-only update for bug fixes and support of export to buckets encrypted with SSE-KMS
1 parent 011ec88 commit 8a87924

File tree

8 files changed

+64
-14
lines changed

8 files changed

+64
-14
lines changed

clients/client-cloudwatch-logs/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
"@aws-sdk/types": "*",
4343
"@aws-sdk/url-parser": "*",
4444
"@aws-sdk/util-base64": "*",
45+
"@aws-sdk/util-base64-browser": "*",
46+
"@aws-sdk/util-base64-node": "*",
4547
"@aws-sdk/util-body-length-browser": "*",
4648
"@aws-sdk/util-body-length-node": "*",
4749
"@aws-sdk/util-defaults-mode-browser": "*",

clients/client-cloudwatch-logs/src/CloudWatchLogs.ts

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,10 @@ export class CloudWatchLogs extends CloudWatchLogsClient {
331331
* log group to an Amazon S3 bucket. When you perform a <code>CreateExportTask</code>
332332
* operation, you must use credentials that have permission to write to the S3 bucket
333333
* that you specify as the destination.</p>
334+
* <p>Exporting log data to Amazon S3 buckets that are encrypted by KMS is
335+
* supported. Exporting
336+
* log data to Amazon S3 buckets that have S3 Object Lock enabled with a retention period is also supported.</p>
337+
* <p>Exporting to S3 buckets that are encrypted with AES-256 is supported. </p>
334338
* <p>This is an asynchronous call. If all the required information is provided, this
335339
* operation initiates an export task and responds with the ID of the task. After the task has started,
336340
* 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
@@ -339,8 +343,11 @@ export class CloudWatchLogs extends CloudWatchLogsClient {
339343
* <p>You can export logs from multiple log groups or multiple time ranges to the same S3
340344
* bucket. To separate out log data for each export task, you can specify a prefix to be used as
341345
* the Amazon S3 key prefix for all exported objects.</p>
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>
346+
*
347+
* <note>
348+
* <p>Time-based sorting on chunks of log data inside an exported file is not guaranteed. You can sort the
349+
* exported log fild data by using Linux utilities.</p>
350+
* </note>
344351
*/
345352
public createExportTask(
346353
args: CreateExportTaskCommandInput,
@@ -1088,6 +1095,7 @@ export class CloudWatchLogs extends CloudWatchLogsClient {
10881095
/**
10891096
* <p>Lists log events from the specified log group. You can list all the log events or filter the results
10901097
* using a filter pattern, a time range, and the name of the log stream.</p>
1098+
* <p>You must have the <code>logs;FilterLogEvents</code> permission to perform this operation.</p>
10911099
* <p>By default, this operation returns as many log events as can fit in 1 MB (up to 10,000
10921100
* log events) or all the events found within the time range that you specify. If the results
10931101
* include a token, then there are more log events available, and you can get additional results
@@ -1622,6 +1630,17 @@ export class CloudWatchLogs extends CloudWatchLogsClient {
16221630
* <p>Sets the retention of the specified log group. A retention policy allows you to
16231631
* configure the number of days for which to retain log events in the specified log
16241632
* group.</p>
1633+
* <note>
1634+
* <p>CloudWatch Logs doesn’t immediately delete log events when they reach their retention setting.
1635+
* It typically takes up to 72 hours after that before log events are deleted, but in rare situations might take longer.</p>
1636+
* <p>This means that if you change a log group to have a longer retention setting when it contains log events
1637+
* that are past the expiration date, but haven’t been actually deleted, those log events will take
1638+
* up to 72 hours to be deleted after the new retention date is reached. To make sure
1639+
* that log data is deleted permanently, keep a log group at its lower retention setting until 72 hours has passed
1640+
* after the end of the previous
1641+
* retention period, or you have confirmed that the older log events are deleted.
1642+
* </p>
1643+
* </note>
16251644
*/
16261645
public putRetentionPolicy(
16271646
args: PutRetentionPolicyCommandInput,
@@ -1719,6 +1738,10 @@ export class CloudWatchLogs extends CloudWatchLogsClient {
17191738
*
17201739
* <p>Queries time out after 15 minutes of execution. If your queries are timing out, reduce the
17211740
* time range being searched or partition your query into a number of queries.</p>
1741+
*
1742+
* <p>
1743+
* You are limited to 20 concurrent CloudWatch Logs insights queries, including queries that have been added to dashboards.
1744+
* </p>
17221745
*/
17231746
public startQuery(args: StartQueryCommandInput, options?: __HttpHandlerOptions): Promise<StartQueryCommandOutput>;
17241747
public startQuery(args: StartQueryCommandInput, cb: (err: any, data?: StartQueryCommandOutput) => void): void;

clients/client-cloudwatch-logs/src/commands/CreateExportTaskCommand.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ export interface CreateExportTaskCommandOutput extends CreateExportTaskResponse,
3333
* log group to an Amazon S3 bucket. When you perform a <code>CreateExportTask</code>
3434
* operation, you must use credentials that have permission to write to the S3 bucket
3535
* that you specify as the destination.</p>
36+
* <p>Exporting log data to Amazon S3 buckets that are encrypted by KMS is
37+
* supported. Exporting
38+
* log data to Amazon S3 buckets that have S3 Object Lock enabled with a retention period is also supported.</p>
39+
* <p>Exporting to S3 buckets that are encrypted with AES-256 is supported. </p>
3640
* <p>This is an asynchronous call. If all the required information is provided, this
3741
* operation initiates an export task and responds with the ID of the task. After the task has started,
3842
* 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
@@ -41,8 +45,11 @@ export interface CreateExportTaskCommandOutput extends CreateExportTaskResponse,
4145
* <p>You can export logs from multiple log groups or multiple time ranges to the same S3
4246
* bucket. To separate out log data for each export task, you can specify a prefix to be used as
4347
* the Amazon S3 key prefix for all exported objects.</p>
44-
* <p>Exporting to S3 buckets that are encrypted with AES-256 is supported. Exporting to S3 buckets
45-
* encrypted with SSE-KMS is not supported. </p>
48+
*
49+
* <note>
50+
* <p>Time-based sorting on chunks of log data inside an exported file is not guaranteed. You can sort the
51+
* exported log fild data by using Linux utilities.</p>
52+
* </note>
4653
* @example
4754
* Use a bare-bones client and the command you need to make an API call.
4855
* ```javascript

clients/client-cloudwatch-logs/src/commands/FilterLogEventsCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export interface FilterLogEventsCommandOutput extends FilterLogEventsResponse, _
3131
/**
3232
* <p>Lists log events from the specified log group. You can list all the log events or filter the results
3333
* using a filter pattern, a time range, and the name of the log stream.</p>
34+
* <p>You must have the <code>logs;FilterLogEvents</code> permission to perform this operation.</p>
3435
* <p>By default, this operation returns as many log events as can fit in 1 MB (up to 10,000
3536
* log events) or all the events found within the time range that you specify. If the results
3637
* include a token, then there are more log events available, and you can get additional results

clients/client-cloudwatch-logs/src/commands/PutRetentionPolicyCommand.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,17 @@ export interface PutRetentionPolicyCommandOutput extends __MetadataBearer {}
2727
* <p>Sets the retention of the specified log group. A retention policy allows you to
2828
* configure the number of days for which to retain log events in the specified log
2929
* group.</p>
30+
* <note>
31+
* <p>CloudWatch Logs doesn’t immediately delete log events when they reach their retention setting.
32+
* It typically takes up to 72 hours after that before log events are deleted, but in rare situations might take longer.</p>
33+
* <p>This means that if you change a log group to have a longer retention setting when it contains log events
34+
* that are past the expiration date, but haven’t been actually deleted, those log events will take
35+
* up to 72 hours to be deleted after the new retention date is reached. To make sure
36+
* that log data is deleted permanently, keep a log group at its lower retention setting until 72 hours has passed
37+
* after the end of the previous
38+
* retention period, or you have confirmed that the older log events are deleted.
39+
* </p>
40+
* </note>
3041
* @example
3142
* Use a bare-bones client and the command you need to make an API call.
3243
* ```javascript

clients/client-cloudwatch-logs/src/commands/StartQueryCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ export interface StartQueryCommandOutput extends StartQueryResponse, __MetadataB
3535
*
3636
* <p>Queries time out after 15 minutes of execution. If your queries are timing out, reduce the
3737
* time range being searched or partition your query into a number of queries.</p>
38+
*
39+
* <p>
40+
* You are limited to 20 concurrent CloudWatch Logs insights queries, including queries that have been added to dashboards.
41+
* </p>
3842
* @example
3943
* Use a bare-bones client and the command you need to make an API call.
4044
* ```javascript

clients/client-cloudwatch-logs/src/models/models_0.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ export interface CreateExportTaskRequest {
146146
* <p>The end time of the range for the request, expressed as the number of milliseconds
147147
* after Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time are not
148148
* exported.</p>
149+
* <p>You must specify a time that is not earlier than when this log group was created.</p>
149150
*/
150151
to: number | undefined;
151152

@@ -354,7 +355,8 @@ export interface DescribeDestinationsRequest {
354355
nextToken?: string;
355356

356357
/**
357-
* <p>The maximum number of items returned. If you don't specify a value, the default is up to 50 items.</p>
358+
* <p>The maximum number of items returned. If you don't specify a value, the default maximum value of
359+
* 50 items is used.</p>
358360
*/
359361
limit?: number;
360362
}
@@ -570,7 +572,7 @@ export interface LogGroup {
570572

571573
/**
572574
* <p>The number of days to retain the log events in the specified log group.
573-
* Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653.</p>
575+
* Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 2192, 2557, 2922, 3288, and 3653.</p>
574576
* <p>To set a log group to never have log events expire, use
575577
* <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DeleteRetentionPolicy.html">DeleteRetentionPolicy</a>.
576578
* </p>
@@ -1862,7 +1864,7 @@ export interface PutRetentionPolicyRequest {
18621864

18631865
/**
18641866
* <p>The number of days to retain the log events in the specified log group.
1865-
* Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653.</p>
1867+
* Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 2192, 2557, 2922, 3288, and 3653.</p>
18661868
* <p>To set a log group to never have log events expire, use
18671869
* <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DeleteRetentionPolicy.html">DeleteRetentionPolicy</a>.
18681870
* </p>

0 commit comments

Comments
 (0)