@aws-sdk/client-cloudwatch-logs 3.46.0 → 3.48.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/CHANGELOG.md +35 -0
- package/dist-cjs/endpoints.js +0 -16
- package/dist-cjs/models/models_0.js +2 -69
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +10 -2
- package/dist-es/endpoints.js +0 -16
- package/dist-es/models/models_0.js +0 -44
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -4
- package/dist-types/CloudWatchLogsClient.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +0 -66
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/CloudWatchLogsClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -44
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +35 -35
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.48.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.2...v3.48.0) (2022-01-22)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-cloudwatch-logs
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-cloudwatch-logs
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @aws-sdk/client-cloudwatch-logs
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
7
42
|
|
|
8
43
|
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
|
5
5
|
const regionHash = {
|
|
6
6
|
"us-east-1": {
|
|
7
7
|
variants: [
|
|
8
|
-
{
|
|
9
|
-
hostname: "logs.us-east-1.amazonaws.com",
|
|
10
|
-
tags: [],
|
|
11
|
-
},
|
|
12
8
|
{
|
|
13
9
|
hostname: "logs-fips.us-east-1.amazonaws.com",
|
|
14
10
|
tags: ["fips"],
|
|
@@ -17,10 +13,6 @@ const regionHash = {
|
|
|
17
13
|
},
|
|
18
14
|
"us-east-2": {
|
|
19
15
|
variants: [
|
|
20
|
-
{
|
|
21
|
-
hostname: "logs.us-east-2.amazonaws.com",
|
|
22
|
-
tags: [],
|
|
23
|
-
},
|
|
24
16
|
{
|
|
25
17
|
hostname: "logs-fips.us-east-2.amazonaws.com",
|
|
26
18
|
tags: ["fips"],
|
|
@@ -47,10 +39,6 @@ const regionHash = {
|
|
|
47
39
|
},
|
|
48
40
|
"us-west-1": {
|
|
49
41
|
variants: [
|
|
50
|
-
{
|
|
51
|
-
hostname: "logs.us-west-1.amazonaws.com",
|
|
52
|
-
tags: [],
|
|
53
|
-
},
|
|
54
42
|
{
|
|
55
43
|
hostname: "logs-fips.us-west-1.amazonaws.com",
|
|
56
44
|
tags: ["fips"],
|
|
@@ -59,10 +47,6 @@ const regionHash = {
|
|
|
59
47
|
},
|
|
60
48
|
"us-west-2": {
|
|
61
49
|
variants: [
|
|
62
|
-
{
|
|
63
|
-
hostname: "logs.us-west-2.amazonaws.com",
|
|
64
|
-
tags: [],
|
|
65
|
-
},
|
|
66
50
|
{
|
|
67
51
|
hostname: "logs-fips.us-west-2.amazonaws.com",
|
|
68
52
|
tags: ["fips"],
|
|
@@ -1,50 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.QueryDefinition = exports.DescribeQueryDefinitionsRequest = exports.DescribeQueriesResponse = exports.QueryInfo = exports.DescribeQueriesRequest = exports.QueryStatus = exports.DescribeMetricFiltersResponse = exports.MetricFilter = exports.MetricTransformation = exports.StandardUnit = exports.DescribeMetricFiltersRequest = exports.DescribeLogStreamsResponse = exports.LogStream = exports.DescribeLogStreamsRequest = exports.OrderBy = exports.DescribeLogGroupsResponse = exports.LogGroup = exports.DescribeLogGroupsRequest = exports.DescribeExportTasksResponse = exports.ExportTask = exports.ExportTaskStatus = exports.ExportTaskExecutionInfo = exports.DescribeExportTasksRequest = exports.ExportTaskStatusCode = exports.DescribeDestinationsResponse = exports.Destination = exports.DescribeDestinationsRequest = exports.DeleteSubscriptionFilterRequest = exports.DeleteRetentionPolicyRequest = exports.DeleteResourcePolicyRequest = exports.DeleteQueryDefinitionResponse = exports.DeleteQueryDefinitionRequest = exports.DeleteMetricFilterRequest = exports.DeleteLogStreamRequest = exports.DeleteLogGroupRequest = exports.DeleteDestinationRequest = exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.UntagLogGroupRequest = exports.TestMetricFilterResponse = exports.MetricFilterMatchRecord = exports.TestMetricFilterRequest = exports.TagLogGroupRequest = void 0;
|
|
3
|
+
exports.DescribeSubscriptionFiltersResponse = exports.SubscriptionFilter = exports.Distribution = exports.DescribeSubscriptionFiltersRequest = exports.DescribeResourcePoliciesResponse = exports.ResourcePolicy = exports.DescribeResourcePoliciesRequest = exports.DescribeQueryDefinitionsResponse = exports.QueryDefinition = exports.DescribeQueryDefinitionsRequest = exports.DescribeQueriesResponse = exports.QueryInfo = exports.DescribeQueriesRequest = exports.QueryStatus = exports.DescribeMetricFiltersResponse = exports.MetricFilter = exports.MetricTransformation = exports.StandardUnit = exports.DescribeMetricFiltersRequest = exports.DescribeLogStreamsResponse = exports.LogStream = exports.DescribeLogStreamsRequest = exports.OrderBy = exports.DescribeLogGroupsResponse = exports.LogGroup = exports.DescribeLogGroupsRequest = exports.DescribeExportTasksResponse = exports.ExportTask = exports.ExportTaskStatus = exports.ExportTaskExecutionInfo = exports.DescribeExportTasksRequest = exports.ExportTaskStatusCode = exports.DescribeDestinationsResponse = exports.Destination = exports.DescribeDestinationsRequest = exports.DeleteSubscriptionFilterRequest = exports.DeleteRetentionPolicyRequest = exports.DeleteResourcePolicyRequest = exports.DeleteQueryDefinitionResponse = exports.DeleteQueryDefinitionRequest = exports.DeleteMetricFilterRequest = exports.DeleteLogStreamRequest = exports.DeleteLogGroupRequest = exports.DeleteDestinationRequest = exports.CreateLogStreamRequest = exports.CreateLogGroupRequest = exports.CreateExportTaskResponse = exports.CreateExportTaskRequest = exports.CancelExportTaskRequest = exports.AssociateKmsKeyRequest = void 0;
|
|
4
|
+
exports.UntagLogGroupRequest = exports.TestMetricFilterResponse = exports.MetricFilterMatchRecord = exports.TestMetricFilterRequest = exports.TagLogGroupRequest = exports.StopQueryResponse = exports.StopQueryRequest = exports.StartQueryResponse = exports.StartQueryRequest = exports.QueryCompileError = exports.QueryCompileErrorLocation = exports.PutSubscriptionFilterRequest = exports.PutRetentionPolicyRequest = exports.PutResourcePolicyResponse = exports.PutResourcePolicyRequest = exports.PutQueryDefinitionResponse = exports.PutQueryDefinitionRequest = exports.PutMetricFilterRequest = exports.PutLogEventsResponse = exports.RejectedLogEventsInfo = exports.PutLogEventsRequest = exports.PutDestinationPolicyRequest = exports.PutDestinationResponse = exports.PutDestinationRequest = exports.ListTagsLogGroupResponse = exports.ListTagsLogGroupRequest = exports.InputLogEvent = exports.GetQueryResultsResponse = exports.QueryStatistics = exports.ResultField = exports.GetQueryResultsRequest = exports.GetLogRecordResponse = exports.GetLogRecordRequest = exports.GetLogGroupFieldsResponse = exports.LogGroupField = exports.GetLogGroupFieldsRequest = exports.GetLogEventsResponse = exports.OutputLogEvent = exports.GetLogEventsRequest = exports.FilterLogEventsResponse = exports.SearchedLogStream = exports.FilterLogEventsRequest = exports.FilteredLogEvent = exports.DisassociateKmsKeyRequest = void 0;
|
|
6
5
|
var AssociateKmsKeyRequest;
|
|
7
6
|
(function (AssociateKmsKeyRequest) {
|
|
8
7
|
AssociateKmsKeyRequest.filterSensitiveLog = (obj) => ({
|
|
9
8
|
...obj,
|
|
10
9
|
});
|
|
11
10
|
})(AssociateKmsKeyRequest = exports.AssociateKmsKeyRequest || (exports.AssociateKmsKeyRequest = {}));
|
|
12
|
-
var InvalidParameterException;
|
|
13
|
-
(function (InvalidParameterException) {
|
|
14
|
-
InvalidParameterException.filterSensitiveLog = (obj) => ({
|
|
15
|
-
...obj,
|
|
16
|
-
});
|
|
17
|
-
})(InvalidParameterException = exports.InvalidParameterException || (exports.InvalidParameterException = {}));
|
|
18
|
-
var OperationAbortedException;
|
|
19
|
-
(function (OperationAbortedException) {
|
|
20
|
-
OperationAbortedException.filterSensitiveLog = (obj) => ({
|
|
21
|
-
...obj,
|
|
22
|
-
});
|
|
23
|
-
})(OperationAbortedException = exports.OperationAbortedException || (exports.OperationAbortedException = {}));
|
|
24
|
-
var ResourceNotFoundException;
|
|
25
|
-
(function (ResourceNotFoundException) {
|
|
26
|
-
ResourceNotFoundException.filterSensitiveLog = (obj) => ({
|
|
27
|
-
...obj,
|
|
28
|
-
});
|
|
29
|
-
})(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
|
|
30
|
-
var ServiceUnavailableException;
|
|
31
|
-
(function (ServiceUnavailableException) {
|
|
32
|
-
ServiceUnavailableException.filterSensitiveLog = (obj) => ({
|
|
33
|
-
...obj,
|
|
34
|
-
});
|
|
35
|
-
})(ServiceUnavailableException = exports.ServiceUnavailableException || (exports.ServiceUnavailableException = {}));
|
|
36
11
|
var CancelExportTaskRequest;
|
|
37
12
|
(function (CancelExportTaskRequest) {
|
|
38
13
|
CancelExportTaskRequest.filterSensitiveLog = (obj) => ({
|
|
39
14
|
...obj,
|
|
40
15
|
});
|
|
41
16
|
})(CancelExportTaskRequest = exports.CancelExportTaskRequest || (exports.CancelExportTaskRequest = {}));
|
|
42
|
-
var InvalidOperationException;
|
|
43
|
-
(function (InvalidOperationException) {
|
|
44
|
-
InvalidOperationException.filterSensitiveLog = (obj) => ({
|
|
45
|
-
...obj,
|
|
46
|
-
});
|
|
47
|
-
})(InvalidOperationException = exports.InvalidOperationException || (exports.InvalidOperationException = {}));
|
|
48
17
|
var CreateExportTaskRequest;
|
|
49
18
|
(function (CreateExportTaskRequest) {
|
|
50
19
|
CreateExportTaskRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -57,18 +26,6 @@ var CreateExportTaskResponse;
|
|
|
57
26
|
...obj,
|
|
58
27
|
});
|
|
59
28
|
})(CreateExportTaskResponse = exports.CreateExportTaskResponse || (exports.CreateExportTaskResponse = {}));
|
|
60
|
-
var LimitExceededException;
|
|
61
|
-
(function (LimitExceededException) {
|
|
62
|
-
LimitExceededException.filterSensitiveLog = (obj) => ({
|
|
63
|
-
...obj,
|
|
64
|
-
});
|
|
65
|
-
})(LimitExceededException = exports.LimitExceededException || (exports.LimitExceededException = {}));
|
|
66
|
-
var ResourceAlreadyExistsException;
|
|
67
|
-
(function (ResourceAlreadyExistsException) {
|
|
68
|
-
ResourceAlreadyExistsException.filterSensitiveLog = (obj) => ({
|
|
69
|
-
...obj,
|
|
70
|
-
});
|
|
71
|
-
})(ResourceAlreadyExistsException = exports.ResourceAlreadyExistsException || (exports.ResourceAlreadyExistsException = {}));
|
|
72
29
|
var CreateLogGroupRequest;
|
|
73
30
|
(function (CreateLogGroupRequest) {
|
|
74
31
|
CreateLogGroupRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -81,12 +38,6 @@ var CreateLogStreamRequest;
|
|
|
81
38
|
...obj,
|
|
82
39
|
});
|
|
83
40
|
})(CreateLogStreamRequest = exports.CreateLogStreamRequest || (exports.CreateLogStreamRequest = {}));
|
|
84
|
-
var DataAlreadyAcceptedException;
|
|
85
|
-
(function (DataAlreadyAcceptedException) {
|
|
86
|
-
DataAlreadyAcceptedException.filterSensitiveLog = (obj) => ({
|
|
87
|
-
...obj,
|
|
88
|
-
});
|
|
89
|
-
})(DataAlreadyAcceptedException = exports.DataAlreadyAcceptedException || (exports.DataAlreadyAcceptedException = {}));
|
|
90
41
|
var DeleteDestinationRequest;
|
|
91
42
|
(function (DeleteDestinationRequest) {
|
|
92
43
|
DeleteDestinationRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -488,12 +439,6 @@ var InputLogEvent;
|
|
|
488
439
|
...obj,
|
|
489
440
|
});
|
|
490
441
|
})(InputLogEvent = exports.InputLogEvent || (exports.InputLogEvent = {}));
|
|
491
|
-
var InvalidSequenceTokenException;
|
|
492
|
-
(function (InvalidSequenceTokenException) {
|
|
493
|
-
InvalidSequenceTokenException.filterSensitiveLog = (obj) => ({
|
|
494
|
-
...obj,
|
|
495
|
-
});
|
|
496
|
-
})(InvalidSequenceTokenException = exports.InvalidSequenceTokenException || (exports.InvalidSequenceTokenException = {}));
|
|
497
442
|
var ListTagsLogGroupRequest;
|
|
498
443
|
(function (ListTagsLogGroupRequest) {
|
|
499
444
|
ListTagsLogGroupRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -542,12 +487,6 @@ var PutLogEventsResponse;
|
|
|
542
487
|
...obj,
|
|
543
488
|
});
|
|
544
489
|
})(PutLogEventsResponse = exports.PutLogEventsResponse || (exports.PutLogEventsResponse = {}));
|
|
545
|
-
var UnrecognizedClientException;
|
|
546
|
-
(function (UnrecognizedClientException) {
|
|
547
|
-
UnrecognizedClientException.filterSensitiveLog = (obj) => ({
|
|
548
|
-
...obj,
|
|
549
|
-
});
|
|
550
|
-
})(UnrecognizedClientException = exports.UnrecognizedClientException || (exports.UnrecognizedClientException = {}));
|
|
551
490
|
var PutMetricFilterRequest;
|
|
552
491
|
(function (PutMetricFilterRequest) {
|
|
553
492
|
PutMetricFilterRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -602,12 +541,6 @@ var QueryCompileError;
|
|
|
602
541
|
...obj,
|
|
603
542
|
});
|
|
604
543
|
})(QueryCompileError = exports.QueryCompileError || (exports.QueryCompileError = {}));
|
|
605
|
-
var MalformedQueryException;
|
|
606
|
-
(function (MalformedQueryException) {
|
|
607
|
-
MalformedQueryException.filterSensitiveLog = (obj) => ({
|
|
608
|
-
...obj,
|
|
609
|
-
});
|
|
610
|
-
})(MalformedQueryException = exports.MalformedQueryException || (exports.MalformedQueryException = {}));
|
|
611
544
|
var StartQueryRequest;
|
|
612
545
|
(function (StartQueryRequest) {
|
|
613
546
|
StartQueryRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
13
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
16
18
|
const getRuntimeConfig = (config) => {
|
|
17
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
18
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
23
|
return {
|
|
20
24
|
...clientSharedValues,
|
|
21
25
|
...config,
|
|
22
26
|
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
23
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
24
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
25
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
|
|
|
27
32
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
34
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
30
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
|
|
31
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() =>
|
|
35
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
32
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
33
38
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
34
39
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
@@ -15,13 +15,18 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
|
15
15
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
18
20
|
const getRuntimeConfig = (config) => {
|
|
19
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
20
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
21
25
|
return {
|
|
22
26
|
...clientSharedValues,
|
|
23
27
|
...config,
|
|
24
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
25
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
26
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
27
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -29,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
29
34
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
30
35
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
31
36
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
32
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
33
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
37
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
34
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
35
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
36
44
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
package/dist-es/endpoints.js
CHANGED
|
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
|
3
3
|
var regionHash = {
|
|
4
4
|
"us-east-1": {
|
|
5
5
|
variants: [
|
|
6
|
-
{
|
|
7
|
-
hostname: "logs.us-east-1.amazonaws.com",
|
|
8
|
-
tags: [],
|
|
9
|
-
},
|
|
10
6
|
{
|
|
11
7
|
hostname: "logs-fips.us-east-1.amazonaws.com",
|
|
12
8
|
tags: ["fips"],
|
|
@@ -15,10 +11,6 @@ var regionHash = {
|
|
|
15
11
|
},
|
|
16
12
|
"us-east-2": {
|
|
17
13
|
variants: [
|
|
18
|
-
{
|
|
19
|
-
hostname: "logs.us-east-2.amazonaws.com",
|
|
20
|
-
tags: [],
|
|
21
|
-
},
|
|
22
14
|
{
|
|
23
15
|
hostname: "logs-fips.us-east-2.amazonaws.com",
|
|
24
16
|
tags: ["fips"],
|
|
@@ -45,10 +37,6 @@ var regionHash = {
|
|
|
45
37
|
},
|
|
46
38
|
"us-west-1": {
|
|
47
39
|
variants: [
|
|
48
|
-
{
|
|
49
|
-
hostname: "logs.us-west-1.amazonaws.com",
|
|
50
|
-
tags: [],
|
|
51
|
-
},
|
|
52
40
|
{
|
|
53
41
|
hostname: "logs-fips.us-west-1.amazonaws.com",
|
|
54
42
|
tags: ["fips"],
|
|
@@ -57,10 +45,6 @@ var regionHash = {
|
|
|
57
45
|
},
|
|
58
46
|
"us-west-2": {
|
|
59
47
|
variants: [
|
|
60
|
-
{
|
|
61
|
-
hostname: "logs.us-west-2.amazonaws.com",
|
|
62
|
-
tags: [],
|
|
63
|
-
},
|
|
64
48
|
{
|
|
65
49
|
hostname: "logs-fips.us-west-2.amazonaws.com",
|
|
66
50
|
tags: ["fips"],
|
|
@@ -3,30 +3,10 @@ export var AssociateKmsKeyRequest;
|
|
|
3
3
|
(function (AssociateKmsKeyRequest) {
|
|
4
4
|
AssociateKmsKeyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
5
5
|
})(AssociateKmsKeyRequest || (AssociateKmsKeyRequest = {}));
|
|
6
|
-
export var InvalidParameterException;
|
|
7
|
-
(function (InvalidParameterException) {
|
|
8
|
-
InvalidParameterException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
9
|
-
})(InvalidParameterException || (InvalidParameterException = {}));
|
|
10
|
-
export var OperationAbortedException;
|
|
11
|
-
(function (OperationAbortedException) {
|
|
12
|
-
OperationAbortedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
13
|
-
})(OperationAbortedException || (OperationAbortedException = {}));
|
|
14
|
-
export var ResourceNotFoundException;
|
|
15
|
-
(function (ResourceNotFoundException) {
|
|
16
|
-
ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
17
|
-
})(ResourceNotFoundException || (ResourceNotFoundException = {}));
|
|
18
|
-
export var ServiceUnavailableException;
|
|
19
|
-
(function (ServiceUnavailableException) {
|
|
20
|
-
ServiceUnavailableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
21
|
-
})(ServiceUnavailableException || (ServiceUnavailableException = {}));
|
|
22
6
|
export var CancelExportTaskRequest;
|
|
23
7
|
(function (CancelExportTaskRequest) {
|
|
24
8
|
CancelExportTaskRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
25
9
|
})(CancelExportTaskRequest || (CancelExportTaskRequest = {}));
|
|
26
|
-
export var InvalidOperationException;
|
|
27
|
-
(function (InvalidOperationException) {
|
|
28
|
-
InvalidOperationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
29
|
-
})(InvalidOperationException || (InvalidOperationException = {}));
|
|
30
10
|
export var CreateExportTaskRequest;
|
|
31
11
|
(function (CreateExportTaskRequest) {
|
|
32
12
|
CreateExportTaskRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -35,14 +15,6 @@ export var CreateExportTaskResponse;
|
|
|
35
15
|
(function (CreateExportTaskResponse) {
|
|
36
16
|
CreateExportTaskResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
37
17
|
})(CreateExportTaskResponse || (CreateExportTaskResponse = {}));
|
|
38
|
-
export var LimitExceededException;
|
|
39
|
-
(function (LimitExceededException) {
|
|
40
|
-
LimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
41
|
-
})(LimitExceededException || (LimitExceededException = {}));
|
|
42
|
-
export var ResourceAlreadyExistsException;
|
|
43
|
-
(function (ResourceAlreadyExistsException) {
|
|
44
|
-
ResourceAlreadyExistsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
45
|
-
})(ResourceAlreadyExistsException || (ResourceAlreadyExistsException = {}));
|
|
46
18
|
export var CreateLogGroupRequest;
|
|
47
19
|
(function (CreateLogGroupRequest) {
|
|
48
20
|
CreateLogGroupRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -51,10 +23,6 @@ export var CreateLogStreamRequest;
|
|
|
51
23
|
(function (CreateLogStreamRequest) {
|
|
52
24
|
CreateLogStreamRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
53
25
|
})(CreateLogStreamRequest || (CreateLogStreamRequest = {}));
|
|
54
|
-
export var DataAlreadyAcceptedException;
|
|
55
|
-
(function (DataAlreadyAcceptedException) {
|
|
56
|
-
DataAlreadyAcceptedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
57
|
-
})(DataAlreadyAcceptedException || (DataAlreadyAcceptedException = {}));
|
|
58
26
|
export var DeleteDestinationRequest;
|
|
59
27
|
(function (DeleteDestinationRequest) {
|
|
60
28
|
DeleteDestinationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -342,10 +310,6 @@ export var InputLogEvent;
|
|
|
342
310
|
(function (InputLogEvent) {
|
|
343
311
|
InputLogEvent.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
344
312
|
})(InputLogEvent || (InputLogEvent = {}));
|
|
345
|
-
export var InvalidSequenceTokenException;
|
|
346
|
-
(function (InvalidSequenceTokenException) {
|
|
347
|
-
InvalidSequenceTokenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
348
|
-
})(InvalidSequenceTokenException || (InvalidSequenceTokenException = {}));
|
|
349
313
|
export var ListTagsLogGroupRequest;
|
|
350
314
|
(function (ListTagsLogGroupRequest) {
|
|
351
315
|
ListTagsLogGroupRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -378,10 +342,6 @@ export var PutLogEventsResponse;
|
|
|
378
342
|
(function (PutLogEventsResponse) {
|
|
379
343
|
PutLogEventsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
380
344
|
})(PutLogEventsResponse || (PutLogEventsResponse = {}));
|
|
381
|
-
export var UnrecognizedClientException;
|
|
382
|
-
(function (UnrecognizedClientException) {
|
|
383
|
-
UnrecognizedClientException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
384
|
-
})(UnrecognizedClientException || (UnrecognizedClientException = {}));
|
|
385
345
|
export var PutMetricFilterRequest;
|
|
386
346
|
(function (PutMetricFilterRequest) {
|
|
387
347
|
PutMetricFilterRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -418,10 +378,6 @@ export var QueryCompileError;
|
|
|
418
378
|
(function (QueryCompileError) {
|
|
419
379
|
QueryCompileError.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
420
380
|
})(QueryCompileError || (QueryCompileError = {}));
|
|
421
|
-
export var MalformedQueryException;
|
|
422
|
-
(function (MalformedQueryException) {
|
|
423
|
-
MalformedQueryException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
424
|
-
})(MalformedQueryException || (MalformedQueryException = {}));
|
|
425
381
|
export var StartQueryRequest;
|
|
426
382
|
(function (StartQueryRequest) {
|
|
427
383
|
StartQueryRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
10
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
15
|
export var getRuntimeConfig = function (config) {
|
|
14
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
15
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4, defaultConfigProvider()];
|
|
23
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
24
|
+
}
|
|
25
|
+
}); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
17
26
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,19 +1,28 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
10
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
15
17
|
export var getRuntimeConfig = function (config) {
|
|
16
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
17
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
22
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
23
|
+
switch (_a.label) {
|
|
24
|
+
case 0: return [4, defaultConfigProvider()];
|
|
25
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
26
|
+
}
|
|
27
|
+
}); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
19
28
|
};
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { AssociateKmsKeyCommandInput, AssociateKmsKeyCommandOutput } from "./commands/AssociateKmsKeyCommand";
|
|
10
10
|
import { CancelExportTaskCommandInput, CancelExportTaskCommandOutput } from "./commands/CancelExportTaskCommand";
|
|
@@ -150,6 +150,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
150
150
|
* @internal
|
|
151
151
|
*/
|
|
152
152
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
153
|
+
/**
|
|
154
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
155
|
+
*/
|
|
156
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
153
157
|
}
|
|
154
158
|
declare type CloudWatchLogsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
155
159
|
/**
|
|
@@ -24,12 +24,6 @@ export interface InvalidParameterException extends __SmithyException, $MetadataB
|
|
|
24
24
|
$fault: "client";
|
|
25
25
|
message?: string;
|
|
26
26
|
}
|
|
27
|
-
export declare namespace InvalidParameterException {
|
|
28
|
-
/**
|
|
29
|
-
* @internal
|
|
30
|
-
*/
|
|
31
|
-
const filterSensitiveLog: (obj: InvalidParameterException) => any;
|
|
32
|
-
}
|
|
33
27
|
/**
|
|
34
28
|
* <p>Multiple requests to update the same resource were in conflict.</p>
|
|
35
29
|
*/
|
|
@@ -38,12 +32,6 @@ export interface OperationAbortedException extends __SmithyException, $MetadataB
|
|
|
38
32
|
$fault: "client";
|
|
39
33
|
message?: string;
|
|
40
34
|
}
|
|
41
|
-
export declare namespace OperationAbortedException {
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
45
|
-
const filterSensitiveLog: (obj: OperationAbortedException) => any;
|
|
46
|
-
}
|
|
47
35
|
/**
|
|
48
36
|
* <p>The specified resource does not exist.</p>
|
|
49
37
|
*/
|
|
@@ -52,12 +40,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
|
|
|
52
40
|
$fault: "client";
|
|
53
41
|
message?: string;
|
|
54
42
|
}
|
|
55
|
-
export declare namespace ResourceNotFoundException {
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
|
|
60
|
-
}
|
|
61
43
|
/**
|
|
62
44
|
* <p>The service cannot complete the request.</p>
|
|
63
45
|
*/
|
|
@@ -66,12 +48,6 @@ export interface ServiceUnavailableException extends __SmithyException, $Metadat
|
|
|
66
48
|
$fault: "server";
|
|
67
49
|
message?: string;
|
|
68
50
|
}
|
|
69
|
-
export declare namespace ServiceUnavailableException {
|
|
70
|
-
/**
|
|
71
|
-
* @internal
|
|
72
|
-
*/
|
|
73
|
-
const filterSensitiveLog: (obj: ServiceUnavailableException) => any;
|
|
74
|
-
}
|
|
75
51
|
export interface CancelExportTaskRequest {
|
|
76
52
|
/**
|
|
77
53
|
* <p>The ID of the export task.</p>
|
|
@@ -92,12 +68,6 @@ export interface InvalidOperationException extends __SmithyException, $MetadataB
|
|
|
92
68
|
$fault: "client";
|
|
93
69
|
message?: string;
|
|
94
70
|
}
|
|
95
|
-
export declare namespace InvalidOperationException {
|
|
96
|
-
/**
|
|
97
|
-
* @internal
|
|
98
|
-
*/
|
|
99
|
-
const filterSensitiveLog: (obj: InvalidOperationException) => any;
|
|
100
|
-
}
|
|
101
71
|
export interface CreateExportTaskRequest {
|
|
102
72
|
/**
|
|
103
73
|
* <p>The name of the export task.</p>
|
|
@@ -160,12 +130,6 @@ export interface LimitExceededException extends __SmithyException, $MetadataBear
|
|
|
160
130
|
$fault: "client";
|
|
161
131
|
message?: string;
|
|
162
132
|
}
|
|
163
|
-
export declare namespace LimitExceededException {
|
|
164
|
-
/**
|
|
165
|
-
* @internal
|
|
166
|
-
*/
|
|
167
|
-
const filterSensitiveLog: (obj: LimitExceededException) => any;
|
|
168
|
-
}
|
|
169
133
|
/**
|
|
170
134
|
* <p>The specified resource already exists.</p>
|
|
171
135
|
*/
|
|
@@ -174,12 +138,6 @@ export interface ResourceAlreadyExistsException extends __SmithyException, $Meta
|
|
|
174
138
|
$fault: "client";
|
|
175
139
|
message?: string;
|
|
176
140
|
}
|
|
177
|
-
export declare namespace ResourceAlreadyExistsException {
|
|
178
|
-
/**
|
|
179
|
-
* @internal
|
|
180
|
-
*/
|
|
181
|
-
const filterSensitiveLog: (obj: ResourceAlreadyExistsException) => any;
|
|
182
|
-
}
|
|
183
141
|
export interface CreateLogGroupRequest {
|
|
184
142
|
/**
|
|
185
143
|
* <p>The name of the log group.</p>
|
|
@@ -233,12 +191,6 @@ export interface DataAlreadyAcceptedException extends __SmithyException, $Metada
|
|
|
233
191
|
expectedSequenceToken?: string;
|
|
234
192
|
message?: string;
|
|
235
193
|
}
|
|
236
|
-
export declare namespace DataAlreadyAcceptedException {
|
|
237
|
-
/**
|
|
238
|
-
* @internal
|
|
239
|
-
*/
|
|
240
|
-
const filterSensitiveLog: (obj: DataAlreadyAcceptedException) => any;
|
|
241
|
-
}
|
|
242
194
|
export interface DeleteDestinationRequest {
|
|
243
195
|
/**
|
|
244
196
|
* <p>The name of the destination.</p>
|
|
@@ -1685,12 +1637,6 @@ export interface InvalidSequenceTokenException extends __SmithyException, $Metad
|
|
|
1685
1637
|
expectedSequenceToken?: string;
|
|
1686
1638
|
message?: string;
|
|
1687
1639
|
}
|
|
1688
|
-
export declare namespace InvalidSequenceTokenException {
|
|
1689
|
-
/**
|
|
1690
|
-
* @internal
|
|
1691
|
-
*/
|
|
1692
|
-
const filterSensitiveLog: (obj: InvalidSequenceTokenException) => any;
|
|
1693
|
-
}
|
|
1694
1640
|
export interface ListTagsLogGroupRequest {
|
|
1695
1641
|
/**
|
|
1696
1642
|
* <p>The name of the log group.</p>
|
|
@@ -1856,12 +1802,6 @@ export interface UnrecognizedClientException extends __SmithyException, $Metadat
|
|
|
1856
1802
|
$fault: "client";
|
|
1857
1803
|
message?: string;
|
|
1858
1804
|
}
|
|
1859
|
-
export declare namespace UnrecognizedClientException {
|
|
1860
|
-
/**
|
|
1861
|
-
* @internal
|
|
1862
|
-
*/
|
|
1863
|
-
const filterSensitiveLog: (obj: UnrecognizedClientException) => any;
|
|
1864
|
-
}
|
|
1865
1805
|
export interface PutMetricFilterRequest {
|
|
1866
1806
|
/**
|
|
1867
1807
|
* <p>The name of the log group.</p>
|
|
@@ -2132,12 +2072,6 @@ export interface MalformedQueryException extends __SmithyException, $MetadataBea
|
|
|
2132
2072
|
queryCompileError?: QueryCompileError;
|
|
2133
2073
|
message?: string;
|
|
2134
2074
|
}
|
|
2135
|
-
export declare namespace MalformedQueryException {
|
|
2136
|
-
/**
|
|
2137
|
-
* @internal
|
|
2138
|
-
*/
|
|
2139
|
-
const filterSensitiveLog: (obj: MalformedQueryException) => any;
|
|
2140
|
-
}
|
|
2141
2075
|
export interface StartQueryRequest {
|
|
2142
2076
|
/**
|
|
2143
2077
|
* <p>The log group on which to perform the query.</p>
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
2
|
import { CloudWatchLogsClientConfig } from "./CloudWatchLogsClient";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
6
|
export declare const getRuntimeConfig: (config: CloudWatchLogsClientConfig) => {
|
|
7
7
|
runtime: string;
|
|
8
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
8
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
11
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
@@ -12,7 +13,7 @@ export declare const getRuntimeConfig: (config: CloudWatchLogsClientConfig) => {
|
|
|
12
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
15
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
15
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
16
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
16
17
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
18
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
19
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
|
|
2
2
|
import { CloudWatchLogsClientConfig } from "./CloudWatchLogsClient";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
6
|
export declare const getRuntimeConfig: (config: CloudWatchLogsClientConfig) => {
|
|
7
7
|
runtime: string;
|
|
8
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
8
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
11
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
11
|
-
credentialDefaultProvider: import("@aws-sdk/
|
|
12
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
12
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
15
|
region: string | import("@aws-sdk/types").Provider<string>;
|
|
15
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
16
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
16
17
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
18
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
19
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: CloudWatchLogsClientConfig) => {
|
|
|
25
25
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
26
26
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
27
27
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
28
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
28
29
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
29
30
|
tls?: boolean | undefined;
|
|
30
31
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { AssociateKmsKeyCommandInput, AssociateKmsKeyCommandOutput } from "./commands/AssociateKmsKeyCommand";
|
|
10
10
|
import { CancelExportTaskCommandInput, CancelExportTaskCommandOutput } from "./commands/CancelExportTaskCommand";
|
|
@@ -93,6 +93,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
93
93
|
regionInfoProvider?: RegionInfoProvider;
|
|
94
94
|
|
|
95
95
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
96
|
+
|
|
97
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
96
98
|
}
|
|
97
99
|
declare type CloudWatchLogsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
98
100
|
|
|
@@ -15,40 +15,24 @@ export interface InvalidParameterException extends __SmithyException, $MetadataB
|
|
|
15
15
|
$fault: "client";
|
|
16
16
|
message?: string;
|
|
17
17
|
}
|
|
18
|
-
export declare namespace InvalidParameterException {
|
|
19
|
-
|
|
20
|
-
const filterSensitiveLog: (obj: InvalidParameterException) => any;
|
|
21
|
-
}
|
|
22
18
|
|
|
23
19
|
export interface OperationAbortedException extends __SmithyException, $MetadataBearer {
|
|
24
20
|
name: "OperationAbortedException";
|
|
25
21
|
$fault: "client";
|
|
26
22
|
message?: string;
|
|
27
23
|
}
|
|
28
|
-
export declare namespace OperationAbortedException {
|
|
29
|
-
|
|
30
|
-
const filterSensitiveLog: (obj: OperationAbortedException) => any;
|
|
31
|
-
}
|
|
32
24
|
|
|
33
25
|
export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
|
|
34
26
|
name: "ResourceNotFoundException";
|
|
35
27
|
$fault: "client";
|
|
36
28
|
message?: string;
|
|
37
29
|
}
|
|
38
|
-
export declare namespace ResourceNotFoundException {
|
|
39
|
-
|
|
40
|
-
const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
|
|
41
|
-
}
|
|
42
30
|
|
|
43
31
|
export interface ServiceUnavailableException extends __SmithyException, $MetadataBearer {
|
|
44
32
|
name: "ServiceUnavailableException";
|
|
45
33
|
$fault: "server";
|
|
46
34
|
message?: string;
|
|
47
35
|
}
|
|
48
|
-
export declare namespace ServiceUnavailableException {
|
|
49
|
-
|
|
50
|
-
const filterSensitiveLog: (obj: ServiceUnavailableException) => any;
|
|
51
|
-
}
|
|
52
36
|
export interface CancelExportTaskRequest {
|
|
53
37
|
|
|
54
38
|
taskId: string | undefined;
|
|
@@ -63,10 +47,6 @@ export interface InvalidOperationException extends __SmithyException, $MetadataB
|
|
|
63
47
|
$fault: "client";
|
|
64
48
|
message?: string;
|
|
65
49
|
}
|
|
66
|
-
export declare namespace InvalidOperationException {
|
|
67
|
-
|
|
68
|
-
const filterSensitiveLog: (obj: InvalidOperationException) => any;
|
|
69
|
-
}
|
|
70
50
|
export interface CreateExportTaskRequest {
|
|
71
51
|
|
|
72
52
|
taskName?: string;
|
|
@@ -101,20 +81,12 @@ export interface LimitExceededException extends __SmithyException, $MetadataBear
|
|
|
101
81
|
$fault: "client";
|
|
102
82
|
message?: string;
|
|
103
83
|
}
|
|
104
|
-
export declare namespace LimitExceededException {
|
|
105
|
-
|
|
106
|
-
const filterSensitiveLog: (obj: LimitExceededException) => any;
|
|
107
|
-
}
|
|
108
84
|
|
|
109
85
|
export interface ResourceAlreadyExistsException extends __SmithyException, $MetadataBearer {
|
|
110
86
|
name: "ResourceAlreadyExistsException";
|
|
111
87
|
$fault: "client";
|
|
112
88
|
message?: string;
|
|
113
89
|
}
|
|
114
|
-
export declare namespace ResourceAlreadyExistsException {
|
|
115
|
-
|
|
116
|
-
const filterSensitiveLog: (obj: ResourceAlreadyExistsException) => any;
|
|
117
|
-
}
|
|
118
90
|
export interface CreateLogGroupRequest {
|
|
119
91
|
|
|
120
92
|
logGroupName: string | undefined;
|
|
@@ -146,10 +118,6 @@ export interface DataAlreadyAcceptedException extends __SmithyException, $Metada
|
|
|
146
118
|
expectedSequenceToken?: string;
|
|
147
119
|
message?: string;
|
|
148
120
|
}
|
|
149
|
-
export declare namespace DataAlreadyAcceptedException {
|
|
150
|
-
|
|
151
|
-
const filterSensitiveLog: (obj: DataAlreadyAcceptedException) => any;
|
|
152
|
-
}
|
|
153
121
|
export interface DeleteDestinationRequest {
|
|
154
122
|
|
|
155
123
|
destinationName: string | undefined;
|
|
@@ -938,10 +906,6 @@ export interface InvalidSequenceTokenException extends __SmithyException, $Metad
|
|
|
938
906
|
expectedSequenceToken?: string;
|
|
939
907
|
message?: string;
|
|
940
908
|
}
|
|
941
|
-
export declare namespace InvalidSequenceTokenException {
|
|
942
|
-
|
|
943
|
-
const filterSensitiveLog: (obj: InvalidSequenceTokenException) => any;
|
|
944
|
-
}
|
|
945
909
|
export interface ListTagsLogGroupRequest {
|
|
946
910
|
|
|
947
911
|
logGroupName: string | undefined;
|
|
@@ -1035,10 +999,6 @@ export interface UnrecognizedClientException extends __SmithyException, $Metadat
|
|
|
1035
999
|
$fault: "client";
|
|
1036
1000
|
message?: string;
|
|
1037
1001
|
}
|
|
1038
|
-
export declare namespace UnrecognizedClientException {
|
|
1039
|
-
|
|
1040
|
-
const filterSensitiveLog: (obj: UnrecognizedClientException) => any;
|
|
1041
|
-
}
|
|
1042
1002
|
export interface PutMetricFilterRequest {
|
|
1043
1003
|
|
|
1044
1004
|
logGroupName: string | undefined;
|
|
@@ -1151,10 +1111,6 @@ export interface MalformedQueryException extends __SmithyException, $MetadataBea
|
|
|
1151
1111
|
queryCompileError?: QueryCompileError;
|
|
1152
1112
|
message?: string;
|
|
1153
1113
|
}
|
|
1154
|
-
export declare namespace MalformedQueryException {
|
|
1155
|
-
|
|
1156
|
-
const filterSensitiveLog: (obj: MalformedQueryException) => any;
|
|
1157
|
-
}
|
|
1158
1114
|
export interface StartQueryRequest {
|
|
1159
1115
|
|
|
1160
1116
|
logGroupName?: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
2
|
import { CloudWatchLogsClientConfig } from "./CloudWatchLogsClient";
|
|
3
3
|
|
|
4
4
|
export declare const getRuntimeConfig: (config: CloudWatchLogsClientConfig) => {
|
|
5
5
|
runtime: string;
|
|
6
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
6
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
7
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
8
9
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
@@ -10,7 +11,7 @@ export declare const getRuntimeConfig: (config: CloudWatchLogsClientConfig) => {
|
|
|
10
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
11
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
12
13
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
13
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
14
15
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
15
16
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
16
17
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
|
|
2
2
|
import { CloudWatchLogsClientConfig } from "./CloudWatchLogsClient";
|
|
3
3
|
|
|
4
4
|
export declare const getRuntimeConfig: (config: CloudWatchLogsClientConfig) => {
|
|
5
5
|
runtime: string;
|
|
6
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
6
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
7
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
8
9
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
9
|
-
credentialDefaultProvider: import("@aws-sdk/
|
|
10
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
10
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
11
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
12
13
|
region: string | import("@aws-sdk/types").Provider<string>;
|
|
13
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
14
15
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
15
16
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
16
17
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -23,6 +23,7 @@ export declare const getRuntimeConfig: (config: CloudWatchLogsClientConfig) => {
|
|
|
23
23
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
24
24
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
25
25
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
26
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
26
27
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
27
28
|
tls?: boolean | undefined;
|
|
28
29
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
package/package.json
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
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.48.0",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"build": "yarn
|
|
7
|
-
"build:cjs": "tsc -p tsconfig.json",
|
|
6
|
+
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
|
+
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
8
8
|
"build:docs": "typedoc",
|
|
9
9
|
"build:es": "tsc -p tsconfig.es.json",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
-
"clean": "
|
|
13
|
-
"clean:dist": "rimraf ./dist-*",
|
|
14
|
-
"clean:docs": "rimraf ./docs"
|
|
12
|
+
"clean": "rimraf ./dist-*"
|
|
15
13
|
},
|
|
16
14
|
"main": "./dist-cjs/index.js",
|
|
17
15
|
"types": "./dist-types/index.d.ts",
|
|
@@ -20,38 +18,40 @@
|
|
|
20
18
|
"dependencies": {
|
|
21
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
22
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/config-resolver": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
27
|
-
"@aws-sdk/hash-node": "3.
|
|
28
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
29
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-retry": "3.
|
|
33
|
-
"@aws-sdk/middleware-serde": "3.
|
|
34
|
-
"@aws-sdk/middleware-signing": "3.
|
|
35
|
-
"@aws-sdk/middleware-stack": "3.
|
|
36
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
37
|
-
"@aws-sdk/node-config-provider": "3.
|
|
38
|
-
"@aws-sdk/node-http-handler": "3.
|
|
39
|
-
"@aws-sdk/protocol-http": "3.
|
|
40
|
-
"@aws-sdk/smithy-client": "3.
|
|
41
|
-
"@aws-sdk/types": "3.
|
|
42
|
-
"@aws-sdk/url-parser": "3.
|
|
43
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
44
|
-
"@aws-sdk/util-base64-node": "3.
|
|
45
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
46
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
47
|
-
"@aws-sdk/util-
|
|
48
|
-
"@aws-sdk/util-
|
|
49
|
-
"@aws-sdk/util-
|
|
50
|
-
"@aws-sdk/util-
|
|
21
|
+
"@aws-sdk/client-sts": "3.48.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.47.2",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.48.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.47.2",
|
|
25
|
+
"@aws-sdk/hash-node": "3.47.2",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.47.2",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.47.2",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.47.2",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.47.2",
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.47.2",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.47.2",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.47.2",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.47.2",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.47.2",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.47.2",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.47.2",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.47.2",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.47.2",
|
|
39
|
+
"@aws-sdk/types": "3.47.1",
|
|
40
|
+
"@aws-sdk/url-parser": "3.47.2",
|
|
41
|
+
"@aws-sdk/util-base64-browser": "3.47.1",
|
|
42
|
+
"@aws-sdk/util-base64-node": "3.47.2",
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.47.1",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.47.1",
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.47.2",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.47.2",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.47.2",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.47.2",
|
|
49
|
+
"@aws-sdk/util-utf8-browser": "3.47.1",
|
|
50
|
+
"@aws-sdk/util-utf8-node": "3.47.2",
|
|
51
51
|
"tslib": "^2.3.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
54
|
+
"@aws-sdk/service-client-documentation-generator": "3.47.1",
|
|
55
55
|
"@types/node": "^12.7.5"
|
|
56
56
|
},
|
|
57
57
|
"engines": {
|