@aws-sdk/client-rds-data 3.478.0 → 3.481.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +15 -9
  2. package/dist-cjs/commands/BatchExecuteStatementCommand.js +18 -41
  3. package/dist-cjs/commands/BeginTransactionCommand.js +18 -41
  4. package/dist-cjs/commands/CommitTransactionCommand.js +18 -41
  5. package/dist-cjs/commands/ExecuteSqlCommand.js +18 -41
  6. package/dist-cjs/commands/ExecuteStatementCommand.js +18 -41
  7. package/dist-cjs/commands/RollbackTransactionCommand.js +18 -41
  8. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  9. package/dist-cjs/models/models_0.js +105 -1
  10. package/dist-cjs/protocols/Aws_restJson1.js +210 -0
  11. package/dist-es/commands/BatchExecuteStatementCommand.js +18 -41
  12. package/dist-es/commands/BeginTransactionCommand.js +18 -41
  13. package/dist-es/commands/CommitTransactionCommand.js +18 -41
  14. package/dist-es/commands/ExecuteSqlCommand.js +18 -41
  15. package/dist-es/commands/ExecuteStatementCommand.js +18 -41
  16. package/dist-es/commands/RollbackTransactionCommand.js +18 -41
  17. package/dist-es/endpoint/EndpointParameters.js +6 -0
  18. package/dist-es/models/models_0.js +96 -0
  19. package/dist-es/protocols/Aws_restJson1.js +211 -1
  20. package/dist-types/RDSData.d.ts +14 -8
  21. package/dist-types/RDSDataClient.d.ts +14 -8
  22. package/dist-types/commands/BatchExecuteStatementCommand.d.ts +44 -27
  23. package/dist-types/commands/BeginTransactionCommand.d.ts +43 -26
  24. package/dist-types/commands/CommitTransactionCommand.d.ts +41 -24
  25. package/dist-types/commands/ExecuteSqlCommand.d.ts +13 -28
  26. package/dist-types/commands/ExecuteStatementCommand.d.ts +57 -26
  27. package/dist-types/commands/RollbackTransactionCommand.d.ts +41 -24
  28. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  29. package/dist-types/index.d.ts +14 -8
  30. package/dist-types/models/models_0.d.ts +160 -45
  31. package/dist-types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +12 -24
  32. package/dist-types/ts3.4/commands/BeginTransactionCommand.d.ts +14 -23
  33. package/dist-types/ts3.4/commands/CommitTransactionCommand.d.ts +14 -23
  34. package/dist-types/ts3.4/commands/ExecuteSqlCommand.d.ts +14 -23
  35. package/dist-types/ts3.4/commands/ExecuteStatementCommand.d.ts +14 -23
  36. package/dist-types/ts3.4/commands/RollbackTransactionCommand.d.ts +14 -23
  37. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  38. package/dist-types/ts3.4/models/models_0.d.ts +59 -0
  39. package/package.json +9 -9
package/README.md CHANGED
@@ -6,15 +6,21 @@
6
6
 
7
7
  AWS SDK for JavaScript RDSData Client for Node.js, Browser and React Native.
8
8
 
9
- <fullname>Amazon RDS Data Service</fullname>
10
-
11
- <p>Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora Serverless v1 DB cluster. To run these
12
- statements, you work with the Data Service API.</p>
13
- <note>
14
- <p>The Data Service API isn't supported on Amazon Aurora Serverless v2 DB clusters.</p>
15
- </note>
16
- <p>For more information about the Data Service API, see
17
- <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using the Data API</a>
9
+ <fullname>RDS Data API</fullname>
10
+
11
+ <p>Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora DB cluster. To run these
12
+ statements, you use the RDS Data API (Data API).</p>
13
+ <p>Data API is available with the following types of Aurora databases:</p>
14
+ <ul>
15
+ <li>
16
+ <p>Aurora PostgreSQL - Serverless v2, Serverless v1, and provisioned</p>
17
+ </li>
18
+ <li>
19
+ <p>Aurora MySQL - Serverless v1 only</p>
20
+ </li>
21
+ </ul>
22
+ <p>For more information about the Data API, see
23
+ <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a>
18
24
  in the <i>Amazon Aurora User Guide</i>.</p>
