@aws-sdk/client-timestream-write 3.46.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 CHANGED
@@ -3,6 +3,17 @@
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
+
6
17
  # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
7
18
 
8
19
 
@@ -1,19 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateDatabaseRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.RejectedRecordsException = exports.RejectedRecord = exports.RecordsIngested = exports._Record = exports.TimeUnit = exports.MeasureValue = exports.MeasureValueType = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListTablesResponse = exports.ListTablesRequest = exports.ListDatabasesResponse = exports.ListDatabasesRequest = exports.Dimension = exports.DimensionValueType = exports.DescribeTableResponse = exports.DescribeTableRequest = exports.DescribeEndpointsResponse = exports.Endpoint = exports.DescribeEndpointsRequest = exports.DescribeDatabaseResponse = exports.DescribeDatabaseRequest = exports.DeleteTableRequest = exports.DeleteDatabaseRequest = exports.ResourceNotFoundException = exports.CreateTableResponse = exports.Table = exports.TableStatus = exports.CreateTableRequest = exports.RetentionProperties = exports.MagneticStoreWriteProperties = exports.MagneticStoreRejectedDataLocation = exports.S3Configuration = exports.S3EncryptionOption = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.InvalidEndpointException = exports.InternalServerException = exports.CreateDatabaseResponse = exports.Database = exports.CreateDatabaseRequest = exports.Tag = exports.ConflictException = exports.AccessDeniedException = void 0;
4
- exports.WriteRecordsResponse = exports.WriteRecordsRequest = exports.UpdateTableResponse = exports.UpdateTableRequest = exports.UpdateDatabaseResponse = void 0;
5
- var AccessDeniedException;
6
- (function (AccessDeniedException) {
7
- AccessDeniedException.filterSensitiveLog = (obj) => ({
8
- ...obj,
9
- });
10
- })(AccessDeniedException = exports.AccessDeniedException || (exports.AccessDeniedException = {}));
11
- var ConflictException;
12
- (function (ConflictException) {
13
- ConflictException.filterSensitiveLog = (obj) => ({
14
- ...obj,
15
- });
16
- })(ConflictException = exports.ConflictException || (exports.ConflictException = {}));
3
+ exports.WriteRecordsResponse = exports.WriteRecordsRequest = exports.UpdateTableResponse = exports.UpdateTableRequest = exports.UpdateDatabaseResponse = exports.UpdateDatabaseRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.RejectedRecord = exports.RecordsIngested = exports._Record = exports.TimeUnit = exports.MeasureValue = exports.MeasureValueType = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListTablesResponse = exports.ListTablesRequest = exports.ListDatabasesResponse = exports.ListDatabasesRequest = exports.Dimension = exports.DimensionValueType = exports.DescribeTableResponse = exports.DescribeTableRequest = exports.DescribeEndpointsResponse = exports.Endpoint = exports.DescribeEndpointsRequest = exports.DescribeDatabaseResponse = exports.DescribeDatabaseRequest = exports.DeleteTableRequest = exports.DeleteDatabaseRequest = exports.CreateTableResponse = exports.Table = exports.TableStatus = exports.CreateTableRequest = exports.RetentionProperties = exports.MagneticStoreWriteProperties = exports.MagneticStoreRejectedDataLocation = exports.S3Configuration = exports.S3EncryptionOption = exports.CreateDatabaseResponse = exports.Database = exports.CreateDatabaseRequest = exports.Tag = void 0;
17
4
  var Tag;
18
5
  (function (Tag) {
19
6
  Tag.filterSensitiveLog = (obj) => ({
@@ -38,36 +25,6 @@ var CreateDatabaseResponse;
38
25
  ...obj,
39
26
  });
40
27
  })(CreateDatabaseResponse = exports.CreateDatabaseResponse || (exports.CreateDatabaseResponse = {}));
