@aws-sdk/client-timestream-query 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,14 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListScheduledQueriesResponse = exports.ScheduledQuery = exports.TargetDestination = exports.TimestreamDestination = exports.ListScheduledQueriesRequest = exports.ExecuteScheduledQueryRequest = exports.DescribeScheduledQueryResponse = exports.ScheduledQueryDescription = exports.ScheduledQueryState = exports.ScheduledQueryRunSummary = exports.ScheduledQueryRunStatus = exports.ExecutionStats = exports.ErrorReportLocation = exports.S3ReportLocation = exports.DescribeScheduledQueryRequest = exports.DescribeEndpointsResponse = exports.Endpoint = exports.DescribeEndpointsRequest = exports.ResourceNotFoundException = exports.DeleteScheduledQueryRequest = exports.ServiceQuotaExceededException = exports.CreateScheduledQueryResponse = exports.CreateScheduledQueryRequest = exports.TargetConfiguration = exports.TimestreamConfiguration = exports.MultiMeasureMappings = exports.MixedMeasureMapping = exports.MultiMeasureAttributeMapping = exports.ScalarMeasureValueType = exports.MeasureValueType = exports.DimensionMapping = exports.DimensionValueType = exports.Tag = exports.ScheduleConfiguration = exports.NotificationConfiguration = exports.SnsConfiguration = exports.ErrorReportConfiguration = exports.S3Configuration = exports.S3EncryptionOption = exports.ConflictException = exports.ScalarType = exports.ValidationException = exports.ThrottlingException = exports.InvalidEndpointException = exports.InternalServerException = exports.CancelQueryResponse = exports.CancelQueryRequest = exports.AccessDeniedException = void 0;
4
- exports.PrepareQueryResponse = exports.QueryResponse = exports.Row = exports.TimeSeriesDataPoint = exports.SelectColumn = exports.ParameterMapping = exports.Datum = exports.Type = exports.ColumnInfo = exports.UpdateScheduledQueryRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.QueryStatus = exports.QueryRequest = exports.QueryExecutionException = exports.PrepareQueryRequest = void 0;
3
+ exports.UpdateScheduledQueryRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.QueryStatus = exports.QueryRequest = exports.PrepareQueryRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListScheduledQueriesResponse = exports.ScheduledQuery = exports.TargetDestination = exports.TimestreamDestination = exports.ListScheduledQueriesRequest = exports.ExecuteScheduledQueryRequest = exports.DescribeScheduledQueryResponse = exports.ScheduledQueryDescription = exports.ScheduledQueryState = exports.ScheduledQueryRunSummary = exports.ScheduledQueryRunStatus = exports.ExecutionStats = exports.ErrorReportLocation = exports.S3ReportLocation = exports.DescribeScheduledQueryRequest = exports.DescribeEndpointsResponse = exports.Endpoint = exports.DescribeEndpointsRequest = exports.DeleteScheduledQueryRequest = exports.CreateScheduledQueryResponse = exports.CreateScheduledQueryRequest = exports.TargetConfiguration = exports.TimestreamConfiguration = exports.MultiMeasureMappings = exports.MixedMeasureMapping = exports.MultiMeasureAttributeMapping = exports.ScalarMeasureValueType = exports.MeasureValueType = exports.DimensionMapping = exports.DimensionValueType = exports.Tag = exports.ScheduleConfiguration = exports.NotificationConfiguration = exports.SnsConfiguration = exports.ErrorReportConfiguration = exports.S3Configuration = exports.S3EncryptionOption = exports.ScalarType = exports.CancelQueryResponse = exports.CancelQueryRequest = void 0;
4
+ exports.PrepareQueryResponse = exports.QueryResponse = exports.Row = exports.TimeSeriesDataPoint = exports.SelectColumn = exports.ParameterMapping = exports.Datum = exports.Type = exports.ColumnInfo = void 0;
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- var AccessDeniedException;
7
- (function (AccessDeniedException) {
8
- AccessDeniedException.filterSensitiveLog = (obj) => ({
9
- ...obj,
10
- });
11
- })(AccessDeniedException = exports.AccessDeniedException || (exports.AccessDeniedException = {}));
12
6
  var CancelQueryRequest;
