@aws-sdk/client-redshift-data 3.1068.0 → 3.1069.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.
@@ -1,17 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveHttpAuthSchemeConfig = exports.defaultRedshiftDataHttpAuthSchemeProvider = exports.defaultRedshiftDataHttpAuthSchemeParametersProvider = void 0;
4
- const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
- const client_1 = require("@smithy/core/client");
6
- const defaultRedshiftDataHttpAuthSchemeParametersProvider = async (config, context, input) => {
1
+ const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
2
+ const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
3
+ exports.defaultRedshiftDataHttpAuthSchemeParametersProvider = async (config, context, input) => {
7
4
  return {
8
- operation: (0, client_1.getSmithyContext)(context).operation,
9
- region: await (0, client_1.normalizeProvider)(config.region)() || (() => {
5
+ operation: getSmithyContext(context).operation,
6
+ region: await normalizeProvider(config.region)() || (() => {
10
7
  throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
11
8
  })(),
12
9
  };
13
10
  };
14
- exports.defaultRedshiftDataHttpAuthSchemeParametersProvider = defaultRedshiftDataHttpAuthSchemeParametersProvider;
15
11
  function createAwsAuthSigv4HttpAuthOption(authParameters) {
16
12
  return {
17
13
  schemeId: "aws.auth#sigv4",
@@ -27,7 +23,7 @@ function createAwsAuthSigv4HttpAuthOption(authParameters) {
27
23
  }),
28
24
  };
29
25
  }
30
- const defaultRedshiftDataHttpAuthSchemeProvider = (authParameters) => {
26
+ exports.defaultRedshiftDataHttpAuthSchemeProvider = (authParameters) => {
31
27
  const options = [];
32
28
  switch (authParameters.operation) {
33
29
  default: {
@@ -36,11 +32,9 @@ const defaultRedshiftDataHttpAuthSchemeProvider = (authParameters) => {
36
32
  }
37
33
  return options;
38
34
  };
39
- exports.defaultRedshiftDataHttpAuthSchemeProvider = defaultRedshiftDataHttpAuthSchemeProvider;
40
- const resolveHttpAuthSchemeConfig = (config) => {
41
- const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
35
+ exports.resolveHttpAuthSchemeConfig = (config) => {
36
+ const config_0 = resolveAwsSdkSigV4Config(config);
42
37
  return Object.assign(config_0, {
43
- authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
38
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
44
39
  });
45
40
  };
46
- exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bdd = void 0;
4
- const endpoints_1 = require("@smithy/core/endpoints");
1
+ const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
5
2
  const k = "ref";
6
3
  const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
7
4
  const _data = {
@@ -46,4 +43,4 @@ const nodes = new Int32Array([
46
43
  3, r + 1, 13,
47
44
  4, r + 2, r + 3,
48
45
  ]);
49
- exports.bdd = endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
46
+ exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,18 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultEndpointResolver = void 0;
4
- const client_1 = require("@aws-sdk/core/client");
5
- const endpoints_1 = require("@smithy/core/endpoints");
6
- const bdd_1 = require("./bdd");
7
- const cache = new endpoints_1.EndpointCache({
1
+ const { awsEndpointFunctions } = require("@aws-sdk/core/client");
2
+ const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
3
+ const { bdd } = require("./bdd");
4
+ const cache = new EndpointCache({
8
5
  size: 50,
9
6
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
10
7
  });
11
- const defaultEndpointResolver = (endpointParams, context = {}) => {
12
- return cache.get(endpointParams, () => (0, endpoints_1.decideEndpoint)(bdd_1.bdd, {
8
+ exports.defaultEndpointResolver = (endpointParams, context = {}) => {
9
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
13
10
  endpointParams: endpointParams,
14
11
  logger: context.logger,
15
12
  }));
16
13
  };
17
- exports.defaultEndpointResolver = defaultEndpointResolver;
18
- endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
14
+ customEndpointFunctions.aws = awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -1,18 +1,21 @@
1
- 'use strict';
2
-
3
- var client$1 = require('@aws-sdk/core/client');
4
- var core = require('@smithy/core');
5
- var client = require('@smithy/core/client');
6
- var config = require('@smithy/core/config');
7
- var endpoints = require('@smithy/core/endpoints');
8
- var protocols = require('@smithy/core/protocols');
9
- var retry = require('@smithy/core/retry');
10
- var schema = require('@smithy/core/schema');
11
- var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
12
- var runtimeConfig = require('./runtimeConfig');
13
- var schemas_0 = require('./schemas/schemas_0');
14
- var errors = require('./models/errors');
15
- var RedshiftDataServiceException = require('./models/RedshiftDataServiceException');
1
+ var __exportStar = (m, e) => { Object.assign(e, m); };
2
+ const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
+ const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
+ const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
+ exports.$Command = Command;
6
+ exports.__Client = Client;
7
+ const { resolveRegionConfig } = require("@smithy/core/config");
8
+ const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
+ const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
+ const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
+ const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
+ const { resolveHttpAuthSchemeConfig, defaultRedshiftDataHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
+ const { getRuntimeConfig } = require("./runtimeConfig");
14
+ const { BatchExecuteStatement$, CancelStatement$, DescribeStatement$, DescribeTable$, ExecuteStatement$, GetStatementResult$, GetStatementResultV2$, ListDatabases$, ListSchemas$, ListStatements$, ListTables$ } = require("./schemas/schemas_0");
15
+ __exportStar(require("./schemas/schemas_0"), exports);
16
+ __exportStar(require("./models/errors"), exports);
17
+ const { RedshiftDataServiceException } = require("./models/RedshiftDataServiceException");
18
+ exports.RedshiftDataServiceException = RedshiftDataServiceException;
16
19
 
17
20
  const resolveClientEndpointParameters = (options) => {
18
21
  return Object.assign(options, {
@@ -68,191 +71,191 @@ const resolveHttpAuthRuntimeConfig = (config) => {
68
71
  };
69
72
 
70
73
  const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
71
- const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
74
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
72
75
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
73
- return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
76
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
74
77
  };
75
78
 
76
- class RedshiftDataClient extends client.Client {
79
+ class RedshiftDataClient extends Client {
77
80
  config;
78
81
  constructor(...[configuration]) {
79
- const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
82
+ const _config_0 = getRuntimeConfig(configuration || {});
80
83
  super(_config_0);
81
84
  this.initConfig = _config_0;
82
85
  const _config_1 = resolveClientEndpointParameters(_config_0);
83
- const _config_2 = client$1.resolveUserAgentConfig(_config_1);
84
- const _config_3 = retry.resolveRetryConfig(_config_2);
85
- const _config_4 = config.resolveRegionConfig(_config_3);
86
- const _config_5 = client$1.resolveHostHeaderConfig(_config_4);
87
- const _config_6 = endpoints.resolveEndpointConfig(_config_5);
88
- const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
86
+ const _config_2 = resolveUserAgentConfig(_config_1);
87
+ const _config_3 = resolveRetryConfig(_config_2);
88
+ const _config_4 = resolveRegionConfig(_config_3);
89
+ const _config_5 = resolveHostHeaderConfig(_config_4);
90
+ const _config_6 = resolveEndpointConfig(_config_5);
91
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
89
92
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
90
93
  this.config = _config_8;
91
- this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
92
- this.middlewareStack.use(client$1.getUserAgentPlugin(this.config));
93
- this.middlewareStack.use(retry.getRetryPlugin(this.config));
94
- this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
95
- this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config));
96
- this.middlewareStack.use(client$1.getLoggerPlugin(this.config));
97
- this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config));
98
- this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
99
- httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultRedshiftDataHttpAuthSchemeParametersProvider,
100
- identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
94
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
95
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
96
+ this.middlewareStack.use(getRetryPlugin(this.config));
97
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
98
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
99
+ this.middlewareStack.use(getLoggerPlugin(this.config));
100
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
101
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
102
+ httpAuthSchemeParametersProvider: defaultRedshiftDataHttpAuthSchemeParametersProvider,
103
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
101
104
  "aws.auth#sigv4": config.credentials,
102
105
  }),
103
106
  }));
104
- this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
107
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
105
108
  }
106
109
  destroy() {
107
110
  super.destroy();
108
111
  }
109
112
  }
110
113
 
111
- class BatchExecuteStatementCommand extends client.Command
114
+ class BatchExecuteStatementCommand extends Command
112
115
  .classBuilder()
113
116
  .ep(commonParams)
114
117
  .m(function (Command, cs, config, o) {
115
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
118
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
116
119
  })
117
120
  .s("RedshiftData", "BatchExecuteStatement", {})
118
121
  .n("RedshiftDataClient", "BatchExecuteStatementCommand")
119
- .sc(schemas_0.BatchExecuteStatement$)
122
+ .sc(BatchExecuteStatement$)
120
123
  .build() {
121
124
  }
122
125
 
123
- class CancelStatementCommand extends client.Command
126
+ class CancelStatementCommand extends Command
124
127
  .classBuilder()
125
128
  .ep(commonParams)
126
129
  .m(function (Command, cs, config, o) {
127
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
130
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
128
131
  })
129
132
  .s("RedshiftData", "CancelStatement", {})
130
133
  .n("RedshiftDataClient", "CancelStatementCommand")
131
- .sc(schemas_0.CancelStatement$)
134
+ .sc(CancelStatement$)
132
135
  .build() {
133
136
  }
134
137
 
135
- class DescribeStatementCommand extends client.Command
138
+ class DescribeStatementCommand extends Command
136
139
  .classBuilder()
137
140
  .ep(commonParams)
138
141
  .m(function (Command, cs, config, o) {
139
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
142
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
140
143
  })
141
144
  .s("RedshiftData", "DescribeStatement", {})
142
145
  .n("RedshiftDataClient", "DescribeStatementCommand")
143
- .sc(schemas_0.DescribeStatement$)
146
+ .sc(DescribeStatement$)
144
147
  .build() {
145
148
  }
146
149
 
147
- class DescribeTableCommand extends client.Command
150
+ class DescribeTableCommand extends Command
148
151
  .classBuilder()
149
152
  .ep(commonParams)
150
153
  .m(function (Command, cs, config, o) {
151
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
154
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
152
155
  })
153
156
  .s("RedshiftData", "DescribeTable", {})
154
157
  .n("RedshiftDataClient", "DescribeTableCommand")
155
- .sc(schemas_0.DescribeTable$)
158
+ .sc(DescribeTable$)
156
159
  .build() {
157
160
  }
158
161
 
159
- class ExecuteStatementCommand extends client.Command
162
+ class ExecuteStatementCommand extends Command
160
163
  .classBuilder()
161
164
  .ep(commonParams)
162
165
  .m(function (Command, cs, config, o) {
163
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
166
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
164
167
  })
165
168
  .s("RedshiftData", "ExecuteStatement", {})
166
169
  .n("RedshiftDataClient", "ExecuteStatementCommand")
167
- .sc(schemas_0.ExecuteStatement$)
170
+ .sc(ExecuteStatement$)
168
171
  .build() {
169
172
  }
170
173
 
171
- class GetStatementResultCommand extends client.Command
174
+ class GetStatementResultCommand extends Command
172
175
  .classBuilder()
173
176
  .ep(commonParams)
174
177
  .m(function (Command, cs, config, o) {
175
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
178
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
176
179
  })
177
180
  .s("RedshiftData", "GetStatementResult", {})
178
181
  .n("RedshiftDataClient", "GetStatementResultCommand")
179
- .sc(schemas_0.GetStatementResult$)
182
+ .sc(GetStatementResult$)
180
183
  .build() {
181
184
  }
182
185
 
183
- class GetStatementResultV2Command extends client.Command
186
+ class GetStatementResultV2Command extends Command
184
187
  .classBuilder()
185
188
  .ep(commonParams)
186
189
  .m(function (Command, cs, config, o) {
187
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
190
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
188
191
  })
189
192
  .s("RedshiftData", "GetStatementResultV2", {})
190
193
  .n("RedshiftDataClient", "GetStatementResultV2Command")
191
- .sc(schemas_0.GetStatementResultV2$)
194
+ .sc(GetStatementResultV2$)
192
195
  .build() {
193
196
  }
194
197
 
195
- class ListDatabasesCommand extends client.Command
198
+ class ListDatabasesCommand extends Command
196
199
  .classBuilder()
197
200
  .ep(commonParams)
198
201
  .m(function (Command, cs, config, o) {
199
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
202
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
200
203
  })
201
204
  .s("RedshiftData", "ListDatabases", {})
202
205
  .n("RedshiftDataClient", "ListDatabasesCommand")
203
- .sc(schemas_0.ListDatabases$)
206
+ .sc(ListDatabases$)
204
207
  .build() {
205
208
  }
206
209
 
207
- class ListSchemasCommand extends client.Command
210
+ class ListSchemasCommand extends Command
208
211
  .classBuilder()
209
212
  .ep(commonParams)
210
213
  .m(function (Command, cs, config, o) {
211
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
214
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
212
215
  })
213
216
  .s("RedshiftData", "ListSchemas", {})
214
217
  .n("RedshiftDataClient", "ListSchemasCommand")
215
- .sc(schemas_0.ListSchemas$)
218
+ .sc(ListSchemas$)
216
219
  .build() {
217
220
  }
218
221
 
219
- class ListStatementsCommand extends client.Command
222
+ class ListStatementsCommand extends Command
220
223
  .classBuilder()
221
224
  .ep(commonParams)
222
225
  .m(function (Command, cs, config, o) {
223
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
226
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
224
227
  })
225
228
  .s("RedshiftData", "ListStatements", {})
226
229
  .n("RedshiftDataClient", "ListStatementsCommand")
227
- .sc(schemas_0.ListStatements$)
230
+ .sc(ListStatements$)
228
231
  .build() {
229
232
  }
230
233
 
231
- class ListTablesCommand extends client.Command
234
+ class ListTablesCommand extends Command
232
235
  .classBuilder()
233
236
  .ep(commonParams)
234
237
  .m(function (Command, cs, config, o) {
235
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
238
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
236
239
  })
237
240
  .s("RedshiftData", "ListTables", {})
238
241
  .n("RedshiftDataClient", "ListTablesCommand")
239
- .sc(schemas_0.ListTables$)
242
+ .sc(ListTables$)
240
243
  .build() {
241
244
  }
242
245
 
243
- const paginateDescribeTable = core.createPaginator(RedshiftDataClient, DescribeTableCommand, "NextToken", "NextToken", "MaxResults");
246
+ const paginateDescribeTable = createPaginator(RedshiftDataClient, DescribeTableCommand, "NextToken", "NextToken", "MaxResults");
244
247
 
245
- const paginateGetStatementResult = core.createPaginator(RedshiftDataClient, GetStatementResultCommand, "NextToken", "NextToken", "");
248
+ const paginateGetStatementResult = createPaginator(RedshiftDataClient, GetStatementResultCommand, "NextToken", "NextToken", "");
246
249
 
247
- const paginateGetStatementResultV2 = core.createPaginator(RedshiftDataClient, GetStatementResultV2Command, "NextToken", "NextToken", "");
250
+ const paginateGetStatementResultV2 = createPaginator(RedshiftDataClient, GetStatementResultV2Command, "NextToken", "NextToken", "");
248
251
 
249
- const paginateListDatabases = core.createPaginator(RedshiftDataClient, ListDatabasesCommand, "NextToken", "NextToken", "MaxResults");
252
+ const paginateListDatabases = createPaginator(RedshiftDataClient, ListDatabasesCommand, "NextToken", "NextToken", "MaxResults");
250
253
 
251
- const paginateListSchemas = core.createPaginator(RedshiftDataClient, ListSchemasCommand, "NextToken", "NextToken", "MaxResults");
254
+ const paginateListSchemas = createPaginator(RedshiftDataClient, ListSchemasCommand, "NextToken", "NextToken", "MaxResults");
252
255
 
253
- const paginateListStatements = core.createPaginator(RedshiftDataClient, ListStatementsCommand, "NextToken", "NextToken", "MaxResults");
256
+ const paginateListStatements = createPaginator(RedshiftDataClient, ListStatementsCommand, "NextToken", "NextToken", "MaxResults");
254
257
 
255
- const paginateListTables = core.createPaginator(RedshiftDataClient, ListTablesCommand, "NextToken", "NextToken", "MaxResults");
258
+ const paginateListTables = createPaginator(RedshiftDataClient, ListTablesCommand, "NextToken", "NextToken", "MaxResults");
256
259
 
257
260
  const commands = {
258
261
  BatchExecuteStatementCommand,
@@ -278,7 +281,7 @@ const paginators = {
278
281
  };
279
282
  class RedshiftData extends RedshiftDataClient {
280
283
  }
281
- client.createAggregatedClient(commands, RedshiftData, { paginators });
284
+ createAggregatedClient(commands, RedshiftData, { paginators });
282
285
 
283
286
  const ResultFormatString = {
284
287
  CSV: "CSV",
@@ -302,9 +305,6 @@ const StatementStatusString = {
302
305
  SUBMITTED: "SUBMITTED",
303
306
  };
304
307
 
305
- exports.$Command = client.Command;
306
- exports.__Client = client.Client;
307
- exports.RedshiftDataServiceException = RedshiftDataServiceException.RedshiftDataServiceException;
308
308
  exports.BatchExecuteStatementCommand = BatchExecuteStatementCommand;
309
309
  exports.CancelStatementCommand = CancelStatementCommand;
310
310
  exports.DescribeStatementCommand = DescribeStatementCommand;
@@ -328,23 +328,3 @@ exports.paginateListDatabases = paginateListDatabases;
328
328
  exports.paginateListSchemas = paginateListSchemas;
329
329
  exports.paginateListStatements = paginateListStatements;
330
330
  exports.paginateListTables = paginateListTables;
331
- Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
332
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
333
- Object.defineProperty(exports, '__proto__', {
334
- enumerable: true,
335
- value: schemas_0['__proto__']
336
- });
337
-
338
- Object.keys(schemas_0).forEach(function (k) {
339
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
340
- });
341
- Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
342
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
343
- Object.defineProperty(exports, '__proto__', {
344
- enumerable: true,
345
- value: errors['__proto__']
346
- });
347
-
348
- Object.keys(errors).forEach(function (k) {
349
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
350
- });
@@ -1,12 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RedshiftDataServiceException = exports.__ServiceException = void 0;
4
- const client_1 = require("@smithy/core/client");
5
- Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
6
- class RedshiftDataServiceException extends client_1.ServiceException {
1
+ const { ServiceException: __ServiceException } = require("@smithy/core/client");
2
+ exports.__ServiceException = __ServiceException;
3
+ exports.RedshiftDataServiceException = class RedshiftDataServiceException extends __ServiceException {
7
4
  constructor(options) {
8
5
  super(options);
9
6
  Object.setPrototypeOf(this, RedshiftDataServiceException.prototype);
10
7
  }
11
- }
12
- exports.RedshiftDataServiceException = RedshiftDataServiceException;
8
+ };
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExecuteStatementException = exports.QueryTimeoutException = exports.DatabaseConnectionException = exports.ValidationException = exports.ResourceNotFoundException = exports.InternalServerException = exports.BatchExecuteStatementException = exports.ActiveStatementsExceededException = exports.ActiveSessionsExceededException = void 0;
4
- const RedshiftDataServiceException_1 = require("./RedshiftDataServiceException");
5
- class ActiveSessionsExceededException extends RedshiftDataServiceException_1.RedshiftDataServiceException {
1
+ const { RedshiftDataServiceException: __BaseException } = require("./RedshiftDataServiceException");
2
+ exports.ActiveSessionsExceededException = class ActiveSessionsExceededException extends __BaseException {
6
3
  name = "ActiveSessionsExceededException";
7
4
  $fault = "client";
8
5
  Message;
@@ -15,9 +12,8 @@ class ActiveSessionsExceededException extends RedshiftDataServiceException_1.Red
15
12
  Object.setPrototypeOf(this, ActiveSessionsExceededException.prototype);
16
13
  this.Message = opts.Message;
17
14
  }
18
- }
19
- exports.ActiveSessionsExceededException = ActiveSessionsExceededException;
20
- class ActiveStatementsExceededException extends RedshiftDataServiceException_1.RedshiftDataServiceException {
15
+ };
16
+ exports.ActiveStatementsExceededException = class ActiveStatementsExceededException extends __BaseException {
21
17
  name = "ActiveStatementsExceededException";
22
18
  $fault = "client";
23
19
  Message;
@@ -30,9 +26,8 @@ class ActiveStatementsExceededException extends RedshiftDataServiceException_1.R
30
26
  Object.setPrototypeOf(this, ActiveStatementsExceededException.prototype);
31
27
  this.Message = opts.Message;
32
28
  }
33
- }
34
- exports.ActiveStatementsExceededException = ActiveStatementsExceededException;
35
- class BatchExecuteStatementException extends RedshiftDataServiceException_1.RedshiftDataServiceException {
29
+ };
30
+ exports.BatchExecuteStatementException = class BatchExecuteStatementException extends __BaseException {
36
31
  name = "BatchExecuteStatementException";
37
32
  $fault = "server";
38
33
  Message;
@@ -47,9 +42,8 @@ class BatchExecuteStatementException extends RedshiftDataServiceException_1.Reds
47
42
  this.Message = opts.Message;
48
43
  this.StatementId = opts.StatementId;
49
44
  }
50
- }
51
- exports.BatchExecuteStatementException = BatchExecuteStatementException;
52
- class InternalServerException extends RedshiftDataServiceException_1.RedshiftDataServiceException {
45
+ };
46
+ exports.InternalServerException = class InternalServerException extends __BaseException {
53
47
  name = "InternalServerException";
54
48
  $fault = "server";
55
49
  Message;
@@ -62,9 +56,8 @@ class InternalServerException extends RedshiftDataServiceException_1.RedshiftDat
62
56
  Object.setPrototypeOf(this, InternalServerException.prototype);
63
57
  this.Message = opts.Message;
64
58
  }
65
- }
66
- exports.InternalServerException = InternalServerException;
67
- class ResourceNotFoundException extends RedshiftDataServiceException_1.RedshiftDataServiceException {
59
+ };
60
+ exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
68
61
  name = "ResourceNotFoundException";
69
62
  $fault = "client";
70
63
  Message;
@@ -79,9 +72,8 @@ class ResourceNotFoundException extends RedshiftDataServiceException_1.RedshiftD
79
72
  this.Message = opts.Message;
80
73
  this.ResourceId = opts.ResourceId;
81
74
  }
82
- }
83
- exports.ResourceNotFoundException = ResourceNotFoundException;
84
- class ValidationException extends RedshiftDataServiceException_1.RedshiftDataServiceException {
75
+ };
76
+ exports.ValidationException = class ValidationException extends __BaseException {
85
77
  name = "ValidationException";
86
78
  $fault = "client";
87
79
  Message;
@@ -94,9 +86,8 @@ class ValidationException extends RedshiftDataServiceException_1.RedshiftDataSer
94
86
  Object.setPrototypeOf(this, ValidationException.prototype);
95
87
  this.Message = opts.Message;
96
88
  }
97
- }
98
- exports.ValidationException = ValidationException;
99
- class DatabaseConnectionException extends RedshiftDataServiceException_1.RedshiftDataServiceException {
89
+ };
90
+ exports.DatabaseConnectionException = class DatabaseConnectionException extends __BaseException {
100
91
  name = "DatabaseConnectionException";
101
92
  $fault = "server";
102
93
  Message;
@@ -109,9 +100,8 @@ class DatabaseConnectionException extends RedshiftDataServiceException_1.Redshif
109
100
  Object.setPrototypeOf(this, DatabaseConnectionException.prototype);
110
101
  this.Message = opts.Message;
111
102
  }
112
- }
113
- exports.DatabaseConnectionException = DatabaseConnectionException;
114
- class QueryTimeoutException extends RedshiftDataServiceException_1.RedshiftDataServiceException {
103
+ };
104
+ exports.QueryTimeoutException = class QueryTimeoutException extends __BaseException {
115
105
  name = "QueryTimeoutException";
116
106
  $fault = "client";
117
107
  Message;
@@ -124,9 +114,8 @@ class QueryTimeoutException extends RedshiftDataServiceException_1.RedshiftDataS
124
114
  Object.setPrototypeOf(this, QueryTimeoutException.prototype);
125
115
  this.Message = opts.Message;
126
116
  }
