@aws-sdk/client-rds-data 3.928.0 → 3.930.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 (30) hide show
  1. package/dist-cjs/index.js +548 -894
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/RDSDataClient.js +2 -0
  4. package/dist-es/commands/BatchExecuteStatementCommand.js +3 -9
  5. package/dist-es/commands/BeginTransactionCommand.js +3 -9
  6. package/dist-es/commands/CommitTransactionCommand.js +3 -9
  7. package/dist-es/commands/ExecuteSqlCommand.js +3 -9
  8. package/dist-es/commands/ExecuteStatementCommand.js +3 -9
  9. package/dist-es/commands/RollbackTransactionCommand.js +3 -9
  10. package/dist-es/models/models_0.js +0 -62
  11. package/dist-es/runtimeConfig.shared.js +2 -0
  12. package/dist-es/schemas/schemas_0.js +487 -0
  13. package/dist-types/RDSDataClient.d.ts +10 -1
  14. package/dist-types/models/models_0.d.ts +12 -3
  15. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  16. package/dist-types/runtimeConfig.d.ts +1 -0
  17. package/dist-types/runtimeConfig.native.d.ts +1 -0
  18. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  19. package/dist-types/schemas/schemas_0.d.ts +64 -0
  20. package/dist-types/ts3.4/RDSDataClient.d.ts +4 -0
  21. package/dist-types/ts3.4/models/models_0.d.ts +0 -3
  22. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  23. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  24. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  25. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  26. package/dist-types/ts3.4/schemas/schemas_0.d.ts +69 -0
  27. package/package.json +33 -33
  28. package/dist-es/protocols/Aws_restJson1.js +0 -740
  29. package/dist-types/protocols/Aws_restJson1.d.ts +0 -56
  30. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -77