13
7
  (function (CancelQueryRequest) {
14
8
  CancelQueryRequest.filterSensitiveLog = (obj) => ({
@@ -21,30 +15,6 @@ var CancelQueryResponse;
21
15
  ...obj,
22
16
  });
23
17
  })(CancelQueryResponse = exports.CancelQueryResponse || (exports.CancelQueryResponse = {}));
24
- var InternalServerException;
25
- (function (InternalServerException) {
26
- InternalServerException.filterSensitiveLog = (obj) => ({
27
- ...obj,
28
- });
29
- })(InternalServerException = exports.InternalServerException || (exports.InternalServerException = {}));
30
- var InvalidEndpointException;
31
- (function (InvalidEndpointException) {
32
- InvalidEndpointException.filterSensitiveLog = (obj) => ({
33
- ...obj,
34
- });
35
- })(InvalidEndpointException = exports.InvalidEndpointException || (exports.InvalidEndpointException = {}));
36
- var ThrottlingException;
37
- (function (ThrottlingException) {
38
- ThrottlingException.filterSensitiveLog = (obj) => ({
39
- ...obj,
40
- });
41
- })(ThrottlingException = exports.ThrottlingException || (exports.ThrottlingException = {}));
42
- var ValidationException;
43
- (function (ValidationException) {
44
- ValidationException.filterSensitiveLog = (obj) => ({
45
- ...obj,
46
- });
47
- })(ValidationException = exports.ValidationException || (exports.ValidationException = {}));
48
18
  var ScalarType;
49
19
  (function (ScalarType) {
50
20
  ScalarType["BIGINT"] = "BIGINT";
@@ -59,12 +29,6 @@ var ScalarType;
59
29
  ScalarType["UNKNOWN"] = "UNKNOWN";
60
30
  ScalarType["VARCHAR"] = "VARCHAR";
61
31
  })(ScalarType = exports.ScalarType || (exports.ScalarType = {}));
62
- var ConflictException;
63
- (function (ConflictException) {
64
- ConflictException.filterSensitiveLog = (obj) => ({
65
- ...obj,
66
- });
67
- })(ConflictException = exports.ConflictException || (exports.ConflictException = {}));
68
32
  var S3EncryptionOption;
69
33
  (function (S3EncryptionOption) {
70
34
  S3EncryptionOption["SSE_KMS"] = "SSE_KMS";
@@ -175,24 +139,12 @@ var CreateScheduledQueryResponse;
175
139
  ...obj,
176
140
  });
177
141
  })(CreateScheduledQueryResponse = exports.CreateScheduledQueryResponse || (exports.CreateScheduledQueryResponse = {}));
178
- var ServiceQuotaExceededException;
179
- (function (ServiceQuotaExceededException) {
180
- ServiceQuotaExceededException.filterSensitiveLog = (obj) => ({
181
- ...obj,
182
- });
183
- })(ServiceQuotaExceededException = exports.ServiceQuotaExceededException || (exports.ServiceQuotaExceededException = {}));
184
142
  var DeleteScheduledQueryRequest;
185
143
  (function (DeleteScheduledQueryRequest) {
186
144
  DeleteScheduledQueryRequest.filterSensitiveLog = (obj) => ({
187
145
  ...obj,
188
146
  });
189
147
  })(DeleteScheduledQueryRequest = exports.DeleteScheduledQueryRequest || (exports.DeleteScheduledQueryRequest = {}));
