@aws-sdk/client-redshift-data 3.926.0 → 3.928.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.
Files changed (32) hide show
  1. package/dist-cjs/index.js +517 -655
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/RedshiftDataClient.js +2 -0
  4. package/dist-es/commands/BatchExecuteStatementCommand.js +3 -9
  5. package/dist-es/commands/CancelStatementCommand.js +3 -9
  6. package/dist-es/commands/DescribeStatementCommand.js +3 -9
  7. package/dist-es/commands/DescribeTableCommand.js +3 -9
  8. package/dist-es/commands/ExecuteStatementCommand.js +3 -9
  9. package/dist-es/commands/GetStatementResultCommand.js +3 -9
  10. package/dist-es/commands/GetStatementResultV2Command.js +3 -9
  11. package/dist-es/commands/ListDatabasesCommand.js +3 -9
  12. package/dist-es/commands/ListSchemasCommand.js +3 -9
  13. package/dist-es/commands/ListStatementsCommand.js +3 -9
  14. package/dist-es/commands/ListTablesCommand.js +3 -9
  15. package/dist-es/runtimeConfig.shared.js +7 -0
  16. package/dist-es/schemas/schemas_0.js +471 -0
  17. package/dist-types/RedshiftDataClient.d.ts +10 -1
  18. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  19. package/dist-types/runtimeConfig.d.ts +1 -0
  20. package/dist-types/runtimeConfig.native.d.ts +1 -0
  21. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  22. package/dist-types/schemas/schemas_0.d.ts +65 -0
  23. package/dist-types/ts3.4/RedshiftDataClient.d.ts +4 -0
  24. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  25. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  26. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  27. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  28. package/dist-types/ts3.4/schemas/schemas_0.d.ts +70 -0
  29. package/package.json +5 -6
  30. package/dist-es/protocols/Aws_json1_1.js +0 -555
  31. package/dist-types/protocols/Aws_json1_1.d.ts +0 -101
  32. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -137