41
- var InternalServerException;
42
- (function (InternalServerException) {
43
- InternalServerException.filterSensitiveLog = (obj) => ({
44
- ...obj,
45
- });
46
- })(InternalServerException = exports.InternalServerException || (exports.InternalServerException = {}));
47
- var InvalidEndpointException;
48
- (function (InvalidEndpointException) {
49
- InvalidEndpointException.filterSensitiveLog = (obj) => ({
50
- ...obj,
51
- });
52
- })(InvalidEndpointException = exports.InvalidEndpointException || (exports.InvalidEndpointException = {}));
53
- var ServiceQuotaExceededException;
54
- (function (ServiceQuotaExceededException) {
55
- ServiceQuotaExceededException.filterSensitiveLog = (obj) => ({
56
- ...obj,
57
- });
58
- })(ServiceQuotaExceededException = exports.ServiceQuotaExceededException || (exports.ServiceQuotaExceededException = {}));
59
- var ThrottlingException;
60
- (function (ThrottlingException) {
61
- ThrottlingException.filterSensitiveLog = (obj) => ({
62
- ...obj,
63
- });
64
- })(ThrottlingException = exports.ThrottlingException || (exports.ThrottlingException = {}));
65
- var ValidationException;
66
- (function (ValidationException) {
67
- ValidationException.filterSensitiveLog = (obj) => ({
68
- ...obj,
69
- });
70
- })(ValidationException = exports.ValidationException || (exports.ValidationException = {}));
71
28
  var S3EncryptionOption;
72
29
  (function (S3EncryptionOption) {
73
30
  S3EncryptionOption["SSE_KMS"] = "SSE_KMS";
@@ -120,12 +77,6 @@ var CreateTableResponse;
120
77
  ...obj,
121
78
  });
122
79
  })(CreateTableResponse = exports.CreateTableResponse || (exports.CreateTableResponse = {}));
