Skip to content

Commit 516e383

Browse files
author
awstools
committedJan 21, 2025
docs(client-cloudwatch-logs): Documentation-only update to address doc errors
1 parent a0e3771 commit 516e383

11 files changed

+93
-29
lines changed
 

‎clients/client-cloudwatch-logs/src/commands/AssociateKmsKeyCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export interface AssociateKmsKeyCommandOutput extends __MetadataBearer {}
3434
* or the <code>resourceIdentifier</code> parameter. You can't specify both of those parameters in the same operation.</p>
3535
* <ul>
3636
* <li>
37-
* <p>Specify the <code>logGroupName</code> parameter to cause all log events stored in the log group to
37+
* <p>Specify the <code>logGroupName</code> parameter to cause log events ingested into that log group to
3838
* be encrypted with that key. Only the log events ingested after the key is associated are encrypted with that key.</p>
3939
* <p>Associating a KMS key with a log group overrides any existing
4040
* associations between the log group and a KMS key. After a KMS key is associated with a log group, all newly ingested data for the log group is encrypted

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

+5
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ export interface CreateExportTaskCommandOutput extends CreateExportTaskResponse,
4545
* bucket. To separate log data for each export task, specify a prefix to be used as the Amazon
4646
* S3 key prefix for all exported objects.</p>
4747
* <note>
48+
* <p>We recommend that you don't regularly export to Amazon S3 as a way to continuously archive your logs. For that use case, we instaed recommend that
49+
* you use subscriptions. For more information about subscriptions, see
50+
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Subscriptions.html">Real-time processing of log data with subscriptions</a>.</p>
51+
* </note>
52+
* <note>
4853
* <p>Time-based sorting on chunks of log data inside an exported file is not guaranteed. You can
4954
* sort the exported log field data by using Linux utilities.</p>
5055
* </note>

‎clients/client-cloudwatch-logs/src/commands/DeleteDeliveryCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface DeleteDeliveryCommandInput extends DeleteDeliveryRequest {}
2828
export interface DeleteDeliveryCommandOutput extends __MetadataBearer {}
2929

