@aws-sdk/client-cloudwatch-logs 3.750.0 → 3.767.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
CHANGED
|
@@ -19,8 +19,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
20
|
|
|
21
21
|
// src/index.ts
|
|
22
|
-
var
|
|
23
|
-
__export(
|
|
22
|
+
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
24
|
AccessDeniedException: () => AccessDeniedException,
|
|
25
25
|
AnomalyDetectorStatus: () => AnomalyDetectorStatus,
|
|
26
26
|
AssociateKmsKeyCommand: () => AssociateKmsKeyCommand,
|
|
@@ -179,7 +179,7 @@ __export(src_exports, {
|
|
|
179
179
|
paginateListLogAnomalyDetectors: () => paginateListLogAnomalyDetectors,
|
|
180
180
|
paginateListLogGroupsForQuery: () => paginateListLogGroupsForQuery
|
|
181
181
|
});
|
|
182
|
-
module.exports = __toCommonJS(
|
|
182
|
+
module.exports = __toCommonJS(index_exports);
|
|
183
183
|
|
|
184
184
|
// src/CloudWatchLogsClient.ts
|
|
185
185
|
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
@@ -308,9 +308,9 @@ var CloudWatchLogsClient = class extends import_smithy_client.Client {
|
|
|
308
308
|
this.middlewareStack.use(
|
|
309
309
|
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
310
310
|
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultCloudWatchLogsHttpAuthSchemeParametersProvider,
|
|
311
|
-
identityProviderConfigProvider: async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
311
|
+
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
312
312
|
"aws.auth#sigv4": config.credentials
|
|
313
|
-
})
|
|
313
|
+
}), "identityProviderConfigProvider")
|
|
314
314
|
})
|
|
315
315
|
);
|
|
316
316
|
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
@@ -838,10 +838,8 @@ var SessionTimeoutException = class _SessionTimeoutException extends CloudWatchL
|
|
|
838
838
|
var StartLiveTailResponseStream;
|
|
839
839
|
((StartLiveTailResponseStream3) => {
|
|
840
840
|
StartLiveTailResponseStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
841
|
-
if (value.sessionStart !== void 0)
|
|
842
|
-
|
|
843
|
-
if (value.sessionUpdate !== void 0)
|
|
844
|
-
return visitor.sessionUpdate(value.sessionUpdate);
|
|
841
|
+
if (value.sessionStart !== void 0) return visitor.sessionStart(value.sessionStart);
|
|
842
|
+
if (value.sessionUpdate !== void 0) return visitor.sessionUpdate(value.sessionUpdate);
|
|
845
843
|
if (value.SessionTimeoutException !== void 0)
|
|
846
844
|
return visitor.SessionTimeoutException(value.SessionTimeoutException);
|
|
847
845
|
if (value.SessionStreamingException !== void 0)
|
|
@@ -907,16 +905,11 @@ var SuppressionType = {
|
|
|
907
905
|
LIMITED: "LIMITED"
|
|
908
906
|
};
|
|
909
907
|
var StartLiveTailResponseStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
910
|
-
if (obj.sessionStart !== void 0)
|
|
911
|
-
|
|
912
|
-
if (obj.
|
|
913
|
-
|
|
914
|
-
if (obj
|
|
915
|
-
return { SessionTimeoutException: obj.SessionTimeoutException };
|
|
916
|
-
if (obj.SessionStreamingException !== void 0)
|
|
917
|
-
return { SessionStreamingException: obj.SessionStreamingException };
|
|
918
|
-
if (obj.$unknown !== void 0)
|
|
919
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
908
|
+
if (obj.sessionStart !== void 0) return { sessionStart: obj.sessionStart };
|
|
909
|
+
if (obj.sessionUpdate !== void 0) return { sessionUpdate: obj.sessionUpdate };
|
|
910
|
+
if (obj.SessionTimeoutException !== void 0) return { SessionTimeoutException: obj.SessionTimeoutException };
|
|
911
|
+
if (obj.SessionStreamingException !== void 0) return { SessionStreamingException: obj.SessionStreamingException };
|
|
912
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
920
913
|
}, "StartLiveTailResponseStreamFilterSensitiveLog");
|
|
921
914
|
var StartLiveTailResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
922
915
|
...obj,
|
|
@@ -2840,7 +2833,7 @@ var se_PutMetricFilterRequest = /* @__PURE__ */ __name((input, context) => {
|
|
|
2840
2833
|
filterName: [],
|
|
2841
2834
|
filterPattern: [],
|
|
2842
2835
|
logGroupName: [],
|
|
2843
|
-
metricTransformations: (_) => se_MetricTransformations(_, context)
|
|
2836
|
+
metricTransformations: /* @__PURE__ */ __name((_) => se_MetricTransformations(_, context), "metricTransformations")
|
|
2844
2837
|
});
|
|
2845
2838
|
}, "se_PutMetricFilterRequest");
|
|
2846
2839
|
var se_PutQueryDefinitionRequest = /* @__PURE__ */ __name((input, context) => {
|
|
@@ -2855,7 +2848,7 @@ var se_PutQueryDefinitionRequest = /* @__PURE__ */ __name((input, context) => {
|
|
|
2855
2848
|
}, "se_PutQueryDefinitionRequest");
|
|
2856
2849
|
var de_DescribeMetricFiltersResponse = /* @__PURE__ */ __name((output, context) => {
|
|
2857
2850
|
return (0, import_smithy_client.take)(output, {
|
|
2858
|
-
metricFilters: (_) => de_MetricFilters(_, context),
|
|
2851
|
+
metricFilters: /* @__PURE__ */ __name((_) => de_MetricFilters(_, context), "metricFilters"),
|
|
2859
2852
|
nextToken: import_smithy_client.expectString
|
|
2860
2853
|
});
|
|
2861
2854
|
}, "de_DescribeMetricFiltersResponse");
|
|
@@ -2864,7 +2857,7 @@ var de_GetQueryResultsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
|
2864
2857
|
encryptionKey: import_smithy_client.expectString,
|
|
2865
2858
|
queryLanguage: import_smithy_client.expectString,
|
|
2866
2859
|
results: import_smithy_client._json,
|
|
2867
|
-
statistics: (_) => de_QueryStatistics(_, context),
|
|
2860
|
+
statistics: /* @__PURE__ */ __name((_) => de_QueryStatistics(_, context), "statistics"),
|
|
2868
2861
|
status: import_smithy_client.expectString
|
|
2869
2862
|
});
|
|
2870
2863
|
}, "de_GetQueryResultsResponse");
|
|
@@ -2875,7 +2868,7 @@ var de_MetricFilter = /* @__PURE__ */ __name((output, context) => {
|
|
|
2875
2868
|
filterName: import_smithy_client.expectString,
|
|
2876
2869
|
filterPattern: import_smithy_client.expectString,
|
|
2877
2870
|
logGroupName: import_smithy_client.expectString,
|
|
2878
|
-
metricTransformations: (_) => de_MetricTransformations(_, context)
|
|
2871
|
+
metricTransformations: /* @__PURE__ */ __name((_) => de_MetricTransformations(_, context), "metricTransformations")
|
|
2879
2872
|
});
|
|
2880
2873
|
}, "de_MetricFilter");
|
|
2881
2874
|
var de_MetricFilters = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -28,21 +28,43 @@ declare const FilterLogEventsCommand_base: {
|
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* <p>Lists log events from the specified log group. You can list all the log events or filter the results
|
|
31
|
-
* using
|
|
31
|
+
* using one or more of the following:</p>
|
|
32
|
+
* <ul>
|
|
33
|
+
* <li>
|
|
34
|
+
* <p>A filter pattern</p>
|
|
35
|
+
* </li>
|
|
36
|
+
* <li>
|
|
37
|
+
* <p>A time range</p>
|
|
38
|
+
* </li>
|
|
39
|
+
* <li>
|
|
40
|
+
* <p>The log stream name, or a log stream name prefix that matches mutltiple log streams</p>
|
|
41
|
+
* </li>
|
|
42
|
+
* </ul>
|
|
32
43
|
* <p>You must have the <code>logs:FilterLogEvents</code> permission to perform this operation.</p>
|
|
33
44
|
* <p>You can specify the log group to search by using either <code>logGroupIdentifier</code> or <code>logGroupName</code>.
|
|
34
45
|
* You must include one of these two parameters, but you can't include both.
|
|
35
46
|
* </p>
|
|
36
|
-
* <p>
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
47
|
+
* <p>
|
|
48
|
+
* <code>FilterLogEvents</code> is a paginated operation. Each page returned can contain up to 1 MB of log events or up to 10,000 log events. A returned page might only be partially full, or even empty.
|
|
49
|
+
* For example, if the result of a query would return 15,000 log events, the first page isn't guaranteed to have 10,000 log events even if they all fit into 1 MB.</p>
|
|
50
|
+
* <p>Partially full or empty pages
|
|
51
|
+
* don't necessarily mean that pagination is finished. If the results include a <code>nextToken</code>, there might be more log events available. You can return these additional log events by providing the nextToken in a subsequent
|
|
52
|
+
* <code>FilterLogEvents</code> operation. If the results don't include a <code>nextToken</code>, then pagination is finished. </p>
|
|
53
|
+
* <note>
|
|
54
|
+
* <p>If you set <code>startFromHead</code> to <code>true</code> and you don’t include <code>endTime</code> in your request, you can end up in a situation where the pagination doesn't terminate.
|
|
55
|
+
* This can happen when the new log events are being added to the target log streams
|
|
56
|
+
* faster than they are being read. This situation is a good use case for the CloudWatch Logs <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatchLogs_LiveTail.html">Live Tail</a> feature.</p>
|
|
57
|
+
* </note>
|
|
41
58
|
* <p>The returned log events are sorted by event timestamp, the timestamp when the event was ingested
|
|
42
59
|
* by CloudWatch Logs, and the ID of the <code>PutLogEvents</code> request.</p>
|
|
43
60
|
* <p>If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account and
|
|
44
61
|
* view data from the linked source accounts. For more information, see
|
|
45
62
|
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch cross-account observability</a>.</p>
|
|
63
|
+
* <note>
|
|
64
|
+
* <p>If you are using <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html">log transformation</a>, the <code>FilterLogEvents</code> operation returns only the original versions of log events, before they
|
|
65
|
+
* were transformed. To view the transformed versions, you must use a <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AnalyzingLogData.html">CloudWatch Logs query.</a>
|
|
66
|
+
* </p>
|
|
67
|
+
* </note>
|
|
46
68
|
* @example
|
|
47
69
|
* Use a bare-bones client and the command you need to make an API call.
|
|
48
70
|
* ```javascript
|
|
@@ -27,7 +27,7 @@ declare const GetLogAnomalyDetectorCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Retrieves information about the log anomaly detector that you specify.</p>
|
|
30
|
+
* <p>Retrieves information about the log anomaly detector that you specify. The KMS key ARN detected is valid.</p>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -29,15 +29,29 @@ declare const GetLogEventsCommand_base: {
|
|
|
29
29
|
/**
|
|
30
30
|
* <p>Lists log events from the specified log stream. You can list all of the log events or
|
|
31
31
|
* filter using a time range.</p>
|
|
32
|
-
* <p>
|
|
33
|
-
*
|
|
34
|
-
*
|
|
32
|
+
* <p>
|
|
33
|
+
* <code>GetLogEvents</code> is a paginated operation. Each page returned can contain up to 1 MB of log events or up to 10,000 log events. A returned page might only be partially full, or even empty.
|
|
34
|
+
* For example, if the result of a query would return 15,000 log events, the first page isn't guaranteed to have 10,000 log events even if they all fit into 1 MB.</p>
|
|
35
|
+
* <p>Partially full or empty pages
|
|
36
|
+
* don't necessarily mean that pagination is finished. As long as the <code>nextBackwardToken</code> or <code>nextForwardToken</code> returned is NOT equal to the <code>nextToken</code>
|
|
37
|
+
* that you passed into the API call, there might be more
|
|
38
|
+
* log events available. The token that you use depends on the direction you want to move in along the log stream. The returned tokens are never null.</p>
|
|
39
|
+
* <note>
|
|
40
|
+
* <p>If you set <code>startFromHead</code> to <code>true</code> and you don’t include <code>endTime</code> in your request, you can end up in a situation where the pagination doesn't terminate.
|
|
41
|
+
* This can happen when the new log events are being added to the target log streams
|
|
42
|
+
* faster than they are being read. This situation is a good use case for the CloudWatch Logs <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatchLogs_LiveTail.html">Live Tail</a> feature.</p>
|
|
43
|
+
* </note>
|
|
35
44
|
* <p>If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account and
|
|
36
45
|
* view data from the linked source accounts. For more information, see
|
|
37
46
|
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch cross-account observability</a>.</p>
|
|
38
47
|
* <p>You can specify the log group to search by using either <code>logGroupIdentifier</code> or <code>logGroupName</code>.
|
|
39
48
|
* You must include one of these two parameters, but you can't include both.
|
|
40
49
|
* </p>
|
|
50
|
+
* <note>
|
|
51
|
+
* <p>If you are using <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html">log transformation</a>, the <code>GetLogEvents</code> operation returns only the original versions of log events, before they
|
|
52
|
+
* were transformed. To view the transformed versions, you must use a <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AnalyzingLogData.html">CloudWatch Logs query.</a>
|
|
53
|
+
* </p>
|
|
54
|
+
* </note>
|
|
41
55
|
* @example
|
|
42
56
|
* Use a bare-bones client and the command you need to make an API call.
|
|
43
57
|
* ```javascript
|
|
@@ -398,7 +398,7 @@ export interface AnomalyDetector {
|
|
|
398
398
|
*/
|
|
399
399
|
anomalyDetectorStatus?: AnomalyDetectorStatus | undefined;
|
|
400
400
|
/**
|
|
401
|
-
* <p>The
|
|
401
|
+
* <p>The ARN of the KMS key assigned to this anomaly detector, if any.</p>
|
|
402
402
|
* @public
|
|
403
403
|
*/
|
|
404
404
|
kmsKeyId?: string | undefined;
|
|
@@ -982,7 +982,7 @@ export interface CreateLogAnomalyDetectorRequest {
|
|
|
982
982
|
* assigned, the anomalies found and the model used by this detector are encrypted at rest with the key. If
|
|
983
983
|
* a key is assigned to an anomaly detector, a user must have permissions for both this key and for the
|
|
984
984
|
* anomaly detector to retrieve information about the anomalies that it finds.</p>
|
|
985
|
-
* <p>For more information about using a KMS key and to see the required IAM
|
|
985
|
+
* <p> Make sure the value provided is a valid KMS key ARN. For more information about using a KMS key and to see the required IAM
|
|
986
986
|
* policy, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/LogsAnomalyDetection-KMS.html">Use a KMS key with an anomaly detector</a>.</p>
|
|
987
987
|
* @public
|
|
988
988
|
*/
|
|
@@ -3301,6 +3301,7 @@ export interface FilterLogEventsResponse {
|
|
|
3301
3301
|
searchedLogStreams?: SearchedLogStream[] | undefined;
|
|
3302
3302
|
/**
|
|
3303
3303
|
* <p>The token to use when requesting the next set of items. The token expires after 24 hours.</p>
|
|
3304
|
+
* <p>If the results don't include a <code>nextToken</code>, then pagination is finished. </p>
|
|
3304
3305
|
* @public
|
|
3305
3306
|
*/
|
|
3306
3307
|
nextToken?: string | undefined;
|
|
@@ -3844,7 +3845,7 @@ export interface GetLogAnomalyDetectorResponse {
|
|
|
3844
3845
|
*/
|
|
3845
3846
|
anomalyDetectorStatus?: AnomalyDetectorStatus | undefined;
|
|
3846
3847
|
/**
|
|
3847
|
-
* <p>The
|
|
3848
|
+
* <p>The ARN of the KMS key assigned to this anomaly detector, if any.</p>
|
|
3848
3849
|
* @public
|
|
3849
3850
|
*/
|
|
3850
3851
|
kmsKeyId?: string | undefined;
|
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.767.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,19 +20,19 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.758.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.758.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.734.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.734.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.734.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.758.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.734.0",
|
|
30
30
|
"@aws-sdk/types": "3.734.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.743.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.734.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.758.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.0.1",
|
|
35
|
-
"@smithy/core": "^3.1.
|
|
35
|
+
"@smithy/core": "^3.1.5",
|
|
36
36
|
"@smithy/eventstream-serde-browser": "^4.0.1",
|
|
37
37
|
"@smithy/eventstream-serde-config-resolver": "^4.0.1",
|
|
38
38
|
"@smithy/eventstream-serde-node": "^4.0.1",
|
|
@@ -40,21 +40,21 @@
|
|
|
40
40
|
"@smithy/hash-node": "^4.0.1",
|
|
41
41
|
"@smithy/invalid-dependency": "^4.0.1",
|
|
42
42
|
"@smithy/middleware-content-length": "^4.0.1",
|
|
43
|
-
"@smithy/middleware-endpoint": "^4.0.
|
|
44
|
-
"@smithy/middleware-retry": "^4.0.
|
|
43
|
+
"@smithy/middleware-endpoint": "^4.0.6",
|
|
44
|
+
"@smithy/middleware-retry": "^4.0.7",
|
|
45
45
|
"@smithy/middleware-serde": "^4.0.2",
|
|
46
46
|
"@smithy/middleware-stack": "^4.0.1",
|
|
47
47
|
"@smithy/node-config-provider": "^4.0.1",
|
|
48
|
-
"@smithy/node-http-handler": "^4.0.
|
|
48
|
+
"@smithy/node-http-handler": "^4.0.3",
|
|
49
49
|
"@smithy/protocol-http": "^5.0.1",
|
|
50
|
-
"@smithy/smithy-client": "^4.1.
|
|
50
|
+
"@smithy/smithy-client": "^4.1.6",
|
|
51
51
|
"@smithy/types": "^4.1.0",
|
|
52
52
|
"@smithy/url-parser": "^4.0.1",
|
|
53
53
|
"@smithy/util-base64": "^4.0.0",
|
|
54
54
|
"@smithy/util-body-length-browser": "^4.0.0",
|
|
55
55
|
"@smithy/util-body-length-node": "^4.0.0",
|
|
56
|
-
"@smithy/util-defaults-mode-browser": "^4.0.
|
|
57
|
-
"@smithy/util-defaults-mode-node": "^4.0.
|
|
56
|
+
"@smithy/util-defaults-mode-browser": "^4.0.7",
|
|
57
|
+
"@smithy/util-defaults-mode-node": "^4.0.7",
|
|
58
58
|
"@smithy/util-endpoints": "^3.0.1",
|
|
59
59
|
"@smithy/util-middleware": "^4.0.1",
|
|
60
60
|
"@smithy/util-retry": "^4.0.1",
|