123
- var ResourceNotFoundException;
124
- (function (ResourceNotFoundException) {
125
- ResourceNotFoundException.filterSensitiveLog = (obj) => ({
126
- ...obj,
127
- });
128
- })(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
129
80
  var DeleteDatabaseRequest;
130
81
  (function (DeleteDatabaseRequest) {
131
82
  DeleteDatabaseRequest.filterSensitiveLog = (obj) => ({
@@ -266,12 +217,6 @@ var RejectedRecord;
266
217
  ...obj,
267
218
  });
268
219
  })(RejectedRecord = exports.RejectedRecord || (exports.RejectedRecord = {}));
269
- var RejectedRecordsException;
270
- (function (RejectedRecordsException) {
271
- RejectedRecordsException.filterSensitiveLog = (obj) => ({
272
- ...obj,
273
- });
274
- })(RejectedRecordsException = exports.RejectedRecordsException || (exports.RejectedRecordsException = {}));
275
220
  var TagResourceRequest;
276
221
  (function (TagResourceRequest) {
277
222
  TagResourceRequest.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, _r;
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,
@@ -28,8 +33,8 @@ const getRuntimeConfig = (config) => {
28
33
  endpointDiscoveryEnabledProvider: (_f = config === null || config === void 0 ? void 0 : config.endpointDiscoveryEnabledProvider) !== null && _f !== void 0 ? _f : (() => Promise.resolve(undefined)),
29
34
  maxAttempts: (_g = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _g !== void 0 ? _g : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
30
35
  region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : invalid_dependency_1.invalidProvider("Region is missing"),
31
- requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new fetch_http_handler_1.FetchHttpHandler(),
32
- retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
36
+ requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
37
+ retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
33
38
  sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : sha256_browser_1.Sha256,
34
39
  streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : fetch_http_handler_1.streamCollector,
35
40
  useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
@@ -16,13 +16,18 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
16
16
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
17
17
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
18
18
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
19
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
20
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
19
21
  const getRuntimeConfig = (config) => {
20
22
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
23
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
24
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
21
25
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
22
26
  return {
23
27
  ...clientSharedValues,
24
28
  ...config,
25
29
  runtime: "node",
30
+ defaultsMode,
26
31
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
27
32
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
28
33
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -31,8 +36,11 @@ const getRuntimeConfig = (config) => {
31
36
  endpointDiscoveryEnabledProvider: (_f = config === null || config === void 0 ? void 0 : config.endpointDiscoveryEnabledProvider) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_endpoint_discovery_1.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS),
32
37
  maxAttempts: (_g = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
33
38
  region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
34
- requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new node_http_handler_1.NodeHttpHandler(),
35
- retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
39
+ requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
40
+ retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : node_config_provider_1.loadConfig({
41
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
42
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
43
+ }),
36
44
  sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : hash_node_1.Hash.bind(null, "sha256"),
37
45
  streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : node_http_handler_1.streamCollector,
38
46
  useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
@@ -1,12 +1,4 @@
1
1
  import { __assign } from "tslib";
2
- export var AccessDeniedException;
3
- (function (AccessDeniedException) {
4
- AccessDeniedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
5
- })(AccessDeniedException || (AccessDeniedException = {}));
6
- export var ConflictException;
7
- (function (ConflictException) {
8
- ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
9
- })(ConflictException || (ConflictException = {}));
10
2
  export var Tag;
11
3
  (function (Tag) {
12
4
  Tag.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -23,26 +15,6 @@ export var CreateDatabaseResponse;
23
15
  (function (CreateDatabaseResponse) {
24
16
  CreateDatabaseResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
25
17
  })(CreateDatabaseResponse || (CreateDatabaseResponse = {}));
26
- export var InternalServerException;
27
- (function (InternalServerException) {
28
- InternalServerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
29
- })(InternalServerException || (InternalServerException = {}));
30
- export var InvalidEndpointException;
31
- (function (InvalidEndpointException) {
32
- InvalidEndpointException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
33
- })(InvalidEndpointException || (InvalidEndpointException = {}));
34
- export var ServiceQuotaExceededException;
35
- (function (ServiceQuotaExceededException) {
36
- ServiceQuotaExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
37
- })(ServiceQuotaExceededException || (ServiceQuotaExceededException = {}));
38
- export var ThrottlingException;
39
- (function (ThrottlingException) {
40
- ThrottlingException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
41
- })(ThrottlingException || (ThrottlingException = {}));
42
- export var ValidationException;
43
- (function (ValidationException) {
44
- ValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
45
- })(ValidationException || (ValidationException = {}));
46
18
  export var S3EncryptionOption;
47
19
  (function (S3EncryptionOption) {
48
20
  S3EncryptionOption["SSE_KMS"] = "SSE_KMS";
@@ -81,10 +53,6 @@ export var CreateTableResponse;
81
53
  (function (CreateTableResponse) {
82
54
  CreateTableResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
83
55
  })(CreateTableResponse || (CreateTableResponse = {}));
84
- export var ResourceNotFoundException;
85
- (function (ResourceNotFoundException) {
86
- ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
87
- })(ResourceNotFoundException || (ResourceNotFoundException = {}));
88
56
  export var DeleteDatabaseRequest;
89
57
  (function (DeleteDatabaseRequest) {
90
58
  DeleteDatabaseRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -185,10 +153,6 @@ export var RejectedRecord;
185
153
  (function (RejectedRecord) {
186
154
  RejectedRecord.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
187
155
  })(RejectedRecord || (RejectedRecord = {}));
188
- export var RejectedRecordsException;
189
- (function (RejectedRecordsException) {
190
- RejectedRecordsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
191
- })(RejectedRecordsException || (RejectedRecordsException = {}));
192
156
  export var TagResourceRequest;
193
157
  (function (TagResourceRequest) {
194
158
  TagResourceRequest.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, _r;
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 }), endpointDiscoveryEnabledProvider: (_f = config === null || config === void 0 ? void 0 : config.endpointDiscoveryEnabledProvider) !== null && _f !== void 0 ? _f : (function () { return Promise.resolve(undefined); }), maxAttempts: (_g = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _g !== void 0 ? _g : DEFAULT_MAX_ATTEMPTS, region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : invalidProvider("Region is missing"), requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new FetchHttpHandler(), retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : Sha256, streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : streamCollector, useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _p !== void 0 ? _p : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _q !== void 0 ? _q : fromUtf8, utf8Encoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _r !== void 0 ? _r : toUtf8 });
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 }), endpointDiscoveryEnabledProvider: (_f = config === null || config === void 0 ? void 0 : config.endpointDiscoveryEnabledProvider) !== null && _f !== void 0 ? _f : (function () { return Promise.resolve(undefined); }), maxAttempts: (_g = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _g !== void 0 ? _g : DEFAULT_MAX_ATTEMPTS, region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : invalidProvider("Region is missing"), requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new RequestHandler(defaultConfigProvider), retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : (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: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : Sha256, streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : streamCollector, useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _p !== void 0 ? _p : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _q !== void 0 ? _q : fromUtf8, utf8Encoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _r !== void 0 ? _r : toUtf8 });
17
26
  };
@@ -1,20 +1,29 @@
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
7
  import { NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS } from "@aws-sdk/middleware-endpoint-discovery";
8
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
8
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
9
9
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
10
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
11
11
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
12
12
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
13
13
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
14
14
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
15
15
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
16
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
17
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
16
18
  export var getRuntimeConfig = function (config) {
17
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
20
+ var defaultsMode = resolveDefaultsModeConfig(config);
21
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
18
22
  var clientSharedValues = getSharedRuntimeConfig(config);
19
- 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 }), endpointDiscoveryEnabledProvider: (_f = config === null || config === void 0 ? void 0 : config.endpointDiscoveryEnabledProvider) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS), maxAttempts: (_g = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new NodeHttpHandler(), retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : Hash.bind(null, "sha256"), streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : streamCollector, useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _p !== void 0 ? _p : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _q !== void 0 ? _q : fromUtf8, utf8Encoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _r !== void 0 ? _r : toUtf8 });
23
+ 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 }), endpointDiscoveryEnabledProvider: (_f = config === null || config === void 0 ? void 0 : config.endpointDiscoveryEnabledProvider) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS), maxAttempts: (_g = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new RequestHandler(defaultConfigProvider), retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
24
+ switch (_a.label) {
25
+ case 0: return [4, defaultConfigProvider()];
26
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
27
+ }
28
+ }); }); } })), sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : Hash.bind(null, "sha256"), streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : streamCollector, useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _p !== void 0 ? _p : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _q !== void 0 ? _q : fromUtf8, utf8Encoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _r !== void 0 ? _r : toUtf8 });
20
29
  };
