Skip to content

Commit d5823e3

Browse files
author
awstools
committed
feat(client-cloudwatch-logs): Update LogSamples field in Anomaly model to be a list of LogEvent
1 parent 1c3d2b4 commit d5823e3

11 files changed

+93
-44
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export interface CreateDeliveryCommandOutput extends CreateDeliveryResponse, __M
3535
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html">Enabling
3636
* logging from Amazon Web Services services.</a>
3737
* </p>
38-
* <p>A delivery destination can represent a log group in CloudWatch Logs, an Amazon S3 bucket, or a delivery stream in Kinesis Data Firehose.</p>
38+
* <p>A delivery destination can represent a log group in CloudWatch Logs, an Amazon S3 bucket, or a delivery stream in Firehose.</p>
3939
* <p>To configure logs delivery between a supported Amazon Web Services service and a destination, you must do the following:</p>
4040
* <ul>
4141
* <li>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export interface DescribeDeliveriesCommandOutput extends DescribeDeliveriesRespo
3636
* <i>delivery destination</i>
3737
* </a>.</p>
3838
* <p>A delivery source represents an Amazon Web Services resource that sends logs to an logs delivery destination.
39-
* The destination can be CloudWatch Logs, Amazon S3, or Kinesis Data Firehose.
39+
* The destination can be CloudWatch Logs, Amazon S3, or Firehose.
4040
* Only some Amazon Web Services services support being configured as a delivery source. These services are listed
4141
* in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html">Enable logging from Amazon Web Services
4242
* services.</a>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export interface GetDeliveryCommandOutput extends GetDeliveryResponse, __Metadat
3535
* <i>delivery destination</i>
3636
* </a>.</p>
3737
* <p>A delivery source represents an Amazon Web Services resource that sends logs to an logs delivery destination.
38-
* The destination can be CloudWatch Logs, Amazon S3, or Kinesis Data Firehose.
38+
* The destination can be CloudWatch Logs, Amazon S3, or Firehose.
3939
* Only some Amazon Web Services services support being configured as a delivery source. These services are listed
4040
* in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html">Enable logging from Amazon Web Services
4141
* services.</a>

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

+4-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ export interface ListAnomaliesCommandOutput extends ListAnomaliesResponse, __Met
6161
* // "<keys>": Number("long"),
6262
* // },
6363
* // logSamples: [ // LogSamples // required
64-
* // "STRING_VALUE",
64+
* // { // LogEvent
65+
* // timestamp: Number("long"),
66+
* // message: "STRING_VALUE",
67+
* // },
6568
* // ],
6669
* // patternTokens: [ // PatternTokens // required
6770
* // { // PatternToken

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export interface PutAccountPolicyCommandOutput extends PutAccountPolicyResponse,
6565
* </p>
6666
* <p>A subscription filter policy sets up a real-time feed of log events from CloudWatch Logs to other Amazon Web Services services.
6767
* Account-level subscription filter policies apply to both existing log groups and log groups that are created later in
68-
* this account. Supported destinations are Kinesis Data Streams, Kinesis Data Firehose, and
68+
* this account. Supported destinations are Kinesis Data Streams, Firehose, and
6969
* Lambda. When log events are sent to the receiving service, they are Base64 encoded and
7070
* compressed with the GZIP format.</p>
7171
* <p>The following destinations are supported for subscription filters:</p>
@@ -74,14 +74,14 @@ export interface PutAccountPolicyCommandOutput extends PutAccountPolicyResponse,
7474
* <p>An Kinesis Data Streams data stream in the same account as the subscription policy, for same-account delivery.</p>
7575
* </li>
7676
* <li>
77-
* <p>An Kinesis Data Firehose data stream in the same account as the subscription policy, for same-account delivery.</p>
77+
* <p>An Firehose data stream in the same account as the subscription policy, for same-account delivery.</p>
7878
* </li>
7979
* <li>
8080
* <p>A Lambda function in the same account as the subscription policy, for same-account delivery.</p>
8181
* </li>
8282
* <li>
8383
* <p>A logical destination in a different account created with <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDestination.html">PutDestination</a>, for cross-account
84-
* delivery. Kinesis Data Streams and Kinesis Data Firehose are supported as logical destinations.</p>
84+
* delivery. Kinesis Data Streams and Firehose are supported as logical destinations.</p>
8585
* </li>
8686
* </ul>
8787
* <p>Each account can have one account-level subscription filter policy.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export interface PutDeliveryDestinationCommandOutput extends PutDeliveryDestinat
2929
/**
3030
* <p>Creates or updates a logical <i>delivery destination</i>. A delivery destination is an Amazon Web Services resource that represents an
3131
* Amazon Web Services service that logs can be sent to. CloudWatch Logs, Amazon S3, and
32-
* Kinesis Data Firehose are supported as logs delivery destinations.</p>
32+
* Firehose are supported as logs delivery destinations.</p>
3333
* <p>To configure logs delivery between a supported Amazon Web Services service and a destination, you must do the following:</p>
3434
* <ul>
3535
* <li>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface PutDeliverySourceCommandOutput extends PutDeliverySourceRespons
2828

2929
/**
3030
* <p>Creates or updates a logical <i>delivery source</i>. A delivery source represents an Amazon Web Services resource that sends logs to an
31-
* logs delivery destination. The destination can be CloudWatch Logs, Amazon S3, or Kinesis Data Firehose.</p>
31+
* logs delivery destination. The destination can be CloudWatch Logs, Amazon S3, or Firehose.</p>
3232
* <p>To configure logs delivery between a delivery destination and an Amazon Web Services service that is supported as a delivery source, you must do the following:</p>
3333
* <ul>
3434
* <li>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export interface PutSubscriptionFilterCommandOutput extends __MetadataBearer {}
4040
* </li>
4141
* <li>
4242
* <p>A logical destination created with <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDestination.html">PutDestination</a> that belongs to a different account, for cross-account delivery.
43-
* We currently support Kinesis Data Streams and Kinesis Data Firehose as logical destinations.</p>
43+
* We currently support Kinesis Data Streams and Firehose as logical destinations.</p>
4444
* </li>
4545
* <li>
4646
* <p>An Amazon Kinesis Data Firehose delivery stream that belongs to the same account as

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

+45-13
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,25 @@ export interface AccountPolicy {
9999
accountId?: string;
100100
}
101101

102+
/**
103+
* <p>This structure contains the information for one sample log event that is associated
104+
* with an anomaly found by a log anomaly detector.</p>
105+
* @public
106+
*/
107+
export interface LogEvent {
108+
/**
109+
* <p>The time stamp of the log event.</p>
110+
* @public
111+
*/
112+
timestamp?: number;
113+
114+
/**
115+
* <p>The message content of the log event.</p>
116+
* @public
117+
*/
118+
message?: string;
119+
}
120+
102121
/**
103122
* <p>A tructures that contains information about one pattern token related to
104123
* an anomaly.</p>
@@ -247,7 +266,7 @@ export interface Anomaly {
247266
* <p>An array of sample log event messages that are considered to be part of this anomaly.</p>
248267
* @public
249268
*/
250-
logSamples: string[] | undefined;
269+
logSamples: LogEvent[] | undefined;
251270