190
- var ResourceNotFoundException;
191
- (function (ResourceNotFoundException) {
192
- ResourceNotFoundException.filterSensitiveLog = (obj) => ({
193
- ...obj,
194
- });
195
- })(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
196
148
  var DescribeEndpointsRequest;
197
149
  (function (DescribeEndpointsRequest) {
198
150
  DescribeEndpointsRequest.filterSensitiveLog = (obj) => ({
@@ -323,12 +275,6 @@ var PrepareQueryRequest;
323
275
  ...(obj.QueryString && { QueryString: smithy_client_1.SENSITIVE_STRING }),
324
276
  });
325
277
  })(PrepareQueryRequest = exports.PrepareQueryRequest || (exports.PrepareQueryRequest = {}));
326
- var QueryExecutionException;
327
- (function (QueryExecutionException) {
328
- QueryExecutionException.filterSensitiveLog = (obj) => ({
329
- ...obj,
330
- });
331
- })(QueryExecutionException = exports.QueryExecutionException || (exports.QueryExecutionException = {}));
332
278
  var QueryRequest;
333
279
  (function (QueryRequest) {
334
280
  QueryRequest.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,9 +1,5 @@
1
1
  import { __assign } from "tslib";
2
2
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
- export var AccessDeniedException;
4
- (function (AccessDeniedException) {
5
- AccessDeniedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
6
- })(AccessDeniedException || (AccessDeniedException = {}));
7
3
  export var CancelQueryRequest;
8
4
  (function (CancelQueryRequest) {
9
5
  CancelQueryRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -12,22 +8,6 @@ export var CancelQueryResponse;
12
8
  (function (CancelQueryResponse) {
13
9
  CancelQueryResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
14
10
  })(CancelQueryResponse || (CancelQueryResponse = {}));
15
- export var InternalServerException;
16
- (function (InternalServerException) {
17
- InternalServerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
18
- })(InternalServerException || (InternalServerException = {}));
19
- export var InvalidEndpointException;
20
- (function (InvalidEndpointException) {
21
- InvalidEndpointException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
22
- })(InvalidEndpointException || (InvalidEndpointException = {}));
23
- export var ThrottlingException;
24
- (function (ThrottlingException) {
25
- ThrottlingException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
26
- })(ThrottlingException || (ThrottlingException = {}));
27
- export var ValidationException;
28
- (function (ValidationException) {
29
- ValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
30
- })(ValidationException || (ValidationException = {}));
31
11
  export var ScalarType;
32
12
  (function (ScalarType) {
33
13
  ScalarType["BIGINT"] = "BIGINT";
@@ -42,10 +22,6 @@ export var ScalarType;
42
22
  ScalarType["UNKNOWN"] = "UNKNOWN";
43
23
  ScalarType["VARCHAR"] = "VARCHAR";
44
24
  })(ScalarType || (ScalarType = {}));
45
- export var ConflictException;
46
- (function (ConflictException) {
47
- ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
48
- })(ConflictException || (ConflictException = {}));
49
25
  export var S3EncryptionOption;
50
26
  (function (S3EncryptionOption) {
51
27
  S3EncryptionOption["SSE_KMS"] = "SSE_KMS";
@@ -126,18 +102,10 @@ export var CreateScheduledQueryResponse;
126
102
  (function (CreateScheduledQueryResponse) {
127
103
  CreateScheduledQueryResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
128
104
  })(CreateScheduledQueryResponse || (CreateScheduledQueryResponse = {}));
129
- export var ServiceQuotaExceededException;
130
- (function (ServiceQuotaExceededException) {
131
- ServiceQuotaExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
132
- })(ServiceQuotaExceededException || (ServiceQuotaExceededException = {}));
133
105
  export var DeleteScheduledQueryRequest;
134
106
  (function (DeleteScheduledQueryRequest) {
135
107
  DeleteScheduledQueryRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
136
108
  })(DeleteScheduledQueryRequest || (DeleteScheduledQueryRequest = {}));
137
- export var ResourceNotFoundException;
138
- (function (ResourceNotFoundException) {
139
- ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
140
- })(ResourceNotFoundException || (ResourceNotFoundException = {}));
141
109
  export var DescribeEndpointsRequest;
142
110
  (function (DescribeEndpointsRequest) {
143
111
  DescribeEndpointsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -226,10 +194,6 @@ export var PrepareQueryRequest;
226
194
  (function (PrepareQueryRequest) {
227
195
  PrepareQueryRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.QueryString && { QueryString: SENSITIVE_STRING }))); };
228
196
  })(PrepareQueryRequest || (PrepareQueryRequest = {}));
229
- export var QueryExecutionException;
230
- (function (QueryExecutionException) {
231
- QueryExecutionException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
232
- })(QueryExecutionException || (QueryExecutionException = {}));
233
197
  export var QueryRequest;
234
198
  (function (QueryRequest) {
235
199
  QueryRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.QueryString && { QueryString: SENSITIVE_STRING })), (obj.ClientToken && { ClientToken: SENSITIVE_STRING }))); };
@@ -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 { CancelQueryCommandInput, CancelQueryCommandOutput } from "./commands/CancelQueryCommand";
11
11
  import { CreateScheduledQueryCommandInput, CreateScheduledQueryCommandOutput } from "./commands/CreateScheduledQueryCommand";
@@ -128,6 +128,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
128
128
  * @internal
129
129
  */
130
130
  endpointDiscoveryEnabledProvider?: __Provider<boolean | undefined>;
131
+ /**
132
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
133
+ */
134
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
131
135
  }
132
136
  declare type TimestreamQueryClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & EndpointDiscoveryInputConfig;
133
137
  /**
@@ -7,12 +7,6 @@ export interface AccessDeniedException extends __SmithyException, $MetadataBeare
7
7
  $fault: "client";
8
8
  Message?: string;
9
9
  }
10
- export declare namespace AccessDeniedException {
11
- /**
12
- * @internal
13
- */
14
- const filterSensitiveLog: (obj: AccessDeniedException) => any;
15
- }
16
10
  export interface CancelQueryRequest {
17
11
  /**
18
12
  * <p> The ID of the query that needs to be cancelled. <code>QueryID</code> is returned as
@@ -49,12 +43,6 @@ export interface InternalServerException extends __SmithyException, $MetadataBea
49
43
  $fault: "server";
50
44
  Message?: string;
51
45
  }
52
- export declare namespace InternalServerException {
53
- /**
54
- * @internal
55
- */
56
- const filterSensitiveLog: (obj: InternalServerException) => any;
57
- }
58
46
  /**
59
47
  * <p>The requested endpoint was not valid.</p>
60
48
  */