@@ -0,0 +1,471 @@
1
+ const _ASEE = "ActiveSessionsExceededException";
2
+ const _ASEEc = "ActiveStatementsExceededException";
3
+ const _BES = "BatchExecuteStatement";
4
+ const _BESE = "BatchExecuteStatementException";
5
+ const _BESI = "BatchExecuteStatementInput";
6
+ const _BESO = "BatchExecuteStatementOutput";
7
+ const _CA = "CreatedAt";
8
+ const _CD = "ConnectedDatabase";
9
+ const _CI = "ClusterIdentifier";
10
+ const _CL = "ColumnList";
11
+ const _CM = "ColumnMetadata";
12
+ const _CML = "ColumnMetadataList";
13
+ const _CS = "CancelStatement";
14
+ const _CSR = "CancelStatementRequest";
15
+ const _CSRa = "CancelStatementResponse";
16
+ const _CSVR = "CSVRecords";
17
+ const _CT = "ClientToken";
18
+ const _D = "Database";
19
+ const _DCE = "DatabaseConnectionException";
20
+ const _DG = "DbGroups";
21
+ const _DS = "DescribeStatement";
22
+ const _DSR = "DescribeStatementRequest";
23
+ const _DSRe = "DescribeStatementResponse";
24
+ const _DT = "DescribeTable";
25
+ const _DTR = "DescribeTableRequest";
26
+ const _DTRe = "DescribeTableResponse";
27
+ const _DU = "DbUser";
28
+ const _Da = "Databases";
29
+ const _Du = "Duration";
30
+ const _E = "Error";
31
+ const _ES = "ExecuteStatement";
32
+ const _ESE = "ExecuteStatementException";
33
+ const _ESI = "ExecuteStatementInput";
34
+ const _ESO = "ExecuteStatementOutput";
35
+ const _F = "Field";
36
+ const _FL = "FieldList";
37
+ const _FSR = "FormattedSqlRecords";
38
+ const _GSR = "GetStatementResult";
39
+ const _GSRR = "GetStatementResultRequest";
40
+ const _GSRRe = "GetStatementResultResponse";
41
+ const _GSRV = "GetStatementResultV2";
42
+ const _GSRVR = "GetStatementResultV2Request";
43
+ const _GSRVRe = "GetStatementResultV2Response";
44
+ const _HRS = "HasResultSet";
45
+ const _I = "Id";
46
+ const _IBS = "IsBatchStatement";
47
+ const _ISE = "InternalServerException";
48
+ const _LD = "ListDatabases";
49
+ const _LDR = "ListDatabasesRequest";
50
+ const _LDRi = "ListDatabasesResponse";
51
+ const _LS = "ListSchemas";
52
+ const _LSR = "ListSchemasRequest";
53
+ const _LSRi = "ListSchemasResponse";
54
+ const _LSRis = "ListStatementsRequest";
55
+ const _LSRist = "ListStatementsResponse";
56
+ const _LSi = "ListStatements";
57
+ const _LT = "ListTables";
58
+ const _LTR = "ListTablesRequest";
59
+ const _LTRi = "ListTablesResponse";
60
+ const _M = "Message";
61
+ const _MR = "MaxResults";
62
+ const _NT = "NextToken";
63
+ const _P = "Parameters";
64
+ const _QP = "QueryParameters";
65
+ const _QR = "QueryRecords";
66
+ const _QS = "QueryString";
67
+ const _QSu = "QueryStrings";
68
+ const _QTE = "QueryTimeoutException";
69
+ const _R = "Records";
70
+ const _RF = "ResultFormat";
71
+ const _RI = "ResourceId";
72
+ const _RL = "RoleLevel";
73
+ const _RNFE = "ResourceNotFoundException";
74
+ const _RP = "RedshiftPid";
75
+ const _RQI = "RedshiftQueryId";
76
+ const _RR = "ResultRows";
77
+ const _RS = "ResultSize";
78
+ const _S = "Sqls";
79
+ const _SA = "SecretArn";
80
+ const _SD = "StatementData";
81
+ const _SI = "StatementId";
82
+ const _SIe = "SessionId";
83
+ const _SKAS = "SessionKeepAliveSeconds";
84
+ const _SL = "StatementList";
85
+ const _SN = "StatementName";
86
+ const _SP = "SchemaPattern";
87
+ const _SPL = "SqlParametersList";
88
+ const _SPq = "SqlParameter";
89
+ const _SR = "SqlRecords";
90
+ const _SS = "SubStatements";
91
+ const _SSD = "SubStatementData";
92
+ const _SSL = "SubStatementList";
93
+ const _Sc = "Schema";
94
+ const _Sch = "Schemas";
95
+ const _Sq = "Sql";
96
+ const _St = "Status";
97
+ const _Sta = "Statements";
98
+ const _T = "Table";
99
+ const _TL = "TableList";
100
+ const _TM = "TableMember";
101
+ const _TN = "TableName";
102
+ const _TNR = "TotalNumRows";
103
+ const _TP = "TablePattern";
104
+ const _Ta = "Tables";
105
+ const _UA = "UpdatedAt";
106
+ const _VE = "ValidationException";
107
+ const _WE = "WithEvent";
108
+ const _WN = "WorkgroupName";
109
+ const _bV = "booleanValue";
110
+ const _bVl = "blobValue";
111
+ const _c = "client";
112
+ const _cD = "columnDefault";
113
+ const _dV = "doubleValue";
114
+ const _e = "error";
115
+ const _hE = "httpError";
116
+ const _iC = "isCurrency";
117
+ const _iCS = "isCaseSensitive";
118
+ const _iN = "isNull";
119
+ const _iS = "isSigned";
120
+ const _l = "label";
121
+ const _lV = "longValue";
122
+ const _le = "length";
123
+ const _n = "name";
124
+ const _nu = "nullable";
125
+ const _p = "precision";
126
+ const _s = "server";
127
+ const _sN = "schemaName";
128
+ const _sV = "stringValue";
129
+ const _sc = "scale";
130
+ const _sch = "schema";
131
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.redshiftdata";
132
+ const _t = "type";
133
+ const _tN = "tableName";
134
+ const _tNy = "typeName";
135
+ const _v = "value";
136
+ const n0 = "com.amazonaws.redshiftdata";
137
+ import { TypeRegistry } from "@smithy/core/schema";
138
+ import { ActiveSessionsExceededException as __ActiveSessionsExceededException, ActiveStatementsExceededException as __ActiveStatementsExceededException, BatchExecuteStatementException as __BatchExecuteStatementException, DatabaseConnectionException as __DatabaseConnectionException, ExecuteStatementException as __ExecuteStatementException, InternalServerException as __InternalServerException, QueryTimeoutException as __QueryTimeoutException, ResourceNotFoundException as __ResourceNotFoundException, ValidationException as __ValidationException, } from "../models/index";
139
+ import { RedshiftDataServiceException as __RedshiftDataServiceException } from "../models/RedshiftDataServiceException";
140
+ export var ActiveSessionsExceededException = [
141
+ -3,
142
+ n0,
143
+ _ASEE,
144
+ {
145
+ [_e]: _c,
146
+ [_hE]: 400,
147
+ },
148
+ [_M],
149
+ [0],
150
+ ];
151
+ TypeRegistry.for(n0).registerError(ActiveSessionsExceededException, __ActiveSessionsExceededException);
152
+ export var ActiveStatementsExceededException = [
153
+ -3,
154
+ n0,
155
+ _ASEEc,
156
+ {
157
+ [_e]: _c,
158
+ [_hE]: 400,
159
+ },
160
+ [_M],
161
+ [0],
162
+ ];
163
+ TypeRegistry.for(n0).registerError(ActiveStatementsExceededException, __ActiveStatementsExceededException);
164
+ export var BatchExecuteStatementException = [
165
+ -3,
166
+ n0,
167
+ _BESE,
168
+ {
169
+ [_e]: _s,
170
+ [_hE]: 500,
171
+ },
172
+ [_M, _SI],
173
+ [0, 0],
174
+ ];
175
+ TypeRegistry.for(n0).registerError(BatchExecuteStatementException, __BatchExecuteStatementException);
176
+ export var BatchExecuteStatementInput = [
177
+ 3,
178
+ n0,
179
+ _BESI,
180
+ 0,
181
+ [_S, _CI, _SA, _DU, _D, _WE, _SN, _WN, _CT, _SKAS, _SIe, _RF],
182
+ [64 | 0, 0, 0, 0, 0, 2, 0, 0, [0, 4], 1, 0, 0],
183
+ ];
184
+ export var BatchExecuteStatementOutput = [
185
+ 3,
186
+ n0,
187
+ _BESO,
188
+ 0,
189
+ [_I, _CA, _CI, _DU, _DG, _D, _SA, _WN, _SIe],
190
+ [0, 4, 0, 0, 64 | 0, 0, 0, 0, 0],
191
+ ];
192
+ export var CancelStatementRequest = [3, n0, _CSR, 0, [_I], [0]];
193
+ export var CancelStatementResponse = [3, n0, _CSRa, 0, [_St], [2]];
194
+ export var ColumnMetadata = [
195
+ 3,
196
+ n0,
197
+ _CM,
198
+ 0,
199
+ [_iCS, _iC, _iS, _l, _n, _nu, _p, _sc, _sN, _tN, _tNy, _le, _cD],
200
+ [2, 2, 2, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0],
201
+ ];
202
+ export var DatabaseConnectionException = [
203
+ -3,
204
+ n0,
205
+ _DCE,
206
+ {
207
+ [_e]: _s,
208
+ [_hE]: 500,
209
+ },
210
+ [_M],
211
+ [0],
212
+ ];
213
+ TypeRegistry.for(n0).registerError(DatabaseConnectionException, __DatabaseConnectionException);
214
+ export var DescribeStatementRequest = [3, n0, _DSR, 0, [_I], [0]];
215
+ export var DescribeStatementResponse = [
216
+ 3,
217
+ n0,
218
+ _DSRe,
219
+ 0,
220
+ [_I, _SA, _DU, _D, _CI, _Du, _E, _St, _CA, _UA, _RP, _HRS, _QS, _RR, _RS, _RQI, _QP, _SS, _WN, _SIe, _RF],
221
+ [0, 0, 0, 0, 0, 1, 0, 0, 4, 4, 1, 2, 0, 1, 1, 1, () => SqlParametersList, () => SubStatementList, 0, 0, 0],
222
+ ];
223
+ export var DescribeTableRequest = [
224
+ 3,
225
+ n0,
226
+ _DTR,
227
+ 0,
228
+ [_CI, _SA, _DU, _D, _CD, _Sc, _T, _NT, _MR, _WN],
229
+ [0, 0, 0, 0, 0, 0, 0, 0, 1, 0],
230
+ ];
231
+ export var DescribeTableResponse = [3, n0, _DTRe, 0, [_TN, _CL, _NT], [0, () => ColumnList, 0]];
232
+ export var ExecuteStatementException = [
233
+ -3,
234
+ n0,
235
+ _ESE,
236
+ {
237
+ [_e]: _s,
238
+ [_hE]: 500,
239
+ },
240
+ [_M, _SI],
241
+ [0, 0],
242
+ ];
243
+ TypeRegistry.for(n0).registerError(ExecuteStatementException, __ExecuteStatementException);
244
+ export var ExecuteStatementInput = [
245
+ 3,
246
+ n0,
247
+ _ESI,
248
+ 0,
249
+ [_Sq, _CI, _SA, _DU, _D, _WE, _SN, _P, _WN, _CT, _SKAS, _SIe, _RF],
250
+ [0, 0, 0, 0, 0, 2, 0, () => SqlParametersList, 0, [0, 4], 1, 0, 0],
251
+ ];
252
+ export var ExecuteStatementOutput = [
253
+ 3,
254
+ n0,
255
+ _ESO,
256
+ 0,
257
+ [_I, _CA, _CI, _DU, _DG, _D, _SA, _WN, _SIe],
258
+ [0, 4, 0, 0, 64 | 0, 0, 0, 0, 0],
259
+ ];
260
+ export var GetStatementResultRequest = [3, n0, _GSRR, 0, [_I, _NT], [0, 0]];
261
+ export var GetStatementResultResponse = [
262
+ 3,
263
+ n0,
264
+ _GSRRe,
265
+ 0,
266
+ [_R, _CM, _TNR, _NT],
267
+ [() => SqlRecords, () => ColumnMetadataList, 1, 0],
268
+ ];
269
+ export var GetStatementResultV2Request = [3, n0, _GSRVR, 0, [_I, _NT], [0, 0]];
270
+ export var GetStatementResultV2Response = [
271
+ 3,
272
+ n0,
273
+ _GSRVRe,
274
+ 0,
275
+ [_R, _CM, _TNR, _RF, _NT],
276
+ [() => FormattedSqlRecords, () => ColumnMetadataList, 1, 0, 0],
277
+ ];
278
+ export var InternalServerException = [
279
+ -3,
280
+ n0,
281
+ _ISE,
282
+ {
283
+ [_e]: _s,
284
+ [_hE]: 500,
285
+ },
286
+ [_M],
287
+ [0],
288
+ ];
289
+ TypeRegistry.for(n0).registerError(InternalServerException, __InternalServerException);
290
+ export var ListDatabasesRequest = [
291
+ 3,
292
+ n0,
293
+ _LDR,
294
+ 0,
295
+ [_CI, _D, _SA, _DU, _NT, _MR, _WN],
296
+ [0, 0, 0, 0, 0, 1, 0],
297
+ ];
298
+ export var ListDatabasesResponse = [3, n0, _LDRi, 0, [_Da, _NT], [64 | 0, 0]];
299
+ export var ListSchemasRequest = [
300
+ 3,
301
+ n0,
302
+ _LSR,
303
+ 0,
304
+ [_CI, _SA, _DU, _D, _CD, _SP, _NT, _MR, _WN],
305
+ [0, 0, 0, 0, 0, 0, 0, 1, 0],
306
+ ];
307
+ export var ListSchemasResponse = [3, n0, _LSRi, 0, [_Sch, _NT], [64 | 0, 0]];
308
+ export var ListStatementsRequest = [
309
+ 3,
310
+ n0,
311
+ _LSRis,
312
+ 0,
313
+ [_NT, _MR, _SN, _St, _RL, _D, _CI, _WN],
314
+ [0, 1, 0, 0, 2, 0, 0, 0],
315
+ ];
316
+ export var ListStatementsResponse = [3, n0, _LSRist, 0, [_Sta, _NT], [() => StatementList, 0]];
317
+ export var ListTablesRequest = [
318
+ 3,
319
+ n0,
320
+ _LTR,
321
+ 0,
322
+ [_CI, _SA, _DU, _D, _CD, _SP, _TP, _NT, _MR, _WN],
323
+ [0, 0, 0, 0, 0, 0, 0, 0, 1, 0],
324
+ ];
325
+ export var ListTablesResponse = [3, n0, _LTRi, 0, [_Ta, _NT], [() => TableList, 0]];
326
+ export var QueryTimeoutException = [
327
+ -3,
328
+ n0,
329
+ _QTE,
330
+ {
331
+ [_e]: _c,
332
+ [_hE]: 400,
333
+ },
334
+ [_M],
335
+ [0],
336
+ ];
337
+ TypeRegistry.for(n0).registerError(QueryTimeoutException, __QueryTimeoutException);
338
+ export var ResourceNotFoundException = [
339
+ -3,
340
+ n0,
341
+ _RNFE,
342
+ {
343
+ [_e]: _c,
344
+ [_hE]: 404,
345
+ },
346
+ [_M, _RI],
347
+ [0, 0],
348
+ ];
349
+ TypeRegistry.for(n0).registerError(ResourceNotFoundException, __ResourceNotFoundException);
350
+ export var SqlParameter = [3, n0, _SPq, 0, [_n, _v], [0, 0]];
351
+ export var StatementData = [
352
+ 3,
353
+ n0,
354
+ _SD,
355
+ 0,
356
+ [_I, _QS, _QSu, _SA, _St, _SN, _CA, _UA, _QP, _IBS, _RF, _SIe],
357
+ [0, 0, 64 | 0, 0, 0, 0, 4, 4, () => SqlParametersList, 2, 0, 0],
358
+ ];
359
+ export var SubStatementData = [
360
+ 3,
361
+ n0,
362
+ _SSD,
363
+ 0,
364
+ [_I, _Du, _E, _St, _CA, _UA, _QS, _RR, _RS, _RQI, _HRS],
365
+ [0, 1, 0, 0, 4, 4, 0, 1, 1, 1, 2],
366
+ ];
367
+ export var TableMember = [3, n0, _TM, 0, [_n, _t, _sch], [0, 0, 0]];
368
+ export var ValidationException = [
369
+ -3,
370
+ n0,
371
+ _VE,
372
+ {
373
+ [_e]: _c,
374
+ [_hE]: 400,
375
+ },
376
+ [_M],
377
+ [0],
378
+ ];
379
+ TypeRegistry.for(n0).registerError(ValidationException, __ValidationException);
380
+ export var RedshiftDataServiceException = [-3, _sm, "RedshiftDataServiceException", 0, [], []];
381
+ TypeRegistry.for(_sm).registerError(RedshiftDataServiceException, __RedshiftDataServiceException);
382
+ export var ColumnList = [1, n0, _CL, 0, () => ColumnMetadata];
383
+ export var ColumnMetadataList = [1, n0, _CML, 0, () => ColumnMetadata];
384
+ export var DatabaseList = 64 | 0;
385
+ export var DbGroupList = 64 | 0;
386
+ export var FieldList = [1, n0, _FL, 0, () => Field];
387
+ export var FormattedSqlRecords = [1, n0, _FSR, 0, () => QueryRecords];
388
+ export var SchemaList = 64 | 0;
389
+ export var SqlList = 64 | 0;
390
+ export var SqlParametersList = [1, n0, _SPL, 0, () => SqlParameter];
391
+ export var SqlRecords = [1, n0, _SR, 0, () => FieldList];
392
+ export var StatementList = [1, n0, _SL, 0, () => StatementData];
393
+ export var StatementStringList = 64 | 0;
394
+ export var SubStatementList = [1, n0, _SSL, 0, () => SubStatementData];
395
+ export var TableList = [1, n0, _TL, 0, () => TableMember];
396
+ export var Field = [3, n0, _F, 0, [_iN, _bV, _lV, _dV, _sV, _bVl], [2, 2, 1, 1, 0, 21]];
397
+ export var QueryRecords = [3, n0, _QR, 0, [_CSVR], [0]];
398
+ export var BatchExecuteStatement = [
399
+ 9,
400
+ n0,
401
+ _BES,
402
+ 0,
403
+ () => BatchExecuteStatementInput,
404
+ () => BatchExecuteStatementOutput,
405
+ ];
406
+ export var CancelStatement = [
407
+ 9,
408
+ n0,
409
+ _CS,
410
+ 0,
411
+ () => CancelStatementRequest,
412
+ () => CancelStatementResponse,
413
+ ];
414
+ export var DescribeStatement = [
415
+ 9,
416
+ n0,
417
+ _DS,
418
+ 0,
419
+ () => DescribeStatementRequest,
420
+ () => DescribeStatementResponse,
421
+ ];
422
+ export var DescribeTable = [
423
+ 9,
424
+ n0,
425
+ _DT,
426
+ 0,
427
+ () => DescribeTableRequest,
428
+ () => DescribeTableResponse,
429
+ ];
430
+ export var ExecuteStatement = [
431
+ 9,
432
+ n0,
433
+ _ES,
434
+ 0,
435
+ () => ExecuteStatementInput,
436
+ () => ExecuteStatementOutput,
437
+ ];
438
+ export var GetStatementResult = [
439
+ 9,
440
+ n0,
441
+ _GSR,
442
+ 0,
443
+ () => GetStatementResultRequest,
444
+ () => GetStatementResultResponse,
445
+ ];
446
+ export var GetStatementResultV2 = [
447
+ 9,
448
+ n0,
449
+ _GSRV,
450
+ 0,
451
+ () => GetStatementResultV2Request,
452
+ () => GetStatementResultV2Response,
453
+ ];
454
+ export var ListDatabases = [
455
+ 9,
456
+ n0,
457
+ _LD,
458
+ 0,
459
+ () => ListDatabasesRequest,
460
+ () => ListDatabasesResponse,
461
+ ];
462
+ export var ListSchemas = [9, n0, _LS, 0, () => ListSchemasRequest, () => ListSchemasResponse];
463
+ export var ListStatements = [
464
+ 9,
465
+ n0,
466
+ _LSi,
467
+ 0,
468
+ () => ListStatementsRequest,
469
+ () => ListStatementsResponse,
470
+ ];
471
+ export var ListTables = [9, n0, _LT, 0, () => ListTablesRequest, () => ListTablesResponse];
@@ -5,7 +5,7 @@ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-
5
5
  import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
