@aws-sdk/client-redshift-data 3.43.0 → 3.47.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 +50 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +1 -37
- package/dist-cjs/protocols/Aws_json1_1.js +56 -0
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +0 -24
- package/dist-es/protocols/Aws_json1_1.js +154 -100
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/RedshiftData.d.ts +30 -30
- package/dist-types/RedshiftDataClient.d.ts +5 -1
- package/dist-types/commands/BatchExecuteStatementCommand.d.ts +5 -5
- package/dist-types/commands/DescribeTableCommand.d.ts +5 -5
- package/dist-types/commands/ExecuteStatementCommand.d.ts +5 -5
- package/dist-types/commands/ListDatabasesCommand.d.ts +5 -5
- package/dist-types/commands/ListSchemasCommand.d.ts +5 -5
- package/dist-types/commands/ListTablesCommand.d.ts +5 -5
- package/dist-types/models/models_0.d.ts +31 -58
- 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/RedshiftDataClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +12 -30
- 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 +38 -45
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,56 @@
|
|
|
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.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **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))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
|
|
28
|
+
* end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Features
|
|
38
|
+
|
|
39
|
+
* **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
# [3.44.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.43.0...v3.44.0) (2021-12-02)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Features
|
|
49
|
+
|
|
50
|
+
* **clients:** update clients as of 2021/11/30 ([#3077](https://github.com/aws/aws-sdk-js-v3/issues/3077)) ([2bdba30](https://github.com/aws/aws-sdk-js-v3/commit/2bdba30963e550728ba2903d57daa1e666a29d71))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
6
56
|
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
7
57
|
|
|
8
58
|
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListTablesResponse = exports.TableMember = exports.ListTablesRequest = exports.ListStatementsResponse = exports.StatementData = exports.ListStatementsRequest = exports.ListSchemasResponse = exports.ListSchemasRequest = exports.ListDatabasesResponse = exports.ListDatabasesRequest = exports.GetStatementResultResponse = exports.GetStatementResultRequest = exports.Field = exports.ExecuteStatementOutput = exports.ExecuteStatementInput = exports.
|
|
4
|
-
var ActiveStatementsExceededException;
|
|
5
|
-
(function (ActiveStatementsExceededException) {
|
|
6
|
-
ActiveStatementsExceededException.filterSensitiveLog = (obj) => ({
|
|
7
|
-
...obj,
|
|
8
|
-
});
|
|
9
|
-
})(ActiveStatementsExceededException = exports.ActiveStatementsExceededException || (exports.ActiveStatementsExceededException = {}));
|
|
10
|
-
var BatchExecuteStatementException;
|
|
11
|
-
(function (BatchExecuteStatementException) {
|
|
12
|
-
BatchExecuteStatementException.filterSensitiveLog = (obj) => ({
|
|
13
|
-
...obj,
|
|
14
|
-
});
|
|
15
|
-
})(BatchExecuteStatementException = exports.BatchExecuteStatementException || (exports.BatchExecuteStatementException = {}));
|
|
3
|
+
exports.ListTablesResponse = exports.TableMember = exports.ListTablesRequest = exports.ListStatementsResponse = exports.StatementData = exports.ListStatementsRequest = exports.ListSchemasResponse = exports.ListSchemasRequest = exports.ListDatabasesResponse = exports.ListDatabasesRequest = exports.GetStatementResultResponse = exports.GetStatementResultRequest = exports.Field = exports.ExecuteStatementOutput = exports.ExecuteStatementInput = exports.DescribeTableResponse = exports.DescribeTableRequest = exports.DescribeStatementResponse = exports.SubStatementData = exports.StatementStatusString = exports.StatusString = exports.SqlParameter = exports.DescribeStatementRequest = exports.ColumnMetadata = exports.CancelStatementResponse = exports.CancelStatementRequest = exports.BatchExecuteStatementOutput = exports.BatchExecuteStatementInput = void 0;
|
|
16
4
|
var BatchExecuteStatementInput;
|
|
17
5
|
(function (BatchExecuteStatementInput) {
|
|
18
6
|
BatchExecuteStatementInput.filterSensitiveLog = (obj) => ({
|
|
@@ -25,12 +13,6 @@ var BatchExecuteStatementOutput;
|
|
|
25
13
|
...obj,
|
|
26
14
|
});
|
|
27
15
|
})(BatchExecuteStatementOutput = exports.BatchExecuteStatementOutput || (exports.BatchExecuteStatementOutput = {}));
|
|
28
|
-
var ValidationException;
|
|
29
|
-
(function (ValidationException) {
|
|
30
|
-
ValidationException.filterSensitiveLog = (obj) => ({
|
|
31
|
-
...obj,
|
|
32
|
-
});
|
|
33
|
-
})(ValidationException = exports.ValidationException || (exports.ValidationException = {}));
|
|
34
16
|
var CancelStatementRequest;
|
|
35
17
|
(function (CancelStatementRequest) {
|
|
36
18
|
CancelStatementRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -43,18 +25,6 @@ var CancelStatementResponse;
|
|
|
43
25
|
...obj,
|
|
44
26
|
});
|
|
45
27
|
})(CancelStatementResponse = exports.CancelStatementResponse || (exports.CancelStatementResponse = {}));
|
|
46
|
-
var InternalServerException;
|
|
47
|
-
(function (InternalServerException) {
|
|
48
|
-
InternalServerException.filterSensitiveLog = (obj) => ({
|
|
49
|
-
...obj,
|
|
50
|
-
});
|
|
51
|
-
})(InternalServerException = exports.InternalServerException || (exports.InternalServerException = {}));
|
|
52
|
-
var ResourceNotFoundException;
|
|
53
|
-
(function (ResourceNotFoundException) {
|
|
54
|
-
ResourceNotFoundException.filterSensitiveLog = (obj) => ({
|
|
55
|
-
...obj,
|
|
56
|
-
});
|
|
57
|
-
})(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
|
|
58
28
|
var ColumnMetadata;
|
|
59
29
|
(function (ColumnMetadata) {
|
|
60
30
|
ColumnMetadata.filterSensitiveLog = (obj) => ({
|
|
@@ -116,12 +86,6 @@ var DescribeTableResponse;
|
|
|
116
86
|
...obj,
|
|
117
87
|
});
|
|
118
88
|
})(DescribeTableResponse = exports.DescribeTableResponse || (exports.DescribeTableResponse = {}));
|
|
119
|
-
var ExecuteStatementException;
|
|
120
|
-
(function (ExecuteStatementException) {
|
|
121
|
-
ExecuteStatementException.filterSensitiveLog = (obj) => ({
|
|
122
|
-
...obj,
|
|
123
|
-
});
|
|
124
|
-
})(ExecuteStatementException = exports.ExecuteStatementException || (exports.ExecuteStatementException = {}));
|
|
125
89
|
var ExecuteStatementInput;
|
|
126
90
|
(function (ExecuteStatementInput) {
|
|
127
91
|
ExecuteStatementInput.filterSensitiveLog = (obj) => ({
|
|
@@ -189,6 +189,14 @@ const deserializeAws_json1_1CancelStatementCommandError = async (output, context
|
|
|
189
189
|
let errorCode = "UnknownError";
|
|
190
190
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
191
191
|
switch (errorCode) {
|
|
192
|
+
case "DatabaseConnectionException":
|
|
193
|
+
case "com.amazonaws.redshiftdata#DatabaseConnectionException":
|
|
194
|
+
response = {
|
|
195
|
+
...(await deserializeAws_json1_1DatabaseConnectionExceptionResponse(parsedOutput, context)),
|
|
196
|
+
name: errorCode,
|
|
197
|
+
$metadata: deserializeMetadata(output),
|
|
198
|
+
};
|
|
199
|
+
break;
|
|
192
200
|
case "InternalServerException":
|
|
193
201
|
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
194
202
|
response = {
|
|
@@ -315,6 +323,14 @@ const deserializeAws_json1_1DescribeTableCommandError = async (output, context)
|
|
|
315
323
|
let errorCode = "UnknownError";
|
|
316
324
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
317
325
|
switch (errorCode) {
|
|
326
|
+
case "DatabaseConnectionException":
|
|
327
|
+
case "com.amazonaws.redshiftdata#DatabaseConnectionException":
|
|
328
|
+
response = {
|
|
329
|
+
...(await deserializeAws_json1_1DatabaseConnectionExceptionResponse(parsedOutput, context)),
|
|
330
|
+
name: errorCode,
|
|
331
|
+
$metadata: deserializeMetadata(output),
|
|
332
|
+
};
|
|
333
|
+
break;
|
|
318
334
|
case "InternalServerException":
|
|
319
335
|
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
320
336
|
response = {
|
|
@@ -496,6 +512,14 @@ const deserializeAws_json1_1ListDatabasesCommandError = async (output, context)
|
|
|
496
512
|
let errorCode = "UnknownError";
|
|
497
513
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
498
514
|
switch (errorCode) {
|
|
515
|
+
case "DatabaseConnectionException":
|
|
516
|
+
case "com.amazonaws.redshiftdata#DatabaseConnectionException":
|
|
517
|
+
response = {
|
|
518
|
+
...(await deserializeAws_json1_1DatabaseConnectionExceptionResponse(parsedOutput, context)),
|
|
519
|
+
name: errorCode,
|
|
520
|
+
$metadata: deserializeMetadata(output),
|
|
521
|
+
};
|
|
522
|
+
break;
|
|
499
523
|
case "InternalServerException":
|
|
500
524
|
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
501
525
|
response = {
|
|
@@ -551,6 +575,14 @@ const deserializeAws_json1_1ListSchemasCommandError = async (output, context) =>
|
|
|
551
575
|
let errorCode = "UnknownError";
|
|
552
576
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
553
577
|
switch (errorCode) {
|
|
578
|
+
case "DatabaseConnectionException":
|
|
579
|
+
case "com.amazonaws.redshiftdata#DatabaseConnectionException":
|
|
580
|
+
response = {
|
|
581
|
+
...(await deserializeAws_json1_1DatabaseConnectionExceptionResponse(parsedOutput, context)),
|
|
582
|
+
name: errorCode,
|
|
583
|
+
$metadata: deserializeMetadata(output),
|
|
584
|
+
};
|
|
585
|
+
break;
|
|
554
586
|
case "InternalServerException":
|
|
555
587
|
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
556
588
|
response = {
|
|
@@ -661,6 +693,14 @@ const deserializeAws_json1_1ListTablesCommandError = async (output, context) =>
|
|
|
661
693
|
let errorCode = "UnknownError";
|
|
662
694
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
663
695
|
switch (errorCode) {
|
|
696
|
+
case "DatabaseConnectionException":
|
|
697
|
+
case "com.amazonaws.redshiftdata#DatabaseConnectionException":
|
|
698
|
+
response = {
|
|
699
|
+
...(await deserializeAws_json1_1DatabaseConnectionExceptionResponse(parsedOutput, context)),
|
|
700
|
+
name: errorCode,
|
|
701
|
+
$metadata: deserializeMetadata(output),
|
|
702
|
+
};
|
|
703
|
+
break;
|
|
664
704
|
case "InternalServerException":
|
|
665
705
|
case "com.amazonaws.redshiftdata#InternalServerException":
|
|
666
706
|
response = {
|
|
@@ -715,6 +755,17 @@ const deserializeAws_json1_1BatchExecuteStatementExceptionResponse = async (pars
|
|
|
715
755
|
};
|
|
716
756
|
return contents;
|
|
717
757
|
};
|
|
758
|
+
const deserializeAws_json1_1DatabaseConnectionExceptionResponse = async (parsedOutput, context) => {
|
|
759
|
+
const body = parsedOutput.body;
|
|
760
|
+
const deserialized = deserializeAws_json1_1DatabaseConnectionException(body, context);
|
|
761
|
+
const contents = {
|
|
762
|
+
name: "DatabaseConnectionException",
|
|
763
|
+
$fault: "server",
|
|
764
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
765
|
+
...deserialized,
|
|
766
|
+
};
|
|
767
|
+
return contents;
|
|
768
|
+
};
|
|
718
769
|
const deserializeAws_json1_1ExecuteStatementExceptionResponse = async (parsedOutput, context) => {
|
|
719
770
|
const body = parsedOutput.body;
|
|
720
771
|
const deserialized = deserializeAws_json1_1ExecuteStatementException(body, context);
|
|
@@ -956,6 +1007,11 @@ const deserializeAws_json1_1ColumnMetadataList = (output, context) => {
|
|
|
956
1007
|
return deserializeAws_json1_1ColumnMetadata(entry, context);
|
|
957
1008
|
});
|
|
958
1009
|
};
|
|
1010
|
+
const deserializeAws_json1_1DatabaseConnectionException = (output, context) => {
|
|
1011
|
+
return {
|
|
1012
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
1013
|
+
};
|
|
1014
|
+
};
|
|
959
1015
|
const deserializeAws_json1_1DatabaseList = (output, context) => {
|
|
960
1016
|
return (output || [])
|
|
961
1017
|
.filter((e) => e != null)
|
|
@@ -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)),
|
|
@@ -16,14 +16,17 @@ 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
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
19
20
|
const getRuntimeConfig = (config) => {
|
|
20
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
|
-
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
25
|
return {
|
|
24
26
|
...clientSharedValues,
|
|
25
27
|
...config,
|
|
26
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
27
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
28
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
29
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
31
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 }),
|
|
32
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),
|
|
33
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),
|
|
34
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
35
|
-
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
|
+
}),
|
|
36
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
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
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
|
-
export var ActiveStatementsExceededException;
|
|
3
|
-
(function (ActiveStatementsExceededException) {
|
|
4
|
-
ActiveStatementsExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
5
|
-
})(ActiveStatementsExceededException || (ActiveStatementsExceededException = {}));
|
|
6
|
-
export var BatchExecuteStatementException;
|
|
7
|
-
(function (BatchExecuteStatementException) {
|
|
8
|
-
BatchExecuteStatementException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
9
|
-
})(BatchExecuteStatementException || (BatchExecuteStatementException = {}));
|
|
10
2
|
export var BatchExecuteStatementInput;
|
|
11
3
|
(function (BatchExecuteStatementInput) {
|
|
12
4
|
BatchExecuteStatementInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -15,10 +7,6 @@ export var BatchExecuteStatementOutput;
|
|
|
15
7
|
(function (BatchExecuteStatementOutput) {
|
|
16
8
|
BatchExecuteStatementOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
17
9
|
})(BatchExecuteStatementOutput || (BatchExecuteStatementOutput = {}));
|
|
18
|
-
export var ValidationException;
|
|
19
|
-
(function (ValidationException) {
|
|
20
|
-
ValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
21
|
-
})(ValidationException || (ValidationException = {}));
|
|
22
10
|
export var CancelStatementRequest;
|
|
23
11
|
(function (CancelStatementRequest) {
|
|
24
12
|
CancelStatementRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -27,14 +15,6 @@ export var CancelStatementResponse;
|
|
|
27
15
|
(function (CancelStatementResponse) {
|
|
28
16
|
CancelStatementResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
29
17
|
})(CancelStatementResponse || (CancelStatementResponse = {}));
|
|
30
|
-
export var InternalServerException;
|
|
31
|
-
(function (InternalServerException) {
|
|
32
|
-
InternalServerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
33
|
-
})(InternalServerException || (InternalServerException = {}));
|
|
34
|
-
export var ResourceNotFoundException;
|
|
35
|
-
(function (ResourceNotFoundException) {
|
|
36
|
-
ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
37
|
-
})(ResourceNotFoundException || (ResourceNotFoundException = {}));
|
|
38
18
|
export var ColumnMetadata;
|
|
39
19
|
(function (ColumnMetadata) {
|
|
40
20
|
ColumnMetadata.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -82,10 +62,6 @@ export var DescribeTableResponse;
|
|
|
82
62
|
(function (DescribeTableResponse) {
|
|
83
63
|
DescribeTableResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
84
64
|
})(DescribeTableResponse || (DescribeTableResponse = {}));
|
|
85
|
-
export var ExecuteStatementException;
|
|
86
|
-
(function (ExecuteStatementException) {
|
|
87
|
-
ExecuteStatementException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
88
|
-
})(ExecuteStatementException || (ExecuteStatementException = {}));
|
|
89
65
|
export var ExecuteStatementInput;
|
|
90
66
|
(function (ExecuteStatementInput) {
|
|
91
67
|
ExecuteStatementInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|