@aws-sdk/client-rds-data 3.53.0 → 3.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist-cjs/RDSDataClient.js +13 -13
- package/dist-cjs/commands/BatchExecuteStatementCommand.js +3 -3
- package/dist-cjs/commands/BeginTransactionCommand.js +3 -3
- package/dist-cjs/commands/CommitTransactionCommand.js +3 -3
- package/dist-cjs/commands/ExecuteSqlCommand.js +3 -3
- package/dist-cjs/commands/ExecuteStatementCommand.js +3 -3
- package/dist-cjs/commands/RollbackTransactionCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +78 -78
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/RDSData.js +6 -6
- package/dist-es/protocols/Aws_restJson1.js +6 -6
- package/dist-types/RDSDataClient.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 +3 -3
- package/dist-types/ts3.4/RDSDataClient.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/package.json +34 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-rds-data
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-rds-data
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @aws-sdk/client-rds-data
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
6
30
|
# [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
7
31
|
|
|
8
32
|
|
|
@@ -12,21 +12,21 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
12
12
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
13
13
|
class RDSDataClient extends smithy_client_1.Client {
|
|
14
14
|
constructor(configuration) {
|
|
15
|
-
const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
|
|
16
|
-
const _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
|
|
17
|
-
const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
|
|
18
|
-
const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
|
|
19
|
-
const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
|
|
20
|
-
const _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
|
|
21
|
-
const _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
|
|
15
|
+
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
|
|
16
|
+
const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0);
|
|
17
|
+
const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1);
|
|
18
|
+
const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
|
|
19
|
+
const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3);
|
|
20
|
+
const _config_5 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_4);
|
|
21
|
+
const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5);
|
|
22
22
|
super(_config_6);
|
|
23
23
|
this.config = _config_6;
|
|
24
|
-
this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config));
|
|
25
|
-
this.middlewareStack.use(middleware_content_length_1.getContentLengthPlugin(this.config));
|
|
26
|
-
this.middlewareStack.use(middleware_host_header_1.getHostHeaderPlugin(this.config));
|
|
27
|
-
this.middlewareStack.use(middleware_logger_1.getLoggerPlugin(this.config));
|
|
28
|
-
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
|
|
29
|
-
this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
|
|
24
|
+
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
25
|
+
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
26
|
+
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
27
|
+
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
|
28
|
+
this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
|
|
29
|
+
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
30
30
|
}
|
|
31
31
|
destroy() {
|
|
32
32
|
super.destroy();
|
|
@@ -11,7 +11,7 @@ class BatchExecuteStatementCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "RDSDataClient";
|
|
@@ -27,10 +27,10 @@ class BatchExecuteStatementCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1BatchExecuteStatementCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1BatchExecuteStatementCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1BatchExecuteStatementCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1BatchExecuteStatementCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.BatchExecuteStatementCommand = BatchExecuteStatementCommand;
|
|
@@ -11,7 +11,7 @@ class BeginTransactionCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "RDSDataClient";
|
|
@@ -27,10 +27,10 @@ class BeginTransactionCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1BeginTransactionCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1BeginTransactionCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1BeginTransactionCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1BeginTransactionCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.BeginTransactionCommand = BeginTransactionCommand;
|
|
@@ -11,7 +11,7 @@ class CommitTransactionCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "RDSDataClient";
|
|
@@ -27,10 +27,10 @@ class CommitTransactionCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1CommitTransactionCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1CommitTransactionCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1CommitTransactionCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1CommitTransactionCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.CommitTransactionCommand = CommitTransactionCommand;
|
|
@@ -11,7 +11,7 @@ class ExecuteSqlCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "RDSDataClient";
|
|
@@ -27,10 +27,10 @@ class ExecuteSqlCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1ExecuteSqlCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1ExecuteSqlCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1ExecuteSqlCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1ExecuteSqlCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.ExecuteSqlCommand = ExecuteSqlCommand;
|
|
@@ -11,7 +11,7 @@ class ExecuteStatementCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "RDSDataClient";
|
|
@@ -27,10 +27,10 @@ class ExecuteStatementCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1ExecuteStatementCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1ExecuteStatementCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1ExecuteStatementCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1ExecuteStatementCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.ExecuteStatementCommand = ExecuteStatementCommand;
|
|
@@ -11,7 +11,7 @@ class RollbackTransactionCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "RDSDataClient";
|
|
@@ -27,10 +27,10 @@ class RollbackTransactionCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1RollbackTransactionCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1RollbackTransactionCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1RollbackTransactionCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1RollbackTransactionCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.RollbackTransactionCommand = RollbackTransactionCommand;
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -122,7 +122,7 @@ const partitionHash = {
|
|
|
122
122
|
],
|
|
123
123
|
},
|
|
124
124
|
};
|
|
125
|
-
const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
|
|
125
|
+
const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
|
|
126
126
|
...options,
|
|
127
127
|
signingService: "rds-data",
|
|
128
128
|
regionHash,
|
|
@@ -176,7 +176,7 @@ const deserializeAws_restJson1BatchExecuteStatementCommand = async (output, cont
|
|
|
176
176
|
$metadata: deserializeMetadata(output),
|
|
177
177
|
updateResults: undefined,
|
|
178
178
|
};
|
|
179
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
179
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
180
180
|
if (data.updateResults !== undefined && data.updateResults !== null) {
|
|
181
181
|
contents.updateResults = deserializeAws_restJson1UpdateResults(data.updateResults, context);
|
|
182
182
|
}
|
|
@@ -214,7 +214,7 @@ const deserializeAws_restJson1BatchExecuteStatementCommandError = async (output,
|
|
|
214
214
|
$fault: "client",
|
|
215
215
|
$metadata: deserializeMetadata(output),
|
|
216
216
|
});
|
|
217
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
217
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
218
218
|
}
|
|
219
219
|
};
|
|
220
220
|
const deserializeAws_restJson1BeginTransactionCommand = async (output, context) => {
|
|
@@ -225,9 +225,9 @@ const deserializeAws_restJson1BeginTransactionCommand = async (output, context)
|
|
|
225
225
|
$metadata: deserializeMetadata(output),
|
|
226
226
|
transactionId: undefined,
|
|
227
227
|
};
|
|
228
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
228
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
229
229
|
if (data.transactionId !== undefined && data.transactionId !== null) {
|
|
230
|
-
contents.transactionId = smithy_client_1.expectString(data.transactionId);
|
|
230
|
+
contents.transactionId = (0, smithy_client_1.expectString)(data.transactionId);
|
|
231
231
|
}
|
|
232
232
|
return Promise.resolve(contents);
|
|
233
233
|
};
|
|
@@ -263,7 +263,7 @@ const deserializeAws_restJson1BeginTransactionCommandError = async (output, cont
|
|
|
263
263
|
$fault: "client",
|
|
264
264
|
$metadata: deserializeMetadata(output),
|
|
265
265
|
});
|
|
266
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
266
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
267
267
|
}
|
|
268
268
|
};
|
|
269
269
|
const deserializeAws_restJson1CommitTransactionCommand = async (output, context) => {
|
|
@@ -274,9 +274,9 @@ const deserializeAws_restJson1CommitTransactionCommand = async (output, context)
|
|
|
274
274
|
$metadata: deserializeMetadata(output),
|
|
275
275
|
transactionStatus: undefined,
|
|
276
276
|
};
|
|
277
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
277
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
278
278
|
if (data.transactionStatus !== undefined && data.transactionStatus !== null) {
|
|
279
|
-
contents.transactionStatus = smithy_client_1.expectString(data.transactionStatus);
|
|
279
|
+
contents.transactionStatus = (0, smithy_client_1.expectString)(data.transactionStatus);
|
|
280
280
|
}
|
|
281
281
|
return Promise.resolve(contents);
|
|
282
282
|
};
|
|
@@ -315,7 +315,7 @@ const deserializeAws_restJson1CommitTransactionCommandError = async (output, con
|
|
|
315
315
|
$fault: "client",
|
|
316
316
|
$metadata: deserializeMetadata(output),
|
|
317
317
|
});
|
|
318
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
318
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
319
319
|
}
|
|
320
320
|
};
|
|
321
321
|
const deserializeAws_restJson1ExecuteSqlCommand = async (output, context) => {
|
|
@@ -326,7 +326,7 @@ const deserializeAws_restJson1ExecuteSqlCommand = async (output, context) => {
|
|
|
326
326
|
$metadata: deserializeMetadata(output),
|
|
327
327
|
sqlStatementResults: undefined,
|
|
328
328
|
};
|
|
329
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
329
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
330
330
|
if (data.sqlStatementResults !== undefined && data.sqlStatementResults !== null) {
|
|
331
331
|
contents.sqlStatementResults = deserializeAws_restJson1SqlStatementResults(data.sqlStatementResults, context);
|
|
332
332
|
}
|
|
@@ -361,7 +361,7 @@ const deserializeAws_restJson1ExecuteSqlCommandError = async (output, context) =
|
|
|
361
361
|
$fault: "client",
|
|
362
362
|
$metadata: deserializeMetadata(output),
|
|
363
363
|
});
|
|
364
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
364
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
365
365
|
}
|
|
366
366
|
};
|
|
367
367
|
const deserializeAws_restJson1ExecuteStatementCommand = async (output, context) => {
|
|
@@ -375,7 +375,7 @@ const deserializeAws_restJson1ExecuteStatementCommand = async (output, context)
|
|
|
375
375
|
numberOfRecordsUpdated: undefined,
|
|
376
376
|
records: undefined,
|
|
377
377
|
};
|
|
378
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
378
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
379
379
|
if (data.columnMetadata !== undefined && data.columnMetadata !== null) {
|
|
380
380
|
contents.columnMetadata = deserializeAws_restJson1Metadata(data.columnMetadata, context);
|
|
381
381
|
}
|
|
@@ -383,7 +383,7 @@ const deserializeAws_restJson1ExecuteStatementCommand = async (output, context)
|
|
|
383
383
|
contents.generatedFields = deserializeAws_restJson1FieldList(data.generatedFields, context);
|
|
384
384
|
}
|
|
385
385
|
if (data.numberOfRecordsUpdated !== undefined && data.numberOfRecordsUpdated !== null) {
|
|
386
|
-
contents.numberOfRecordsUpdated = smithy_client_1.expectLong(data.numberOfRecordsUpdated);
|
|
386
|
+
contents.numberOfRecordsUpdated = (0, smithy_client_1.expectLong)(data.numberOfRecordsUpdated);
|
|
387
387
|
}
|
|
388
388
|
if (data.records !== undefined && data.records !== null) {
|
|
389
389
|
contents.records = deserializeAws_restJson1SqlRecords(data.records, context);
|
|
@@ -422,7 +422,7 @@ const deserializeAws_restJson1ExecuteStatementCommandError = async (output, cont
|
|
|
422
422
|
$fault: "client",
|
|
423
423
|
$metadata: deserializeMetadata(output),
|
|
424
424
|
});
|
|
425
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
425
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
426
426
|
}
|
|
427
427
|
};
|
|
428
428
|
const deserializeAws_restJson1RollbackTransactionCommand = async (output, context) => {
|
|
@@ -433,9 +433,9 @@ const deserializeAws_restJson1RollbackTransactionCommand = async (output, contex
|
|
|
433
433
|
$metadata: deserializeMetadata(output),
|
|
434
434
|
transactionStatus: undefined,
|
|
435
435
|
};
|
|
436
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
436
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
437
437
|
if (data.transactionStatus !== undefined && data.transactionStatus !== null) {
|
|
438
|
-
contents.transactionStatus = smithy_client_1.expectString(data.transactionStatus);
|
|
438
|
+
contents.transactionStatus = (0, smithy_client_1.expectString)(data.transactionStatus);
|
|
439
439
|
}
|
|
440
440
|
return Promise.resolve(contents);
|
|
441
441
|
};
|
|
@@ -474,32 +474,32 @@ const deserializeAws_restJson1RollbackTransactionCommandError = async (output, c
|
|
|
474
474
|
$fault: "client",
|
|
475
475
|
$metadata: deserializeMetadata(output),
|
|
476
476
|
});
|
|
477
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
477
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
478
478
|
}
|
|
479
479
|
};
|
|
480
480
|
const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
481
481
|
const contents = {};
|
|
482
482
|
const data = parsedOutput.body;
|
|
483
483
|
if (data.message !== undefined && data.message !== null) {
|
|
484
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
484
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
485
485
|
}
|
|
486
486
|
const exception = new models_0_1.BadRequestException({
|
|
487
487
|
$metadata: deserializeMetadata(parsedOutput),
|
|
488
488
|
...contents,
|
|
489
489
|
});
|
|
490
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
490
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
491
491
|
};
|
|
492
492
|
const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
|
|
493
493
|
const contents = {};
|
|
494
494
|
const data = parsedOutput.body;
|
|
495
495
|
if (data.message !== undefined && data.message !== null) {
|
|
496
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
496
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
497
497
|
}
|
|
498
498
|
const exception = new models_0_1.ForbiddenException({
|
|
499
499
|
$metadata: deserializeMetadata(parsedOutput),
|
|
500
500
|
...contents,
|
|
501
501
|
});
|
|
502
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
502
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
503
503
|
};
|
|
504
504
|
const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (parsedOutput, context) => {
|
|
505
505
|
const contents = {};
|
|
@@ -508,19 +508,19 @@ const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (pars
|
|
|
508
508
|
$metadata: deserializeMetadata(parsedOutput),
|
|
509
509
|
...contents,
|
|
510
510
|
});
|
|
511
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
511
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
512
512
|
};
|
|
513
513
|
const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
514
514
|
const contents = {};
|
|
515
515
|
const data = parsedOutput.body;
|
|
516
516
|
if (data.message !== undefined && data.message !== null) {
|
|
517
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
517
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
518
518
|
}
|
|
519
519
|
const exception = new models_0_1.NotFoundException({
|
|
520
520
|
$metadata: deserializeMetadata(parsedOutput),
|
|
521
521
|
...contents,
|
|
522
522
|
});
|
|
523
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
523
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
524
524
|
};
|
|
525
525
|
const deserializeAws_restJson1ServiceUnavailableErrorResponse = async (parsedOutput, context) => {
|
|
526
526
|
const contents = {};
|
|
@@ -529,22 +529,22 @@ const deserializeAws_restJson1ServiceUnavailableErrorResponse = async (parsedOut
|
|
|
529
529
|
$metadata: deserializeMetadata(parsedOutput),
|
|
530
530
|
...contents,
|
|
531
531
|
});
|
|
532
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
532
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
533
533
|
};
|
|
534
534
|
const deserializeAws_restJson1StatementTimeoutExceptionResponse = async (parsedOutput, context) => {
|
|
535
535
|
const contents = {};
|
|
536
536
|
const data = parsedOutput.body;
|
|
537
537
|
if (data.dbConnectionId !== undefined && data.dbConnectionId !== null) {
|
|
538
|
-
contents.dbConnectionId = smithy_client_1.expectLong(data.dbConnectionId);
|
|
538
|
+
contents.dbConnectionId = (0, smithy_client_1.expectLong)(data.dbConnectionId);
|
|
539
539
|
}
|
|
540
540
|
if (data.message !== undefined && data.message !== null) {
|
|
541
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
541
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
542
542
|
}
|
|
543
543
|
const exception = new models_0_1.StatementTimeoutException({
|
|
544
544
|
$metadata: deserializeMetadata(parsedOutput),
|
|
545
545
|
...contents,
|
|
546
546
|
});
|
|
547
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
547
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
548
548
|
};
|
|
549
549
|
const serializeAws_restJson1ArrayOfArray = (input, context) => {
|
|
550
550
|
return input
|
|
@@ -583,7 +583,7 @@ const serializeAws_restJson1DoubleArray = (input, context) => {
|
|
|
583
583
|
if (entry === null) {
|
|
584
584
|
return null;
|
|
585
585
|
}
|
|
586
|
-
return smithy_client_1.serializeFloat(entry);
|
|
586
|
+
return (0, smithy_client_1.serializeFloat)(entry);
|
|
587
587
|
});
|
|
588
588
|
};
|
|
589
589
|
const serializeAws_restJson1Field = (input, context) => {
|
|
@@ -591,7 +591,7 @@ const serializeAws_restJson1Field = (input, context) => {
|
|
|
591
591
|
arrayValue: (value) => ({ arrayValue: serializeAws_restJson1ArrayValue(value, context) }),
|
|
592
592
|
blobValue: (value) => ({ blobValue: context.base64Encoder(value) }),
|
|
593
593
|
booleanValue: (value) => ({ booleanValue: value }),
|
|
594
|
-
doubleValue: (value) => ({ doubleValue: smithy_client_1.serializeFloat(value) }),
|
|
594
|
+
doubleValue: (value) => ({ doubleValue: (0, smithy_client_1.serializeFloat)(value) }),
|
|
595
595
|
isNull: (value) => ({ isNull: value }),
|
|
596
596
|
longValue: (value) => ({ longValue: value }),
|
|
597
597
|
stringValue: (value) => ({ stringValue: value }),
|
|
@@ -659,7 +659,7 @@ const deserializeAws_restJson1ArrayOfArray = (output, context) => {
|
|
|
659
659
|
if (entry === null) {
|
|
660
660
|
return null;
|
|
661
661
|
}
|
|
662
|
-
return deserializeAws_restJson1ArrayValue(smithy_client_1.expectUnion(entry), context);
|
|
662
|
+
return deserializeAws_restJson1ArrayValue((0, smithy_client_1.expectUnion)(entry), context);
|
|
663
663
|
});
|
|
664
664
|
return retVal;
|
|
665
665
|
};
|
|
@@ -698,7 +698,7 @@ const deserializeAws_restJson1ArrayValueList = (output, context) => {
|
|
|
698
698
|
if (entry === null) {
|
|
699
699
|
return null;
|
|
700
700
|
}
|
|
701
|
-
return deserializeAws_restJson1Value(smithy_client_1.expectUnion(entry), context);
|
|
701
|
+
return deserializeAws_restJson1Value((0, smithy_client_1.expectUnion)(entry), context);
|
|
702
702
|
});
|
|
703
703
|
return retVal;
|
|
704
704
|
};
|
|
@@ -709,26 +709,26 @@ const deserializeAws_restJson1BooleanArray = (output, context) => {
|
|
|
709
709
|
if (entry === null) {
|
|
710
710
|
return null;
|
|
711
711
|
}
|
|
712
|
-
return smithy_client_1.expectBoolean(entry);
|
|
712
|
+
return (0, smithy_client_1.expectBoolean)(entry);
|
|
713
713
|
});
|
|
714
714
|
return retVal;
|
|
715
715
|
};
|
|
716
716
|
const deserializeAws_restJson1ColumnMetadata = (output, context) => {
|
|
717
717
|
return {
|
|
718
|
-
arrayBaseColumnType: smithy_client_1.expectInt32(output.arrayBaseColumnType),
|
|
719
|
-
isAutoIncrement: smithy_client_1.expectBoolean(output.isAutoIncrement),
|
|
720
|
-
isCaseSensitive: smithy_client_1.expectBoolean(output.isCaseSensitive),
|
|
721
|
-
isCurrency: smithy_client_1.expectBoolean(output.isCurrency),
|
|
722
|
-
isSigned: smithy_client_1.expectBoolean(output.isSigned),
|
|
723
|
-
label: smithy_client_1.expectString(output.label),
|
|
724
|
-
name: smithy_client_1.expectString(output.name),
|
|
725
|
-
nullable: smithy_client_1.expectInt32(output.nullable),
|
|
726
|
-
precision: smithy_client_1.expectInt32(output.precision),
|
|
727
|
-
scale: smithy_client_1.expectInt32(output.scale),
|
|
728
|
-
schemaName: smithy_client_1.expectString(output.schemaName),
|
|
729
|
-
tableName: smithy_client_1.expectString(output.tableName),
|
|
730
|
-
type: smithy_client_1.expectInt32(output.type),
|
|
731
|
-
typeName: smithy_client_1.expectString(output.typeName),
|
|
718
|
+
arrayBaseColumnType: (0, smithy_client_1.expectInt32)(output.arrayBaseColumnType),
|
|
719
|
+
isAutoIncrement: (0, smithy_client_1.expectBoolean)(output.isAutoIncrement),
|
|
720
|
+
isCaseSensitive: (0, smithy_client_1.expectBoolean)(output.isCaseSensitive),
|
|
721
|
+
isCurrency: (0, smithy_client_1.expectBoolean)(output.isCurrency),
|
|
722
|
+
isSigned: (0, smithy_client_1.expectBoolean)(output.isSigned),
|
|
723
|
+
label: (0, smithy_client_1.expectString)(output.label),
|
|
724
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
725
|
+
nullable: (0, smithy_client_1.expectInt32)(output.nullable),
|
|
726
|
+
precision: (0, smithy_client_1.expectInt32)(output.precision),
|
|
727
|
+
scale: (0, smithy_client_1.expectInt32)(output.scale),
|
|
728
|
+
schemaName: (0, smithy_client_1.expectString)(output.schemaName),
|
|
729
|
+
tableName: (0, smithy_client_1.expectString)(output.tableName),
|
|
730
|
+
type: (0, smithy_client_1.expectInt32)(output.type),
|
|
731
|
+
typeName: (0, smithy_client_1.expectString)(output.typeName),
|
|
732
732
|
};
|
|
733
733
|
};
|
|
734
734
|
const deserializeAws_restJson1DoubleArray = (output, context) => {
|
|
@@ -738,14 +738,14 @@ const deserializeAws_restJson1DoubleArray = (output, context) => {
|
|
|
738
738
|
if (entry === null) {
|
|
739
739
|
return null;
|
|
740
740
|
}
|
|
741
|
-
return smithy_client_1.limitedParseDouble(entry);
|
|
741
|
+
return (0, smithy_client_1.limitedParseDouble)(entry);
|
|
742
742
|
});
|
|
743
743
|
return retVal;
|
|
744
744
|
};
|
|
745
745
|
const deserializeAws_restJson1Field = (output, context) => {
|
|
746
746
|
if (output.arrayValue !== undefined && output.arrayValue !== null) {
|
|
747
747
|
return {
|
|
748
|
-
arrayValue: deserializeAws_restJson1ArrayValue(smithy_client_1.expectUnion(output.arrayValue), context),
|
|
748
|
+
arrayValue: deserializeAws_restJson1ArrayValue((0, smithy_client_1.expectUnion)(output.arrayValue), context),
|
|
749
749
|
};
|
|
750
750
|
}
|
|
751
751
|
if (output.blobValue !== undefined && output.blobValue !== null) {
|
|
@@ -753,20 +753,20 @@ const deserializeAws_restJson1Field = (output, context) => {
|
|
|
753
753
|
blobValue: context.base64Decoder(output.blobValue),
|
|
754
754
|
};
|
|
755
755
|
}
|
|
756
|
-
if (smithy_client_1.expectBoolean(output.booleanValue) !== undefined) {
|
|
757
|
-
return { booleanValue: smithy_client_1.expectBoolean(output.booleanValue) };
|
|
756
|
+
if ((0, smithy_client_1.expectBoolean)(output.booleanValue) !== undefined) {
|
|
757
|
+
return { booleanValue: (0, smithy_client_1.expectBoolean)(output.booleanValue) };
|
|
758
758
|
}
|
|
759
|
-
if (smithy_client_1.limitedParseDouble(output.doubleValue) !== undefined) {
|
|
760
|
-
return { doubleValue: smithy_client_1.limitedParseDouble(output.doubleValue) };
|
|
759
|
+
if ((0, smithy_client_1.limitedParseDouble)(output.doubleValue) !== undefined) {
|
|
760
|
+
return { doubleValue: (0, smithy_client_1.limitedParseDouble)(output.doubleValue) };
|
|
761
761
|
}
|
|
762
|
-
if (smithy_client_1.expectBoolean(output.isNull) !== undefined) {
|
|
763
|
-
return { isNull: smithy_client_1.expectBoolean(output.isNull) };
|
|
762
|
+
if ((0, smithy_client_1.expectBoolean)(output.isNull) !== undefined) {
|
|
763
|
+
return { isNull: (0, smithy_client_1.expectBoolean)(output.isNull) };
|
|
764
764
|
}
|
|
765
|
-
if (smithy_client_1.expectLong(output.longValue) !== undefined) {
|
|
766
|
-
return { longValue: smithy_client_1.expectLong(output.longValue) };
|
|
765
|
+
if ((0, smithy_client_1.expectLong)(output.longValue) !== undefined) {
|
|
766
|
+
return { longValue: (0, smithy_client_1.expectLong)(output.longValue) };
|
|
767
767
|
}
|
|
768
|
-
if (smithy_client_1.expectString(output.stringValue) !== undefined) {
|
|
769
|
-
return { stringValue: smithy_client_1.expectString(output.stringValue) };
|
|
768
|
+
if ((0, smithy_client_1.expectString)(output.stringValue) !== undefined) {
|
|
769
|
+
return { stringValue: (0, smithy_client_1.expectString)(output.stringValue) };
|
|
770
770
|
}
|
|
771
771
|
return { $unknown: Object.entries(output)[0] };
|
|
772
772
|
};
|
|
@@ -777,7 +777,7 @@ const deserializeAws_restJson1FieldList = (output, context) => {
|
|
|
777
777
|
if (entry === null) {
|
|
778
778
|
return null;
|
|
779
779
|
}
|
|
780
|
-
return deserializeAws_restJson1Field(smithy_client_1.expectUnion(entry), context);
|
|
780
|
+
return deserializeAws_restJson1Field((0, smithy_client_1.expectUnion)(entry), context);
|
|
781
781
|
});
|
|
782
782
|
return retVal;
|
|
783
783
|
};
|
|
@@ -788,7 +788,7 @@ const deserializeAws_restJson1LongArray = (output, context) => {
|
|
|
788
788
|
if (entry === null) {
|
|
789
789
|
return null;
|
|
790
790
|
}
|
|
791
|
-
return smithy_client_1.expectLong(entry);
|
|
791
|
+
return (0, smithy_client_1.expectLong)(entry);
|
|
792
792
|
});
|
|
793
793
|
return retVal;
|
|
794
794
|
};
|
|
@@ -833,7 +833,7 @@ const deserializeAws_restJson1ResultFrame = (output, context) => {
|
|
|
833
833
|
};
|
|
834
834
|
const deserializeAws_restJson1ResultSetMetadata = (output, context) => {
|
|
835
835
|
return {
|
|
836
|
-
columnCount: smithy_client_1.expectLong(output.columnCount),
|
|
836
|
+
columnCount: (0, smithy_client_1.expectLong)(output.columnCount),
|
|
837
837
|
columnMetadata: output.columnMetadata !== undefined && output.columnMetadata !== null
|
|
838
838
|
? deserializeAws_restJson1Metadata(output.columnMetadata, context)
|
|
839
839
|
: undefined,
|
|
@@ -846,7 +846,7 @@ const deserializeAws_restJson1Row = (output, context) => {
|
|
|
846
846
|
if (entry === null) {
|
|
847
847
|
return null;
|
|
848
848
|
}
|
|
849
|
-
return deserializeAws_restJson1Value(smithy_client_1.expectUnion(entry), context);
|
|
849
|
+
return deserializeAws_restJson1Value((0, smithy_client_1.expectUnion)(entry), context);
|
|
850
850
|
});
|
|
851
851
|
return retVal;
|
|
852
852
|
};
|
|
@@ -863,7 +863,7 @@ const deserializeAws_restJson1SqlRecords = (output, context) => {
|
|
|
863
863
|
};
|
|
864
864
|
const deserializeAws_restJson1SqlStatementResult = (output, context) => {
|
|
865
865
|
return {
|
|
866
|
-
numberOfRecordsUpdated: smithy_client_1.expectLong(output.numberOfRecordsUpdated),
|
|
866
|
+
numberOfRecordsUpdated: (0, smithy_client_1.expectLong)(output.numberOfRecordsUpdated),
|
|
867
867
|
resultFrame: output.resultFrame !== undefined && output.resultFrame !== null
|
|
868
868
|
? deserializeAws_restJson1ResultFrame(output.resultFrame, context)
|
|
869
869
|
: undefined,
|
|
@@ -887,7 +887,7 @@ const deserializeAws_restJson1StringArray = (output, context) => {
|
|
|
887
887
|
if (entry === null) {
|
|
888
888
|
return null;
|
|
889
889
|
}
|
|
890
|
-
return smithy_client_1.expectString(entry);
|
|
890
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
891
891
|
});
|
|
892
892
|
return retVal;
|
|
893
893
|
};
|
|
@@ -922,31 +922,31 @@ const deserializeAws_restJson1Value = (output, context) => {
|
|
|
922
922
|
arrayValues: deserializeAws_restJson1ArrayValueList(output.arrayValues, context),
|
|
923
923
|
};
|
|
924
924
|
}
|
|
925
|
-
if (smithy_client_1.expectLong(output.bigIntValue) !== undefined) {
|
|
926
|
-
return { bigIntValue: smithy_client_1.expectLong(output.bigIntValue) };
|
|
925
|
+
if ((0, smithy_client_1.expectLong)(output.bigIntValue) !== undefined) {
|
|
926
|
+
return { bigIntValue: (0, smithy_client_1.expectLong)(output.bigIntValue) };
|
|
927
927
|
}
|
|
928
|
-
if (smithy_client_1.expectBoolean(output.bitValue) !== undefined) {
|
|
929
|
-
return { bitValue: smithy_client_1.expectBoolean(output.bitValue) };
|
|
928
|
+
if ((0, smithy_client_1.expectBoolean)(output.bitValue) !== undefined) {
|
|
929
|
+
return { bitValue: (0, smithy_client_1.expectBoolean)(output.bitValue) };
|
|
930
930
|
}
|
|
931
931
|
if (output.blobValue !== undefined && output.blobValue !== null) {
|
|
932
932
|
return {
|
|
933
933
|
blobValue: context.base64Decoder(output.blobValue),
|
|
934
934
|
};
|
|
935
935
|
}
|
|
936
|
-
if (smithy_client_1.limitedParseDouble(output.doubleValue) !== undefined) {
|
|
937
|
-
return { doubleValue: smithy_client_1.limitedParseDouble(output.doubleValue) };
|
|
936
|
+
if ((0, smithy_client_1.limitedParseDouble)(output.doubleValue) !== undefined) {
|
|
937
|
+
return { doubleValue: (0, smithy_client_1.limitedParseDouble)(output.doubleValue) };
|
|
938
938
|
}
|
|
939
|
-
if (smithy_client_1.expectInt32(output.intValue) !== undefined) {
|
|
940
|
-
return { intValue: smithy_client_1.expectInt32(output.intValue) };
|
|
939
|
+
if ((0, smithy_client_1.expectInt32)(output.intValue) !== undefined) {
|
|
940
|
+
return { intValue: (0, smithy_client_1.expectInt32)(output.intValue) };
|
|
941
941
|
}
|
|
942
|
-
if (smithy_client_1.expectBoolean(output.isNull) !== undefined) {
|
|
943
|
-
return { isNull: smithy_client_1.expectBoolean(output.isNull) };
|
|
942
|
+
if ((0, smithy_client_1.expectBoolean)(output.isNull) !== undefined) {
|
|
943
|
+
return { isNull: (0, smithy_client_1.expectBoolean)(output.isNull) };
|
|
944
944
|
}
|
|
945
|
-
if (smithy_client_1.limitedParseFloat32(output.realValue) !== undefined) {
|
|
946
|
-
return { realValue: smithy_client_1.limitedParseFloat32(output.realValue) };
|
|
945
|
+
if ((0, smithy_client_1.limitedParseFloat32)(output.realValue) !== undefined) {
|
|
946
|
+
return { realValue: (0, smithy_client_1.limitedParseFloat32)(output.realValue) };
|
|
947
947
|
}
|
|
948
|
-
if (smithy_client_1.expectString(output.stringValue) !== undefined) {
|
|
949
|
-
return { stringValue: smithy_client_1.expectString(output.stringValue) };
|
|
948
|
+
if ((0, smithy_client_1.expectString)(output.stringValue) !== undefined) {
|
|
949
|
+
return { stringValue: (0, smithy_client_1.expectString)(output.stringValue) };
|
|
950
950
|
}
|
|
951
951
|
if (output.structValue !== undefined && output.structValue !== null) {
|
|
952
952
|
return {
|
|
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
-
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
21
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
22
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
23
23
|
return {
|
|
24
24
|
...clientSharedValues,
|
|
25
25
|
...config,
|
|
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
|
|
|
29
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
30
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
31
31
|
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
32
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
34
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
35
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
36
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const getRuntimeConfig = (config) => {
|
|
21
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
-
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
22
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
23
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
24
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
25
25
|
return {
|
|
26
26
|
...clientSharedValues,
|
|
27
27
|
...config,
|
|
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
|
|
|
30
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
31
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
32
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
33
|
-
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
|
|
34
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
-
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
33
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
34
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
37
37
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
|
|
39
39
|
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
40
|
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
41
|
}),
|
|
42
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
43
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
44
|
-
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
-
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
44
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
46
46
|
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
47
47
|
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
48
48
|
};
|
|
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
7
|
var _a;
|
|
8
|
-
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
8
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
9
|
return {
|
|
10
10
|
...browserDefaults,
|
|
11
11
|
...config,
|
package/dist-es/RDSData.js
CHANGED
|
@@ -18,7 +18,7 @@ var RDSData = (function (_super) {
|
|
|
18
18
|
}
|
|
19
19
|
else if (typeof cb === "function") {
|
|
20
20
|
if (typeof optionsOrCb !== "object")
|
|
21
|
-
throw new Error("Expect http options but get "
|
|
21
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
22
22
|
this.send(command, optionsOrCb || {}, cb);
|
|
23
23
|
}
|
|
24
24
|
else {
|
|
@@ -32,7 +32,7 @@ var RDSData = (function (_super) {
|
|
|
32
32
|
}
|
|
33
33
|
else if (typeof cb === "function") {
|
|
34
34
|
if (typeof optionsOrCb !== "object")
|
|
35
|
-
throw new Error("Expect http options but get "
|
|
35
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
36
36
|
this.send(command, optionsOrCb || {}, cb);
|
|
37
37
|
}
|
|
38
38
|
else {
|
|
@@ -46,7 +46,7 @@ var RDSData = (function (_super) {
|
|
|
46
46
|
}
|
|
47
47
|
else if (typeof cb === "function") {
|
|
48
48
|
if (typeof optionsOrCb !== "object")
|
|
49
|
-
throw new Error("Expect http options but get "
|
|
49
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
50
50
|
this.send(command, optionsOrCb || {}, cb);
|
|
51
51
|
}
|
|
52
52
|
else {
|
|
@@ -60,7 +60,7 @@ var RDSData = (function (_super) {
|
|
|
60
60
|
}
|
|
61
61
|
else if (typeof cb === "function") {
|
|
62
62
|
if (typeof optionsOrCb !== "object")
|
|
63
|
-
throw new Error("Expect http options but get "
|
|
63
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
64
64
|
this.send(command, optionsOrCb || {}, cb);
|
|
65
65
|
}
|
|
66
66
|
else {
|
|
@@ -74,7 +74,7 @@ var RDSData = (function (_super) {
|
|
|
74
74
|
}
|
|
75
75
|
else if (typeof cb === "function") {
|
|
76
76
|
if (typeof optionsOrCb !== "object")
|
|
77
|
-
throw new Error("Expect http options but get "
|
|
77
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
78
78
|
this.send(command, optionsOrCb || {}, cb);
|
|
79
79
|
}
|
|
80
80
|
else {
|
|
@@ -88,7 +88,7 @@ var RDSData = (function (_super) {
|
|
|
88
88
|
}
|
|
89
89
|
else if (typeof cb === "function") {
|
|
90
90
|
if (typeof optionsOrCb !== "object")
|
|
91
|
-
throw new Error("Expect http options but get "
|
|
91
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
92
92
|
this.send(command, optionsOrCb || {}, cb);
|
|
93
93
|
}
|
|
94
94
|
else {
|
|
@@ -13,7 +13,7 @@ export var serializeAws_restJson1BatchExecuteStatementCommand = function (input,
|
|
|
13
13
|
headers = {
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
|
-
resolvedPath = ""
|
|
16
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/BatchExecute";
|
|
17
17
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.database !== undefined && input.database !== null && { database: input.database })), (input.parameterSets !== undefined &&
|
|
18
18
|
input.parameterSets !== null && {
|
|
19
19
|
parameterSets: serializeAws_restJson1SqlParameterSets(input.parameterSets, context),
|
|
@@ -40,7 +40,7 @@ export var serializeAws_restJson1BeginTransactionCommand = function (input, cont
|
|
|
40
40
|
headers = {
|
|
41
41
|
"content-type": "application/json",
|
|
42
42
|
};
|
|
43
|
-
resolvedPath = ""
|
|
43
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/BeginTransaction";
|
|
44
44
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.database !== undefined && input.database !== null && { database: input.database })), (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.schema !== undefined && input.schema !== null && { schema: input.schema })), (input.secretArn !== undefined && input.secretArn !== null && { secretArn: input.secretArn })));
|
|
45
45
|
return [2, new __HttpRequest({
|
|
46
46
|
protocol: protocol,
|
|
@@ -64,7 +64,7 @@ export var serializeAws_restJson1CommitTransactionCommand = function (input, con
|
|
|
64
64
|
headers = {
|
|
65
65
|
"content-type": "application/json",
|
|
66
66
|
};
|
|
67
|
-
resolvedPath = ""
|
|
67
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CommitTransaction";
|
|
68
68
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.secretArn !== undefined && input.secretArn !== null && { secretArn: input.secretArn })), (input.transactionId !== undefined && input.transactionId !== null && { transactionId: input.transactionId })));
|
|
69
69
|
return [2, new __HttpRequest({
|
|
70
70
|
protocol: protocol,
|
|
@@ -88,7 +88,7 @@ export var serializeAws_restJson1ExecuteSqlCommand = function (input, context) {
|
|
|
88
88
|
headers = {
|
|
89
89
|
"content-type": "application/json",
|
|
90
90
|
};
|
|
91
|
-
resolvedPath = ""
|
|
91
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ExecuteSql";
|
|
92
92
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.awsSecretStoreArn !== undefined &&
|
|
93
93
|
input.awsSecretStoreArn !== null && { awsSecretStoreArn: input.awsSecretStoreArn })), (input.database !== undefined && input.database !== null && { database: input.database })), (input.dbClusterOrInstanceArn !== undefined &&
|
|
94
94
|
input.dbClusterOrInstanceArn !== null && { dbClusterOrInstanceArn: input.dbClusterOrInstanceArn })), (input.schema !== undefined && input.schema !== null && { schema: input.schema })), (input.sqlStatements !== undefined && input.sqlStatements !== null && { sqlStatements: input.sqlStatements })));
|
|
@@ -114,7 +114,7 @@ export var serializeAws_restJson1ExecuteStatementCommand = function (input, cont
|
|
|
114
114
|
headers = {
|
|
115
115
|
"content-type": "application/json",
|
|
116
116
|
};
|
|
117
|
-
resolvedPath = ""
|
|
117
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/Execute";
|
|
118
118
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.continueAfterTimeout !== undefined &&
|
|
119
119
|
input.continueAfterTimeout !== null && { continueAfterTimeout: input.continueAfterTimeout })), (input.database !== undefined && input.database !== null && { database: input.database })), (input.includeResultMetadata !== undefined &&
|
|
120
120
|
input.includeResultMetadata !== null && { includeResultMetadata: input.includeResultMetadata })), (input.parameters !== undefined &&
|
|
@@ -144,7 +144,7 @@ export var serializeAws_restJson1RollbackTransactionCommand = function (input, c
|
|
|
144
144
|
headers = {
|
|
145
145
|
"content-type": "application/json",
|
|
146
146
|
};
|
|
147
|
-
resolvedPath = ""
|
|
147
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/RollbackTransaction";
|
|
148
148
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.secretArn !== undefined && input.secretArn !== null && { secretArn: input.secretArn })), (input.transactionId !== undefined && input.transactionId !== null && { transactionId: input.transactionId })));
|
|
149
149
|
return [2, new __HttpRequest({
|
|
150
150
|
protocol: protocol,
|
|
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
-
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput } from "./commands/BatchExecuteStatementCommand";
|
|
10
10
|
import { BeginTransactionCommandInput, BeginTransactionCommandOutput } from "./commands/BeginTransactionCommand";
|
|
11
11
|
import { CommitTransactionCommandInput, CommitTransactionCommandOutput } from "./commands/CommitTransactionCommand";
|
|
@@ -34,7 +34,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
34
34
|
* A function that can calculate the length of a request body.
|
|
35
35
|
* @internal
|
|
36
36
|
*/
|
|
37
|
-
bodyLengthChecker?:
|
|
37
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
38
38
|
/**
|
|
39
39
|
* A function that converts a stream into an array of bytes.
|
|
40
40
|
* @internal
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: RDSDataClientConfig) => {
|
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
13
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
14
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: RDSDataClientConfig) => {
|
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
13
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
14
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: RDSDataClientConfig) => {
|
|
|
8
8
|
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
9
9
|
apiVersion: string;
|
|
10
10
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
13
13
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
14
14
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
@@ -21,11 +21,11 @@ export declare const getRuntimeConfig: (config: RDSDataClientConfig) => {
|
|
|
21
21
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
22
22
|
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
23
23
|
serviceId: string;
|
|
24
|
-
region: string | import("@aws-sdk/types").Provider<
|
|
24
|
+
region: string | import("@aws-sdk/types").Provider<any>;
|
|
25
25
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
26
26
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
27
27
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
28
|
-
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode
|
|
28
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
|
29
29
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
30
30
|
tls?: boolean | undefined;
|
|
31
31
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
-
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput } from "./commands/BatchExecuteStatementCommand";
|
|
10
10
|
import { BeginTransactionCommandInput, BeginTransactionCommandOutput } from "./commands/BeginTransactionCommand";
|
|
11
11
|
import { CommitTransactionCommandInput, CommitTransactionCommandOutput } from "./commands/CommitTransactionCommand";
|
|
@@ -22,7 +22,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
22
22
|
|
|
23
23
|
urlParser?: __UrlParser;
|
|
24
24
|
|
|
25
|
-
bodyLengthChecker?:
|
|
25
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
26
26
|
|
|
27
27
|
streamCollector?: __StreamCollector;
|
|
28
28
|
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: RDSDataClientConfig) => {
|
|
|
6
6
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
7
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
8
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: RDSDataClientConfig) => {
|
|
|
6
6
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
7
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
8
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: RDSDataClientConfig) => {
|
|
|
6
6
|
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
7
7
|
apiVersion: string;
|
|
8
8
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
11
11
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
12
12
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
@@ -19,11 +19,11 @@ export declare const getRuntimeConfig: (config: RDSDataClientConfig) => {
|
|
|
19
19
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
20
20
|
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
21
21
|
serviceId: string;
|
|
22
|
-
region: string | import("@aws-sdk/types").Provider<
|
|
22
|
+
region: string | import("@aws-sdk/types").Provider<any>;
|
|
23
23
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
24
24
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
25
25
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
26
|
-
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode
|
|
26
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
|
27
27
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
28
28
|
tls?: boolean | undefined;
|
|
29
29
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-rds-data",
|
|
3
3
|
"description": "AWS SDK for JavaScript Rds Data Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.55.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,47 +18,47 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-retry": "3.
|
|
31
|
-
"@aws-sdk/middleware-serde": "3.
|
|
32
|
-
"@aws-sdk/middleware-signing": "3.
|
|
33
|
-
"@aws-sdk/middleware-stack": "3.
|
|
34
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
35
|
-
"@aws-sdk/node-config-provider": "3.
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
-
"@aws-sdk/protocol-http": "3.
|
|
38
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
-
"@aws-sdk/types": "3.
|
|
40
|
-
"@aws-sdk/url-parser": "3.
|
|
41
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
42
|
-
"@aws-sdk/util-base64-node": "3.
|
|
43
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
44
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
45
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
46
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
49
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
50
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
51
|
-
"tslib": "^2.3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.55.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.55.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.55.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.55.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.55.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.55.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.55.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.55.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.55.0",
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.55.0",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.55.0",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.55.0",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.55.0",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.55.0",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.55.0",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.55.0",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.55.0",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.55.0",
|
|
39
|
+
"@aws-sdk/types": "3.55.0",
|
|
40
|
+
"@aws-sdk/url-parser": "3.55.0",
|
|
41
|
+
"@aws-sdk/util-base64-browser": "3.55.0",
|
|
42
|
+
"@aws-sdk/util-base64-node": "3.55.0",
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.55.0",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.55.0",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.55.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.55.0",
|
|
49
|
+
"@aws-sdk/util-utf8-browser": "3.55.0",
|
|
50
|
+
"@aws-sdk/util-utf8-node": "3.55.0",
|
|
51
|
+
"tslib": "^2.3.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
54
|
+
"@aws-sdk/service-client-documentation-generator": "3.55.0",
|
|
55
55
|
"@tsconfig/recommended": "1.0.1",
|
|
56
56
|
"@types/node": "^12.7.5",
|
|
57
57
|
"concurrently": "7.0.0",
|
|
58
58
|
"downlevel-dts": "0.7.0",
|
|
59
59
|
"rimraf": "3.0.2",
|
|
60
60
|
"typedoc": "0.19.2",
|
|
61
|
-
"typescript": "~4.
|
|
61
|
+
"typescript": "~4.6.2"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": ">=12.0.0"
|