6
6
  import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
7
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
8
- import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
8
+ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, HttpRequest, HttpResponse, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
9
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
10
  import { BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput } from "./commands/BatchExecuteStatementCommand";
11
11
  import { CancelStatementCommandInput, CancelStatementCommandOutput } from "./commands/CancelStatementCommand";
@@ -152,6 +152,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
152
152
  * Optional extensions
153
153
  */
154
154
  extensions?: RuntimeExtension[];
155
+ /**
156
+ * The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
157
+ * may be overridden. A default will always be set by the client.
158
+ * Available options depend on the service's supported protocols and will not be validated by
159
+ * the client.
160
+ * @alpha
161
+ *
162
+ */
163
+ protocol?: ClientProtocol<HttpRequest, HttpResponse>;
155
164
  /**
156
165
  * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
157
166
  */
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: RedshiftDataClientConfig) => {
29
29
  profile?: string;
30
30
  logger: import("@smithy/types").Logger;
31
31
  extensions: import("./runtimeExtensions").RuntimeExtension[];
32
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
32
33
  customUserAgent?: string | import("@smithy/types").UserAgent;
33
34
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
34
35
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: RedshiftDataClientConfig) => {
31
31
  profile?: string;
32
32
  logger: import("@smithy/types").Logger;
33
33
  extensions: import("./runtimeExtensions").RuntimeExtension[];
34
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
34
35
  customUserAgent?: string | import("@smithy/types").UserAgent;
35
36
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
36
37
  endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: RedshiftDataClientConfig) => {
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
29
29
  extensions: import("./runtimeExtensions").RuntimeExtension[];
30
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
30
31
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
31
32
  customUserAgent?: string | import("@smithy/types").UserAgent;
32
33
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
@@ -14,6 +14,7 @@ export declare const getRuntimeConfig: (config: RedshiftDataClientConfig) => {
14
14
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").RedshiftDataHttpAuthSchemeProvider;
15
15
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
16
16
  logger: import("@smithy/types").Logger;
17
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
17
18
  serviceId: string;
18
19
  urlParser: import("@smithy/types").UrlParser;
19
20
  utf8Decoder: import("@smithy/types").Decoder;
@@ -0,0 +1,65 @@
1
+ import { StaticErrorSchema, StaticListSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
2
+ export declare var ActiveSessionsExceededException: StaticErrorSchema;
3
+ export declare var ActiveStatementsExceededException: StaticErrorSchema;
4
+ export declare var BatchExecuteStatementException: StaticErrorSchema;
5
+ export declare var BatchExecuteStatementInput: StaticStructureSchema;
6
+ export declare var BatchExecuteStatementOutput: StaticStructureSchema;
7
+ export declare var CancelStatementRequest: StaticStructureSchema;
8
+ export declare var CancelStatementResponse: StaticStructureSchema;
9
+ export declare var ColumnMetadata: StaticStructureSchema;
10
+ export declare var DatabaseConnectionException: StaticErrorSchema;
11
+ export declare var DescribeStatementRequest: StaticStructureSchema;
12
+ export declare var DescribeStatementResponse: StaticStructureSchema;
13
+ export declare var DescribeTableRequest: StaticStructureSchema;
14
+ export declare var DescribeTableResponse: StaticStructureSchema;
15
+ export declare var ExecuteStatementException: StaticErrorSchema;
16
+ export declare var ExecuteStatementInput: StaticStructureSchema;
17
+ export declare var ExecuteStatementOutput: StaticStructureSchema;
18
+ export declare var GetStatementResultRequest: StaticStructureSchema;
19
+ export declare var GetStatementResultResponse: StaticStructureSchema;
20
+ export declare var GetStatementResultV2Request: StaticStructureSchema;
21
+ export declare var GetStatementResultV2Response: StaticStructureSchema;
22
+ export declare var InternalServerException: StaticErrorSchema;
23
+ export declare var ListDatabasesRequest: StaticStructureSchema;
24
+ export declare var ListDatabasesResponse: StaticStructureSchema;
25
+ export declare var ListSchemasRequest: StaticStructureSchema;
26
+ export declare var ListSchemasResponse: StaticStructureSchema;
27
+ export declare var ListStatementsRequest: StaticStructureSchema;
28
+ export declare var ListStatementsResponse: StaticStructureSchema;
29
+ export declare var ListTablesRequest: StaticStructureSchema;
30
+ export declare var ListTablesResponse: StaticStructureSchema;
31
+ export declare var QueryTimeoutException: StaticErrorSchema;
32
+ export declare var ResourceNotFoundException: StaticErrorSchema;
33
+ export declare var SqlParameter: StaticStructureSchema;
34
+ export declare var StatementData: StaticStructureSchema;
35
+ export declare var SubStatementData: StaticStructureSchema;
36
+ export declare var TableMember: StaticStructureSchema;
37
+ export declare var ValidationException: StaticErrorSchema;
38
+ export declare var RedshiftDataServiceException: StaticErrorSchema;
39
+ export declare var ColumnList: StaticListSchema;
40
+ export declare var ColumnMetadataList: StaticListSchema;
41
+ export declare var DatabaseList: number;
42
+ export declare var DbGroupList: number;
43
+ export declare var FieldList: StaticListSchema;
44
+ export declare var FormattedSqlRecords: StaticListSchema;
45
+ export declare var SchemaList: number;
46
+ export declare var SqlList: number;
47
+ export declare var SqlParametersList: StaticListSchema;
48
+ export declare var SqlRecords: StaticListSchema;
49
+ export declare var StatementList: StaticListSchema;
50
+ export declare var StatementStringList: number;
51
+ export declare var SubStatementList: StaticListSchema;
52
+ export declare var TableList: StaticListSchema;
53
+ export declare var Field: StaticStructureSchema;
54
+ export declare var QueryRecords: StaticStructureSchema;
55
+ export declare var BatchExecuteStatement: StaticOperationSchema;
56
+ export declare var CancelStatement: StaticOperationSchema;
57
+ export declare var DescribeStatement: StaticOperationSchema;
58
+ export declare var DescribeTable: StaticOperationSchema;
59
+ export declare var ExecuteStatement: StaticOperationSchema;
60
+ export declare var GetStatementResult: StaticOperationSchema;
61
+ export declare var GetStatementResultV2: StaticOperationSchema;
62
+ export declare var ListDatabases: StaticOperationSchema;
63
+ export declare var ListSchemas: StaticOperationSchema;
64
+ export declare var ListStatements: StaticOperationSchema;
65
+ export declare var ListTables: StaticOperationSchema;
@@ -30,10 +30,13 @@ import {
30
30
  BodyLengthCalculator as __BodyLengthCalculator,
31
31
  CheckOptionalClientConfig as __CheckOptionalClientConfig,
32
32
  ChecksumConstructor as __ChecksumConstructor,
33
+ ClientProtocol,
33
34
  Decoder as __Decoder,
34
35
  Encoder as __Encoder,
35
36
  HashConstructor as __HashConstructor,
36
37
  HttpHandlerOptions as __HttpHandlerOptions,
38
+ HttpRequest,
39
+ HttpResponse,
37
40
  Logger as __Logger,
38
41
  Provider as __Provider,
39
42
  Provider,
@@ -144,6 +147,7 @@ export interface ClientDefaults
144
147
  retryMode?: string | __Provider<string>;
145
148
  logger?: __Logger;
146
149
  extensions?: RuntimeExtension[];
150
+ protocol?: ClientProtocol<HttpRequest, HttpResponse>;
147
151
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
148
152
  }
149
153
  export type RedshiftDataClientConfigType = Partial<
@@ -38,6 +38,10 @@ export declare const getRuntimeConfig: (config: RedshiftDataClientConfig) => {
38
38
  profile?: string;
39
39
  logger: import("@smithy/types").Logger;
40
40
  extensions: import("./runtimeExtensions").RuntimeExtension[];
41
+ protocol: import("@smithy/types").ClientProtocol<
42
+ import("@smithy/types").HttpRequest,
43
+ import("@smithy/types").HttpResponse
44
+ >;
41
45
  customUserAgent?: string | import("@smithy/types").UserAgent;
42
46
  userAgentAppId?:
43
47
  | string
@@ -38,6 +38,10 @@ export declare const getRuntimeConfig: (config: RedshiftDataClientConfig) => {
38
38
  profile?: string;
39
39
  logger: import("@smithy/types").Logger;
40
40
  extensions: import("./runtimeExtensions").RuntimeExtension[];
41
+ protocol: import("@smithy/types").ClientProtocol<
42
+ import("@smithy/types").HttpRequest,
43
+ import("@smithy/types").HttpResponse
44
+ >;
41
45
  customUserAgent?: string | import("@smithy/types").UserAgent;
42
46
  retryStrategy?:
43
47
  | import("@smithy/types").RetryStrategy
@@ -37,6 +37,10 @@ export declare const getRuntimeConfig: (config: RedshiftDataClientConfig) => {
37
37
  retryMode: string | import("@smithy/types").Provider<string>;
38
38
  logger: import("@smithy/types").Logger;
39
39
  extensions: import("./runtimeExtensions").RuntimeExtension[];
40
+ protocol: import("@smithy/types").ClientProtocol<
41
+ import("@smithy/types").HttpRequest,
42
+ import("@smithy/types").HttpResponse
43
+ >;
40
44
  defaultsMode:
41
45
  | import("@smithy/smithy-client").DefaultsMode
42
46
  | import("@smithy/types").Provider<
@@ -14,6 +14,10 @@ export declare const getRuntimeConfig: (config: RedshiftDataClientConfig) => {
14
14
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").RedshiftDataHttpAuthSchemeProvider;
15
15
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
16
16
  logger: import("@smithy/types").Logger;
17
+ protocol: import("@smithy/types").ClientProtocol<
18
+ import("@smithy/types").HttpRequest,
19
+ import("@smithy/types").HttpResponse
20
+ >;
17
21
  serviceId: string;
18
22
  urlParser: import("@smithy/types").UrlParser;
19
23
  utf8Decoder: import("@smithy/types").Decoder;