19
25
 
20
26
  ## Installing
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class BatchExecuteStatementCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, BatchExecuteStatementCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "RDSDataClient";
29
- const commandName = "BatchExecuteStatementCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "RdsDataService",
38
- operation: "BatchExecuteStatement",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_BatchExecuteStatementCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_BatchExecuteStatementCommand)(output, context);
49
- }
10
+ class BatchExecuteStatementCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("RdsDataService", "BatchExecuteStatement", {})
22
+ .n("RDSDataClient", "BatchExecuteStatementCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_BatchExecuteStatementCommand)
25
+ .de(Aws_restJson1_1.de_BatchExecuteStatementCommand)
26
+ .build() {
50
27
  }
51
28
  exports.BatchExecuteStatementCommand = BatchExecuteStatementCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class BeginTransactionCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, BeginTransactionCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "RDSDataClient";
29
- const commandName = "BeginTransactionCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "RdsDataService",
38
- operation: "BeginTransaction",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_BeginTransactionCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_BeginTransactionCommand)(output, context);
49
- }
10
+ class BeginTransactionCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("RdsDataService", "BeginTransaction", {})
22
+ .n("RDSDataClient", "BeginTransactionCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_BeginTransactionCommand)
25
+ .de(Aws_restJson1_1.de_BeginTransactionCommand)
26
+ .build() {
50
27
  }
51
28
  exports.BeginTransactionCommand = BeginTransactionCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class CommitTransactionCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CommitTransactionCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "RDSDataClient";
29
- const commandName = "CommitTransactionCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "RdsDataService",
38
- operation: "CommitTransaction",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_CommitTransactionCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_CommitTransactionCommand)(output, context);
49
- }
10
+ class CommitTransactionCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("RdsDataService", "CommitTransaction", {})
22
+ .n("RDSDataClient", "CommitTransactionCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_CommitTransactionCommand)
25
+ .de(Aws_restJson1_1.de_CommitTransactionCommand)
26
+ .build() {
50
27
  }
51
28
  exports.CommitTransactionCommand = CommitTransactionCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class ExecuteSqlCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ExecuteSqlCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "RDSDataClient";
29
- const commandName = "ExecuteSqlCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "RdsDataService",
38
- operation: "ExecuteSql",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_ExecuteSqlCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_ExecuteSqlCommand)(output, context);
49
- }
10
+ class ExecuteSqlCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("RdsDataService", "ExecuteSql", {})
22
+ .n("RDSDataClient", "ExecuteSqlCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_ExecuteSqlCommand)
25
+ .de(Aws_restJson1_1.de_ExecuteSqlCommand)
26
+ .build() {
50
27
  }
51
28
  exports.ExecuteSqlCommand = ExecuteSqlCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class ExecuteStatementCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ExecuteStatementCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "RDSDataClient";
29
- const commandName = "ExecuteStatementCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "RdsDataService",
38
- operation: "ExecuteStatement",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_ExecuteStatementCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_ExecuteStatementCommand)(output, context);
49
- }
10
+ class ExecuteStatementCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("RdsDataService", "ExecuteStatement", {})
22
+ .n("RDSDataClient", "ExecuteStatementCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_ExecuteStatementCommand)
25
+ .de(Aws_restJson1_1.de_ExecuteStatementCommand)
26
+ .build() {
50
27
  }
51
28
  exports.ExecuteStatementCommand = ExecuteStatementCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class RollbackTransactionCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RollbackTransactionCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "RDSDataClient";
29
- const commandName = "RollbackTransactionCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "RdsDataService",
38
- operation: "RollbackTransaction",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_RollbackTransactionCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_RollbackTransactionCommand)(output, context);
49
- }
10
+ class RollbackTransactionCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("RdsDataService", "RollbackTransaction", {})
22
+ .n("RDSDataClient", "RollbackTransactionCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_RollbackTransactionCommand)
25
+ .de(Aws_restJson1_1.de_RollbackTransactionCommand)
26
+ .build() {
50
27
  }
51
28
  exports.RollbackTransactionCommand = RollbackTransactionCommand;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveClientEndpointParameters = void 0;
3
+ exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
5
  return {
6
6
  ...options,
@@ -10,3 +10,9 @@ const resolveClientEndpointParameters = (options) => {
10
10
  };
11
11
  };
12
12
  exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
13
+ exports.commonParams = {
14
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
+ Endpoint: { type: "builtInParams", name: "endpoint" },
16
+ Region: { type: "builtInParams", name: "region" },
17
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Value = exports.Field = exports.ArrayValue = exports.LongReturnType = exports.RecordsFormatType = exports.DecimalReturnType = exports.NotFoundException = exports.StatementTimeoutException = exports.ServiceUnavailableError = exports.InternalServerErrorException = exports.ForbiddenException = exports.TypeHint = exports.BadRequestException = exports.AccessDeniedException = void 0;
3
+ exports.Value = exports.Field = exports.ArrayValue = exports.UnsupportedResultException = exports.LongReturnType = exports.RecordsFormatType = exports.DecimalReturnType = exports.NotFoundException = exports.TransactionNotFoundException = exports.StatementTimeoutException = exports.ServiceUnavailableError = exports.SecretsErrorException = exports.InvalidSecretException = exports.InternalServerErrorException = exports.HttpEndpointNotEnabledException = exports.ForbiddenException = exports.DatabaseUnavailableException = exports.DatabaseNotFoundException = exports.DatabaseErrorException = exports.TypeHint = exports.BadRequestException = exports.AccessDeniedException = void 0;
4
4
  const RDSDataServiceException_1 = require("./RDSDataServiceException");
5
5
  class AccessDeniedException extends RDSDataServiceException_1.RDSDataServiceException {
6
6
  constructor(opts) {
@@ -36,6 +36,45 @@ exports.TypeHint = {
36
36
  TIMESTAMP: "TIMESTAMP",
37
37
  UUID: "UUID",
38
38
  };
39
+ class DatabaseErrorException extends RDSDataServiceException_1.RDSDataServiceException {
40
+ constructor(opts) {
41
+ super({
42
+ name: "DatabaseErrorException",
43
+ $fault: "client",
44
+ ...opts,
45
+ });
46
+ this.name = "DatabaseErrorException";
47
+ this.$fault = "client";
48
+ Object.setPrototypeOf(this, DatabaseErrorException.prototype);
49
+ }
50
+ }
51
+ exports.DatabaseErrorException = DatabaseErrorException;
52
+ class DatabaseNotFoundException extends RDSDataServiceException_1.RDSDataServiceException {
53
+ constructor(opts) {
54
+ super({
55
+ name: "DatabaseNotFoundException",
56
+ $fault: "client",
57
+ ...opts,
58
+ });
59
+ this.name = "DatabaseNotFoundException";
60
+ this.$fault = "client";
61
+ Object.setPrototypeOf(this, DatabaseNotFoundException.prototype);
62
+ }
63
+ }
64
+ exports.DatabaseNotFoundException = DatabaseNotFoundException;
65
+ class DatabaseUnavailableException extends RDSDataServiceException_1.RDSDataServiceException {
66
+ constructor(opts) {
67
+ super({
68
+ name: "DatabaseUnavailableException",
69
+ $fault: "server",
70
+ ...opts,
71
+ });
72
+ this.name = "DatabaseUnavailableException";
73
+ this.$fault = "server";
74
+ Object.setPrototypeOf(this, DatabaseUnavailableException.prototype);
75
+ }
76
+ }
77
+ exports.DatabaseUnavailableException = DatabaseUnavailableException;
39
78
  class ForbiddenException extends RDSDataServiceException_1.RDSDataServiceException {
40
79
  constructor(opts) {
41
80
  super({
@@ -49,6 +88,19 @@ class ForbiddenException extends RDSDataServiceException_1.RDSDataServiceExcepti
49
88
  }
50
89
  }
51
90
  exports.ForbiddenException = ForbiddenException;
91
+ class HttpEndpointNotEnabledException extends RDSDataServiceException_1.RDSDataServiceException {
92
+ constructor(opts) {
93
+ super({
94
+ name: "HttpEndpointNotEnabledException",
95
+ $fault: "client",
96
+ ...opts,
97
+ });
98
+ this.name = "HttpEndpointNotEnabledException";
99
+ this.$fault = "client";
100
+ Object.setPrototypeOf(this, HttpEndpointNotEnabledException.prototype);
101
+ }
102
+ }
103
+ exports.HttpEndpointNotEnabledException = HttpEndpointNotEnabledException;
52
104
  class InternalServerErrorException extends RDSDataServiceException_1.RDSDataServiceException {
53
105
  constructor(opts) {
54
106
  super({
@@ -62,6 +114,32 @@ class InternalServerErrorException extends RDSDataServiceException_1.RDSDataServ
62
114
  }
63
115
  }
64
116
  exports.InternalServerErrorException = InternalServerErrorException;
117
+ class InvalidSecretException extends RDSDataServiceException_1.RDSDataServiceException {
118
+ constructor(opts) {
119
+ super({
120
+ name: "InvalidSecretException",
121
+ $fault: "client",
122
+ ...opts,
123
+ });
124
+ this.name = "InvalidSecretException";
125
+ this.$fault = "client";
126
+ Object.setPrototypeOf(this, InvalidSecretException.prototype);
127
+ }
128
+ }
129
+ exports.InvalidSecretException = InvalidSecretException;
130
+ class SecretsErrorException extends RDSDataServiceException_1.RDSDataServiceException {
131
+ constructor(opts) {
132
+ super({
133
+ name: "SecretsErrorException",
134
+ $fault: "client",
135
+ ...opts,
136
+ });
137
+ this.name = "SecretsErrorException";
138
+ this.$fault = "client";
139
+ Object.setPrototypeOf(this, SecretsErrorException.prototype);
140
+ }
141
+ }
142
+ exports.SecretsErrorException = SecretsErrorException;
65
143
  class ServiceUnavailableError extends RDSDataServiceException_1.RDSDataServiceException {
66
144
  constructor(opts) {
67
145
  super({
@@ -89,6 +167,19 @@ class StatementTimeoutException extends RDSDataServiceException_1.RDSDataService
89
167
  }
90
168
  }
91
169
  exports.StatementTimeoutException = StatementTimeoutException;
170
+ class TransactionNotFoundException extends RDSDataServiceException_1.RDSDataServiceException {
171
+ constructor(opts) {
172
+ super({
173
+ name: "TransactionNotFoundException",
174
+ $fault: "client",
175
+ ...opts,
176
+ });
177
+ this.name = "TransactionNotFoundException";
178
+ this.$fault = "client";
179
+ Object.setPrototypeOf(this, TransactionNotFoundException.prototype);
180
+ }
181
+ }
182
+ exports.TransactionNotFoundException = TransactionNotFoundException;
92
183
  class NotFoundException extends RDSDataServiceException_1.RDSDataServiceException {
93
184
  constructor(opts) {
94
185
  super({
@@ -114,6 +205,19 @@ exports.LongReturnType = {
114
205
  LONG: "LONG",
115
206
  STRING: "STRING",
116
207
  };
208
+ class UnsupportedResultException extends RDSDataServiceException_1.RDSDataServiceException {
209
+ constructor(opts) {
210
+ super({
211
+ name: "UnsupportedResultException",
212
+ $fault: "client",
213
+ ...opts,
214
+ });
215
+ this.name = "UnsupportedResultException";
216
+ this.$fault = "client";
217
+ Object.setPrototypeOf(this, UnsupportedResultException.prototype);
218
+ }
219
+ }
220
+ exports.UnsupportedResultException = UnsupportedResultException;
117
221
  var ArrayValue;
118
222
  (function (ArrayValue) {
119
223
  ArrayValue.visit = (value, visitor) => {