@aws-sdk/client-rds-data 3.1075.0 → 3.1076.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist-cjs/index.js +895 -15
- package/dist-types/RDSData.d.ts +1 -1
- package/dist-types/RDSDataClient.d.ts +1 -1
- package/dist-types/commands/BatchExecuteStatementCommand.d.ts +2 -2
- package/dist-types/commands/BeginTransactionCommand.d.ts +2 -2
- package/dist-types/commands/CommitTransactionCommand.d.ts +1 -1
- package/dist-types/commands/ExecuteSqlCommand.d.ts +2 -2
- package/dist-types/commands/ExecuteStatementCommand.d.ts +2 -2
- package/dist-types/commands/RollbackTransactionCommand.d.ts +1 -1
- package/dist-types/index.d.ts +1 -1
- package/dist-types/models/errors.d.ts +2 -2
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -1
- package/package.json +8 -8
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -46
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/RDSDataServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -207
- package/dist-cjs/runtimeConfig.browser.js +0 -32
- package/dist-cjs/runtimeConfig.js +0 -45
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -38
- package/dist-cjs/schemas/schemas_0.js +0 -479
package/dist-cjs/index.js
CHANGED
|
@@ -1,21 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
1
|
+
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
2
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
|
|
4
|
-
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
5
4
|
exports.$Command = Command;
|
|
6
5
|
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 {
|
|
13
|
-
const {
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
|
+
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
8
|
+
const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
9
|
+
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
10
|
+
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
|
+
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
|
+
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
13
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
|
|
14
|
+
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
15
|
+
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
16
|
+
|
|
17
|
+
const defaultRDSDataHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
18
|
+
return {
|
|
19
|
+
operation: getSmithyContext(context).operation,
|
|
20
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
21
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
22
|
+
})(),
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
26
|
+
return {
|
|
27
|
+
schemeId: "aws.auth#sigv4",
|
|
28
|
+
signingProperties: {
|
|
29
|
+
name: "rds-data",
|
|
30
|
+
region: authParameters.region,
|
|
31
|
+
},
|
|
32
|
+
propertiesExtractor: (config, context) => ({
|
|
33
|
+
signingProperties: {
|
|
34
|
+
config,
|
|
35
|
+
context,
|
|
36
|
+
},
|
|
37
|
+
}),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
const defaultRDSDataHttpAuthSchemeProvider = (authParameters) => {
|
|
41
|
+
const options = [];
|
|
42
|
+
switch (authParameters.operation) {
|
|
43
|
+
default: {
|
|
44
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return options;
|
|
48
|
+
};
|
|
49
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
50
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
51
|
+
return Object.assign(config_0, {
|
|
52
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
53
|
+
});
|
|
54
|
+
};
|
|
19
55
|
|
|
20
56
|
const resolveClientEndpointParameters = (options) => {
|
|
21
57
|
return Object.assign(options, {
|
|
@@ -31,6 +67,783 @@ const commonParams = {
|
|
|
31
67
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
32
68
|
};
|
|
33
69
|
|
|
70
|
+
var version = "3.1075.0";
|
|
71
|
+
var packageInfo = {
|
|
72
|
+
version: version};
|
|
73
|
+
|
|
74
|
+
const k = "ref";
|
|
75
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
76
|
+
const _data = {
|
|
77
|
+
conditions: [
|
|
78
|
+
[c, [g]],
|
|
79
|
+
[c, j],
|
|
80
|
+
["aws.partition", j, d],
|
|
81
|
+
[e, [{ [k]: "UseFIPS" }, b]],
|
|
82
|
+
[e, [{ [k]: "UseDualStack" }, b]],
|
|
83
|
+
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
84
|
+
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
|
|
85
|
+
],
|
|
86
|
+
results: [
|
|
87
|
+
[a],
|
|
88
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
89
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
90
|
+
[g, i],
|
|
91
|
+
["https://rds-data-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
92
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
93
|
+
["https://rds-data-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
94
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
95
|
+
["https://rds-data.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
96
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
97
|
+
["https://rds-data.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
98
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
99
|
+
]
|
|
100
|
+
};
|
|
101
|
+
const root = 2;
|
|
102
|
+
const r = 100_000_000;
|
|
103
|
+
const nodes = new Int32Array([
|
|
104
|
+
-1, 1, -1,
|
|
105
|
+
0, 12, 3,
|
|
106
|
+
1, 4, r + 11,
|
|
107
|
+
2, 5, r + 11,
|
|
108
|
+
3, 8, 6,
|
|
109
|
+
4, 7, r + 10,
|
|
110
|
+
5, r + 8, r + 9,
|
|
111
|
+
4, 10, 9,
|
|
112
|
+
6, r + 6, r + 7,
|
|
113
|
+
5, 11, r + 5,
|
|
114
|
+
6, r + 4, r + 5,
|
|
115
|
+
3, r + 1, 13,
|
|
116
|
+
4, r + 2, r + 3,
|
|
117
|
+
]);
|
|
118
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
119
|
+
|
|
120
|
+
const cache = new EndpointCache({
|
|
121
|
+
size: 50,
|
|
122
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
123
|
+
});
|
|
124
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
125
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
126
|
+
endpointParams: endpointParams,
|
|
127
|
+
logger: context.logger,
|
|
128
|
+
}));
|
|
129
|
+
};
|
|
130
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
131
|
+
|
|
132
|
+
class RDSDataServiceException extends ServiceException {
|
|
133
|
+
constructor(options) {
|
|
134
|
+
super(options);
|
|
135
|
+
Object.setPrototypeOf(this, RDSDataServiceException.prototype);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
class AccessDeniedException extends RDSDataServiceException {
|
|
140
|
+
name = "AccessDeniedException";
|
|
141
|
+
$fault = "client";
|
|
142
|
+
constructor(opts) {
|
|
143
|
+
super({
|
|
144
|
+
name: "AccessDeniedException",
|
|
145
|
+
$fault: "client",
|
|
146
|
+
...opts,
|
|
147
|
+
});
|
|
148
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
class BadRequestException extends RDSDataServiceException {
|
|
152
|
+
name = "BadRequestException";
|
|
153
|
+
$fault = "client";
|
|
154
|
+
constructor(opts) {
|
|
155
|
+
super({
|
|
156
|
+
name: "BadRequestException",
|
|
157
|
+
$fault: "client",
|
|
158
|
+
...opts,
|
|
159
|
+
});
|
|
160
|
+
Object.setPrototypeOf(this, BadRequestException.prototype);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
class DatabaseErrorException extends RDSDataServiceException {
|
|
164
|
+
name = "DatabaseErrorException";
|
|
165
|
+
$fault = "client";
|
|
166
|
+
constructor(opts) {
|
|
167
|
+
super({
|
|
168
|
+
name: "DatabaseErrorException",
|
|
169
|
+
$fault: "client",
|
|
170
|
+
...opts,
|
|
171
|
+
});
|
|
172
|
+
Object.setPrototypeOf(this, DatabaseErrorException.prototype);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
class DatabaseNotFoundException extends RDSDataServiceException {
|
|
176
|
+
name = "DatabaseNotFoundException";
|
|
177
|
+
$fault = "client";
|
|
178
|
+
constructor(opts) {
|
|
179
|
+
super({
|
|
180
|
+
name: "DatabaseNotFoundException",
|
|
181
|
+
$fault: "client",
|
|
182
|
+
...opts,
|
|
183
|
+
});
|
|
184
|
+
Object.setPrototypeOf(this, DatabaseNotFoundException.prototype);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
class DatabaseResumingException extends RDSDataServiceException {
|
|
188
|
+
name = "DatabaseResumingException";
|
|
189
|
+
$fault = "client";
|
|
190
|
+
constructor(opts) {
|
|
191
|
+
super({
|
|
192
|
+
name: "DatabaseResumingException",
|
|
193
|
+
$fault: "client",
|
|
194
|
+
...opts,
|
|
195
|
+
});
|
|
196
|
+
Object.setPrototypeOf(this, DatabaseResumingException.prototype);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
class DatabaseUnavailableException extends RDSDataServiceException {
|
|
200
|
+
name = "DatabaseUnavailableException";
|
|
201
|
+
$fault = "server";
|
|
202
|
+
constructor(opts) {
|
|
203
|
+
super({
|
|
204
|
+
name: "DatabaseUnavailableException",
|
|
205
|
+
$fault: "server",
|
|
206
|
+
...opts,
|
|
207
|
+
});
|
|
208
|
+
Object.setPrototypeOf(this, DatabaseUnavailableException.prototype);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
class ForbiddenException extends RDSDataServiceException {
|
|
212
|
+
name = "ForbiddenException";
|
|
213
|
+
$fault = "client";
|
|
214
|
+
constructor(opts) {
|
|
215
|
+
super({
|
|
216
|
+
name: "ForbiddenException",
|
|
217
|
+
$fault: "client",
|
|
218
|
+
...opts,
|
|
219
|
+
});
|
|
220
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
class HttpEndpointNotEnabledException extends RDSDataServiceException {
|
|
224
|
+
name = "HttpEndpointNotEnabledException";
|
|
225
|
+
$fault = "client";
|
|
226
|
+
constructor(opts) {
|
|
227
|
+
super({
|
|
228
|
+
name: "HttpEndpointNotEnabledException",
|
|
229
|
+
$fault: "client",
|
|
230
|
+
...opts,
|
|
231
|
+
});
|
|
232
|
+
Object.setPrototypeOf(this, HttpEndpointNotEnabledException.prototype);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
class InternalServerErrorException extends RDSDataServiceException {
|
|
236
|
+
name = "InternalServerErrorException";
|
|
237
|
+
$fault = "server";
|
|
238
|
+
constructor(opts) {
|
|
239
|
+
super({
|
|
240
|
+
name: "InternalServerErrorException",
|
|
241
|
+
$fault: "server",
|
|
242
|
+
...opts,
|
|
243
|
+
});
|
|
244
|
+
Object.setPrototypeOf(this, InternalServerErrorException.prototype);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
class InvalidResourceStateException extends RDSDataServiceException {
|
|
248
|
+
name = "InvalidResourceStateException";
|
|
249
|
+
$fault = "client";
|
|
250
|
+
constructor(opts) {
|
|
251
|
+
super({
|
|
252
|
+
name: "InvalidResourceStateException",
|
|
253
|
+
$fault: "client",
|
|
254
|
+
...opts,
|
|
255
|
+
});
|
|
256
|
+
Object.setPrototypeOf(this, InvalidResourceStateException.prototype);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
class InvalidSecretException extends RDSDataServiceException {
|
|
260
|
+
name = "InvalidSecretException";
|
|
261
|
+
$fault = "client";
|
|
262
|
+
constructor(opts) {
|
|
263
|
+
super({
|
|
264
|
+
name: "InvalidSecretException",
|
|
265
|
+
$fault: "client",
|
|
266
|
+
...opts,
|
|
267
|
+
});
|
|
268
|
+
Object.setPrototypeOf(this, InvalidSecretException.prototype);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
class SecretsErrorException extends RDSDataServiceException {
|
|
272
|
+
name = "SecretsErrorException";
|
|
273
|
+
$fault = "client";
|
|
274
|
+
constructor(opts) {
|
|
275
|
+
super({
|
|
276
|
+
name: "SecretsErrorException",
|
|
277
|
+
$fault: "client",
|
|
278
|
+
...opts,
|
|
279
|
+
});
|
|
280
|
+
Object.setPrototypeOf(this, SecretsErrorException.prototype);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
class ServiceUnavailableError extends RDSDataServiceException {
|
|
284
|
+
name = "ServiceUnavailableError";
|
|
285
|
+
$fault = "server";
|
|
286
|
+
constructor(opts) {
|
|
287
|
+
super({
|
|
288
|
+
name: "ServiceUnavailableError",
|
|
289
|
+
$fault: "server",
|
|
290
|
+
...opts,
|
|
291
|
+
});
|
|
292
|
+
Object.setPrototypeOf(this, ServiceUnavailableError.prototype);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
class StatementTimeoutException extends RDSDataServiceException {
|
|
296
|
+
name = "StatementTimeoutException";
|
|
297
|
+
$fault = "client";
|
|
298
|
+
dbConnectionId;
|
|
299
|
+
constructor(opts) {
|
|
300
|
+
super({
|
|
301
|
+
name: "StatementTimeoutException",
|
|
302
|
+
$fault: "client",
|
|
303
|
+
...opts,
|
|
304
|
+
});
|
|
305
|
+
Object.setPrototypeOf(this, StatementTimeoutException.prototype);
|
|
306
|
+
this.dbConnectionId = opts.dbConnectionId;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
class TransactionNotFoundException extends RDSDataServiceException {
|
|
310
|
+
name = "TransactionNotFoundException";
|
|
311
|
+
$fault = "client";
|
|
312
|
+
constructor(opts) {
|
|
313
|
+
super({
|
|
314
|
+
name: "TransactionNotFoundException",
|
|
315
|
+
$fault: "client",
|
|
316
|
+
...opts,
|
|
317
|
+
});
|
|
318
|
+
Object.setPrototypeOf(this, TransactionNotFoundException.prototype);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
class NotFoundException extends RDSDataServiceException {
|
|
322
|
+
name = "NotFoundException";
|
|
323
|
+
$fault = "client";
|
|
324
|
+
constructor(opts) {
|
|
325
|
+
super({
|
|
326
|
+
name: "NotFoundException",
|
|
327
|
+
$fault: "client",
|
|
328
|
+
...opts,
|
|
329
|
+
});
|
|
330
|
+
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
class UnsupportedResultException extends RDSDataServiceException {
|
|
334
|
+
name = "UnsupportedResultException";
|
|
335
|
+
$fault = "client";
|
|
336
|
+
constructor(opts) {
|
|
337
|
+
super({
|
|
338
|
+
name: "UnsupportedResultException",
|
|
339
|
+
$fault: "client",
|
|
340
|
+
...opts,
|
|
341
|
+
});
|
|
342
|
+
Object.setPrototypeOf(this, UnsupportedResultException.prototype);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
const _ADE = "AccessDeniedException";
|
|
347
|
+
const _AOA = "ArrayOfArray";
|
|
348
|
+
const _AV = "ArrayValue";
|
|
349
|
+
const _AVL = "ArrayValueList";
|
|
350
|
+
const _BA = "BooleanArray";
|
|
351
|
+
const _BES = "BatchExecuteStatement";
|
|
352
|
+
const _BESR = "BatchExecuteStatementRequest";
|
|
353
|
+
const _BESRa = "BatchExecuteStatementResponse";
|
|
354
|
+
const _BRE = "BadRequestException";
|
|
355
|
+
const _BT = "BeginTransaction";
|
|
356
|
+
const _BTR = "BeginTransactionRequest";
|
|
357
|
+
const _BTRe = "BeginTransactionResponse";
|
|
358
|
+
const _CM = "ColumnMetadata";
|
|
359
|
+
const _CT = "CommitTransaction";
|
|
360
|
+
const _CTR = "CommitTransactionRequest";
|
|
361
|
+
const _CTRo = "CommitTransactionResponse";
|
|
362
|
+
const _DA = "DoubleArray";
|
|
363
|
+
const _DEE = "DatabaseErrorException";
|
|
364
|
+
const _DNFE = "DatabaseNotFoundException";
|
|
365
|
+
const _DRE = "DatabaseResumingException";
|
|
366
|
+
const _DUE = "DatabaseUnavailableException";
|
|
367
|
+
const _ES = "ExecuteSql";
|
|
368
|
+
const _ESR = "ExecuteSqlRequest";
|
|
369
|
+
const _ESRx = "ExecuteSqlResponse";
|
|
370
|
+
const _ESRxe = "ExecuteStatementRequest";
|
|
371
|
+
const _ESRxec = "ExecuteStatementResponse";
|
|
372
|
+
const _ESx = "ExecuteStatement";
|
|
373
|
+
const _F = "Field";
|
|
374
|
+
const _FE = "ForbiddenException";
|
|
375
|
+
const _FL = "FieldList";
|
|
376
|
+
const _HENEE = "HttpEndpointNotEnabledException";
|
|
377
|
+
const _IRSE = "InvalidResourceStateException";
|
|
378
|
+
const _ISE = "InvalidSecretException";
|
|
379
|
+
const _ISEE = "InternalServerErrorException";
|
|
380
|
+
const _LA = "LongArray";
|
|
381
|
+
const _M = "Metadata";
|
|
382
|
+
const _NFE = "NotFoundException";
|
|
383
|
+
const _R = "Record";
|
|
384
|
+
const _RF = "ResultFrame";
|
|
385
|
+
const _RSM = "ResultSetMetadata";
|
|
386
|
+
const _RSO = "ResultSetOptions";
|
|
387
|
+
const _RT = "RollbackTransaction";
|
|
388
|
+
const _RTR = "RollbackTransactionRequest";
|
|
389
|
+
const _RTRo = "RollbackTransactionResponse";
|
|
390
|
+
const _Re = "Records";
|
|
391
|
+
const _Ro = "Row";
|
|
392
|
+
const _SA = "StringArray";
|
|
393
|
+
const _SEE = "SecretsErrorException";
|
|
394
|
+
const _SP = "SqlParameter";
|
|
395
|
+
const _SPL = "SqlParametersList";
|
|
396
|
+
const _SPS = "SqlParameterSets";
|
|
397
|
+
const _SR = "SqlRecords";
|
|
398
|
+
const _SSR = "SqlStatementResult";
|
|
399
|
+
const _SSRq = "SqlStatementResults";
|
|
400
|
+
const _STE = "StatementTimeoutException";
|
|
401
|
+
const _SUE = "ServiceUnavailableError";
|
|
402
|
+
const _SV = "StructValue";
|
|
403
|
+
const _TNFE = "TransactionNotFoundException";
|
|
404
|
+
const _UR = "UpdateResult";
|
|
405
|
+
const _URE = "UnsupportedResultException";
|
|
406
|
+
const _URp = "UpdateResults";
|
|
407
|
+
const _V = "Value";
|
|
408
|
+
const _a = "attributes";
|
|
409
|
+
const _aBCT = "arrayBaseColumnType";
|
|
410
|
+
const _aSSA = "awsSecretStoreArn";
|
|
411
|
+
const _aV = "arrayValues";
|
|
412
|
+
const _aVr = "arrayValue";
|
|
413
|
+
const _bIV = "bigIntValue";
|
|
414
|
+
const _bV = "booleanValues";
|
|
415
|
+
const _bVi = "bitValue";
|
|
416
|
+
const _bVl = "blobValue";
|
|
417
|
+
const _bVo = "booleanValue";
|
|
418
|
+
const _c = "client";
|
|
419
|
+
const _cAT = "continueAfterTimeout";
|
|
420
|
+
const _cC = "columnCount";
|
|
421
|
+
const _cM = "columnMetadata";
|
|
422
|
+
const _d = "database";
|
|
423
|
+
const _dCI = "dbConnectionId";
|
|
424
|
+
const _dCOIA = "dbClusterOrInstanceArn";
|
|
425
|
+
const _dRT = "decimalReturnType";
|
|
426
|
+
const _dV = "doubleValues";
|
|
427
|
+
const _dVo = "doubleValue";
|
|
428
|
+
const _e = "error";
|
|
429
|
+
const _fR = "formattedRecords";
|
|
430
|
+
const _fRA = "formatRecordsAs";
|
|
431
|
+
const _gF = "generatedFields";
|
|
432
|
+
const _h = "http";
|
|
433
|
+
const _hE = "httpError";
|
|
434
|
+
const _iAI = "isAutoIncrement";
|
|
435
|
+
const _iC = "isCurrency";
|
|
436
|
+
const _iCS = "isCaseSensitive";
|
|
437
|
+
const _iN = "isNull";
|
|
438
|
+
const _iRM = "includeResultMetadata";
|
|
439
|
+
const _iS = "isSigned";
|
|
440
|
+
const _iV = "intValue";
|
|
441
|
+
const _l = "label";
|
|
442
|
+
const _lRT = "longReturnType";
|
|
443
|
+
const _lV = "longValues";
|
|
444
|
+
const _lVo = "longValue";
|
|
445
|
+
const _m = "message";
|
|
446
|
+
const _n = "name";
|
|
447
|
+
const _nORU = "numberOfRecordsUpdated";
|
|
448
|
+
const _nu = "nullable";
|
|
449
|
+
const _p = "precision";
|
|
450
|
+
const _pS = "parameterSets";
|
|
451
|
+
const _pa = "parameters";
|
|
452
|
+
const _r = "records";
|
|
453
|
+
const _rA = "resourceArn";
|
|
454
|
+
const _rF = "resultFrame";
|
|
455
|
+
const _rSM = "resultSetMetadata";
|
|
456
|
+
const _rSO = "resultSetOptions";
|
|
457
|
+
const _rV = "realValue";
|
|
458
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.rdsdata";
|
|
459
|
+
const _sA = "secretArn";
|
|
460
|
+
const _sN = "schemaName";
|
|
461
|
+
const _sS = "sqlStatements";
|
|
462
|
+
const _sSR = "sqlStatementResults";
|
|
463
|
+
const _sV = "stringValues";
|
|
464
|
+
const _sVt = "stringValue";
|
|
465
|
+
const _sVtr = "structValue";
|
|
466
|
+
const _sc = "schema";
|
|
467
|
+
const _sca = "scale";
|
|
468
|
+
const _se = "server";
|
|
469
|
+
const _sp = "sparse";
|
|
470
|
+
const _sq = "sql";
|
|
471
|
+
const _t = "type";
|
|
472
|
+
const _tH = "typeHint";
|
|
473
|
+
const _tI = "transactionId";
|
|
474
|
+
const _tN = "typeName";
|
|
475
|
+
const _tNa = "tableName";
|
|
476
|
+
const _tS = "transactionStatus";
|
|
477
|
+
const _uR = "updateResults";
|
|
478
|
+
const _v = "values";
|
|
479
|
+
const _va = "value";
|
|
480
|
+
const n0 = "com.amazonaws.rdsdata";
|
|
481
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
482
|
+
var RDSDataServiceException$ = [-3, _s, "RDSDataServiceException", 0, [], []];
|
|
483
|
+
_s_registry.registerError(RDSDataServiceException$, RDSDataServiceException);
|
|
484
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
485
|
+
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
486
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
487
|
+
[_m],
|
|
488
|
+
[0]
|
|
489
|
+
];
|
|
490
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
491
|
+
var BadRequestException$ = [-3, n0, _BRE,
|
|
492
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
493
|
+
[_m],
|
|
494
|
+
[0]
|
|
495
|
+
];
|
|
496
|
+
n0_registry.registerError(BadRequestException$, BadRequestException);
|
|
497
|
+
var DatabaseErrorException$ = [-3, n0, _DEE,
|
|
498
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
499
|
+
[_m],
|
|
500
|
+
[0]
|
|
501
|
+
];
|
|
502
|
+
n0_registry.registerError(DatabaseErrorException$, DatabaseErrorException);
|
|
503
|
+
var DatabaseNotFoundException$ = [-3, n0, _DNFE,
|
|
504
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
505
|
+
[_m],
|
|
506
|
+
[0]
|
|
507
|
+
];
|
|
508
|
+
n0_registry.registerError(DatabaseNotFoundException$, DatabaseNotFoundException);
|
|
509
|
+
var DatabaseResumingException$ = [-3, n0, _DRE,
|
|
510
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
511
|
+
[_m],
|
|
512
|
+
[0]
|
|
513
|
+
];
|
|
514
|
+
n0_registry.registerError(DatabaseResumingException$, DatabaseResumingException);
|
|
515
|
+
var DatabaseUnavailableException$ = [-3, n0, _DUE,
|
|
516
|
+
{ [_e]: _se, [_hE]: 504 },
|
|
517
|
+
[],
|
|
518
|
+
[]
|
|
519
|
+
];
|
|
520
|
+
n0_registry.registerError(DatabaseUnavailableException$, DatabaseUnavailableException);
|
|
521
|
+
var ForbiddenException$ = [-3, n0, _FE,
|
|
522
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
523
|
+
[_m],
|
|
524
|
+
[0]
|
|
525
|
+
];
|
|
526
|
+
n0_registry.registerError(ForbiddenException$, ForbiddenException);
|
|
527
|
+
var HttpEndpointNotEnabledException$ = [-3, n0, _HENEE,
|
|
528
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
529
|
+
[_m],
|
|
530
|
+
[0]
|
|
531
|
+
];
|
|
532
|
+
n0_registry.registerError(HttpEndpointNotEnabledException$, HttpEndpointNotEnabledException);
|
|
533
|
+
var InternalServerErrorException$ = [-3, n0, _ISEE,
|
|
534
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
535
|
+
[],
|
|
536
|
+
[]
|
|
537
|
+
];
|
|
538
|
+
n0_registry.registerError(InternalServerErrorException$, InternalServerErrorException);
|
|
539
|
+
var InvalidResourceStateException$ = [-3, n0, _IRSE,
|
|
540
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
541
|
+
[_m],
|
|
542
|
+
[0]
|
|
543
|
+
];
|
|
544
|
+
n0_registry.registerError(InvalidResourceStateException$, InvalidResourceStateException);
|
|
545
|
+
var InvalidSecretException$ = [-3, n0, _ISE,
|
|
546
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
547
|
+
[_m],
|
|
548
|
+
[0]
|
|
549
|
+
];
|
|
550
|
+
n0_registry.registerError(InvalidSecretException$, InvalidSecretException);
|
|
551
|
+
var NotFoundException$ = [-3, n0, _NFE,
|
|
552
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
553
|
+
[_m],
|
|
554
|
+
[0]
|
|
555
|
+
];
|
|
556
|
+
n0_registry.registerError(NotFoundException$, NotFoundException);
|
|
557
|
+
var SecretsErrorException$ = [-3, n0, _SEE,
|
|
558
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
559
|
+
[_m],
|
|
560
|
+
[0]
|
|
561
|
+
];
|
|
562
|
+
n0_registry.registerError(SecretsErrorException$, SecretsErrorException);
|
|
563
|
+
var ServiceUnavailableError$ = [-3, n0, _SUE,
|
|
564
|
+
{ [_e]: _se, [_hE]: 503 },
|
|
565
|
+
[],
|
|
566
|
+
[]
|
|
567
|
+
];
|
|
568
|
+
n0_registry.registerError(ServiceUnavailableError$, ServiceUnavailableError);
|
|
569
|
+
var StatementTimeoutException$ = [-3, n0, _STE,
|
|
570
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
571
|
+
[_m, _dCI],
|
|
572
|
+
[0, 1]
|
|
573
|
+
];
|
|
574
|
+
n0_registry.registerError(StatementTimeoutException$, StatementTimeoutException);
|
|
575
|
+
var TransactionNotFoundException$ = [-3, n0, _TNFE,
|
|
576
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
577
|
+
[_m],
|
|
578
|
+
[0]
|
|
579
|
+
];
|
|
580
|
+
n0_registry.registerError(TransactionNotFoundException$, TransactionNotFoundException);
|
|
581
|
+
var UnsupportedResultException$ = [-3, n0, _URE,
|
|
582
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
583
|
+
[_m],
|
|
584
|
+
[0]
|
|
585
|
+
];
|
|
586
|
+
n0_registry.registerError(UnsupportedResultException$, UnsupportedResultException);
|
|
587
|
+
const errorTypeRegistries = [
|
|
588
|
+
_s_registry,
|
|
589
|
+
n0_registry,
|
|
590
|
+
];
|
|
591
|
+
var BatchExecuteStatementRequest$ = [3, n0, _BESR,
|
|
592
|
+
0,
|
|
593
|
+
[_rA, _sA, _sq, _d, _sc, _pS, _tI],
|
|
594
|
+
[0, 0, 0, 0, 0, [() => SqlParameterSets, 0], 0], 3
|
|
595
|
+
];
|
|
596
|
+
var BatchExecuteStatementResponse$ = [3, n0, _BESRa,
|
|
597
|
+
0,
|
|
598
|
+
[_uR],
|
|
599
|
+
[[() => UpdateResults, 0]]
|
|
600
|
+
];
|
|
601
|
+
var BeginTransactionRequest$ = [3, n0, _BTR,
|
|
602
|
+
0,
|
|
603
|
+
[_rA, _sA, _d, _sc],
|
|
604
|
+
[0, 0, 0, 0], 2
|
|
605
|
+
];
|
|
606
|
+
var BeginTransactionResponse$ = [3, n0, _BTRe,
|
|
607
|
+
0,
|
|
608
|
+
[_tI],
|
|
609
|
+
[0]
|
|
610
|
+
];
|
|
611
|
+
var ColumnMetadata$ = [3, n0, _CM,
|
|
612
|
+
0,
|
|
613
|
+
[_n, _t, _tN, _l, _sN, _tNa, _iAI, _iS, _iC, _iCS, _nu, _p, _sca, _aBCT],
|
|
614
|
+
[0, 1, 0, 0, 0, 0, 2, 2, 2, 2, 1, 1, 1, 1]
|
|
615
|
+
];
|
|
616
|
+
var CommitTransactionRequest$ = [3, n0, _CTR,
|
|
617
|
+
0,
|
|
618
|
+
[_rA, _sA, _tI],
|
|
619
|
+
[0, 0, 0], 3
|
|
620
|
+
];
|
|
621
|
+
var CommitTransactionResponse$ = [3, n0, _CTRo,
|
|
622
|
+
0,
|
|
623
|
+
[_tS],
|
|
624
|
+
[0]
|
|
625
|
+
];
|
|
626
|
+
var ExecuteSqlRequest$ = [3, n0, _ESR,
|
|
627
|
+
0,
|
|
628
|
+
[_dCOIA, _aSSA, _sS, _d, _sc],
|
|
629
|
+
[0, 0, 0, 0, 0], 3
|
|
630
|
+
];
|
|
631
|
+
var ExecuteSqlResponse$ = [3, n0, _ESRx,
|
|
632
|
+
0,
|
|
633
|
+
[_sSR],
|
|
634
|
+
[() => SqlStatementResults]
|
|
635
|
+
];
|
|
636
|
+
var ExecuteStatementRequest$ = [3, n0, _ESRxe,
|
|
637
|
+
0,
|
|
638
|
+
[_rA, _sA, _sq, _d, _sc, _pa, _tI, _iRM, _cAT, _rSO, _fRA],
|
|
639
|
+
[0, 0, 0, 0, 0, [() => SqlParametersList, 0], 0, 2, 2, () => ResultSetOptions$, 0], 3
|
|
640
|
+
];
|
|
641
|
+
var ExecuteStatementResponse$ = [3, n0, _ESRxec,
|
|
642
|
+
0,
|
|
643
|
+
[_r, _cM, _nORU, _gF, _fR],
|
|
644
|
+
[[() => SqlRecords, 0], () => Metadata, 1, [() => FieldList, 0], 0]
|
|
645
|
+
];
|
|
646
|
+
var _Record$ = [3, n0, _R,
|
|
647
|
+
0,
|
|
648
|
+
[_v],
|
|
649
|
+
[() => Row]
|
|
650
|
+
];
|
|
651
|
+
var ResultFrame$ = [3, n0, _RF,
|
|
652
|
+
0,
|
|
653
|
+
[_rSM, _r],
|
|
654
|
+
[() => ResultSetMetadata$, () => Records]
|
|
655
|
+
];
|
|
656
|
+
var ResultSetMetadata$ = [3, n0, _RSM,
|
|
657
|
+
0,
|
|
658
|
+
[_cC, _cM],
|
|
659
|
+
[1, () => Metadata]
|
|
660
|
+
];
|
|
661
|
+
var ResultSetOptions$ = [3, n0, _RSO,
|
|
662
|
+
0,
|
|
663
|
+
[_dRT, _lRT],
|
|
664
|
+
[0, 0]
|
|
665
|
+
];
|
|
666
|
+
var RollbackTransactionRequest$ = [3, n0, _RTR,
|
|
667
|
+
0,
|
|
668
|
+
[_rA, _sA, _tI],
|
|
669
|
+
[0, 0, 0], 3
|
|
670
|
+
];
|
|
671
|
+
var RollbackTransactionResponse$ = [3, n0, _RTRo,
|
|
672
|
+
0,
|
|
673
|
+
[_tS],
|
|
674
|
+
[0]
|
|
675
|
+
];
|
|
676
|
+
var SqlParameter$ = [3, n0, _SP,
|
|
677
|
+
0,
|
|
678
|
+
[_n, _va, _tH],
|
|
679
|
+
[0, [() => Field$, 0], 0]
|
|
680
|
+
];
|
|
681
|
+
var SqlStatementResult$ = [3, n0, _SSR,
|
|
682
|
+
0,
|
|
683
|
+
[_rF, _nORU],
|
|
684
|
+
[() => ResultFrame$, 1]
|
|
685
|
+
];
|
|
686
|
+
var StructValue$ = [3, n0, _SV,
|
|
687
|
+
0,
|
|
688
|
+
[_a],
|
|
689
|
+
[() => ArrayValueList]
|
|
690
|
+
];
|
|
691
|
+
var UpdateResult$ = [3, n0, _UR,
|
|
692
|
+
0,
|
|
693
|
+
[_gF],
|
|
694
|
+
[[() => FieldList, 0]]
|
|
695
|
+
];
|
|
696
|
+
var ArrayOfArray = [1, n0, _AOA,
|
|
697
|
+
{ [_sp]: 1 }, [() => ArrayValue$,
|
|
698
|
+
0]
|
|
699
|
+
];
|
|
700
|
+
var ArrayValueList = [1, n0, _AVL,
|
|
701
|
+
0, () => Value$
|
|
702
|
+
];
|
|
703
|
+
var BooleanArray = [1, n0, _BA,
|
|
704
|
+
{ [_sp]: 1 }, 2
|
|
705
|
+
];
|
|
706
|
+
var DoubleArray = [1, n0, _DA,
|
|
707
|
+
{ [_sp]: 1 }, 1
|
|
708
|
+
];
|
|
709
|
+
var FieldList = [1, n0, _FL,
|
|
710
|
+
0, [() => Field$,
|
|
711
|
+
0]
|
|
712
|
+
];
|
|
713
|
+
var LongArray = [1, n0, _LA,
|
|
714
|
+
{ [_sp]: 1 }, 1
|
|
715
|
+
];
|
|
716
|
+
var Metadata = [1, n0, _M,
|
|
717
|
+
0, () => ColumnMetadata$
|
|
718
|
+
];
|
|
719
|
+
var Records = [1, n0, _Re,
|
|
720
|
+
0, () => _Record$
|
|
721
|
+
];
|
|
722
|
+
var Row = [1, n0, _Ro,
|
|
723
|
+
0, () => Value$
|
|
724
|
+
];
|
|
725
|
+
var SqlParameterSets = [1, n0, _SPS,
|
|
726
|
+
0, [() => SqlParametersList,
|
|
727
|
+
0]
|
|
728
|
+
];
|
|
729
|
+
var SqlParametersList = [1, n0, _SPL,
|
|
730
|
+
0, [() => SqlParameter$,
|
|
731
|
+
0]
|
|
732
|
+
];
|
|
733
|
+
var SqlRecords = [1, n0, _SR,
|
|
734
|
+
0, [() => FieldList,
|
|
735
|
+
0]
|
|
736
|
+
];
|
|
737
|
+
var SqlStatementResults = [1, n0, _SSRq,
|
|
738
|
+
0, () => SqlStatementResult$
|
|
739
|
+
];
|
|
740
|
+
var StringArray = [1, n0, _SA,
|
|
741
|
+
{ [_sp]: 1 }, 0
|
|
742
|
+
];
|
|
743
|
+
var UpdateResults = [1, n0, _URp,
|
|
744
|
+
0, [() => UpdateResult$,
|
|
745
|
+
0]
|
|
746
|
+
];
|
|
747
|
+
var ArrayValue$ = [4, n0, _AV,
|
|
748
|
+
0,
|
|
749
|
+
[_bV, _lV, _dV, _sV, _aV],
|
|
750
|
+
[[() => BooleanArray, 0], [() => LongArray, 0], [() => DoubleArray, 0], [() => StringArray, 0], [() => ArrayOfArray, 0]]
|
|
751
|
+
];
|
|
752
|
+
var Field$ = [4, n0, _F,
|
|
753
|
+
0,
|
|
754
|
+
[_iN, _bVo, _lVo, _dVo, _sVt, _bVl, _aVr],
|
|
755
|
+
[2, 2, 1, 1, 0, 21, [() => ArrayValue$, 0]]
|
|
756
|
+
];
|
|
757
|
+
var Value$ = [4, n0, _V,
|
|
758
|
+
0,
|
|
759
|
+
[_iN, _bVi, _bIV, _iV, _dVo, _rV, _sVt, _bVl, _aV, _sVtr],
|
|
760
|
+
[2, 2, 1, 1, 1, 1, 0, 21, () => ArrayValueList, () => StructValue$]
|
|
761
|
+
];
|
|
762
|
+
var BatchExecuteStatement$ = [9, n0, _BES,
|
|
763
|
+
{ [_h]: ["POST", "/BatchExecute", 200] }, () => BatchExecuteStatementRequest$, () => BatchExecuteStatementResponse$
|
|
764
|
+
];
|
|
765
|
+
var BeginTransaction$ = [9, n0, _BT,
|
|
766
|
+
{ [_h]: ["POST", "/BeginTransaction", 200] }, () => BeginTransactionRequest$, () => BeginTransactionResponse$
|
|
767
|
+
];
|
|
768
|
+
var CommitTransaction$ = [9, n0, _CT,
|
|
769
|
+
{ [_h]: ["POST", "/CommitTransaction", 200] }, () => CommitTransactionRequest$, () => CommitTransactionResponse$
|
|
770
|
+
];
|
|
771
|
+
var ExecuteSql$ = [9, n0, _ES,
|
|
772
|
+
{ [_h]: ["POST", "/ExecuteSql", 200] }, () => ExecuteSqlRequest$, () => ExecuteSqlResponse$
|
|
773
|
+
];
|
|
774
|
+
var ExecuteStatement$ = [9, n0, _ESx,
|
|
775
|
+
{ [_h]: ["POST", "/Execute", 200] }, () => ExecuteStatementRequest$, () => ExecuteStatementResponse$
|
|
776
|
+
];
|
|
777
|
+
var RollbackTransaction$ = [9, n0, _RT,
|
|
778
|
+
{ [_h]: ["POST", "/RollbackTransaction", 200] }, () => RollbackTransactionRequest$, () => RollbackTransactionResponse$
|
|
779
|
+
];
|
|
780
|
+
|
|
781
|
+
const getRuntimeConfig$1 = (config) => {
|
|
782
|
+
return {
|
|
783
|
+
apiVersion: "2018-08-01",
|
|
784
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
785
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
786
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
787
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
788
|
+
extensions: config?.extensions ?? [],
|
|
789
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultRDSDataHttpAuthSchemeProvider,
|
|
790
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
791
|
+
{
|
|
792
|
+
schemeId: "aws.auth#sigv4",
|
|
793
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
794
|
+
signer: new AwsSdkSigV4Signer(),
|
|
795
|
+
},
|
|
796
|
+
],
|
|
797
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
798
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
799
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
800
|
+
defaultNamespace: "com.amazonaws.rdsdata",
|
|
801
|
+
errorTypeRegistries,
|
|
802
|
+
version: "2018-08-01",
|
|
803
|
+
serviceTarget: "RdsDataService",
|
|
804
|
+
},
|
|
805
|
+
serviceId: config?.serviceId ?? "RDS Data",
|
|
806
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
807
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
808
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
809
|
+
};
|
|
810
|
+
};
|
|
811
|
+
|
|
812
|
+
const getRuntimeConfig = (config) => {
|
|
813
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
814
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
815
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
816
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
817
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
818
|
+
const loaderConfig = {
|
|
819
|
+
profile: config?.profile,
|
|
820
|
+
logger: clientSharedValues.logger,
|
|
821
|
+
};
|
|
822
|
+
return {
|
|
823
|
+
...clientSharedValues,
|
|
824
|
+
...config,
|
|
825
|
+
runtime: "node",
|
|
826
|
+
defaultsMode,
|
|
827
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
828
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
829
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
830
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
831
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
832
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
833
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
834
|
+
retryMode: config?.retryMode ??
|
|
835
|
+
loadConfig({
|
|
836
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
837
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
838
|
+
}, config),
|
|
839
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
840
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
841
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
842
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
843
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
844
|
+
};
|
|
845
|
+
};
|
|
846
|
+
|
|
34
847
|
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
848
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
849
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -216,15 +1029,82 @@ const LongReturnType = {
|
|
|
216
1029
|
STRING: "STRING",
|
|
217
1030
|
};
|
|
218
1031
|
|
|
1032
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
1033
|
+
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
1034
|
+
exports.ArrayValue$ = ArrayValue$;
|
|
1035
|
+
exports.BadRequestException = BadRequestException;
|
|
1036
|
+
exports.BadRequestException$ = BadRequestException$;
|
|
1037
|
+
exports.BatchExecuteStatement$ = BatchExecuteStatement$;
|
|
219
1038
|
exports.BatchExecuteStatementCommand = BatchExecuteStatementCommand;
|
|
1039
|
+
exports.BatchExecuteStatementRequest$ = BatchExecuteStatementRequest$;
|
|
1040
|
+
exports.BatchExecuteStatementResponse$ = BatchExecuteStatementResponse$;
|
|
1041
|
+
exports.BeginTransaction$ = BeginTransaction$;
|
|
220
1042
|
exports.BeginTransactionCommand = BeginTransactionCommand;
|
|
1043
|
+
exports.BeginTransactionRequest$ = BeginTransactionRequest$;
|
|
1044
|
+
exports.BeginTransactionResponse$ = BeginTransactionResponse$;
|
|
1045
|
+
exports.ColumnMetadata$ = ColumnMetadata$;
|
|
1046
|
+
exports.CommitTransaction$ = CommitTransaction$;
|
|
221
1047
|
exports.CommitTransactionCommand = CommitTransactionCommand;
|
|
1048
|
+
exports.CommitTransactionRequest$ = CommitTransactionRequest$;
|
|
1049
|
+
exports.CommitTransactionResponse$ = CommitTransactionResponse$;
|
|
1050
|
+
exports.DatabaseErrorException = DatabaseErrorException;
|
|
1051
|
+
exports.DatabaseErrorException$ = DatabaseErrorException$;
|
|
1052
|
+
exports.DatabaseNotFoundException = DatabaseNotFoundException;
|
|
1053
|
+
exports.DatabaseNotFoundException$ = DatabaseNotFoundException$;
|
|
1054
|
+
exports.DatabaseResumingException = DatabaseResumingException;
|
|
1055
|
+
exports.DatabaseResumingException$ = DatabaseResumingException$;
|
|
1056
|
+
exports.DatabaseUnavailableException = DatabaseUnavailableException;
|
|
1057
|
+
exports.DatabaseUnavailableException$ = DatabaseUnavailableException$;
|
|
222
1058
|
exports.DecimalReturnType = DecimalReturnType;
|
|
1059
|
+
exports.ExecuteSql$ = ExecuteSql$;
|
|
223
1060
|
exports.ExecuteSqlCommand = ExecuteSqlCommand;
|
|
1061
|
+
exports.ExecuteSqlRequest$ = ExecuteSqlRequest$;
|
|
1062
|
+
exports.ExecuteSqlResponse$ = ExecuteSqlResponse$;
|
|
1063
|
+
exports.ExecuteStatement$ = ExecuteStatement$;
|
|
224
1064
|
exports.ExecuteStatementCommand = ExecuteStatementCommand;
|
|
1065
|
+
exports.ExecuteStatementRequest$ = ExecuteStatementRequest$;
|
|
1066
|
+
exports.ExecuteStatementResponse$ = ExecuteStatementResponse$;
|
|
1067
|
+
exports.Field$ = Field$;
|
|
1068
|
+
exports.ForbiddenException = ForbiddenException;
|
|
1069
|
+
exports.ForbiddenException$ = ForbiddenException$;
|
|
1070
|
+
exports.HttpEndpointNotEnabledException = HttpEndpointNotEnabledException;
|
|
1071
|
+
exports.HttpEndpointNotEnabledException$ = HttpEndpointNotEnabledException$;
|
|
1072
|
+
exports.InternalServerErrorException = InternalServerErrorException;
|
|
1073
|
+
exports.InternalServerErrorException$ = InternalServerErrorException$;
|
|
1074
|
+
exports.InvalidResourceStateException = InvalidResourceStateException;
|
|
1075
|
+
exports.InvalidResourceStateException$ = InvalidResourceStateException$;
|
|
1076
|
+
exports.InvalidSecretException = InvalidSecretException;
|
|
1077
|
+
exports.InvalidSecretException$ = InvalidSecretException$;
|
|
225
1078
|
exports.LongReturnType = LongReturnType;
|
|
1079
|
+
exports.NotFoundException = NotFoundException;
|
|
1080
|
+
exports.NotFoundException$ = NotFoundException$;
|
|
226
1081
|
exports.RDSData = RDSData;
|
|
227
1082
|
exports.RDSDataClient = RDSDataClient;
|
|
1083
|
+
exports.RDSDataServiceException = RDSDataServiceException;
|
|
1084
|
+
exports.RDSDataServiceException$ = RDSDataServiceException$;
|
|
228
1085
|
exports.RecordsFormatType = RecordsFormatType;
|
|
1086
|
+
exports.ResultFrame$ = ResultFrame$;
|
|
1087
|
+
exports.ResultSetMetadata$ = ResultSetMetadata$;
|
|
1088
|
+
exports.ResultSetOptions$ = ResultSetOptions$;
|
|
1089
|
+
exports.RollbackTransaction$ = RollbackTransaction$;
|
|
229
1090
|
exports.RollbackTransactionCommand = RollbackTransactionCommand;
|
|
1091
|
+
exports.RollbackTransactionRequest$ = RollbackTransactionRequest$;
|
|
1092
|
+
exports.RollbackTransactionResponse$ = RollbackTransactionResponse$;
|
|
1093
|
+
exports.SecretsErrorException = SecretsErrorException;
|
|
1094
|
+
exports.SecretsErrorException$ = SecretsErrorException$;
|
|
1095
|
+
exports.ServiceUnavailableError = ServiceUnavailableError;
|
|
1096
|
+
exports.ServiceUnavailableError$ = ServiceUnavailableError$;
|
|
1097
|
+
exports.SqlParameter$ = SqlParameter$;
|
|
1098
|
+
exports.SqlStatementResult$ = SqlStatementResult$;
|
|
1099
|
+
exports.StatementTimeoutException = StatementTimeoutException;
|
|
1100
|
+
exports.StatementTimeoutException$ = StatementTimeoutException$;
|
|
1101
|
+
exports.StructValue$ = StructValue$;
|
|
1102
|
+
exports.TransactionNotFoundException = TransactionNotFoundException;
|
|
1103
|
+
exports.TransactionNotFoundException$ = TransactionNotFoundException$;
|
|
230
1104
|
exports.TypeHint = TypeHint;
|
|
1105
|
+
exports.UnsupportedResultException = UnsupportedResultException;
|
|
1106
|
+
exports.UnsupportedResultException$ = UnsupportedResultException$;
|
|
1107
|
+
exports.UpdateResult$ = UpdateResult$;
|
|
1108
|
+
exports.Value$ = Value$;
|
|
1109
|
+
exports._Record$ = _Record$;
|
|
1110
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|