252271
/**
253272
* <p>An array of structures where each structure contains information about one token that makes up the pattern.</p>
@@ -654,7 +673,7 @@ export interface Delivery {
654673
deliveryDestinationArn?: string;
655674

656675
/**
657-
* <p>Displays whether the delivery destination associated with this delivery is CloudWatch Logs, Amazon S3, or Kinesis Data Firehose.</p>
676+
* <p>Displays whether the delivery destination associated with this delivery is CloudWatch Logs, Amazon S3, or Firehose.</p>
658677
* @public
659678
*/
660679
deliveryDestinationType?: DeliveryDestinationType;
@@ -1262,7 +1281,7 @@ export interface DeleteSubscriptionFilterRequest {
12621281
export interface DeliveryDestinationConfiguration {
12631282
/**
12641283
* <p>The ARN of the Amazon Web Services destination that this delivery destination represents. That Amazon Web Services destination
1265-
* can be a log group in CloudWatch Logs, an Amazon S3 bucket, or a delivery stream in Kinesis Data Firehose.</p>
1284+
* can be a log group in CloudWatch Logs, an Amazon S3 bucket, or a delivery stream in Firehose.</p>
12661285
* @public
12671286
*/
12681287
destinationResourceArn: string | undefined;
@@ -1288,7 +1307,7 @@ export type OutputFormat = (typeof OutputFormat)[keyof typeof OutputFormat];
12881307
/**
12891308
* <p>This structure contains information about one <i>delivery destination</i> in your account.
12901309
* A delivery destination is an Amazon Web Services resource that represents an
1291-
* Amazon Web Services service that logs can be sent to. CloudWatch Logs, Amazon S3, are supported as Kinesis Data Firehose delivery destinations.</p>
1310+
* Amazon Web Services service that logs can be sent to. CloudWatch Logs, Amazon S3, are supported as Firehose delivery destinations.</p>
12921311
* <p>To configure logs delivery between a supported Amazon Web Services service and a destination, you must do the following:</p>
12931312
* <ul>
12941313
* <li>
@@ -1330,7 +1349,7 @@ export interface DeliveryDestination {
13301349
arn?: string;
13311350

13321351
/**
1333-
* <p>Displays whether this delivery destination is CloudWatch Logs, Amazon S3, or Kinesis Data Firehose.</p>
1352+
* <p>Displays whether this delivery destination is CloudWatch Logs, Amazon S3, or Firehose.</p>
13341353
* @public
13351354
*/
13361355
deliveryDestinationType?: DeliveryDestinationType;
@@ -1357,7 +1376,7 @@ export interface DeliveryDestination {
13571376
/**
13581377
* <p>This structure contains information about one <i>delivery source</i> in your account.
13591378
* A delivery source is an Amazon Web Services resource that sends logs to an
1360-
* Amazon Web Services destination. The destination can be CloudWatch Logs, Amazon S3, or Kinesis Data Firehose.</p>
1379+
* Amazon Web Services destination. The destination can be CloudWatch Logs, Amazon S3, or Firehose.</p>
13611380
* <p>Only some Amazon Web Services services support being configured as a delivery source. These services are listed
13621381
* as <b>Supported [V2 Permissions]</b> in the table at
13631382
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html">Enabling
@@ -3928,7 +3947,7 @@ export interface PutAccountPolicyRequest {
39283947
* sensitive data terms. This <code>Audit</code> action must contain a <code>FindingsDestination</code>
39293948
* object. You can optionally use that <code>FindingsDestination</code> object to list one or more
39303949
* destinations to send audit findings to. If you specify destinations such as log groups,
3931-
* Kinesis Data Firehose streams, and S3 buckets, they must already exist.</p>
3950+
* Firehose streams, and S3 buckets, they must already exist.</p>
39323951
* </li>
39333952
* <li>
39343953
* <p>The second block must include both a <code>DataIdentifer</code> array and an
@@ -3965,14 +3984,14 @@ export interface PutAccountPolicyRequest {
39653984
* <p>An Kinesis Data Streams data stream in the same account as the subscription policy, for same-account delivery.</p>
39663985
* </li>
39673986
* <li>
3968-
* <p>An Kinesis Data Firehose data stream in the same account as the subscription policy, for same-account delivery.</p>
3987+
* <p>An Firehose data stream in the same account as the subscription policy, for same-account delivery.</p>
39693988
* </li>
39703989
* <li>
39713990
* <p>A Lambda function in the same account as the subscription policy, for same-account delivery.</p>
39723991
* </li>
39733992
* <li>
39743993
* <p>A logical destination in a different account created with <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDestination.html">PutDestination</a>, for cross-account
3975-
* delivery. Kinesis Data Streams and Kinesis Data Firehose are supported as logical destinations.</p>
3994+
* delivery. Kinesis Data Streams and Firehose are supported as logical destinations.</p>
39763995
* </li>
39773996
* </ul>
39783997
* </li>
@@ -4060,7 +4079,7 @@ export interface PutDataProtectionPolicyRequest {
40604079
* sensitive data terms. This <code>Audit</code> action must contain a <code>FindingsDestination</code>
40614080
* object. You can optionally use that <code>FindingsDestination</code> object to list one or more
40624081
* destinations to send audit findings to. If you specify destinations such as log groups,
4063-
* Kinesis Data Firehose streams, and S3 buckets, they must already exist.</p>
4082+
* Firehose streams, and S3 buckets, they must already exist.</p>
40644083
* </li>
40654084
* <li>
40664085
* <p>The second block must include both a <code>DataIdentifer</code> array and an
@@ -4200,8 +4219,21 @@ export interface PutDeliverySourceRequest {
42004219
resourceArn: string | undefined;
42014220

42024221
/**
4203-
* <p>Defines the type of log that the source is sending. For Amazon CodeWhisperer, the valid value is
4222+
* <p>Defines the type of log that the source is sending.</p>
4223+
* <ul>
4224+
* <li>
4225+
* <p>For Amazon CodeWhisperer, the valid value is
42044226
* <code>EVENT_LOGS</code>.</p>
4227+
* </li>
4228+
* <li>
4229+
* <p>For IAM Identity Centerr, the valid value is
4230+
* <code>ERROR_LOGS</code>.</p>
4231+
* </li>
4232+
* <li>
4233+
* <p>For Amazon WorkMail, the valid values are
4234+
* <code>ACCESS_CONTROL_LOGS</code>, <code>AUTHENTICATION_LOGS</code>, <code>WORKMAIL_AVAILABILITY_PROVIDER_LOGS</code>, and <code>WORKMAIL_MAILBOX_ACCESS_LOGS</code>.</p>
4235+
* </li>
4236+
* </ul>
42054237
* @public
42064238
*/
42074239
logType: string | undefined;
@@ -4347,13 +4379,13 @@ export interface PutLogEventsRequest {
43474379
*/
43484380
export interface RejectedLogEventsInfo {
43494381
/**
4350-
* <p>The log events that are too new.</p>
4382+
* <p>The index of the first log event that is too new. This field is inclusive.</p>
43514383
* @public
43524384
*/
43534385
tooNewLogEventStartIndex?: number;
43544386

43554387
/**
4356-
* <p>The log events that are dated too far in the past.</p>
4388+
* <p>The index of the last log event that is too old. This field is exclusive.</p>
43574389
* @public
43584390
*/
43594391
tooOldLogEventEndIndex?: number;

clients/client-cloudwatch-logs/src/protocols/Aws_json1_1.ts

+2
Original file line numberDiff line numberDiff line change
@@ -3479,6 +3479,8 @@ const de_GetQueryResultsResponse = (output: any, context: __SerdeContext): GetQu
34793479

34803480
// de_LiveTailSessionUpdate omitted.
34813481

3482+
// de_LogEvent omitted.
3483+
34823484
// de_LogGroup omitted.
34833485

34843486
// de_LogGroupArnList omitted.

0 commit comments

Comments
 (0)