127
- }
128
- exports.QueryTimeoutException = QueryTimeoutException;
129
- class ExecuteStatementException extends RedshiftDataServiceException_1.RedshiftDataServiceException {
117
+ };
118
+ exports.ExecuteStatementException = class ExecuteStatementException extends __BaseException {
130
119
  name = "ExecuteStatementException";
131
120
  $fault = "server";
132
121
  Message;
@@ -141,5 +130,4 @@ class ExecuteStatementException extends RedshiftDataServiceException_1.RedshiftD
141
130
  this.Message = opts.Message;
142
131
  this.StatementId = opts.StatementId;
143
132
  }
144
- }
145
- exports.ExecuteStatementException = ExecuteStatementException;
133
+ };
@@ -1,36 +1,32 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
- const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
- const client_1 = require("@aws-sdk/core/client");
8
- const client_2 = require("@smithy/core/client");
9
- const config_1 = require("@smithy/core/config");
10
- const retry_1 = require("@smithy/core/retry");
11
- const serde_1 = require("@smithy/core/serde");
12
- const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
13
- const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
1
+ const packageInfo = require("../package.json");
2
+ const { Sha256 } = require("@aws-crypto/sha256-browser");
3
+ const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
4
+ const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
5
+ const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
6
+ const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
7
+ const { calculateBodyLength } = require("@smithy/core/serde");
8
+ const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
9
+ const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
14
10
  const getRuntimeConfig = (config) => {
15
- const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
16
- const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
17
- const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
11
+ const defaultsMode = resolveDefaultsModeConfig(config);
12
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
13
+ const clientSharedValues = getSharedRuntimeConfig(config);
18
14
  return {
19
15
  ...clientSharedValues,
20
16
  ...config,
21
17
  runtime: "browser",
22
18
  defaultsMode,
23
- bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
19
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
24
20
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
25
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
26
- maxAttempts: config?.maxAttempts ?? retry_1.DEFAULT_MAX_ATTEMPTS,
27
- region: config?.region ?? (0, client_2.invalidProvider)("Region is missing"),
28
- requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
29
- retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE),
30
- sha256: config?.sha256 ?? sha256_browser_1.Sha256,
31
- streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
32
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
33
- useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_FIPS_ENDPOINT)),
21
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
22
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
23
+ region: config?.region ?? invalidProvider("Region is missing"),
24
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
+ sha256: config?.sha256 ?? Sha256,
27
+ streamCollector: config?.streamCollector ?? streamCollector,
28
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
34
30
  };