@@ -5,7 +5,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
5
5
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
6
6
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
7
7
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
8
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
9
9
  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";
10
10
  import { CreateDatabaseCommandInput, CreateDatabaseCommandOutput } from "./commands/CreateDatabaseCommand";
11
11
  import { CreateTableCommandInput, CreateTableCommandOutput } from "./commands/CreateTableCommand";
@@ -130,6 +130,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
130
130
  * @internal
131
131
  */
132
132
  endpointDiscoveryEnabledProvider?: __Provider<boolean | undefined>;
133
+ /**
134
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
135
+ */
136
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
133
137
  }
134
138
  declare type TimestreamWriteClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & EndpointDiscoveryInputConfig;
135
139
  /**
@@ -7,12 +7,6 @@ export interface AccessDeniedException extends __SmithyException, $MetadataBeare
7
7
  $fault: "client";
8
8
  Message: string | undefined;
9
9
  }
10
- export declare namespace AccessDeniedException {
11
- /**
12
- * @internal
13
- */
14
- const filterSensitiveLog: (obj: AccessDeniedException) => any;
15
- }
16
10
  /**
17
11
  * <p>Timestream was unable to process this request because it contains resource that already exists.</p>
18
12
  */
@@ -21,12 +15,6 @@ export interface ConflictException extends __SmithyException, $MetadataBearer {
21
15
  $fault: "client";
22
16
  Message: string | undefined;
23
17
  }