@@ -0,0 +1,487 @@
1
+ const _ADE = "AccessDeniedException";
2
+ const _AOA = "ArrayOfArray";
3
+ const _AV = "ArrayValue";
4
+ const _AVL = "ArrayValueList";
5
+ const _BES = "BatchExecuteStatement";
6
+ const _BESR = "BatchExecuteStatementRequest";
7
+ const _BESRa = "BatchExecuteStatementResponse";
8
+ const _BRE = "BadRequestException";
9
+ const _BT = "BeginTransaction";
10
+ const _BTR = "BeginTransactionRequest";
11
+ const _BTRe = "BeginTransactionResponse";
12
+ const _CM = "ColumnMetadata";
13
+ const _CT = "CommitTransaction";
14
+ const _CTR = "CommitTransactionRequest";
15
+ const _CTRo = "CommitTransactionResponse";
16
+ const _DEE = "DatabaseErrorException";
17
+ const _DNFE = "DatabaseNotFoundException";
18
+ const _DRE = "DatabaseResumingException";
19
+ const _DUE = "DatabaseUnavailableException";
20
+ const _ES = "ExecuteSql";
21
+ const _ESR = "ExecuteSqlRequest";
22
+ const _ESRx = "ExecuteSqlResponse";
23
+ const _ESRxe = "ExecuteStatementRequest";
24
+ const _ESRxec = "ExecuteStatementResponse";
25
+ const _ESx = "ExecuteStatement";
26
+ const _F = "Field";
27
+ const _FE = "ForbiddenException";
28
+ const _FL = "FieldList";
29
+ const _HENEE = "HttpEndpointNotEnabledException";
30
+ const _IRSE = "InvalidResourceStateException";
31
+ const _ISE = "InvalidSecretException";
32
+ const _ISEE = "InternalServerErrorException";
33
+ const _M = "Metadata";
34
+ const _NFE = "NotFoundException";
35
+ const _R = "Record";
36
+ const _RF = "ResultFrame";
37
+ const _RSM = "ResultSetMetadata";
38
+ const _RSO = "ResultSetOptions";
39
+ const _RT = "RollbackTransaction";
40
+ const _RTR = "RollbackTransactionRequest";
41
+ const _RTRo = "RollbackTransactionResponse";
42
+ const _Re = "Records";
43
+ const _Ro = "Row";
44
+ const _SEE = "SecretsErrorException";
45
+ const _SP = "SqlParameter";
46
+ const _SPL = "SqlParametersList";
47
+ const _SPS = "SqlParameterSets";
48
+ const _SR = "SqlRecords";
49
+ const _SSR = "SqlStatementResult";
50
+ const _SSRq = "SqlStatementResults";
51
+ const _STE = "StatementTimeoutException";
52
+ const _SUE = "ServiceUnavailableError";
53
+ const _SV = "StructValue";
54
+ const _TNFE = "TransactionNotFoundException";
55
+ const _UR = "UpdateResult";
56
+ const _URE = "UnsupportedResultException";
57
+ const _URp = "UpdateResults";
58
+ const _V = "Value";
59
+ const _a = "attributes";
60
+ const _aBCT = "arrayBaseColumnType";
61
+ const _aSSA = "awsSecretStoreArn";
62
+ const _aV = "arrayValues";
63
+ const _aVr = "arrayValue";
64
+ const _bIV = "bigIntValue";
65
+ const _bV = "booleanValues";
66
+ const _bVi = "bitValue";
67
+ const _bVl = "blobValue";
68
+ const _bVo = "booleanValue";
69
+ const _c = "client";
70
+ const _cAT = "continueAfterTimeout";
71
+ const _cC = "columnCount";
72
+ const _cM = "columnMetadata";
73
+ const _d = "database";
74
+ const _dCI = "dbConnectionId";
75
+ const _dCOIA = "dbClusterOrInstanceArn";
76
+ const _dRT = "decimalReturnType";
77
+ const _dV = "doubleValues";
78
+ const _dVo = "doubleValue";
79
+ const _e = "error";
80
+ const _fR = "formattedRecords";
81
+ const _fRA = "formatRecordsAs";
82
+ const _gF = "generatedFields";
83
+ const _h = "http";
84
+ const _hE = "httpError";
85
+ const _iAI = "isAutoIncrement";
86
+ const _iC = "isCurrency";
87
+ const _iCS = "isCaseSensitive";
88
+ const _iN = "isNull";
89
+ const _iRM = "includeResultMetadata";
90
+ const _iS = "isSigned";
91
+ const _iV = "intValue";
92
+ const _l = "label";
93
+ const _lRT = "longReturnType";
94
+ const _lV = "longValues";
95
+ const _lVo = "longValue";
96
+ const _m = "message";
97
+ const _n = "name";
98
+ const _nORU = "numberOfRecordsUpdated";
99
+ const _nu = "nullable";
100
+ const _p = "precision";
101
+ const _pS = "parameterSets";
102
+ const _pa = "parameters";
103
+ const _r = "records";
104
+ const _rA = "resourceArn";
105
+ const _rF = "resultFrame";
106
+ const _rSM = "resultSetMetadata";
107
+ const _rSO = "resultSetOptions";
108
+ const _rV = "realValue";
109
+ const _s = "sql";
110
+ const _sA = "secretArn";
111
+ const _sN = "schemaName";
112
+ const _sS = "sqlStatements";
113
+ const _sSR = "sqlStatementResults";
114
+ const _sV = "stringValues";
115
+ const _sVt = "stringValue";
116
+ const _sVtr = "structValue";
117
+ const _sc = "schema";
118
+ const _sca = "scale";
119
+ const _se = "server";
120
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.rdsdata";
121
+ const _t = "type";
122
+ const _tH = "typeHint";
123
+ const _tI = "transactionId";
124
+ const _tN = "typeName";
125
+ const _tNa = "tableName";
126
+ const _tS = "transactionStatus";
127
+ const _uR = "updateResults";
128
+ const _v = "values";
129
+ const _va = "value";
130
+ const n0 = "com.amazonaws.rdsdata";
131
+ import { TypeRegistry } from "@smithy/core/schema";
132
+ import { AccessDeniedException as __AccessDeniedException, BadRequestException as __BadRequestException, DatabaseErrorException as __DatabaseErrorException, DatabaseNotFoundException as __DatabaseNotFoundException, DatabaseResumingException as __DatabaseResumingException, DatabaseUnavailableException as __DatabaseUnavailableException, ForbiddenException as __ForbiddenException, HttpEndpointNotEnabledException as __HttpEndpointNotEnabledException, InternalServerErrorException as __InternalServerErrorException, InvalidResourceStateException as __InvalidResourceStateException, InvalidSecretException as __InvalidSecretException, NotFoundException as __NotFoundException, SecretsErrorException as __SecretsErrorException, ServiceUnavailableError as __ServiceUnavailableError, StatementTimeoutException as __StatementTimeoutException, TransactionNotFoundException as __TransactionNotFoundException, UnsupportedResultException as __UnsupportedResultException, } from "../models/index";
133
+ import { RDSDataServiceException as __RDSDataServiceException } from "../models/RDSDataServiceException";
134
+ export var AccessDeniedException = [
135
+ -3,
136
+ n0,
137
+ _ADE,
138
+ {
139
+ [_e]: _c,
140
+ [_hE]: 403,
141
+ },
142
+ [_m],
143
+ [0],
144
+ ];
145
+ TypeRegistry.for(n0).registerError(AccessDeniedException, __AccessDeniedException);
146
+ export var BadRequestException = [
147
+ -3,
148
+ n0,
149
+ _BRE,
150
+ {
151
+ [_e]: _c,
152
+ [_hE]: 400,
153
+ },
154
+ [_m],
155
+ [0],
156
+ ];
157
+ TypeRegistry.for(n0).registerError(BadRequestException, __BadRequestException);
158
+ export var BatchExecuteStatementRequest = [
159
+ 3,
160
+ n0,
161
+ _BESR,
162
+ 0,
163
+ [_rA, _sA, _s, _d, _sc, _pS, _tI],
164
+ [0, 0, 0, 0, 0, () => SqlParameterSets, 0],
165
+ ];
166
+ export var BatchExecuteStatementResponse = [3, n0, _BESRa, 0, [_uR], [() => UpdateResults]];
167
+ export var BeginTransactionRequest = [3, n0, _BTR, 0, [_rA, _sA, _d, _sc], [0, 0, 0, 0]];
168
+ export var BeginTransactionResponse = [3, n0, _BTRe, 0, [_tI], [0]];
169
+ export var ColumnMetadata = [
170
+ 3,
171
+ n0,
172
+ _CM,
173
+ 0,
174
+ [_n, _t, _tN, _l, _sN, _tNa, _iAI, _iS, _iC, _iCS, _nu, _p, _sca, _aBCT],
175
+ [0, 1, 0, 0, 0, 0, 2, 2, 2, 2, 1, 1, 1, 1],
176
+ ];
177
+ export var CommitTransactionRequest = [3, n0, _CTR, 0, [_rA, _sA, _tI], [0, 0, 0]];
178
+ export var CommitTransactionResponse = [3, n0, _CTRo, 0, [_tS], [0]];
179
+ export var DatabaseErrorException = [
180
+ -3,
181
+ n0,
182
+ _DEE,
183
+ {
184
+ [_e]: _c,
185
+ [_hE]: 400,
186
+ },
187
+ [_m],
188
+ [0],
189
+ ];
190
+ TypeRegistry.for(n0).registerError(DatabaseErrorException, __DatabaseErrorException);
191
+ export var DatabaseNotFoundException = [
192
+ -3,
193
+ n0,
194
+ _DNFE,
195
+ {
196
+ [_e]: _c,
197
+ [_hE]: 404,
198
+ },
199
+ [_m],
200
+ [0],
201
+ ];
202
+ TypeRegistry.for(n0).registerError(DatabaseNotFoundException, __DatabaseNotFoundException);
203
+ export var DatabaseResumingException = [
204
+ -3,
205
+ n0,
206
+ _DRE,
207
+ {
208
+ [_e]: _c,
209
+ [_hE]: 400,
210
+ },
211
+ [_m],
212
+ [0],
213
+ ];
214
+ TypeRegistry.for(n0).registerError(DatabaseResumingException, __DatabaseResumingException);
215
+ export var DatabaseUnavailableException = [
216
+ -3,
217
+ n0,
218
+ _DUE,
219
+ {
220
+ [_e]: _se,
221
+ [_hE]: 504,
222
+ },
223
+ [],
224
+ [],
225
+ ];
226
+ TypeRegistry.for(n0).registerError(DatabaseUnavailableException, __DatabaseUnavailableException);
227
+ export var ExecuteSqlRequest = [3, n0, _ESR, 0, [_dCOIA, _aSSA, _sS, _d, _sc], [0, 0, 0, 0, 0]];
228
+ export var ExecuteSqlResponse = [3, n0, _ESRx, 0, [_sSR], [() => SqlStatementResults]];
229
+ export var ExecuteStatementRequest = [
230
+ 3,
231
+ n0,
232
+ _ESRxe,
233
+ 0,
234
+ [_rA, _sA, _s, _d, _sc, _pa, _tI, _iRM, _cAT, _rSO, _fRA],
235
+ [0, 0, 0, 0, 0, () => SqlParametersList, 0, 2, 2, () => ResultSetOptions, 0],
236
+ ];
237
+ export var ExecuteStatementResponse = [
238
+ 3,
239
+ n0,
240
+ _ESRxec,
241
+ 0,
242
+ [_r, _cM, _nORU, _gF, _fR],
243
+ [() => SqlRecords, () => Metadata, 1, () => FieldList, 0],
244
+ ];
245
+ export var ForbiddenException = [
246
+ -3,
247
+ n0,
248
+ _FE,
249
+ {
250
+ [_e]: _c,
251
+ [_hE]: 403,
252
+ },
253
+ [_m],
254
+ [0],
255
+ ];
256
+ TypeRegistry.for(n0).registerError(ForbiddenException, __ForbiddenException);
257
+ export var HttpEndpointNotEnabledException = [
258
+ -3,
259
+ n0,
260
+ _HENEE,
261
+ {
262
+ [_e]: _c,
263
+ [_hE]: 400,
264
+ },
265
+ [_m],
266
+ [0],
267
+ ];
268
+ TypeRegistry.for(n0).registerError(HttpEndpointNotEnabledException, __HttpEndpointNotEnabledException);
269
+ export var InternalServerErrorException = [
270
+ -3,
271
+ n0,
272
+ _ISEE,
273
+ {
274
+ [_e]: _se,
275
+ [_hE]: 500,
276
+ },
277
+ [],
278
+ [],
279
+ ];
280
+ TypeRegistry.for(n0).registerError(InternalServerErrorException, __InternalServerErrorException);
281
+ export var InvalidResourceStateException = [
282
+ -3,
283
+ n0,
284
+ _IRSE,
285
+ {
286
+ [_e]: _c,
287
+ [_hE]: 400,
288
+ },
289
+ [_m],
290
+ [0],
291
+ ];
292
+ TypeRegistry.for(n0).registerError(InvalidResourceStateException, __InvalidResourceStateException);
293
+ export var InvalidSecretException = [
294
+ -3,
295
+ n0,
296
+ _ISE,
297
+ {
298
+ [_e]: _c,
299
+ [_hE]: 400,
300
+ },
301
+ [_m],
302
+ [0],
303
+ ];
304
+ TypeRegistry.for(n0).registerError(InvalidSecretException, __InvalidSecretException);
305
+ export var NotFoundException = [
306
+ -3,
307
+ n0,
308
+ _NFE,
309
+ {
310
+ [_e]: _c,
311
+ [_hE]: 404,
312
+ },
313
+ [_m],
314
+ [0],
315
+ ];
316
+ TypeRegistry.for(n0).registerError(NotFoundException, __NotFoundException);
317
+ export var _Record = [3, n0, _R, 0, [_v], [() => Row]];
318
+ export var ResultFrame = [3, n0, _RF, 0, [_rSM, _r], [() => ResultSetMetadata, () => Records]];
319
+ export var ResultSetMetadata = [3, n0, _RSM, 0, [_cC, _cM], [1, () => Metadata]];
320
+ export var ResultSetOptions = [3, n0, _RSO, 0, [_dRT, _lRT], [0, 0]];
321
+ export var RollbackTransactionRequest = [3, n0, _RTR, 0, [_rA, _sA, _tI], [0, 0, 0]];
322
+ export var RollbackTransactionResponse = [3, n0, _RTRo, 0, [_tS], [0]];
323
+ export var SecretsErrorException = [
324
+ -3,
325
+ n0,
326
+ _SEE,
327
+ {
328
+ [_e]: _c,
329
+ [_hE]: 400,
330
+ },
331
+ [_m],
332
+ [0],
333
+ ];
334
+ TypeRegistry.for(n0).registerError(SecretsErrorException, __SecretsErrorException);
335
+ export var ServiceUnavailableError = [
336
+ -3,
337
+ n0,
338
+ _SUE,
339
+ {
340
+ [_e]: _se,
341
+ [_hE]: 503,
342
+ },
343
+ [],
344
+ [],
345
+ ];
346
+ TypeRegistry.for(n0).registerError(ServiceUnavailableError, __ServiceUnavailableError);
347
+ export var SqlParameter = [3, n0, _SP, 0, [_n, _va, _tH], [0, () => Field, 0]];
348
+ export var SqlStatementResult = [3, n0, _SSR, 0, [_rF, _nORU], [() => ResultFrame, 1]];
349
+ export var StatementTimeoutException = [
350
+ -3,
351
+ n0,
352
+ _STE,
353
+ {
354
+ [_e]: _c,
355
+ [_hE]: 400,
356
+ },
357
+ [_m, _dCI],
358
+ [0, 1],
359
+ ];
360
+ TypeRegistry.for(n0).registerError(StatementTimeoutException, __StatementTimeoutException);
361
+ export var StructValue = [3, n0, _SV, 0, [_a], [() => ArrayValueList]];
362
+ export var TransactionNotFoundException = [
363
+ -3,
364
+ n0,
365
+ _TNFE,
366
+ {
367
+ [_e]: _c,
368
+ [_hE]: 404,
369
+ },
370
+ [_m],
371
+ [0],
372
+ ];
373
+ TypeRegistry.for(n0).registerError(TransactionNotFoundException, __TransactionNotFoundException);
374
+ export var UnsupportedResultException = [
375
+ -3,
376
+ n0,
377
+ _URE,
378
+ {
379
+ [_e]: _c,
380
+ [_hE]: 400,
381
+ },
382
+ [_m],
383
+ [0],
384
+ ];
385
+ TypeRegistry.for(n0).registerError(UnsupportedResultException, __UnsupportedResultException);
386
+ export var UpdateResult = [3, n0, _UR, 0, [_gF], [() => FieldList]];
387
+ export var RDSDataServiceException = [-3, _sm, "RDSDataServiceException", 0, [], []];
388
+ TypeRegistry.for(_sm).registerError(RDSDataServiceException, __RDSDataServiceException);
389
+ export var ArrayOfArray = [1, n0, _AOA, 0, () => ArrayValue];
390
+ export var ArrayValueList = [1, n0, _AVL, 0, () => Value];
391
+ export var BooleanArray = 64 | 2;
392
+ export var DoubleArray = 64 | 1;
393
+ export var FieldList = [1, n0, _FL, 0, () => Field];
394
+ export var LongArray = 64 | 1;
395
+ export var Metadata = [1, n0, _M, 0, () => ColumnMetadata];
396
+ export var Records = [1, n0, _Re, 0, () => _Record];
397
+ export var Row = [1, n0, _Ro, 0, () => Value];
398
+ export var SqlParameterSets = [1, n0, _SPS, 0, () => SqlParametersList];
399
+ export var SqlParametersList = [1, n0, _SPL, 0, () => SqlParameter];
400
+ export var SqlRecords = [1, n0, _SR, 0, () => FieldList];
401
+ export var SqlStatementResults = [1, n0, _SSRq, 0, () => SqlStatementResult];
402
+ export var StringArray = 64 | 0;
403
+ export var UpdateResults = [1, n0, _URp, 0, () => UpdateResult];
404
+ export var ArrayValue = [
405
+ 3,
406
+ n0,
407
+ _AV,
408
+ 0,
409
+ [_bV, _lV, _dV, _sV, _aV],
410
+ [64 | 2, 64 | 1, 64 | 1, 64 | 0, () => ArrayOfArray],
411
+ ];
412
+ export var Field = [
413
+ 3,
414
+ n0,
415
+ _F,
416
+ 0,
417
+ [_iN, _bVo, _lVo, _dVo, _sVt, _bVl, _aVr],
418
+ [2, 2, 1, 1, 0, 21, () => ArrayValue],
419
+ ];
420
+ export var Value = [
421
+ 3,
422
+ n0,
423
+ _V,
424
+ 0,
425
+ [_iN, _bVi, _bIV, _iV, _dVo, _rV, _sVt, _bVl, _aV, _sVtr],
426
+ [2, 2, 1, 1, 1, 1, 0, 21, () => ArrayValueList, () => StructValue],
427
+ ];
428
+ export var BatchExecuteStatement = [
429
+ 9,
430
+ n0,
431
+ _BES,
432
+ {
433
+ [_h]: ["POST", "/BatchExecute", 200],
434
+ },
435
+ () => BatchExecuteStatementRequest,
436
+ () => BatchExecuteStatementResponse,
437
+ ];
438
+ export var BeginTransaction = [
439
+ 9,
440
+ n0,
441
+ _BT,
442
+ {
443
+ [_h]: ["POST", "/BeginTransaction", 200],
444
+ },
445
+ () => BeginTransactionRequest,
446
+ () => BeginTransactionResponse,
447
+ ];
448
+ export var CommitTransaction = [
449
+ 9,
450
+ n0,
451
+ _CT,
452
+ {
453
+ [_h]: ["POST", "/CommitTransaction", 200],
454
+ },
455
+ () => CommitTransactionRequest,
456
+ () => CommitTransactionResponse,
457
+ ];
458
+ export var ExecuteSql = [
459
+ 9,
460
+ n0,
461
+ _ES,
462
+ {
463
+ [_h]: ["POST", "/ExecuteSql", 200],
464
+ },
465
+ () => ExecuteSqlRequest,
466
+ () => ExecuteSqlResponse,
467
+ ];
468
+ export var ExecuteStatement = [
469
+ 9,
470
+ n0,
471
+ _ESx,
472
+ {
473
+ [_h]: ["POST", "/Execute", 200],
474
+ },
475
+ () => ExecuteStatementRequest,
476
+ () => ExecuteStatementResponse,
477
+ ];
478
+ export var RollbackTransaction = [
479
+ 9,
480
+ n0,
481
+ _RT,
482
+ {
483
+ [_h]: ["POST", "/RollbackTransaction", 200],
484
+ },
485
+ () => RollbackTransactionRequest,
486
+ () => RollbackTransactionResponse,
487
+ ];
@@ -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 { BeginTransactionCommandInput, BeginTransactionCommandOutput } from "./commands/BeginTransactionCommand";
@@ -147,6 +147,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
147
147
  * Optional extensions
