@aws-sdk/client-cloudwatch-logs 3.535.0 → 3.537.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-types/commands/CreateDeliveryCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDeliveriesCommand.d.ts +1 -1
- package/dist-types/commands/GetDeliveryCommand.d.ts +1 -1
- package/dist-types/commands/ListAnomaliesCommand.d.ts +4 -1
- package/dist-types/commands/ListTagsLogGroupCommand.d.ts +2 -1
- package/dist-types/commands/PutAccountPolicyCommand.d.ts +3 -3
- package/dist-types/commands/PutDeliveryDestinationCommand.d.ts +1 -1
- package/dist-types/commands/PutDeliverySourceCommand.d.ts +1 -1
- package/dist-types/commands/PutSubscriptionFilterCommand.d.ts +1 -1
- package/dist-types/commands/TagLogGroupCommand.d.ts +2 -1
- package/dist-types/commands/UntagLogGroupCommand.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +43 -13
- package/dist-types/ts3.4/models/models_0.d.ts +5 -1
- package/package.json +1 -1
|
@@ -34,7 +34,7 @@ declare const CreateDeliveryCommand_base: {
|
|
|
34
34
|
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html">Enabling
|
|
35
35
|
* logging from Amazon Web Services services.</a>
|
|
36
36
|
* </p>
|
|
37
|
-
* <p>A delivery destination can represent a log group in CloudWatch Logs, an Amazon S3 bucket, or a delivery stream in
|
|
37
|
+
* <p>A delivery destination can represent a log group in CloudWatch Logs, an Amazon S3 bucket, or a delivery stream in Firehose.</p>
|
|
38
38
|
* <p>To configure logs delivery between a supported Amazon Web Services service and a destination, you must do the following:</p>
|
|
39
39
|
* <ul>
|
|
40
40
|
* <li>
|
|
@@ -35,7 +35,7 @@ declare const DescribeDeliveriesCommand_base: {
|
|
|
35
35
|
* <i>delivery destination</i>
|
|
36
36
|
* </a>.</p>
|
|
37
37
|
* <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
|
|
38
|
+
* The destination can be CloudWatch Logs, Amazon S3, or Firehose.
|
|
39
39
|
* Only some Amazon Web Services services support being configured as a delivery source. These services are listed
|
|
40
40
|
* in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html">Enable logging from Amazon Web Services
|
|
41
41
|
* services.</a>
|
|
@@ -34,7 +34,7 @@ declare const GetDeliveryCommand_base: {
|
|
|
34
34
|
* <i>delivery destination</i>
|
|
35
35
|
* </a>.</p>
|
|
36
36
|
* <p>A delivery source represents an Amazon Web Services resource that sends logs to an logs delivery destination.
|
|
37
|
-
* The destination can be CloudWatch Logs, Amazon S3, or
|
|
37
|
+
* The destination can be CloudWatch Logs, Amazon S3, or Firehose.
|
|
38
38
|
* Only some Amazon Web Services services support being configured as a delivery source. These services are listed
|
|
39
39
|
* in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html">Enable logging from Amazon Web Services
|
|
40
40
|
* services.</a>
|
|
@@ -60,7 +60,10 @@ declare const ListAnomaliesCommand_base: {
|
|
|
60
60
|
* // "<keys>": Number("long"),
|
|
61
61
|
* // },
|
|
62
62
|
* // logSamples: [ // LogSamples // required
|
|
63
|
-
* //
|
|
63
|
+
* // { // LogEvent
|
|
64
|
+
* // timestamp: Number("long"),
|
|
65
|
+
* // message: "STRING_VALUE",
|
|
66
|
+
* // },
|
|
64
67
|
* // ],
|
|
65
68
|
* // patternTokens: [ // PatternTokens // required
|
|
66
69
|
* // { // PatternToken
|
|
@@ -31,6 +31,8 @@ declare const ListTagsLogGroupCommand_base: {
|
|
|
31
31
|
* <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html">ListTagsForResource</a> instead.</p>
|
|
32
32
|
* </important>
|
|
33
33
|
* <p>Lists the tags for the specified log group.</p>
|
|
34
|
+
*
|
|
35
|
+
* @deprecated Please use the generic tagging API ListTagsForResource
|
|
34
36
|
* @example
|
|
35
37
|
* Use a bare-bones client and the command you need to make an API call.
|
|
36
38
|
* ```javascript
|
|
@@ -66,7 +68,6 @@ declare const ListTagsLogGroupCommand_base: {
|
|
|
66
68
|
* <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
|
|
67
69
|
*
|
|
68
70
|
* @public
|
|
69
|
-
* @deprecated Please use the generic tagging API ListTagsForResource
|
|
70
71
|
*/
|
|
71
72
|
export declare class ListTagsLogGroupCommand extends ListTagsLogGroupCommand_base {
|
|
72
73
|
}
|
|
@@ -64,7 +64,7 @@ declare const PutAccountPolicyCommand_base: {
|
|
|
64
64
|
* </p>
|
|
65
65
|
* <p>A subscription filter policy sets up a real-time feed of log events from CloudWatch Logs to other Amazon Web Services services.
|
|
66
66
|
* Account-level subscription filter policies apply to both existing log groups and log groups that are created later in
|
|
67
|
-
* this account. Supported destinations are Kinesis Data Streams,
|
|
67
|
+
* this account. Supported destinations are Kinesis Data Streams, Firehose, and
|
|
68
68
|
* Lambda. When log events are sent to the receiving service, they are Base64 encoded and
|
|
69
69
|
* compressed with the GZIP format.</p>
|
|
70
70
|
* <p>The following destinations are supported for subscription filters:</p>
|
|
@@ -73,14 +73,14 @@ declare const PutAccountPolicyCommand_base: {
|
|
|
73
73
|
* <p>An Kinesis Data Streams data stream in the same account as the subscription policy, for same-account delivery.</p>
|
|
74
74
|
* </li>
|
|
75
75
|
* <li>
|
|
76
|
-
* <p>An
|
|
76
|
+
* <p>An Firehose data stream in the same account as the subscription policy, for same-account delivery.</p>
|
|
77
77
|
* </li>
|
|
78
78
|
* <li>
|
|
79
79
|
* <p>A Lambda function in the same account as the subscription policy, for same-account delivery.</p>
|
|
80
80
|
* </li>
|
|
81
81
|
* <li>
|
|
82
82
|
* <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
|
|
83
|
-
* delivery. Kinesis Data Streams and
|
|
83
|
+
* delivery. Kinesis Data Streams and Firehose are supported as logical destinations.</p>
|
|
84
84
|
* </li>
|
|
85
85
|
* </ul>
|
|
86
86
|
* <p>Each account can have one account-level subscription filter policy.
|
|
@@ -28,7 +28,7 @@ declare const PutDeliveryDestinationCommand_base: {
|
|
|
28
28
|
/**
|
|
29
29
|
* <p>Creates or updates a logical <i>delivery destination</i>. A delivery destination is an Amazon Web Services resource that represents an
|
|
30
30
|
* Amazon Web Services service that logs can be sent to. CloudWatch Logs, Amazon S3, and
|
|
31
|
-
*
|
|
31
|
+
* Firehose are supported as logs delivery destinations.</p>
|
|
32
32
|
* <p>To configure logs delivery between a supported Amazon Web Services service and a destination, you must do the following:</p>
|
|
33
33
|
* <ul>
|
|
34
34
|
* <li>
|
|
@@ -27,7 +27,7 @@ declare const PutDeliverySourceCommand_base: {
|
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
29
|
* <p>Creates or updates a logical <i>delivery source</i>. A delivery source represents an Amazon Web Services resource that sends logs to an
|
|
30
|
-
* logs delivery destination. The destination can be CloudWatch Logs, Amazon S3, or
|
|
30
|
+
* logs delivery destination. The destination can be CloudWatch Logs, Amazon S3, or Firehose.</p>
|
|
31
31
|
* <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>
|
|
32
32
|
* <ul>
|
|
33
33
|
* <li>
|
|
@@ -39,7 +39,7 @@ declare const PutSubscriptionFilterCommand_base: {
|
|
|
39
39
|
* </li>
|
|
40
40
|
* <li>
|
|
41
41
|
* <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.
|
|
42
|
-
* We currently support Kinesis Data Streams and
|
|
42
|
+
* We currently support Kinesis Data Streams and Firehose as logical destinations.</p>
|
|
43
43
|
* </li>
|
|
44
44
|
* <li>
|
|
45
45
|
* <p>An Amazon Kinesis Data Firehose delivery stream that belongs to the same account as
|
|
@@ -40,6 +40,8 @@ declare const TagLogGroupCommand_base: {
|
|
|
40
40
|
* </code> or <code>aws:TagKeys</code> condition keys.
|
|
41
41
|
* For more information about using tags to control access, see
|
|
42
42
|
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html">Controlling access to Amazon Web Services resources using tags</a>.</p>
|
|
43
|
+
*
|
|
44
|
+
* @deprecated Please use the generic tagging API TagResource
|
|
43
45
|
* @example
|
|
44
46
|
* Use a bare-bones client and the command you need to make an API call.
|
|
45
47
|
* ```javascript
|
|
@@ -74,7 +76,6 @@ declare const TagLogGroupCommand_base: {
|
|
|
74
76
|
* <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
|
|
75
77
|
*
|
|
76
78
|
* @public
|
|
77
|
-
* @deprecated Please use the generic tagging API TagResource
|
|
78
79
|
*/
|
|
79
80
|
export declare class TagLogGroupCommand extends TagLogGroupCommand_base {
|
|
80
81
|
}
|
|
@@ -37,6 +37,8 @@ declare const UntagLogGroupCommand_base: {
|
|
|
37
37
|
* log groups using the <code>aws:Resource/<i>key-name</i>
|
|
38
38
|
* </code> or <code>aws:TagKeys</code> condition keys.
|
|
39
39
|
* </p>
|
|
40
|
+
*
|
|
41
|
+
* @deprecated Please use the generic tagging API UntagResource
|
|
40
42
|
* @example
|
|
41
43
|
* Use a bare-bones client and the command you need to make an API call.
|
|
42
44
|
* ```javascript
|
|
@@ -68,7 +70,6 @@ declare const UntagLogGroupCommand_base: {
|
|
|
68
70
|
* <p>Base exception class for all service exceptions from CloudWatchLogs service.</p>
|
|
69
71
|
*
|
|
70
72
|
* @public
|
|
71
|
-
* @deprecated Please use the generic tagging API UntagResource
|
|
72
73
|
*/
|
|
73
74
|
export declare class UntagLogGroupCommand extends UntagLogGroupCommand_base {
|
|
74
75
|
}
|
|
@@ -77,6 +77,23 @@ export interface AccountPolicy {
|
|
|
77
77
|
*/
|
|
78
78
|
accountId?: string;
|
|
79
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* <p>This structure contains the information for one sample log event that is associated
|
|
82
|
+
* with an anomaly found by a log anomaly detector.</p>
|
|
83
|
+
* @public
|
|
84
|
+
*/
|
|
85
|
+
export interface LogEvent {
|
|
86
|
+
/**
|
|
87
|
+
* <p>The time stamp of the log event.</p>
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
timestamp?: number;
|
|
91
|
+
/**
|
|
92
|
+
* <p>The message content of the log event.</p>
|
|
93
|
+
* @public
|
|
94
|
+
*/
|
|
95
|
+
message?: string;
|
|
96
|
+
}
|
|
80
97
|
/**
|
|
81
98
|
* <p>A tructures that contains information about one pattern token related to
|
|
82
99
|
* an anomaly.</p>
|
|
@@ -207,7 +224,7 @@ export interface Anomaly {
|
|
|
207
224
|
* <p>An array of sample log event messages that are considered to be part of this anomaly.</p>
|
|
208
225
|
* @public
|
|
209
226
|
*/
|
|
210
|
-
logSamples:
|
|
227
|
+
logSamples: LogEvent[] | undefined;
|
|
211
228
|
/**
|
|
212
229
|
* <p>An array of structures where each structure contains information about one token that makes up the pattern.</p>
|
|
213
230
|
* @public
|
|
@@ -532,7 +549,7 @@ export interface Delivery {
|
|
|
532
549
|
*/
|
|
533
550
|
deliveryDestinationArn?: string;
|
|
534
551
|
/**
|
|
535
|
-
* <p>Displays whether the delivery destination associated with this delivery is CloudWatch Logs, Amazon S3, or
|
|
552
|
+
* <p>Displays whether the delivery destination associated with this delivery is CloudWatch Logs, Amazon S3, or Firehose.</p>
|
|
536
553
|
* @public
|
|
537
554
|
*/
|
|
538
555
|
deliveryDestinationType?: DeliveryDestinationType;
|
|
@@ -1042,7 +1059,7 @@ export interface DeleteSubscriptionFilterRequest {
|
|
|
1042
1059
|
export interface DeliveryDestinationConfiguration {
|
|
1043
1060
|
/**
|
|
1044
1061
|
* <p>The ARN of the Amazon Web Services destination that this delivery destination represents. That Amazon Web Services destination
|
|
1045
|
-
* can be a log group in CloudWatch Logs, an Amazon S3 bucket, or a delivery stream in
|
|
1062
|
+
* can be a log group in CloudWatch Logs, an Amazon S3 bucket, or a delivery stream in Firehose.</p>
|
|
1046
1063
|
* @public
|
|
1047
1064
|
*/
|
|
1048
1065
|
destinationResourceArn: string | undefined;
|
|
@@ -1065,7 +1082,7 @@ export type OutputFormat = (typeof OutputFormat)[keyof typeof OutputFormat];
|
|
|
1065
1082
|
/**
|
|
1066
1083
|
* <p>This structure contains information about one <i>delivery destination</i> in your account.
|
|
1067
1084
|
* A delivery destination is an Amazon Web Services resource that represents an
|
|
1068
|
-
* Amazon Web Services service that logs can be sent to. CloudWatch Logs, Amazon S3, are supported as
|
|
1085
|
+
* Amazon Web Services service that logs can be sent to. CloudWatch Logs, Amazon S3, are supported as Firehose delivery destinations.</p>
|
|
1069
1086
|
* <p>To configure logs delivery between a supported Amazon Web Services service and a destination, you must do the following:</p>
|
|
1070
1087
|
* <ul>
|
|
1071
1088
|
* <li>
|
|
@@ -1105,7 +1122,7 @@ export interface DeliveryDestination {
|
|
|
1105
1122
|
*/
|
|
1106
1123
|
arn?: string;
|
|
1107
1124
|
/**
|
|
1108
|
-
* <p>Displays whether this delivery destination is CloudWatch Logs, Amazon S3, or
|
|
1125
|
+
* <p>Displays whether this delivery destination is CloudWatch Logs, Amazon S3, or Firehose.</p>
|
|
1109
1126
|
* @public
|
|
1110
1127
|
*/
|
|
1111
1128
|
deliveryDestinationType?: DeliveryDestinationType;
|
|
@@ -1128,7 +1145,7 @@ export interface DeliveryDestination {
|
|
|
1128
1145
|
/**
|
|
1129
1146
|
* <p>This structure contains information about one <i>delivery source</i> in your account.
|
|
1130
1147
|
* A delivery source is an Amazon Web Services resource that sends logs to an
|
|
1131
|
-
* Amazon Web Services destination. The destination can be CloudWatch Logs, Amazon S3, or
|
|
1148
|
+
* Amazon Web Services destination. The destination can be CloudWatch Logs, Amazon S3, or Firehose.</p>
|
|
1132
1149
|
* <p>Only some Amazon Web Services services support being configured as a delivery source. These services are listed
|
|
1133
1150
|
* as <b>Supported [V2 Permissions]</b> in the table at
|
|
1134
1151
|
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html">Enabling
|
|
@@ -3415,7 +3432,7 @@ export interface PutAccountPolicyRequest {
|
|
|
3415
3432
|
* sensitive data terms. This <code>Audit</code> action must contain a <code>FindingsDestination</code>
|
|
3416
3433
|
* object. You can optionally use that <code>FindingsDestination</code> object to list one or more
|
|
3417
3434
|
* destinations to send audit findings to. If you specify destinations such as log groups,
|
|
3418
|
-
*
|
|
3435
|
+
* Firehose streams, and S3 buckets, they must already exist.</p>
|
|
3419
3436
|
* </li>
|
|
3420
3437
|
* <li>
|
|
3421
3438
|
* <p>The second block must include both a <code>DataIdentifer</code> array and an
|
|
@@ -3452,14 +3469,14 @@ export interface PutAccountPolicyRequest {
|
|
|
3452
3469
|
* <p>An Kinesis Data Streams data stream in the same account as the subscription policy, for same-account delivery.</p>
|
|
3453
3470
|
* </li>
|
|
3454
3471
|
* <li>
|
|
3455
|
-
* <p>An
|
|
3472
|
+
* <p>An Firehose data stream in the same account as the subscription policy, for same-account delivery.</p>
|
|
3456
3473
|
* </li>
|
|
3457
3474
|
* <li>
|
|
3458
3475
|
* <p>A Lambda function in the same account as the subscription policy, for same-account delivery.</p>
|
|
3459
3476
|
* </li>
|
|
3460
3477
|
* <li>
|
|
3461
3478
|
* <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
|
|
3462
|
-
* delivery. Kinesis Data Streams and
|
|
3479
|
+
* delivery. Kinesis Data Streams and Firehose are supported as logical destinations.</p>
|
|
3463
3480
|
* </li>
|
|
3464
3481
|
* </ul>
|
|
3465
3482
|
* </li>
|
|
@@ -3541,7 +3558,7 @@ export interface PutDataProtectionPolicyRequest {
|
|
|
3541
3558
|
* sensitive data terms. This <code>Audit</code> action must contain a <code>FindingsDestination</code>
|
|
3542
3559
|
* object. You can optionally use that <code>FindingsDestination</code> object to list one or more
|
|
3543
3560
|
* destinations to send audit findings to. If you specify destinations such as log groups,
|
|
3544
|
-
*
|
|
3561
|
+
* Firehose streams, and S3 buckets, they must already exist.</p>
|
|
3545
3562
|
* </li>
|
|
3546
3563
|
* <li>
|
|
3547
3564
|
* <p>The second block must include both a <code>DataIdentifer</code> array and an
|
|
@@ -3667,8 +3684,21 @@ export interface PutDeliverySourceRequest {
|
|
|
3667
3684
|
*/
|
|
3668
3685
|
resourceArn: string | undefined;
|
|
3669
3686
|
/**
|
|
3670
|
-
* <p>Defines the type of log that the source is sending
|
|
3687
|
+
* <p>Defines the type of log that the source is sending.</p>
|
|
3688
|
+
* <ul>
|
|
3689
|
+
* <li>
|
|
3690
|
+
* <p>For Amazon CodeWhisperer, the valid value is
|
|
3671
3691
|
* <code>EVENT_LOGS</code>.</p>
|
|
3692
|
+
* </li>
|
|
3693
|
+
* <li>
|
|
3694
|
+
* <p>For IAM Identity Centerr, the valid value is
|
|
3695
|
+
* <code>ERROR_LOGS</code>.</p>
|
|
3696
|
+
* </li>
|
|
3697
|
+
* <li>
|
|
3698
|
+
* <p>For Amazon WorkMail, the valid values are
|
|
3699
|
+
* <code>ACCESS_CONTROL_LOGS</code>, <code>AUTHENTICATION_LOGS</code>, <code>WORKMAIL_AVAILABILITY_PROVIDER_LOGS</code>, and <code>WORKMAIL_MAILBOX_ACCESS_LOGS</code>.</p>
|
|
3700
|
+
* </li>
|
|
3701
|
+
* </ul>
|
|
3672
3702
|
* @public
|
|
3673
3703
|
*/
|
|
3674
3704
|
logType: string | undefined;
|
|
@@ -3799,12 +3829,12 @@ export interface PutLogEventsRequest {
|
|
|
3799
3829
|
*/
|
|
3800
3830
|
export interface RejectedLogEventsInfo {
|
|
3801
3831
|
/**
|
|
3802
|
-
* <p>The log
|
|
3832
|
+
* <p>The index of the first log event that is too new. This field is inclusive.</p>
|
|
3803
3833
|
* @public
|
|
3804
3834
|
*/
|
|
3805
3835
|
tooNewLogEventStartIndex?: number;
|
|
3806
3836
|
/**
|
|
3807
|
-
* <p>The log
|
|
3837
|
+
* <p>The index of the last log event that is too old. This field is exclusive.</p>
|
|
3808
3838
|
* @public
|
|
3809
3839
|
*/
|
|
3810
3840
|
tooOldLogEventEndIndex?: number;
|
|
@@ -25,6 +25,10 @@ export interface AccountPolicy {
|
|
|
25
25
|
selectionCriteria?: string;
|
|
26
26
|
accountId?: string;
|
|
27
27
|
}
|
|
28
|
+
export interface LogEvent {
|
|
29
|
+
timestamp?: number;
|
|
30
|
+
message?: string;
|
|
31
|
+
}
|
|
28
32
|
export interface PatternToken {
|
|
29
33
|
dynamicTokenPosition?: number;
|
|
30
34
|
isDynamic?: boolean;
|
|
@@ -50,7 +54,7 @@ export interface Anomaly {
|
|
|
50
54
|
active: boolean | undefined;
|
|
51
55
|
state: State | undefined;
|
|
52
56
|
histogram: Record<string, number> | undefined;
|
|
53
|
-
logSamples:
|
|
57
|
+
logSamples: LogEvent[] | undefined;
|
|
54
58
|
patternTokens: PatternToken[] | undefined;
|
|
55
59
|
logGroupArnList: string[] | undefined;
|
|
56
60
|
suppressed?: boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudwatch-logs",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudwatch Logs Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.537.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-cloudwatch-logs",
|