24
- export declare namespace ConflictException {
25
- /**
26
- * @internal
27
- */
28
- const filterSensitiveLog: (obj: ConflictException) => any;
29
- }
30
18
  /**
31
19
  * <p>
32
20
  * A tag is a label that you assign to a Timestream database and/or table. Each tag consists
@@ -138,12 +126,6 @@ export interface InternalServerException extends __SmithyException, $MetadataBea
138
126
  $fault: "server";
139
127
  Message: string | undefined;
140
128
  }
141
- export declare namespace InternalServerException {
142
- /**
143
- * @internal
144
- */
145
- const filterSensitiveLog: (obj: InternalServerException) => any;
146
- }
147
129
  /**
148
130
  * <p>The requested endpoint was invalid.</p>
149
131
  */
@@ -152,12 +134,6 @@ export interface InvalidEndpointException extends __SmithyException, $MetadataBe
152
134
  $fault: "client";
153
135
  Message?: string;
154
136
  }
155
- export declare namespace InvalidEndpointException {
156
- /**
157
- * @internal
158
- */
159
- const filterSensitiveLog: (obj: InvalidEndpointException) => any;
160
- }
161
137
  /**
162
138
  * <p> Instance quota of resource exceeded for this account.</p>
163
139
  */
@@ -166,12 +142,6 @@ export interface ServiceQuotaExceededException extends __SmithyException, $Metad
166
142
  $fault: "client";
167
143
  Message?: string;
168
144
  }
169
- export declare namespace ServiceQuotaExceededException {
170
- /**
171
- * @internal
172
- */
173
- const filterSensitiveLog: (obj: ServiceQuotaExceededException) => any;
174
- }
175
145
  /**
176
146
  * <p> Too many requests were made by a user exceeding service quotas. The request was throttled.</p>
177
147
  */
@@ -180,12 +150,6 @@ export interface ThrottlingException extends __SmithyException, $MetadataBearer
180
150
  $fault: "client";
181
151
  Message: string | undefined;
182
152
  }
183
- export declare namespace ThrottlingException {
184
- /**
185
- * @internal
186
- */
187
- const filterSensitiveLog: (obj: ThrottlingException) => any;
188
- }
189
153
  /**
190
154
  * <p> Invalid or malformed request.</p>
191
155
  */
@@ -194,12 +158,6 @@ export interface ValidationException extends __SmithyException, $MetadataBearer
194
158
  $fault: "client";
195
159
  Message: string | undefined;
196
160
  }
197
- export declare namespace ValidationException {
198
- /**
199
- * @internal
200
- */
201
- const filterSensitiveLog: (obj: ValidationException) => any;
202
- }
203
161
  export declare enum S3EncryptionOption {
204
162
  SSE_KMS = "SSE_KMS",
205
163
  SSE_S3 = "SSE_S3"
@@ -393,12 +351,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
393
351
  $fault: "client";
394
352
  Message?: string;
395
353
  }
