@aws-sdk/client-cloudwatch-logs 3.635.0 → 3.643.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-cjs/index.js +11 -0
- package/dist-es/models/models_0.js +9 -0
- package/dist-types/commands/PutAccountPolicyCommand.d.ts +1 -1
- package/dist-types/commands/PutLogEventsCommand.d.ts +11 -0
- package/dist-types/commands/PutMetricFilterCommand.d.ts +6 -0
- package/dist-types/commands/PutSubscriptionFilterCommand.d.ts +6 -0
- package/dist-types/commands/StartLiveTailCommand.d.ts +2 -2
- package/dist-types/models/models_0.d.ts +64 -7
- package/dist-types/ts3.4/models/models_0.d.ts +20 -0
- package/package.json +6 -6
package/dist-cjs/index.js
CHANGED
|
@@ -67,6 +67,7 @@ __export(src_exports, {
|
|
|
67
67
|
DescribeSubscriptionFiltersCommand: () => DescribeSubscriptionFiltersCommand,
|
|
68
68
|
DisassociateKmsKeyCommand: () => DisassociateKmsKeyCommand,
|
|
69
69
|
Distribution: () => Distribution,
|
|
70
|
+
EntityRejectionErrorType: () => EntityRejectionErrorType,
|
|
70
71
|
EvaluationFrequency: () => EvaluationFrequency,
|
|
71
72
|
ExportTaskStatusCode: () => ExportTaskStatusCode,
|
|
72
73
|
FilterLogEventsCommand: () => FilterLogEventsCommand,
|
|
@@ -651,6 +652,15 @@ var Distribution = {
|
|
|
651
652
|
ByLogStream: "ByLogStream",
|
|
652
653
|
Random: "Random"
|
|
653
654
|
};
|
|
655
|
+
var EntityRejectionErrorType = {
|
|
656
|
+
ENTITY_SIZE_TOO_LARGE: "EntitySizeTooLarge",
|
|
657
|
+
INVALID_ATTRIBUTES: "InvalidAttributes",
|
|
658
|
+
INVALID_ENTITY: "InvalidEntity",
|
|
659
|
+
INVALID_KEY_ATTRIBUTE: "InvalidKeyAttributes",
|
|
660
|
+
INVALID_TYPE_VALUE: "InvalidTypeValue",
|
|
661
|
+
MISSING_REQUIRED_FIELDS: "MissingRequiredFields",
|
|
662
|
+
UNSUPPORTED_LOG_GROUP_TYPE: "UnsupportedLogGroupType"
|
|
663
|
+
};
|
|
654
664
|
var _InvalidSequenceTokenException = class _InvalidSequenceTokenException extends CloudWatchLogsServiceException {
|
|
655
665
|
/**
|
|
656
666
|
* @internal
|
|
@@ -3974,6 +3984,7 @@ var paginateListLogAnomalyDetectors = (0, import_core.createPaginator)(CloudWatc
|
|
|
3974
3984
|
StandardUnit,
|
|
3975
3985
|
QueryStatus,
|
|
3976
3986
|
Distribution,
|
|
3987
|
+
EntityRejectionErrorType,
|
|
3977
3988
|
InvalidSequenceTokenException,
|
|
3978
3989
|
SuppressionState,
|
|
3979
3990
|
UnrecognizedClientException,
|
|
@@ -263,6 +263,15 @@ export const Distribution = {
|
|
|
263
263
|
ByLogStream: "ByLogStream",
|
|
264
264
|
Random: "Random",
|
|
265
265
|
};
|
|
266
|
+
export const EntityRejectionErrorType = {
|
|
267
|
+
ENTITY_SIZE_TOO_LARGE: "EntitySizeTooLarge",
|
|
268
|
+
INVALID_ATTRIBUTES: "InvalidAttributes",
|
|
269
|
+
INVALID_ENTITY: "InvalidEntity",
|
|
270
|
+
INVALID_KEY_ATTRIBUTE: "InvalidKeyAttributes",
|
|
271
|
+
INVALID_TYPE_VALUE: "InvalidTypeValue",
|
|
272
|
+
MISSING_REQUIRED_FIELDS: "MissingRequiredFields",
|
|
273
|
+
UNSUPPORTED_LOG_GROUP_TYPE: "UnsupportedLogGroupType",
|
|
274
|
+
};
|
|
266
275
|
export class InvalidSequenceTokenException extends __BaseException {
|
|
267
276
|
constructor(opts) {
|
|
268
277
|
super({
|
|
@@ -84,7 +84,7 @@ declare const PutAccountPolicyCommand_base: {
|
|
|
84
84
|
* delivery. Kinesis Data Streams and Firehose are supported as logical destinations.</p>
|
|
85
85
|
* </li>
|
|
86
86
|
* </ul>
|
|
87
|
-
* <p>Each account can have one account-level subscription filter policy.
|
|
87
|
+
* <p>Each account can have one account-level subscription filter policy per Region.
|
|
88
88
|
* If you are updating an existing filter, you must specify the correct name in <code>PolicyName</code>.
|
|
89
89
|
* To perform a <code>PutAccountPolicy</code> subscription filter operation for any destination except a Lambda
|
|
90
90
|
* function, you must also have the <code>iam:PassRole</code> permission.</p>
|
|
@@ -92,6 +92,14 @@ declare const PutLogEventsCommand_base: {
|
|
|
92
92
|
* },
|
|
93
93
|
* ],
|
|
94
94
|
* sequenceToken: "STRING_VALUE",
|
|
95
|
+
* entity: { // Entity
|
|
96
|
+
* keyAttributes: { // EntityKeyAttributes
|
|
97
|
+
* "<keys>": "STRING_VALUE",
|
|
98
|
+
* },
|
|
99
|
+
* attributes: { // EntityAttributes
|
|
100
|
+
* "<keys>": "STRING_VALUE",
|
|
101
|
+
* },
|
|
102
|
+
* },
|
|
95
103
|
* };
|
|
96
104
|
* const command = new PutLogEventsCommand(input);
|
|
97
105
|
* const response = await client.send(command);
|
|
@@ -102,6 +110,9 @@ declare const PutLogEventsCommand_base: {
|
|
|
102
110
|
* // tooOldLogEventEndIndex: Number("int"),
|
|
103
111
|
* // expiredLogEventEndIndex: Number("int"),
|
|
104
112
|
* // },
|
|
113
|
+
* // rejectedEntityInfo: { // RejectedEntityInfo
|
|
114
|
+
* // errorType: "InvalidEntity" || "InvalidTypeValue" || "InvalidKeyAttributes" || "InvalidAttributes" || "EntitySizeTooLarge" || "UnsupportedLogGroupType" || "MissingRequiredFields", // required
|
|
115
|
+
* // },
|
|
105
116
|
* // };
|
|
106
117
|
*
|
|
107
118
|
* ```
|
|
@@ -32,6 +32,12 @@ declare const PutMetricFilterCommand_base: {
|
|
|
32
32
|
* through <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html">PutLogEvents</a>.</p>
|
|
33
33
|
* <p>The maximum number of metric filters that can be associated with a log group is
|
|
34
34
|
* 100.</p>
|
|
35
|
+
* <p>Using regular expressions to create metric filters is supported. For these filters,
|
|
36
|
+
* there is a quotas of quota of two regular expression patterns within a single filter pattern. There
|
|
37
|
+
* is also a quota of five regular expression patterns per log group.
|
|
38
|
+
* For more information about using regular expressions in metric filters,
|
|
39
|
+
* see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html">
|
|
40
|
+
* Filter pattern syntax for metric filters, subscription filters, filter log events, and Live Tail</a>.</p>
|
|
35
41
|
* <p>When you create a metric filter, you can also optionally assign a unit and dimensions
|
|
36
42
|
* to the metric that is created.</p>
|
|
37
43
|
* <important>
|
|
@@ -54,6 +54,12 @@ declare const PutSubscriptionFilterCommand_base: {
|
|
|
54
54
|
* <p>Each log group can have up to two subscription filters associated with it. If you are
|
|
55
55
|
* updating an existing filter, you must specify the correct name in <code>filterName</code>.
|
|
56
56
|
* </p>
|
|
57
|
+
* <p>Using regular expressions to create subscription filters is supported. For these filters,
|
|
58
|
+
* there is a quotas of quota of two regular expression patterns within a single filter pattern. There
|
|
59
|
+
* is also a quota of five regular expression patterns per log group.
|
|
60
|
+
* For more information about using regular expressions in subscription filters,
|
|
61
|
+
* see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html">
|
|
62
|
+
* Filter pattern syntax for metric filters, subscription filters, filter log events, and Live Tail</a>.</p>
|
|
57
63
|
* <p>To perform a <code>PutSubscriptionFilter</code> operation for any destination except a Lambda function,
|
|
58
64
|
* you must also have the
|
|
59
65
|
* <code>iam:PassRole</code> permission.</p>
|
|
@@ -53,11 +53,11 @@ declare const StartLiveTailCommand_base: {
|
|
|
53
53
|
* which it starts dropping the oldest events.</p>
|
|
54
54
|
* </li>
|
|
55
55
|
* <li>
|
|
56
|
-
* <p>A <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/
|
|
56
|
+
* <p>A <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartLiveTailResponseStream.html#CWL-Type-StartLiveTailResponseStream-SessionStreamingException">SessionStreamingException</a>
|
|
57
57
|
* object is returned if an unknown error occurs on the server side.</p>
|
|
58
58
|
* </li>
|
|
59
59
|
* <li>
|
|
60
|
-
* <p>A <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/
|
|
60
|
+
* <p>A <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartLiveTailResponseStream.html#CWL-Type-StartLiveTailResponseStream-SessionTimeoutException">SessionTimeoutException</a>
|
|
61
61
|
* object is returned when the session times out, after it has been kept open for three hours.</p>
|
|
62
62
|
* </li>
|
|
63
63
|
* </ul>
|
|
@@ -95,7 +95,7 @@ export interface LogEvent {
|
|
|
95
95
|
message?: string;
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
98
|
-
* <p>A
|
|
98
|
+
* <p>A structure that contains information about one pattern token related to
|
|
99
99
|
* an anomaly.</p>
|
|
100
100
|
* <p>For more information about patterns and tokens, see <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateLogAnomalyDetector.html">CreateLogAnomalyDetector</a>.
|
|
101
101
|
* </p>
|
|
@@ -2450,6 +2450,39 @@ export interface DisassociateKmsKeyRequest {
|
|
|
2450
2450
|
*/
|
|
2451
2451
|
resourceIdentifier?: string;
|
|
2452
2452
|
}
|
|
2453
|
+
/**
|
|
2454
|
+
* <p>Reserved for future use.</p>
|
|
2455
|
+
* @public
|
|
2456
|
+
*/
|
|
2457
|
+
export interface Entity {
|
|
2458
|
+
/**
|
|
2459
|
+
* <p>Reserved for future use.</p>
|
|
2460
|
+
* @public
|
|
2461
|
+
*/
|
|
2462
|
+
keyAttributes?: Record<string, string>;
|
|
2463
|
+
/**
|
|
2464
|
+
* <p>Reserved for future use.</p>
|
|
2465
|
+
* @public
|
|
2466
|
+
*/
|
|
2467
|
+
attributes?: Record<string, string>;
|
|
2468
|
+
}
|
|
2469
|
+
/**
|
|
2470
|
+
* @public
|
|
2471
|
+
* @enum
|
|
2472
|
+
*/
|
|
2473
|
+
export declare const EntityRejectionErrorType: {
|
|
2474
|
+
readonly ENTITY_SIZE_TOO_LARGE: "EntitySizeTooLarge";
|
|
2475
|
+
readonly INVALID_ATTRIBUTES: "InvalidAttributes";
|
|
2476
|
+
readonly INVALID_ENTITY: "InvalidEntity";
|
|
2477
|
+
readonly INVALID_KEY_ATTRIBUTE: "InvalidKeyAttributes";
|
|
2478
|
+
readonly INVALID_TYPE_VALUE: "InvalidTypeValue";
|
|
2479
|
+
readonly MISSING_REQUIRED_FIELDS: "MissingRequiredFields";
|
|
2480
|
+
readonly UNSUPPORTED_LOG_GROUP_TYPE: "UnsupportedLogGroupType";
|
|
2481
|
+
};
|
|
2482
|
+
/**
|
|
2483
|
+
* @public
|
|
2484
|
+
*/
|
|
2485
|
+
export type EntityRejectionErrorType = (typeof EntityRejectionErrorType)[keyof typeof EntityRejectionErrorType];
|
|
2453
2486
|
/**
|
|
2454
2487
|
* <p>Represents a matched event.</p>
|
|
2455
2488
|
* @public
|
|
@@ -2512,16 +2545,15 @@ export interface FilterLogEventsRequest {
|
|
|
2512
2545
|
logGroupIdentifier?: string;
|
|
2513
2546
|
/**
|
|
2514
2547
|
* <p>Filters the results to only logs from the log streams in this list.</p>
|
|
2515
|
-
* <p>If you specify a value for both <code>
|
|
2548
|
+
* <p>If you specify a value for both <code>logStreamNames</code> and <code>logStreamNamePrefix</code>, the action
|
|
2516
2549
|
* returns an <code>InvalidParameterException</code> error.</p>
|
|
2517
2550
|
* @public
|
|
2518
2551
|
*/
|
|
2519
2552
|
logStreamNames?: string[];
|
|
2520
2553
|
/**
|
|
2521
2554
|
* <p>Filters the results to include only events from log streams that have names starting with this prefix.</p>
|
|
2522
|
-
* <p>If you specify a value for both <code>logStreamNamePrefix</code> and <code>logStreamNames</code>,
|
|
2523
|
-
* <code>
|
|
2524
|
-
* returns an <code>InvalidParameterException</code> error.</p>
|
|
2555
|
+
* <p>If you specify a value for both <code>logStreamNamePrefix</code> and <code>logStreamNames</code>, the action
|
|
2556
|
+
* returns an <code>InvalidParameterException</code> error.</p>
|
|
2525
2557
|
* @public
|
|
2526
2558
|
*/
|
|
2527
2559
|
logStreamNamePrefix?: string;
|
|
@@ -3493,7 +3525,7 @@ export interface PutAccountPolicyRequest {
|
|
|
3493
3525
|
* </li>
|
|
3494
3526
|
* <li>
|
|
3495
3527
|
* <p>
|
|
3496
|
-
* <b>Distribution</b>The method used to distribute log data to the destination.
|
|
3528
|
+
* <b>Distribution</b> The method used to distribute log data to the destination.
|
|
3497
3529
|
* By default, log data is
|
|
3498
3530
|
* grouped by log stream, but the grouping can be set to <code>Random</code> for a more even distribution.
|
|
3499
3531
|
* This property is only applicable when the destination is an Kinesis Data Streams data stream.</p>
|
|
@@ -3687,11 +3719,15 @@ export interface PutDeliverySourceRequest {
|
|
|
3687
3719
|
* <p>Defines the type of log that the source is sending.</p>
|
|
3688
3720
|
* <ul>
|
|
3689
3721
|
* <li>
|
|
3722
|
+
* <p>For Amazon Bedrock, the valid value is
|
|
3723
|
+
* <code>APPLICATION_LOGS</code>.</p>
|
|
3724
|
+
* </li>
|
|
3725
|
+
* <li>
|
|
3690
3726
|
* <p>For Amazon CodeWhisperer, the valid value is
|
|
3691
3727
|
* <code>EVENT_LOGS</code>.</p>
|
|
3692
3728
|
* </li>
|
|
3693
3729
|
* <li>
|
|
3694
|
-
* <p>For IAM Identity
|
|
3730
|
+
* <p>For IAM Identity Center, the valid value is
|
|
3695
3731
|
* <code>ERROR_LOGS</code>.</p>
|
|
3696
3732
|
* </li>
|
|
3697
3733
|
* <li>
|
|
@@ -3822,6 +3858,22 @@ export interface PutLogEventsRequest {
|
|
|
3822
3858
|
* @public
|
|
3823
3859
|
*/
|
|
3824
3860
|
sequenceToken?: string;
|
|
3861
|
+
/**
|
|
3862
|
+
* <p>Reserved for future use.</p>
|
|
3863
|
+
* @public
|
|
3864
|
+
*/
|
|
3865
|
+
entity?: Entity;
|
|
3866
|
+
}
|
|
3867
|
+
/**
|
|
3868
|
+
* <p>Reserved for future use.</p>
|
|
3869
|
+
* @public
|
|
3870
|
+
*/
|
|
3871
|
+
export interface RejectedEntityInfo {
|
|
3872
|
+
/**
|
|
3873
|
+
* <p>Reserved for future use.</p>
|
|
3874
|
+
* @public
|
|
3875
|
+
*/
|
|
3876
|
+
errorType: EntityRejectionErrorType | undefined;
|
|
3825
3877
|
}
|
|
3826
3878
|
/**
|
|
3827
3879
|
* <p>Represents the rejected events.</p>
|
|
@@ -3867,6 +3919,11 @@ export interface PutLogEventsResponse {
|
|
|
3867
3919
|
* @public
|
|
3868
3920
|
*/
|
|
3869
3921
|
rejectedLogEventsInfo?: RejectedLogEventsInfo;
|
|
3922
|
+
/**
|
|
3923
|
+
* <p>Reserved for future use.</p>
|
|
3924
|
+
* @public
|
|
3925
|
+
*/
|
|
3926
|
+
rejectedEntityInfo?: RejectedEntityInfo;
|
|
3870
3927
|
}
|
|
3871
3928
|
/**
|
|
3872
3929
|
* <p>The most likely cause is an Amazon Web Services access key ID or secret key that's not
|
|
@@ -622,6 +622,21 @@ export interface DisassociateKmsKeyRequest {
|
|
|
622
622
|
logGroupName?: string;
|
|
623
623
|
resourceIdentifier?: string;
|
|
624
624
|
}
|
|
625
|
+
export interface Entity {
|
|
626
|
+
keyAttributes?: Record<string, string>;
|
|
627
|
+
attributes?: Record<string, string>;
|
|
628
|
+
}
|
|
629
|
+
export declare const EntityRejectionErrorType: {
|
|
630
|
+
readonly ENTITY_SIZE_TOO_LARGE: "EntitySizeTooLarge";
|
|
631
|
+
readonly INVALID_ATTRIBUTES: "InvalidAttributes";
|
|
632
|
+
readonly INVALID_ENTITY: "InvalidEntity";
|
|
633
|
+
readonly INVALID_KEY_ATTRIBUTE: "InvalidKeyAttributes";
|
|
634
|
+
readonly INVALID_TYPE_VALUE: "InvalidTypeValue";
|
|
635
|
+
readonly MISSING_REQUIRED_FIELDS: "MissingRequiredFields";
|
|
636
|
+
readonly UNSUPPORTED_LOG_GROUP_TYPE: "UnsupportedLogGroupType";
|
|
637
|
+
};
|
|
638
|
+
export type EntityRejectionErrorType =
|
|
639
|
+
(typeof EntityRejectionErrorType)[keyof typeof EntityRejectionErrorType];
|
|
625
640
|
export interface FilteredLogEvent {
|
|
626
641
|
logStreamName?: string;
|
|
627
642
|
timestamp?: number;
|
|
@@ -894,6 +909,10 @@ export interface PutLogEventsRequest {
|
|
|
894
909
|
logStreamName: string | undefined;
|
|
895
910
|
logEvents: InputLogEvent[] | undefined;
|
|
896
911
|
sequenceToken?: string;
|
|
912
|
+
entity?: Entity;
|
|
913
|
+
}
|
|
914
|
+
export interface RejectedEntityInfo {
|
|
915
|
+
errorType: EntityRejectionErrorType | undefined;
|
|
897
916
|
}
|
|
898
917
|
export interface RejectedLogEventsInfo {
|
|
899
918
|
tooNewLogEventStartIndex?: number;
|
|
@@ -903,6 +922,7 @@ export interface RejectedLogEventsInfo {
|
|
|
903
922
|
export interface PutLogEventsResponse {
|
|
904
923
|
nextSequenceToken?: string;
|
|
905
924
|
rejectedLogEventsInfo?: RejectedLogEventsInfo;
|
|
925
|
+
rejectedEntityInfo?: RejectedEntityInfo;
|
|
906
926
|
}
|
|
907
927
|
export declare class UnrecognizedClientException extends __BaseException {
|
|
908
928
|
readonly name: "UnrecognizedClientException";
|
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.643.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",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.637.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.637.0",
|
|
25
25
|
"@aws-sdk/core": "3.635.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.637.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.620.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.609.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.620.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.637.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.614.0",
|
|
32
32
|
"@aws-sdk/types": "3.609.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.637.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.609.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.614.0",
|
|
36
36
|
"@smithy/config-resolver": "^3.0.5",
|