148
148
  */
149
149
  extensions?: RuntimeExtension[];
150
+ /**
151
+ * The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
152
+ * may be overridden. A default will always be set by the client.
153
+ * Available options depend on the service's supported protocols and will not be validated by
154
+ * the client.
155
+ * @alpha
156
+ *
157
+ */
158
+ protocol?: ClientProtocol<HttpRequest, HttpResponse>;
150
159
  /**
151
160
  * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
152
161
  */
@@ -628,6 +628,10 @@ export declare namespace ArrayValue {
628
628
  arrayValues?: never;
629
629
  $unknown: [string, any];
630
630
  }
631
+ /**
632
+ * @deprecated unused in schema-serde mode.
633
+ *
634
+ */
631
635
  interface Visitor<T> {
632
636
  booleanValues: (value: boolean[]) => T;
633
637
  longValues: (value: number[]) => T;
@@ -636,7 +640,6 @@ export declare namespace ArrayValue {
636
640
  arrayValues: (value: ArrayValue[]) => T;
637
641
  _: (name: string, value: any) => T;
638
642
  }
639
- const visit: <T>(value: ArrayValue, visitor: Visitor<T>) => T;
640
643
  }
641
644
  /**
642
645
  * <p>Contains a value.</p>
@@ -758,6 +761,10 @@ export declare namespace Field {
758
761
  arrayValue?: never;
759
762
  $unknown: [string, any];
760
763
  }
764
+ /**
765
+ * @deprecated unused in schema-serde mode.
766
+ *
767
+ */
761
768
  interface Visitor<T> {
762
769
  isNull: (value: boolean) => T;
763
770
  booleanValue: (value: boolean) => T;
@@ -768,7 +775,6 @@ export declare namespace Field {
768
775
  arrayValue: (value: ArrayValue) => T;
769
776
  _: (name: string, value: any) => T;
770
777
  }
771
- const visit: <T>(value: Field, visitor: Visitor<T>) => T;
772
778
  }