3030
/**
31-
* <p>Deletes s <i>delivery</i>. A delivery is a connection between a logical <i>delivery source</i> and a logical
31+
* <p>Deletes a <i>delivery</i>. A delivery is a connection between a logical <i>delivery source</i> and a logical
3232
* <i>delivery destination</i>. Deleting a delivery only deletes the connection between the delivery source and delivery destination. It does
3333
* not delete the delivery destination or the delivery source.</p>
3434
* @example

‎clients/client-cloudwatch-logs/src/commands/DescribeAccountPoliciesCommand.ts

+18
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,24 @@ export interface DescribeAccountPoliciesCommandOutput extends DescribeAccountPol
2929

3030
/**
3131
* <p>Returns a list of all CloudWatch Logs account policies in the account.</p>
32+
* <p>To use this operation, you must be signed on with the correct permissions depending on the type of policy that you are retrieving information for.</p>
33+
* <ul>
34+
* <li>
35+
* <p>To see data protection policies, you must have the <code>logs:GetDataProtectionPolicy</code> and
36+
* <code>logs:DescribeAccountPolicies</code> permissions.</p>
37+
* </li>
38+
* <li>
39+
* <p>To see subscription filter policies, you must have the <code>logs:DescrubeSubscriptionFilters</code> and
40+
* <code>logs:DescribeAccountPolicies</code> permissions.</p>
41+
* </li>
42+
* <li>
43+
* <p>To see transformer policies, you must have the <code>logs:GetTransformer</code> and <code>logs:DescribeAccountPolicies</code> permissions.</p>
44+
* </li>
45+
* <li>
46+
* <p>To see field index policies, you must have the <code>logs:DescribeIndexPolicies</code> and
47+
* <code>logs:DescribeAccountPolicies</code> permissions.</p>
48+
* </li>
49+
* </ul>
3250
* @example
3351
* Use a bare-bones client and the command you need to make an API call.
3452
* ```javascript

‎clients/client-cloudwatch-logs/src/commands/DescribeLogStreamsCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export interface DescribeLogStreamsCommandOutput extends DescribeLogStreamsRespo
3434
* <p>You can specify the log group to search by using either <code>logGroupIdentifier</code> or <code>logGroupName</code>.
3535
* You must include one of these two parameters, but you can't include both.
3636
* </p>
37-
* <p>This operation has a limit of five transactions per second, after which transactions are throttled.</p>
37+
* <p>This operation has a limit of 25 transactions per second, after which transactions are throttled.</p>
3838
* <p>If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account and
3939
* view data from the linked source accounts. For more information, see
4040
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch cross-account observability</a>.</p>

‎clients/client-cloudwatch-logs/src/commands/PutAccountPolicyCommand.ts

+18
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,24 @@ export interface PutAccountPolicyCommandOutput extends PutAccountPolicyResponse,
3131
* <p>Creates an account-level data protection policy, subscription filter policy, or field index policy
3232
* that applies to all log groups
3333
* or a subset of log groups in the account.</p>
34+
* <p>To use this operation, you must be signed on with the correct permissions depending on the type of policy that you are creating.</p>
35+
* <ul>
36+
* <li>
37+
* <p>To create a data protection policy, you must have the <code>logs:PutDataProtectionPolicy</code> and
38+
* <code>logs:PutAccountPolicy</code> permissions.</p>
39+
* </li>
40+
* <li>
41+
* <p>To create a subscription filter policy, you must have the <code>logs:PutSubscriptionFilter</code> and
42+
* <code>logs:PutccountPolicy</code> permissions.</p>
43+
* </li>
44+
* <li>
45+
* <p>To create a transformer policy, you must have the <code>logs:PutTransformer</code> and <code>logs:PutAccountPolicy</code> permissions.</p>
46+
* </li>
47+
* <li>
48+
* <p>To create a field index policy, you must have the <code>logs:PutIndexPolicy</code> and
49+
* <code>logs:PutAccountPolicy</code> permissions.</p>
50+
* </li>
51+
* </ul>
3452
* <p>
3553
* <b>Data protection policy</b>
3654
* </p>

‎clients/client-cloudwatch-logs/src/commands/PutDeliveryDestinationCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ export interface PutDeliveryDestinationCommandOutput extends PutDeliveryDestinat
3939
* information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html">PutDeliverySource</a>.</p>
4040
* </li>
4141
* <li>
42-
* <p>Use <code>PutDeliveryDestination</code> to create a <i>delivery destination</i>, which is a logical object that represents the actual
42+
* <p>Use <code>PutDeliveryDestination</code> to create a <i>delivery destination</i> in the same account of the actual delivery destination.
43+
* The delivery destination that you create is a logical object that represents the actual
4344
* delivery destination. </p>
4445
* </li>
4546
* <li>

‎clients/client-cloudwatch-logs/src/commands/PutMetricFilterCommand.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ export interface PutMetricFilterCommandOutput extends __MetadataBearer {}
3333
* through <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html">PutLogEvents</a>.</p>
3434
* <p>The maximum number of metric filters that can be associated with a log group is
3535
* 100.</p>
36-
* <p>Using regular expressions to create metric filters is supported. For these filters,
36+
* <p>Using regular expressions in filter patterns is supported. For these filters,
3737
* there is a quota of two regular expression patterns within a single filter pattern. There
3838
* is also a quota of five regular expression patterns per log group.
39-
* For more information about using regular expressions in metric filters,
39+
* For more information about using regular expressions in filter patterns,
4040
* see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html">
4141
* Filter pattern syntax for metric filters, subscription filters, filter log events, and Live Tail</a>.</p>
4242
* <p>When you create a metric filter, you can also optionally assign a unit and dimensions

‎clients/client-cloudwatch-logs/src/commands/PutSubscriptionFilterCommand.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ export interface PutSubscriptionFilterCommandOutput extends __MetadataBearer {}
5555
* <p>Each log group can have up to two subscription filters associated with it. If you are
5656
* updating an existing filter, you must specify the correct name in <code>filterName</code>.
5757
* </p>
58-
* <p>Using regular expressions to create subscription filters is supported. For these filters,
58+
* <p>Using regular expressions in filter patterns is supported. For these filters,
5959
* there is a quotas of quota of two regular expression patterns within a single filter pattern. There
6060
* is also a quota of five regular expression patterns per log group.
61-
* For more information about using regular expressions in subscription filters,
61+
* For more information about using regular expressions in filter patterns,
6262
* see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html">
6363
* Filter pattern syntax for metric filters, subscription filters, filter log events, and Live Tail</a>.</p>
6464
* <p>To perform a <code>PutSubscriptionFilter</code> operation for any destination except a Lambda function,

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

+29-7
Original file line numberDiff line numberDiff line change
@@ -676,8 +676,9 @@ export type OutputFormat = (typeof OutputFormat)[keyof typeof OutputFormat];
676676
export interface S3DeliveryConfiguration {
677677
/**
678678
* <p>This string allows re-configuring the S3 object prefix to contain either static or variable sections. The valid variables
679-
* to use in the suffix path will vary by each log source. See ConfigurationTemplate$allowedSuffixPathFields for
680-
* more info on what values are supported in the suffix path for each log source.</p>
679+
* to use in the suffix path will vary by each log source. To find the values supported for the suffix path for each log source,
680+
* use the <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeConfigurationTemplates.html">DescribeConfigurationTemplates</a> operation and check the
681+
* <code>allowedSuffixPathFields</code> field in the response.</p>
681682
* @public
682683
*/
683684
suffixPath?: string | undefined;
@@ -6295,16 +6296,37 @@ export interface PutDeliverySourceRequest {
62956296
* <code>APPLICATION_LOGS</code>.</p>
62966297
* </li>
62976298
* <li>
6299+
* <p>For CloudFront, the valid value is
6300+
* <code>ACCESS_LOGS</code>.</p>
6301+
* </li>
6302+
* <li>
62986303
* <p>For Amazon CodeWhisperer, the valid value is
62996304
* <code>EVENT_LOGS</code>.</p>
63006305
* </li>
63016306
* <li>
6307+
* <p>For Elemental MediaPackage, the valid values are
6308+
* <code>EGRESS_ACCESS_LOGS</code> and <code>INGRESS_ACCESS_LOGS</code>.</p>
6309+
* </li>
6310+
* <li>
6311+
* <p>For Elemental MediaTailor, the valid values are
6312+
* <code>AD_DECISION_SERVER_LOGS</code>, <code>MANIFEST_SERVICE_LOGS</code>, and <code>TRANSCODE_LOGS</code>.</p>
6313+
* </li>
6314+
* <li>
63026315
* <p>For IAM Identity Center, the valid value is
63036316
* <code>ERROR_LOGS</code>.</p>
63046317
* </li>
63056318
* <li>
6319+
* <p>For Amazon Q, the valid value is
6320+
* <code>EVENT_LOGS</code>.</p>
6321+
* </li>
6322+
* <li>
6323+
* <p>For Amazon SES mail manager, the valid value is
6324+
* <code>APPLICATION_LOG</code>.</p>
6325+
* </li>
6326+
* <li>
63066327
* <p>For Amazon WorkMail, the valid values are
6307-
* <code>ACCESS_CONTROL_LOGS</code>, <code>AUTHENTICATION_LOGS</code>, <code>WORKMAIL_AVAILABILITY_PROVIDER_LOGS</code>, and <code>WORKMAIL_MAILBOX_ACCESS_LOGS</code>.</p>
6328+
* <code>ACCESS_CONTROL_LOGS</code>, <code>AUTHENTICATION_LOGS</code>, <code>WORKMAIL_AVAILABILITY_PROVIDER_LOGS</code>, <code>WORKMAIL_MAILBOX_ACCESS_LOGS</code>,
6329+
* and <code>WORKMAIL_PERSONAL_ACCESS_TOKEN_LOGS</code>.</p>
63086330
* </li>
63096331
* </ul>
63106332
* @public
@@ -6459,16 +6481,16 @@ export interface OpenSearchResourceConfig {
64596481

64606482
/**
64616483
* <p>Specify the ARN of an IAM role that CloudWatch Logs will use to create the integration. This role must have the permissions necessary to access the OpenSearch Service
6462-
* collection to be able to create the dashboards. For more information about the permissions needed, see <a href="https://docs.aws.amazon.com/OpenSearch-Dashboards-CreateRole">Create an IAM role to access the OpenSearch Service collection</a> in the CloudWatch Logs User Guide.</p>
6484+
* collection to be able to create the dashboards. For more information about the permissions needed, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/OpenSearch-Dashboards-CreateRole.html">Permissions that the integration needs</a> in the CloudWatch Logs User Guide.</p>
64636485
* @public
64646486
*/
64656487
dataSourceRoleArn: string | undefined;
64666488

64676489
/**
64686490
* <p>Specify the ARNs of IAM roles and IAM users who you want to grant permission to for viewing the dashboards.</p>
64696491
* <important>
6470-
* <p>In addition to specifying these users here, you must also grant them the <b>CloudWatchOpenSearchDashboardsAccess</b>
6471-
* IAM policy. For more information, see </p>
6492+
* <p>In addition to specifying these users here, you must also grant them the <b>CloudWatchOpenSearchDashboardAccess</b>
6493+
* IAM policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/OpenSearch-Dashboards-UserRoles.html">IAM policies for users</a>.</p>
64726494
* </important>
64736495
* @public
64746496
*/
@@ -7042,7 +7064,7 @@ export interface StartLiveTailRequest {
70427064
}
70437065

70447066
/**
7045-
* <p>his exception is returned if an unknown error occurs during a Live Tail session.</p>
7067+
* <p>This exception is returned if an unknown error occurs during a Live Tail session.</p>
70467068
* @public
70477069
*/
70487070
export class SessionStreamingException extends __BaseException {

‎codegen/sdk-codegen/aws-models/cloudwatch-logs.json

+14-14
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.