@@ -63,12 +51,6 @@ export interface InvalidEndpointException extends __SmithyException, $MetadataBe
63
51
  $fault: "client";
64
52
  Message?: string;
65
53
  }
66
- export declare namespace InvalidEndpointException {
67
- /**
68
- * @internal
69
- */
70
- const filterSensitiveLog: (obj: InvalidEndpointException) => any;
71
- }
72
54
  /**
73
55
  * <p>The request was denied due to request throttling.</p>
74
56
  */
@@ -77,12 +59,6 @@ export interface ThrottlingException extends __SmithyException, $MetadataBearer
77
59
  $fault: "client";
78
60
  Message?: string;
79
61
  }
80
- export declare namespace ThrottlingException {
81
- /**
82
- * @internal
83
- */
84
- const filterSensitiveLog: (obj: ThrottlingException) => any;
85
- }
86
62
  /**
87
63
  * <p> Invalid or malformed request. </p>
88
64
  */
@@ -91,12 +67,6 @@ export interface ValidationException extends __SmithyException, $MetadataBearer
91
67
  $fault: "client";
92
68
  Message?: string;
93
69
  }
94
- export declare namespace ValidationException {
95
- /**
96
- * @internal
97
- */
98
- const filterSensitiveLog: (obj: ValidationException) => any;
99
- }
100
70
  export declare enum ScalarType {
101
71
  BIGINT = "BIGINT",
102
72
  BOOLEAN = "BOOLEAN",
@@ -118,12 +88,6 @@ export interface ConflictException extends __SmithyException, $MetadataBearer {
118
88
  $fault: "client";
119
89
  Message?: string;
120
90
  }
121
- export declare namespace ConflictException {
122
- /**
123
- * @internal
124
- */
125
- const filterSensitiveLog: (obj: ConflictException) => any;
126
- }
127
91
  export declare enum S3EncryptionOption {
128
92
  SSE_KMS = "SSE_KMS",
129
93
  SSE_S3 = "SSE_S3"
@@ -509,12 +473,6 @@ export interface ServiceQuotaExceededException extends __SmithyException, $Metad
509
473
  $fault: "client";
510
474
  Message?: string;
511
475
  }
512
- export declare namespace ServiceQuotaExceededException {
513
- /**
514
- * @internal
515
- */
516
- const filterSensitiveLog: (obj: ServiceQuotaExceededException) => any;
517
- }
518
476
  export interface DeleteScheduledQueryRequest {
519
477
  /**
520
478
  * <p>The ARN of the scheduled query. </p>
@@ -539,12 +497,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
539
497
  */
540
498
  ScheduledQueryArn?: string;
541
499
  }
542
- export declare namespace ResourceNotFoundException {
543
- /**
544
- * @internal
545
- */
546
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
547
- }
548
500
  export interface DescribeEndpointsRequest {
549
501
  }
550
502
  export declare namespace DescribeEndpointsRequest {
@@ -1000,12 +952,6 @@ export interface QueryExecutionException extends __SmithyException, $MetadataBea
1000
952
  $fault: "client";
1001
953
  Message?: string;
1002
954
  }
1003
- export declare namespace QueryExecutionException {
1004
- /**
1005
- * @internal
1006
- */
1007
- const filterSensitiveLog: (obj: QueryExecutionException) => any;
1008
- }
1009
955
  export interface QueryRequest {
1010
956
  /**
1011
957
  * <p> The query to be run by Timestream. </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 { TimestreamQueryClientConfig } from "./TimestreamQueryClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: TimestreamQueryClientConfig) => {
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: TimestreamQueryClientConfig) =>
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 { TimestreamQueryClientConfig } from "./TimestreamQueryClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: TimestreamQueryClientConfig) => {
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: TimestreamQueryClientConfig) =>
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 { CancelQueryCommandInput, CancelQueryCommandOutput } from "./commands/CancelQueryCommand";
11
11
  import { CreateScheduledQueryCommandInput, CreateScheduledQueryCommandOutput } from "./commands/CreateScheduledQueryCommand";
@@ -67,6 +67,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
67
67
  defaultUserAgentProvider?: Provider<__UserAgent>;
68
68
 
69
69
  endpointDiscoveryEnabledProvider?: __Provider<boolean | undefined>;
70
+
71
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
70
72
  }
71
73
  declare type TimestreamQueryClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & EndpointDiscoveryInputConfig;
72
74
 
@@ -5,10 +5,6 @@ export interface AccessDeniedException extends __SmithyException, $MetadataBeare
5
5
  $fault: "client";
6
6
  Message?: string;
7
7
  }
8
- export declare namespace AccessDeniedException {
9
-
10
- const filterSensitiveLog: (obj: AccessDeniedException) => any;
11
- }
12
8
  export interface CancelQueryRequest {
13
9
 
14
10
  QueryId: string | undefined;
@@ -31,40 +27,24 @@ export interface InternalServerException extends __SmithyException, $MetadataBea
31
27
  $fault: "server";
32
28
  Message?: string;
33
29
  }
34
- export declare namespace InternalServerException {
35
-
36
- const filterSensitiveLog: (obj: InternalServerException) => any;
37
- }
38
30
 
39
31
  export interface InvalidEndpointException extends __SmithyException, $MetadataBearer {
40
32
  name: "InvalidEndpointException";
41
33
  $fault: "client";
42
34
  Message?: string;
43
35
  }
44
- export declare namespace InvalidEndpointException {
45
-
46
- const filterSensitiveLog: (obj: InvalidEndpointException) => any;
47
- }
48
36
 
49
37
  export interface ThrottlingException extends __SmithyException, $MetadataBearer {
50
38
  name: "ThrottlingException";
51
39
  $fault: "client";
52
40
  Message?: string;
53
41
  }
54
- export declare namespace ThrottlingException {
55
-
56
- const filterSensitiveLog: (obj: ThrottlingException) => any;
57
- }
58
42
 
59
43
  export interface ValidationException extends __SmithyException, $MetadataBearer {
60
44
  name: "ValidationException";
61
45
  $fault: "client";
62
46
  Message?: string;
63
47
  }
64
- export declare namespace ValidationException {
65
-
66
- const filterSensitiveLog: (obj: ValidationException) => any;
67
- }
68
48
  export declare enum ScalarType {
69
49
  BIGINT = "BIGINT",
70
50
  BOOLEAN = "BOOLEAN",
@@ -84,10 +64,6 @@ export interface ConflictException extends __SmithyException, $MetadataBearer {
84
64
  $fault: "client";
85
65
  Message?: string;
86
66
  }
87
- export declare namespace ConflictException {
88
-
89
- const filterSensitiveLog: (obj: ConflictException) => any;
90
- }
91
67
  export declare enum S3EncryptionOption {
92
68
  SSE_KMS = "SSE_KMS",
93
69
  SSE_S3 = "SSE_S3"
@@ -290,10 +266,6 @@ export interface ServiceQuotaExceededException extends __SmithyException, $Metad
290
266
  $fault: "client";
291
267
  Message?: string;
292
268
  }
293
- export declare namespace ServiceQuotaExceededException {
294
-
295
- const filterSensitiveLog: (obj: ServiceQuotaExceededException) => any;
296
- }
297
269
  export interface DeleteScheduledQueryRequest {
298
270
 
299
271
  ScheduledQueryArn: string | undefined;
@@ -310,10 +282,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
310
282
 
311
283
  ScheduledQueryArn?: string;
312
284
  }
313
- export declare namespace ResourceNotFoundException {
314
-
315
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
316
- }
317
285
  export interface DescribeEndpointsRequest {
318
286
  }
319
287
  export declare namespace DescribeEndpointsRequest {
@@ -573,10 +541,6 @@ export interface QueryExecutionException extends __SmithyException, $MetadataBea
573
541
  $fault: "client";
574
542
  Message?: string;
575
543
  }
576
- export declare namespace QueryExecutionException {
577
-
578
- const filterSensitiveLog: (obj: QueryExecutionException) => any;
579
- }
580
544
  export interface QueryRequest {
581
545
 
582
546
  QueryString: 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 { TimestreamQueryClientConfig } from "./TimestreamQueryClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: TimestreamQueryClientConfig) => {
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: TimestreamQueryClientConfig) =>
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 { TimestreamQueryClientConfig } from "./TimestreamQueryClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: TimestreamQueryClientConfig) => {
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: TimestreamQueryClientConfig) =>
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-query",
3
3
  "description": "AWS SDK for JavaScript Timestream Query 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,40 +18,42 @@
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
  "uuid": "^8.3.2"
54
54
  },
55
55
  "devDependencies": {
56
- "@aws-sdk/service-client-documentation-generator": "3.46.0",
56
+ "@aws-sdk/service-client-documentation-generator": "3.47.0",
57
57
  "@types/node": "^12.7.5",
58
58
  "@types/uuid": "^8.3.0"
59
59
  },