773
779
  /**
774
780
  * <p>A parameter used in a SQL statement.</p>
@@ -1035,6 +1041,10 @@ export declare namespace Value {
1035
1041
  structValue?: never;
1036
1042
  $unknown: [string, any];
1037
1043
  }
1044
+ /**
1045
+ * @deprecated unused in schema-serde mode.
1046
+ *
1047
+ */
1038
1048
  interface Visitor<T> {
1039
1049
  isNull: (value: boolean) => T;
1040
1050
  bitValue: (value: boolean) => T;
@@ -1048,7 +1058,6 @@ export declare namespace Value {
1048
1058
  structValue: (value: StructValue) => T;
1049
1059
  _: (name: string, value: any) => T;
1050
1060
  }
1051
- const visit: <T>(value: Value, visitor: Visitor<T>) => T;
1052
1061
  }
1053
1062
  /**
1054
1063
  * <p>The request parameters represent the input of a request to run a SQL statement against
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: RDSDataClientConfig) => {
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: RDSDataClientConfig) => {
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: RDSDataClientConfig) => {
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: RDSDataClientConfig) => {
14
14
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").RDSDataHttpAuthSchemeProvider;
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,64 @@
1
+ import { StaticErrorSchema, StaticListSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
2
+ export declare var AccessDeniedException: StaticErrorSchema;
3
+ export declare var BadRequestException: StaticErrorSchema;
4
+ export declare var BatchExecuteStatementRequest: StaticStructureSchema;
5
+ export declare var BatchExecuteStatementResponse: StaticStructureSchema;
6
+ export declare var BeginTransactionRequest: StaticStructureSchema;
7
+ export declare var BeginTransactionResponse: StaticStructureSchema;
8
+ export declare var ColumnMetadata: StaticStructureSchema;
9
+ export declare var CommitTransactionRequest: StaticStructureSchema;
10
+ export declare var CommitTransactionResponse: StaticStructureSchema;
11
+ export declare var DatabaseErrorException: StaticErrorSchema;
12
+ export declare var DatabaseNotFoundException: StaticErrorSchema;
13
+ export declare var DatabaseResumingException: StaticErrorSchema;
14
+ export declare var DatabaseUnavailableException: StaticErrorSchema;
15
+ export declare var ExecuteSqlRequest: StaticStructureSchema;
16
+ export declare var ExecuteSqlResponse: StaticStructureSchema;
17
+ export declare var ExecuteStatementRequest: StaticStructureSchema;
18
+ export declare var ExecuteStatementResponse: StaticStructureSchema;
19
+ export declare var ForbiddenException: StaticErrorSchema;
20
+ export declare var HttpEndpointNotEnabledException: StaticErrorSchema;
21
+ export declare var InternalServerErrorException: StaticErrorSchema;
22
+ export declare var InvalidResourceStateException: StaticErrorSchema;
23
+ export declare var InvalidSecretException: StaticErrorSchema;
24
+ export declare var NotFoundException: StaticErrorSchema;
25
+ export declare var _Record: StaticStructureSchema;
26
+ export declare var ResultFrame: StaticStructureSchema;
27
+ export declare var ResultSetMetadata: StaticStructureSchema;
28
+ export declare var ResultSetOptions: StaticStructureSchema;
29
+ export declare var RollbackTransactionRequest: StaticStructureSchema;
30
+ export declare var RollbackTransactionResponse: StaticStructureSchema;
31
+ export declare var SecretsErrorException: StaticErrorSchema;
32
+ export declare var ServiceUnavailableError: StaticErrorSchema;
33
+ export declare var SqlParameter: StaticStructureSchema;
34
+ export declare var SqlStatementResult: StaticStructureSchema;
35
+ export declare var StatementTimeoutException: StaticErrorSchema;
36
+ export declare var StructValue: StaticStructureSchema;
37
+ export declare var TransactionNotFoundException: StaticErrorSchema;
38
+ export declare var UnsupportedResultException: StaticErrorSchema;
39
+ export declare var UpdateResult: StaticStructureSchema;
40
+ export declare var RDSDataServiceException: StaticErrorSchema;
41
+ export declare var ArrayOfArray: StaticListSchema;
42
+ export declare var ArrayValueList: StaticListSchema;
43
+ export declare var BooleanArray: number;
44
+ export declare var DoubleArray: number;
45
+ export declare var FieldList: StaticListSchema;
46
+ export declare var LongArray: number;
47
+ export declare var Metadata: StaticListSchema;
48
+ export declare var Records: StaticListSchema;
49
+ export declare var Row: StaticListSchema;
50
+ export declare var SqlParameterSets: StaticListSchema;
51
+ export declare var SqlParametersList: StaticListSchema;
52
+ export declare var SqlRecords: StaticListSchema;
53
+ export declare var SqlStatementResults: StaticListSchema;
54
+ export declare var StringArray: number;
55
+ export declare var UpdateResults: StaticListSchema;
56
+ export declare var ArrayValue: StaticStructureSchema;
57
+ export declare var Field: StaticStructureSchema;
58
+ export declare var Value: StaticStructureSchema;
59
+ export declare var BatchExecuteStatement: StaticOperationSchema;
60
+ export declare var BeginTransaction: StaticOperationSchema;
61
+ export declare var CommitTransaction: StaticOperationSchema;
62
+ export declare var ExecuteSql: StaticOperationSchema;
63
+ export declare var ExecuteStatement: StaticOperationSchema;
64
+ export declare var RollbackTransaction: 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,
@@ -114,6 +117,7 @@ export interface ClientDefaults
114
117
  retryMode?: string | __Provider<string>;
115
118
  logger?: __Logger;
116
119
  extensions?: RuntimeExtension[];
120
+ protocol?: ClientProtocol<HttpRequest, HttpResponse>;
117
121
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
118
122
  }
119
123
  export type RDSDataClientConfigType = Partial<