35
31
  };
36
32
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,23 +1,19 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
- const client_1 = require("@aws-sdk/core/client");
7
- const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
8
- const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
9
- const client_2 = require("@smithy/core/client");
10
- const config_1 = require("@smithy/core/config");
11
- const retry_1 = require("@smithy/core/retry");
12
- const serde_1 = require("@smithy/core/serde");
13
- const node_http_handler_1 = require("@smithy/node-http-handler");
14
- const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
1
+ const packageInfo = require("../package.json");
2
+ const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
3
+ const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
4
+ const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
5
+ const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
6
+ const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
7
+ const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
8
+ const { calculateBodyLength, Hash } = require("@smithy/core/serde");
9
+ const { NodeHttpHandler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
10
+ const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
15
11
  const getRuntimeConfig = (config) => {
16
- (0, client_2.emitWarningIfUnsupportedVersion)(process.version);
17
- const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
18
- const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
19
- const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
20
- (0, client_1.emitWarningIfUnsupportedVersion)(process.version);
12
+ emitWarningIfUnsupportedVersion(process.version);
13
+ const defaultsMode = resolveDefaultsModeConfig(config);
14
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
15
+ const clientSharedValues = getSharedRuntimeConfig(config);
16
+ awsCheckVersion(process.version);
21
17
  const loaderConfig = {
22
18
  profile: config?.profile,
23
19
  logger: clientSharedValues.logger,
@@ -27,23 +23,23 @@ const getRuntimeConfig = (config) => {
27
23
  ...config,
28
24
  runtime: "node",
29
25
  defaultsMode,
30
- authSchemePreference: config?.authSchemePreference ?? (0, config_1.loadConfig)(httpAuthSchemes_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
31
- bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
32
- credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
33
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
34
- maxAttempts: config?.maxAttempts ?? (0, config_1.loadConfig)(retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
35
- region: config?.region ?? (0, config_1.loadConfig)(config_1.NODE_REGION_CONFIG_OPTIONS, { ...config_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
36
- requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
26
+ authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
27
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
28
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
29
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
30
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
31
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
32
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
37
33
  retryMode: config?.retryMode ??
38
- (0, config_1.loadConfig)({
39
- ...retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
- default: async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE,
34
+ loadNodeConfig({
35
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
41
37
  }, config),
42
- sha256: config?.sha256 ?? serde_1.Hash.bind(null, "sha256"),
43
- streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
44
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, config_1.loadConfig)(config_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
45
- useFipsEndpoint: config?.useFipsEndpoint ?? (0, config_1.loadConfig)(config_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
46
- userAgentAppId: config?.userAgentAppId ?? (0, config_1.loadConfig)(client_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
38
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
+ streamCollector: config?.streamCollector ?? streamCollector,
40
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
42
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
47
43
  };
48
44
  };
49
45
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,15 +1,12 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const sha256_js_1 = require("@aws-crypto/sha256-js");
5
- const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
1
+ const { Sha256 } = require("@aws-crypto/sha256-js");
2
+ const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
6
3
  const getRuntimeConfig = (config) => {
7
- const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
4
+ const browserDefaults = getBrowserRuntimeConfig(config);
8
5
  return {
9
6
  ...browserDefaults,
10
7
  ...config,
11
8
  runtime: "react-native",
12
- sha256: config?.sha256 ?? sha256_js_1.Sha256,
9
+ sha256: config?.sha256 ?? Sha256,
13
10
  };
14
11
  };
15
12
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,42 +1,38 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
- const protocols_1 = require("@aws-sdk/core/protocols");
6
- const client_1 = require("@smithy/core/client");
7
- const protocols_2 = require("@smithy/core/protocols");
8
- const serde_1 = require("@smithy/core/serde");
9
- const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
10
- const endpointResolver_1 = require("./endpoint/endpointResolver");
11
- const schemas_0_1 = require("./schemas/schemas_0");
12
- const getRuntimeConfig = (config) => {
1
+ const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
2
+ const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
3
+ const { NoOpLogger } = require("@smithy/core/client");
4
+ const { parseUrl } = require("@smithy/core/protocols");
5
+ const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
6
+ const { defaultRedshiftDataHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
7
+ const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
8
+ const { errorTypeRegistries } = require("./schemas/schemas_0");
9
+ exports.getRuntimeConfig = (config) => {
13
10
  return {
14
11
  apiVersion: "2019-12-20",
15
- base64Decoder: config?.base64Decoder ?? serde_1.fromBase64,
16
- base64Encoder: config?.base64Encoder ?? serde_1.toBase64,
12
+ base64Decoder: config?.base64Decoder ?? fromBase64,
13
+ base64Encoder: config?.base64Encoder ?? toBase64,
17
14
  disableHostPrefix: config?.disableHostPrefix ?? false,
18
- endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
15
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
19
16
  extensions: config?.extensions ?? [],
20
- httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultRedshiftDataHttpAuthSchemeProvider,
17
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultRedshiftDataHttpAuthSchemeProvider,
21
18
  httpAuthSchemes: config?.httpAuthSchemes ?? [
22
19
  {
23
20
  schemeId: "aws.auth#sigv4",
24
21
  identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
25
- signer: new httpAuthSchemes_1.AwsSdkSigV4Signer(),
22
+ signer: new AwsSdkSigV4Signer(),
26
23
  },
27
24
  ],
28
- logger: config?.logger ?? new client_1.NoOpLogger(),
29
- protocol: config?.protocol ?? protocols_1.AwsJson1_1Protocol,
25
+ logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ?? AwsJson1_1Protocol,
30
27
  protocolSettings: config?.protocolSettings ?? {
31
28
  defaultNamespace: "com.amazonaws.redshiftdata",
32
- errorTypeRegistries: schemas_0_1.errorTypeRegistries,
29
+ errorTypeRegistries,
33
30
  version: "2019-12-20",
34
31
  serviceTarget: "RedshiftData",
35
32
  },
36
33
  serviceId: config?.serviceId ?? "Redshift Data",
37
- urlParser: config?.urlParser ?? protocols_2.parseUrl,
38
- utf8Decoder: config?.utf8Decoder ?? serde_1.fromUtf8,
39
- utf8Encoder: config?.utf8Encoder ?? serde_1.toUtf8,
34
+ urlParser: config?.urlParser ?? parseUrl,
35
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
40
37
  };
41
38
  };
42
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,7 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListStatements$ = exports.ListSchemas$ = exports.ListDatabases$ = exports.GetStatementResultV2$ = exports.GetStatementResult$ = exports.ExecuteStatement$ = exports.DescribeTable$ = exports.DescribeStatement$ = exports.CancelStatement$ = exports.BatchExecuteStatement$ = exports.QueryRecords$ = exports.Field$ = exports.TableMember$ = exports.SubStatementData$ = exports.StatementData$ = exports.SqlParameter$ = exports.ListTablesResponse$ = exports.ListTablesRequest$ = exports.ListStatementsResponse$ = exports.ListStatementsRequest$ = exports.ListSchemasResponse$ = exports.ListSchemasRequest$ = exports.ListDatabasesResponse$ = exports.ListDatabasesRequest$ = exports.GetStatementResultV2Response$ = exports.GetStatementResultV2Request$ = exports.GetStatementResultResponse$ = exports.GetStatementResultRequest$ = exports.ExecuteStatementOutput$ = exports.ExecuteStatementInput$ = exports.DescribeTableResponse$ = exports.DescribeTableRequest$ = exports.DescribeStatementResponse$ = exports.DescribeStatementRequest$ = exports.ColumnMetadata$ = exports.CancelStatementResponse$ = exports.CancelStatementRequest$ = exports.BatchExecuteStatementOutput$ = exports.BatchExecuteStatementInput$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.ResourceNotFoundException$ = exports.QueryTimeoutException$ = exports.InternalServerException$ = exports.ExecuteStatementException$ = exports.DatabaseConnectionException$ = exports.BatchExecuteStatementException$ = exports.ActiveStatementsExceededException$ = exports.ActiveSessionsExceededException$ = exports.RedshiftDataServiceException$ = void 0;
4
- exports.ListTables$ = void 0;
5
1
  const _ASEE = "ActiveSessionsExceededException";
6
2
  const _ASEEc = "ActiveStatementsExceededException";
7
3
  const _BES = "BatchExecuteStatement";
@@ -138,278 +134,317 @@ const _tN = "tableName";
138
134
  const _tNy = "typeName";
139
135
  const _v = "value";
140
136
  const n0 = "com.amazonaws.redshiftdata";
141
- const schema_1 = require("@smithy/core/schema");
142
- const errors_1 = require("../models/errors");
143
- const RedshiftDataServiceException_1 = require("../models/RedshiftDataServiceException");
144
- const _s_registry = schema_1.TypeRegistry.for(_s);
145
- exports.RedshiftDataServiceException$ = [-3, _s, "RedshiftDataServiceException", 0, [], []];
146
- _s_registry.registerError(exports.RedshiftDataServiceException$, RedshiftDataServiceException_1.RedshiftDataServiceException);
147
- const n0_registry = schema_1.TypeRegistry.for(n0);
148
- exports.ActiveSessionsExceededException$ = [-3, n0, _ASEE,
137
+ const { TypeRegistry } = require("@smithy/core/schema");
138
+ const { ActiveSessionsExceededException, ActiveStatementsExceededException, BatchExecuteStatementException, DatabaseConnectionException, ExecuteStatementException, InternalServerException, QueryTimeoutException, ResourceNotFoundException, ValidationException } = require("../models/errors");
139
+ const { RedshiftDataServiceException } = require("../models/RedshiftDataServiceException");
140
+ const _s_registry = TypeRegistry.for(_s);
141
+ const RedshiftDataServiceException$ = [-3, _s, "RedshiftDataServiceException", 0, [], []];
142
+ exports.RedshiftDataServiceException$ = RedshiftDataServiceException$;
143
+ _s_registry.registerError(RedshiftDataServiceException$, RedshiftDataServiceException);
144
+ const n0_registry = TypeRegistry.for(n0);
145
+ const ActiveSessionsExceededException$ = [-3, n0, _ASEE,
149
146
  { [_e]: _c, [_hE]: 400 },
150
147
  [_M],
151
148
  [0]
152
149
  ];
153
- n0_registry.registerError(exports.ActiveSessionsExceededException$, errors_1.ActiveSessionsExceededException);
154
- exports.ActiveStatementsExceededException$ = [-3, n0, _ASEEc,
150
+ exports.ActiveSessionsExceededException$ = ActiveSessionsExceededException$;
151
+ n0_registry.registerError(ActiveSessionsExceededException$, ActiveSessionsExceededException);
152
+ const ActiveStatementsExceededException$ = [-3, n0, _ASEEc,
155
153
  { [_e]: _c, [_hE]: 400 },
156
154
  [_M],
157
155
  [0]
158
156
  ];
159
- n0_registry.registerError(exports.ActiveStatementsExceededException$, errors_1.ActiveStatementsExceededException);
160
- exports.BatchExecuteStatementException$ = [-3, n0, _BESE,
157
+ exports.ActiveStatementsExceededException$ = ActiveStatementsExceededException$;
158
+ n0_registry.registerError(ActiveStatementsExceededException$, ActiveStatementsExceededException);
159
+ const BatchExecuteStatementException$ = [-3, n0, _BESE,
161
160
  { [_e]: _se, [_hE]: 500 },
162
161
  [_M, _SI],
163
162
  [0, 0], 2
164
163
  ];
165
- n0_registry.registerError(exports.BatchExecuteStatementException$, errors_1.BatchExecuteStatementException);
166
- exports.DatabaseConnectionException$ = [-3, n0, _DCE,
164
+ exports.BatchExecuteStatementException$ = BatchExecuteStatementException$;
165
+ n0_registry.registerError(BatchExecuteStatementException$, BatchExecuteStatementException);
166
+ const DatabaseConnectionException$ = [-3, n0, _DCE,
167
167
  { [_e]: _se, [_hE]: 500 },
168
168
  [_M],
169
169
  [0], 1
170
170
  ];
171
- n0_registry.registerError(exports.DatabaseConnectionException$, errors_1.DatabaseConnectionException);
172
- exports.ExecuteStatementException$ = [-3, n0, _ESE,
171
+ exports.DatabaseConnectionException$ = DatabaseConnectionException$;
172
+ n0_registry.registerError(DatabaseConnectionException$, DatabaseConnectionException);
173
+ const ExecuteStatementException$ = [-3, n0, _ESE,
173
174
  { [_e]: _se, [_hE]: 500 },
174
175
  [_M, _SI],
175
176
  [0, 0], 2
176
177
  ];
177
- n0_registry.registerError(exports.ExecuteStatementException$, errors_1.ExecuteStatementException);
178
- exports.InternalServerException$ = [-3, n0, _ISE,
178
+ exports.ExecuteStatementException$ = ExecuteStatementException$;
179
+ n0_registry.registerError(ExecuteStatementException$, ExecuteStatementException);
180
+ const InternalServerException$ = [-3, n0, _ISE,
179
181
  { [_e]: _se, [_hE]: 500 },
180
182
  [_M],
181
183
  [0], 1
182
184
  ];
183
- n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
184
- exports.QueryTimeoutException$ = [-3, n0, _QTE,
185
+ exports.InternalServerException$ = InternalServerException$;
186
+ n0_registry.registerError(InternalServerException$, InternalServerException);
187
+ const QueryTimeoutException$ = [-3, n0, _QTE,
185
188
  { [_e]: _c, [_hE]: 400 },
186
189
  [_M],
187
190
  [0]
188
191
  ];
189
- n0_registry.registerError(exports.QueryTimeoutException$, errors_1.QueryTimeoutException);
190
- exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
192
+ exports.QueryTimeoutException$ = QueryTimeoutException$;
193
+ n0_registry.registerError(QueryTimeoutException$, QueryTimeoutException);
194
+ const ResourceNotFoundException$ = [-3, n0, _RNFE,
191
195
  { [_e]: _c, [_hE]: 404 },
192
196
  [_M, _RI],
193
197
  [0, 0], 2
194
198
  ];
195
- n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
196
- exports.ValidationException$ = [-3, n0, _VE,
199
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
200
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
201
+ const ValidationException$ = [-3, n0, _VE,
197
202
  { [_e]: _c, [_hE]: 400 },
198
203
  [_M],
199
204
  [0]
200
205
  ];
201
- n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
206
+ exports.ValidationException$ = ValidationException$;
207
+ n0_registry.registerError(ValidationException$, ValidationException);
202
208
  exports.errorTypeRegistries = [
203
209
  _s_registry,
204
210
  n0_registry,
205
211
  ];
206
- exports.BatchExecuteStatementInput$ = [3, n0, _BESI,
212
+ const BatchExecuteStatementInput$ = [3, n0, _BESI,
207
213
  0,
208
214
  [_S, _CI, _SA, _DU, _D, _WE, _SN, _P, _WN, _CT, _RF, _SKAS, _SIe],
209
215
  [64 | 0, 0, 0, 0, 0, 2, 0, () => SqlParametersList, 0, [0, 4], 0, 1, 0], 1
210
216
  ];
211
- exports.BatchExecuteStatementOutput$ = [3, n0, _BESO,
217
+ exports.BatchExecuteStatementInput$ = BatchExecuteStatementInput$;
218
+ const BatchExecuteStatementOutput$ = [3, n0, _BESO,
212
219
  0,
213
220
  [_I, _CA, _CI, _DU, _DG, _D, _SA, _WN, _SIe],
214
221
  [0, 4, 0, 0, 64 | 0, 0, 0, 0, 0]
215
222
  ];
216
- exports.CancelStatementRequest$ = [3, n0, _CSR,
223
+ exports.BatchExecuteStatementOutput$ = BatchExecuteStatementOutput$;
224
+ const CancelStatementRequest$ = [3, n0, _CSR,
217
225
  0,
218
226
  [_I],
219
227
  [0], 1
220
228
  ];
221
- exports.CancelStatementResponse$ = [3, n0, _CSRa,
229
+ exports.CancelStatementRequest$ = CancelStatementRequest$;
230
+ const CancelStatementResponse$ = [3, n0, _CSRa,
222
231
  0,
223
232
  [_St],
224
233
  [2]
225
234
  ];
226
- exports.ColumnMetadata$ = [3, n0, _CM,
235
+ exports.CancelStatementResponse$ = CancelStatementResponse$;
236
+ const ColumnMetadata$ = [3, n0, _CM,
227
237
  0,
228
238
  [_iCS, _iC, _iS, _l, _n, _nu, _p, _sc, _sN, _tN, _tNy, _le, _cD],
229
239
  [2, 2, 2, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0]
230
240
  ];
231
- exports.DescribeStatementRequest$ = [3, n0, _DSR,
241
+ exports.ColumnMetadata$ = ColumnMetadata$;
242
+ const DescribeStatementRequest$ = [3, n0, _DSR,
232
243
  0,
233
244
  [_I],
234
245
  [0], 1
235
246
  ];
236
- exports.DescribeStatementResponse$ = [3, n0, _DSRe,
247
+ exports.DescribeStatementRequest$ = DescribeStatementRequest$;
248
+ const DescribeStatementResponse$ = [3, n0, _DSRe,
237
249
  0,
238
250
  [_I, _SA, _DU, _D, _CI, _Du, _E, _St, _CA, _UA, _RP, _HRS, _QS, _RR, _RS, _RQI, _QP, _SS, _WN, _RF, _SIe],
239
251
  [0, 0, 0, 0, 0, 1, 0, 0, 4, 4, 1, 2, 0, 1, 1, 1, () => SqlParametersList, () => SubStatementList, 0, 0, 0], 1
240
252
  ];
241
- exports.DescribeTableRequest$ = [3, n0, _DTR,
253
+ exports.DescribeStatementResponse$ = DescribeStatementResponse$;
254
+ const DescribeTableRequest$ = [3, n0, _DTR,
242
255
  0,
243
256
  [_D, _CI, _SA, _DU, _CD, _Sc, _T, _NT, _MR, _WN],
244
257
  [0, 0, 0, 0, 0, 0, 0, 0, 1, 0], 1
245
258
  ];
246
- exports.DescribeTableResponse$ = [3, n0, _DTRe,
259
+ exports.DescribeTableRequest$ = DescribeTableRequest$;
260
+ const DescribeTableResponse$ = [3, n0, _DTRe,
247
261
  0,
248
262
  [_TN, _CL, _NT],
249
263
  [0, () => ColumnList, 0]
250
264
  ];
251
- exports.ExecuteStatementInput$ = [3, n0, _ESI,
265
+ exports.DescribeTableResponse$ = DescribeTableResponse$;
266
+ const ExecuteStatementInput$ = [3, n0, _ESI,
252
267
  0,
253
268
  [_Sq, _CI, _SA, _DU, _D, _WE, _SN, _P, _WN, _CT, _RF, _SKAS, _SIe],
254
269
  [0, 0, 0, 0, 0, 2, 0, () => SqlParametersList, 0, [0, 4], 0, 1, 0], 1
255
270
  ];
256
- exports.ExecuteStatementOutput$ = [3, n0, _ESO,
271
+ exports.ExecuteStatementInput$ = ExecuteStatementInput$;
272
+ const ExecuteStatementOutput$ = [3, n0, _ESO,
257
273
  0,
258
274
  [_I, _CA, _CI, _DU, _DG, _D, _SA, _WN, _SIe],
259
275
  [0, 4, 0, 0, 64 | 0, 0, 0, 0, 0]
260
276
  ];
261
- exports.GetStatementResultRequest$ = [3, n0, _GSRR,
277
+ exports.ExecuteStatementOutput$ = ExecuteStatementOutput$;
278
+ const GetStatementResultRequest$ = [3, n0, _GSRR,
262
279
  0,
263
280
  [_I, _NT],
264
281
  [0, 0], 1
265
282
  ];
266
- exports.GetStatementResultResponse$ = [3, n0, _GSRRe,
283
+ exports.GetStatementResultRequest$ = GetStatementResultRequest$;
284
+ const GetStatementResultResponse$ = [3, n0, _GSRRe,
267
285
  0,
268
286
  [_R, _CM, _TNR, _NT],
269
287
  [() => SqlRecords, () => ColumnMetadataList, 1, 0], 1
270
288
  ];
271
- exports.GetStatementResultV2Request$ = [3, n0, _GSRVR,
289
+ exports.GetStatementResultResponse$ = GetStatementResultResponse$;
290
+ const GetStatementResultV2Request$ = [3, n0, _GSRVR,
272
291
  0,
273
292
  [_I, _NT],
274
293
  [0, 0], 1
275
294
  ];
276
- exports.GetStatementResultV2Response$ = [3, n0, _GSRVRe,
295
+ exports.GetStatementResultV2Request$ = GetStatementResultV2Request$;
296
+ const GetStatementResultV2Response$ = [3, n0, _GSRVRe,
277
297
  0,
278
298
  [_R, _CM, _TNR, _RF, _NT],
279
299
  [() => FormattedSqlRecords, () => ColumnMetadataList, 1, 0, 0], 1
280
300
  ];
281
- exports.ListDatabasesRequest$ = [3, n0, _LDR,
301
+ exports.GetStatementResultV2Response$ = GetStatementResultV2Response$;
302
+ const ListDatabasesRequest$ = [3, n0, _LDR,
282
303
  0,
283
304
  [_D, _CI, _SA, _DU, _NT, _MR, _WN],
284
305
  [0, 0, 0, 0, 0, 1, 0], 1
285
306
  ];
286
- exports.ListDatabasesResponse$ = [3, n0, _LDRi,
307
+ exports.ListDatabasesRequest$ = ListDatabasesRequest$;
308
+ const ListDatabasesResponse$ = [3, n0, _LDRi,
287
309
  0,
288
310
  [_Da, _NT],
289
311
  [64 | 0, 0]
290
312
  ];
291
- exports.ListSchemasRequest$ = [3, n0, _LSR,
313
+ exports.ListDatabasesResponse$ = ListDatabasesResponse$;
314
+ const ListSchemasRequest$ = [3, n0, _LSR,
292
315
  0,
293
316
  [_D, _CI, _SA, _DU, _CD, _SP, _NT, _MR, _WN],
294
317
  [0, 0, 0, 0, 0, 0, 0, 1, 0], 1
295
318
  ];
296
- exports.ListSchemasResponse$ = [3, n0, _LSRi,
319
+ exports.ListSchemasRequest$ = ListSchemasRequest$;
320
+ const ListSchemasResponse$ = [3, n0, _LSRi,
297
321
  0,
298
322
  [_Sch, _NT],
299
323
  [64 | 0, 0]
300
324
  ];
301
- exports.ListStatementsRequest$ = [3, n0, _LSRis,
325
+ exports.ListSchemasResponse$ = ListSchemasResponse$;
326
+ const ListStatementsRequest$ = [3, n0, _LSRis,
302
327
  0,
303
328
  [_NT, _MR, _SN, _St, _RL, _D, _CI, _WN],
304
329
  [0, 1, 0, 0, 2, 0, 0, 0]
305
330
  ];
306
- exports.ListStatementsResponse$ = [3, n0, _LSRist,
331
+ exports.ListStatementsRequest$ = ListStatementsRequest$;
332
+ const ListStatementsResponse$ = [3, n0, _LSRist,
307
333
  0,
308
334
  [_Sta, _NT],
309
335
  [() => StatementList, 0], 1
310
336
  ];
311
- exports.ListTablesRequest$ = [3, n0, _LTR,
337
+ exports.ListStatementsResponse$ = ListStatementsResponse$;
338
+ const ListTablesRequest$ = [3, n0, _LTR,
312
339
  0,
313
340
  [_D, _CI, _SA, _DU, _CD, _SP, _TP, _NT, _MR, _WN],
314
341
  [0, 0, 0, 0, 0, 0, 0, 0, 1, 0], 1
315
342
  ];
316
- exports.ListTablesResponse$ = [3, n0, _LTRi,
343
+ exports.ListTablesRequest$ = ListTablesRequest$;
344
+ const ListTablesResponse$ = [3, n0, _LTRi,
317
345
  0,
318
346
  [_Ta, _NT],
319
347
  [() => TableList, 0]
320
348
  ];
321
- exports.SqlParameter$ = [3, n0, _SPq,
349
+ exports.ListTablesResponse$ = ListTablesResponse$;
350
+ const SqlParameter$ = [3, n0, _SPq,
322
351
  0,
323
352
  [_n, _v],
324
353
  [0, 0], 2
325
354
  ];
326
- exports.StatementData$ = [3, n0, _SD,
355
+ exports.SqlParameter$ = SqlParameter$;
356
+ const StatementData$ = [3, n0, _SD,
327
357
  0,
328
358
  [_I, _QS, _QSu, _SA, _St, _SN, _CA, _UA, _QP, _IBS, _RF, _SIe],
329
359
  [0, 0, 64 | 0, 0, 0, 0, 4, 4, () => SqlParametersList, 2, 0, 0], 1
330
360
  ];
331
- exports.SubStatementData$ = [3, n0, _SSD,
361
+ exports.StatementData$ = StatementData$;
362
+ const SubStatementData$ = [3, n0, _SSD,
332
363
  0,
333
364
  [_I, _Du, _E, _St, _CA, _UA, _QS, _RR, _RS, _RQI, _HRS],
334
365
  [0, 1, 0, 0, 4, 4, 0, 1, 1, 1, 2], 1
335
366
  ];
336
- exports.TableMember$ = [3, n0, _TM,
367
+ exports.SubStatementData$ = SubStatementData$;
368
+ const TableMember$ = [3, n0, _TM,
337
369
  0,
338
370
  [_n, _t, _sch],
339
371
  [0, 0, 0]
340
372
  ];
373
+ exports.TableMember$ = TableMember$;
341
374
  var ColumnList = [1, n0, _CL,
342
- 0, () => exports.ColumnMetadata$
375
+ 0, () => ColumnMetadata$
343
376
  ];
344
377
  var ColumnMetadataList = [1, n0, _CML,
345
- 0, () => exports.ColumnMetadata$
378
+ 0, () => ColumnMetadata$
346
379
  ];
347
380
  var DatabaseList = 64 | 0;
348
381
  var DbGroupList = 64 | 0;
349
382
  var FieldList = [1, n0, _FL,
350
- 0, () => exports.Field$
383
+ 0, () => Field$
351
384
  ];
352
385
  var FormattedSqlRecords = [1, n0, _FSR,
353
- 0, () => exports.QueryRecords$
386
+ 0, () => QueryRecords$
354
387
  ];
355
388
  var SchemaList = 64 | 0;
356
389
  var SqlList = 64 | 0;
357
390
  var SqlParametersList = [1, n0, _SPL,
358
- 0, () => exports.SqlParameter$
391
+ 0, () => SqlParameter$
359
392
  ];
360
393
  var SqlRecords = [1, n0, _SR,
361
394
  0, () => FieldList
362
395
  ];
363
396
  var StatementList = [1, n0, _SL,
364
- 0, () => exports.StatementData$
397
+ 0, () => StatementData$
365
398
  ];
366
399
  var StatementStringList = 64 | 0;
367
400
  var SubStatementList = [1, n0, _SSL,
368
- 0, () => exports.SubStatementData$
401
+ 0, () => SubStatementData$
369
402
  ];
370
403
  var TableList = [1, n0, _TL,
371
- 0, () => exports.TableMember$
404
+ 0, () => TableMember$
372
405
  ];
373
- exports.Field$ = [4, n0, _F,
406
+ const Field$ = [4, n0, _F,
374
407
  0,
375
408
  [_iN, _bV, _lV, _dV, _sV, _bVl],
376
409
  [2, 2, 1, 1, 0, 21]
377
410
  ];
378
- exports.QueryRecords$ = [4, n0, _QR,
411
+ exports.Field$ = Field$;
412
+ const QueryRecords$ = [4, n0, _QR,
379
413
  0,
380
414
  [_CSVR],
381
415
  [0]
382
416
  ];
417
+ exports.QueryRecords$ = QueryRecords$;
383
418
  exports.BatchExecuteStatement$ = [9, n0, _BES,
384
- 0, () => exports.BatchExecuteStatementInput$, () => exports.BatchExecuteStatementOutput$
419
+ 0, () => BatchExecuteStatementInput$, () => BatchExecuteStatementOutput$
385
420
  ];
386
421
  exports.CancelStatement$ = [9, n0, _CS,
387
- 0, () => exports.CancelStatementRequest$, () => exports.CancelStatementResponse$
422
+ 0, () => CancelStatementRequest$, () => CancelStatementResponse$
388
423
  ];
389
424
  exports.DescribeStatement$ = [9, n0, _DS,
390
- 0, () => exports.DescribeStatementRequest$, () => exports.DescribeStatementResponse$
425
+ 0, () => DescribeStatementRequest$, () => DescribeStatementResponse$
391
426
  ];
392
427
  exports.DescribeTable$ = [9, n0, _DT,
393
- 0, () => exports.DescribeTableRequest$, () => exports.DescribeTableResponse$
428
+ 0, () => DescribeTableRequest$, () => DescribeTableResponse$
394
429
  ];
395
430
  exports.ExecuteStatement$ = [9, n0, _ES,
396
- 0, () => exports.ExecuteStatementInput$, () => exports.ExecuteStatementOutput$
431
+ 0, () => ExecuteStatementInput$, () => ExecuteStatementOutput$
397
432
  ];
398
433
  exports.GetStatementResult$ = [9, n0, _GSR,
399
- 0, () => exports.GetStatementResultRequest$, () => exports.GetStatementResultResponse$
434
+ 0, () => GetStatementResultRequest$, () => GetStatementResultResponse$
400
435
  ];
401
436
  exports.GetStatementResultV2$ = [9, n0, _GSRV,
402
- 0, () => exports.GetStatementResultV2Request$, () => exports.GetStatementResultV2Response$
437
+ 0, () => GetStatementResultV2Request$, () => GetStatementResultV2Response$
403
438
  ];
404
439
  exports.ListDatabases$ = [9, n0, _LD,
405
- 0, () => exports.ListDatabasesRequest$, () => exports.ListDatabasesResponse$
440
+ 0, () => ListDatabasesRequest$, () => ListDatabasesResponse$
406
441
  ];
407
442
  exports.ListSchemas$ = [9, n0, _LS,
408
- 0, () => exports.ListSchemasRequest$, () => exports.ListSchemasResponse$
443
+ 0, () => ListSchemasRequest$, () => ListSchemasResponse$
409
444
  ];
410
445
  exports.ListStatements$ = [9, n0, _LSi,
411
- 0, () => exports.ListStatementsRequest$, () => exports.ListStatementsResponse$
446
+ 0, () => ListStatementsRequest$, () => ListStatementsResponse$
412
447
  ];
413
448
  exports.ListTables$ = [9, n0, _LT,
414
- 0, () => exports.ListTablesRequest$, () => exports.ListTablesResponse$
449
+ 0, () => ListTablesRequest$, () => ListTablesResponse$
415
450
  ];
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-redshift-data",
3
3
  "description": "AWS SDK for JavaScript Redshift Data Client for Node.js, Browser and React Native",
4
- "version": "3.1068.0",
4
+ "version": "3.1069.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline",
8
- "build:es": "tsc -p tsconfig.es.json",
8
+ "build:es": "premove dist-es && tsc -p tsconfig.es.json",
9
9
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
10
- "build:types": "tsc -p tsconfig.types.json",
10
+ "build:types": "premove dist-types && tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
- "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
12
+ "clean": "premove dist-cjs dist-es dist-types",
13
13
  "extract:docs": "api-extractor run --local",
14
- "generate:client": "node ../../scripts/generate-clients/single-service --solo redshift-data",
14
+ "generate:client": "node ../../scripts/generate-clients/single-service",
15
15
  "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
16
16
  },
17
17
  "main": "./dist-cjs/index.js",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.974.20",
25
- "@aws-sdk/credential-provider-node": "^3.972.55",
26
- "@aws-sdk/types": "^3.973.12",
24
+ "@aws-sdk/core": "^3.974.21",
25
+ "@aws-sdk/credential-provider-node": "^3.972.56",
26
+ "@aws-sdk/types": "^3.973.13",
27
27
  "@smithy/core": "^3.24.6",
28
28
  "@smithy/fetch-http-handler": "^5.4.6",
29
29
  "@smithy/node-http-handler": "^4.7.6",