396
- export declare namespace ResourceNotFoundException {
397
- /**
398
- * @internal
399
- */
400
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
401
- }
402
354
  export interface DeleteDatabaseRequest {
403
355
  /**
404
356
  * <p>The name of the Timestream database to be deleted.</p>
@@ -910,12 +862,6 @@ export interface RejectedRecordsException extends __SmithyException, $MetadataBe
910
862
  Message?: string;
911
863
  RejectedRecords?: RejectedRecord[];
912
864
  }
913
- export declare namespace RejectedRecordsException {
914
- /**
915
- * @internal
916
- */
917
- const filterSensitiveLog: (obj: RejectedRecordsException) => any;
918
- }
919
865
  export interface TagResourceRequest {
920
866
  /**
921
867
  * <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 { TimestreamWriteClientConfig } from "./TimestreamWriteClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: TimestreamWriteClientConfig) => {
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;
@@ -13,7 +14,7 @@ export declare const getRuntimeConfig: (config: TimestreamWriteClientConfig) =>
13
14
  endpointDiscoveryEnabledProvider: import("@aws-sdk/types").Provider<boolean | undefined>;
14
15
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
15
16
  region: string | import("@aws-sdk/types").Provider<any>;
16
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
17
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
17
18
  retryMode: string | import("@aws-sdk/types").Provider<string>;
18
19
  sha256: import("@aws-sdk/types").HashConstructor;
19
20
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,19 +1,20 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { TimestreamWriteClientConfig } from "./TimestreamWriteClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: TimestreamWriteClientConfig) => {
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/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
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
  endpointDiscoveryEnabledProvider: import("@aws-sdk/types").Provider<boolean | undefined>;
14
15
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
15
16
  region: string | import("@aws-sdk/types").Provider<string>;
16
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
17
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
17
18
  retryMode: string | import("@aws-sdk/types").Provider<string>;
18
19
  sha256: import("@aws-sdk/types").HashConstructor;
19
20
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -26,6 +26,7 @@ export declare const getRuntimeConfig: (config: TimestreamWriteClientConfig) =>
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
28
  endpointDiscoveryEnabledProvider: import("@aws-sdk/types").Provider<boolean | undefined>;
29
+ 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>;
29
30
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
30
31
  tls?: boolean | undefined;
31
32
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -5,7 +5,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
5
5
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
6
6
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
7
7
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
8
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
9
9
  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";
10
10
  import { CreateDatabaseCommandInput, CreateDatabaseCommandOutput } from "./commands/CreateDatabaseCommand";
11
11
  import { CreateTableCommandInput, CreateTableCommandOutput } from "./commands/CreateTableCommand";
@@ -69,6 +69,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
69
69
  defaultUserAgentProvider?: Provider<__UserAgent>;
70
70
 
71
71
  endpointDiscoveryEnabledProvider?: __Provider<boolean | undefined>;
72
+
73
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
72
74
  }
73
75
  declare type TimestreamWriteClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & EndpointDiscoveryInputConfig;
74
76
 
@@ -5,20 +5,12 @@ export interface AccessDeniedException extends __SmithyException, $MetadataBeare
5
5
  $fault: "client";
6
6
  Message: string | undefined;
7
7
  }
8
- export declare namespace AccessDeniedException {
9
-
10
- const filterSensitiveLog: (obj: AccessDeniedException) => any;
11
- }
12
8
 
13
9
  export interface ConflictException extends __SmithyException, $MetadataBearer {
14
10
  name: "ConflictException";
15
11
  $fault: "client";
16
12
  Message: string | undefined;
17
13
  }
18
- export declare namespace ConflictException {
19
-
20
- const filterSensitiveLog: (obj: ConflictException) => any;
21
- }
22
14
 
23
15
  export interface Tag {
24
16
 
@@ -75,50 +67,30 @@ export interface InternalServerException extends __SmithyException, $MetadataBea
75
67
  $fault: "server";
76
68
  Message: string | undefined;
77
69
  }
78
- export declare namespace InternalServerException {
79
-
80
- const filterSensitiveLog: (obj: InternalServerException) => any;
81
- }
82
70
 
83
71
  export interface InvalidEndpointException extends __SmithyException, $MetadataBearer {
84
72
  name: "InvalidEndpointException";
85
73
  $fault: "client";
86
74
  Message?: string;
87
75
  }
88
- export declare namespace InvalidEndpointException {
89
-
90
- const filterSensitiveLog: (obj: InvalidEndpointException) => any;
91
- }
92
76
 
93
77
  export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
94
78
  name: "ServiceQuotaExceededException";
95
79
  $fault: "client";
96
80
  Message?: string;
97
81
  }
98
- export declare namespace ServiceQuotaExceededException {
99
-
100
- const filterSensitiveLog: (obj: ServiceQuotaExceededException) => any;
101
- }
102
82
 
103
83
  export interface ThrottlingException extends __SmithyException, $MetadataBearer {
104
84
  name: "ThrottlingException";
105
85
  $fault: "client";
106
86
  Message: string | undefined;
107
87
  }
108
- export declare namespace ThrottlingException {
109
-
110
- const filterSensitiveLog: (obj: ThrottlingException) => any;
111
- }
112
88
 
113
89
  export interface ValidationException extends __SmithyException, $MetadataBearer {
114
90
  name: "ValidationException";
115
91
  $fault: "client";
116
92
  Message: string | undefined;
117
93
  }
118
- export declare namespace ValidationException {
119
-
120
- const filterSensitiveLog: (obj: ValidationException) => any;
121
- }
122
94
  export declare enum S3EncryptionOption {
123
95
  SSE_KMS = "SSE_KMS",
124
96
  SSE_S3 = "SSE_S3"
@@ -226,10 +198,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
226
198
  $fault: "client";
227
199
  Message?: string;
228
200
  }
229
- export declare namespace ResourceNotFoundException {
230
-
231
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
232
- }
233
201
  export interface DeleteDatabaseRequest {
234
202
 
235
203
  DatabaseName: string | undefined;
@@ -464,10 +432,6 @@ export interface RejectedRecordsException extends __SmithyException, $MetadataBe
464
432
  Message?: string;
465
433
  RejectedRecords?: RejectedRecord[];
466
434
  }
467
- export declare namespace RejectedRecordsException {
468
-
469
- const filterSensitiveLog: (obj: RejectedRecordsException) => any;
470
- }
471
435
  export interface TagResourceRequest {
472
436
 
473
437
  ResourceARN: string | undefined;
@@ -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 { TimestreamWriteClientConfig } from "./TimestreamWriteClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: TimestreamWriteClientConfig) => {
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;
@@ -11,7 +12,7 @@ export declare const getRuntimeConfig: (config: TimestreamWriteClientConfig) =>
11
12
  endpointDiscoveryEnabledProvider: import("@aws-sdk/types").Provider<boolean | undefined>;
12
13
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
13
14
  region: string | import("@aws-sdk/types").Provider<any>;
14
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
15
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
15
16
  retryMode: string | import("@aws-sdk/types").Provider<string>;
16
17
  sha256: import("@aws-sdk/types").HashConstructor;
17
18
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,17 +1,18 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { TimestreamWriteClientConfig } from "./TimestreamWriteClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: TimestreamWriteClientConfig) => {
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/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
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
  endpointDiscoveryEnabledProvider: import("@aws-sdk/types").Provider<boolean | undefined>;
12
13
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
13
14
  region: string | import("@aws-sdk/types").Provider<string>;
14
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
15
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
15
16
  retryMode: string | import("@aws-sdk/types").Provider<string>;
16
17
  sha256: import("@aws-sdk/types").HashConstructor;
17
18
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -24,6 +24,7 @@ export declare const getRuntimeConfig: (config: TimestreamWriteClientConfig) =>
24
24
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
25
25
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
26
26
  endpointDiscoveryEnabledProvider: import("@aws-sdk/types").Provider<boolean | undefined>;
27
+ 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>;
27
28
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
28
29
  tls?: boolean | undefined;
29
30
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
package/package.json CHANGED
@@ -1,17 +1,15 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-timestream-write",
3
3
  "description": "AWS SDK for JavaScript Timestream Write Client for Node.js, Browser and React Native",
4
- "version": "3.46.0",
4
+ "version": "3.47.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
- "build:cjs": "tsc -p tsconfig.json",
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": "yarn clean:dist && yarn clean:docs",
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,39 +18,41 @@
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.46.0",
24
- "@aws-sdk/config-resolver": "3.46.0",
25
- "@aws-sdk/credential-provider-node": "3.46.0",
26
- "@aws-sdk/fetch-http-handler": "3.46.0",
27
- "@aws-sdk/hash-node": "3.46.0",
28
- "@aws-sdk/invalid-dependency": "3.46.0",
29
- "@aws-sdk/middleware-content-length": "3.46.0",
30
- "@aws-sdk/middleware-endpoint-discovery": "3.46.0",
31
- "@aws-sdk/middleware-host-header": "3.46.0",
32
- "@aws-sdk/middleware-logger": "3.46.0",
33
- "@aws-sdk/middleware-retry": "3.46.0",
34
- "@aws-sdk/middleware-serde": "3.46.0",
35
- "@aws-sdk/middleware-signing": "3.46.0",
36
- "@aws-sdk/middleware-stack": "3.46.0",
37
- "@aws-sdk/middleware-user-agent": "3.46.0",
38
- "@aws-sdk/node-config-provider": "3.46.0",
39
- "@aws-sdk/node-http-handler": "3.46.0",
40
- "@aws-sdk/protocol-http": "3.46.0",
41
- "@aws-sdk/smithy-client": "3.46.0",
42
- "@aws-sdk/types": "3.46.0",
43
- "@aws-sdk/url-parser": "3.46.0",
44
- "@aws-sdk/util-base64-browser": "3.46.0",
45
- "@aws-sdk/util-base64-node": "3.46.0",
46
- "@aws-sdk/util-body-length-browser": "3.46.0",
47
- "@aws-sdk/util-body-length-node": "3.46.0",
48
- "@aws-sdk/util-user-agent-browser": "3.46.0",
49
- "@aws-sdk/util-user-agent-node": "3.46.0",
50
- "@aws-sdk/util-utf8-browser": "3.46.0",
51
- "@aws-sdk/util-utf8-node": "3.46.0",
21
+ "@aws-sdk/client-sts": "3.47.0",
22
+ "@aws-sdk/config-resolver": "3.47.0",
23
+ "@aws-sdk/credential-provider-node": "3.47.0",
24
+ "@aws-sdk/fetch-http-handler": "3.47.0",
25
+ "@aws-sdk/hash-node": "3.47.0",
26
+ "@aws-sdk/invalid-dependency": "3.47.0",
27
+ "@aws-sdk/middleware-content-length": "3.47.0",
28
+ "@aws-sdk/middleware-endpoint-discovery": "3.47.0",
29
+ "@aws-sdk/middleware-host-header": "3.47.0",
30
+ "@aws-sdk/middleware-logger": "3.47.0",
31
+ "@aws-sdk/middleware-retry": "3.47.0",
32
+ "@aws-sdk/middleware-serde": "3.47.0",
33
+ "@aws-sdk/middleware-signing": "3.47.0",
34
+ "@aws-sdk/middleware-stack": "3.47.0",
35
+ "@aws-sdk/middleware-user-agent": "3.47.0",
36
+ "@aws-sdk/node-config-provider": "3.47.0",
37
+ "@aws-sdk/node-http-handler": "3.47.0",
38
+ "@aws-sdk/protocol-http": "3.47.0",
39
+ "@aws-sdk/smithy-client": "3.47.0",
40
+ "@aws-sdk/types": "3.47.0",
41
+ "@aws-sdk/url-parser": "3.47.0",
42
+ "@aws-sdk/util-base64-browser": "3.47.0",
43
+ "@aws-sdk/util-base64-node": "3.47.0",
44
+ "@aws-sdk/util-body-length-browser": "3.47.0",
45
+ "@aws-sdk/util-body-length-node": "3.47.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.47.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.47.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.47.0",
49
+ "@aws-sdk/util-user-agent-node": "3.47.0",
50
+ "@aws-sdk/util-utf8-browser": "3.47.0",
51
+ "@aws-sdk/util-utf8-node": "3.47.0",
52
52
  "tslib": "^2.3.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@aws-sdk/service-client-documentation-generator": "3.46.0",
55
+ "@aws-sdk/service-client-documentation-generator": "3.47.0",
56
56
  "@types/node": "^12.7.5"
57
57
  },
58
58
  "engines": {