@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.
- package/README.md +15 -9
- package/dist-cjs/commands/BatchExecuteStatementCommand.js +18 -41
- package/dist-cjs/commands/BeginTransactionCommand.js +18 -41
- package/dist-cjs/commands/CommitTransactionCommand.js +18 -41
- package/dist-cjs/commands/ExecuteSqlCommand.js +18 -41
- package/dist-cjs/commands/ExecuteStatementCommand.js +18 -41
- package/dist-cjs/commands/RollbackTransactionCommand.js +18 -41
- package/dist-cjs/endpoint/EndpointParameters.js +7 -1
- package/dist-cjs/models/models_0.js +105 -1
- package/dist-cjs/protocols/Aws_restJson1.js +210 -0
- package/dist-es/commands/BatchExecuteStatementCommand.js +18 -41
- package/dist-es/commands/BeginTransactionCommand.js +18 -41
- package/dist-es/commands/CommitTransactionCommand.js +18 -41
- package/dist-es/commands/ExecuteSqlCommand.js +18 -41
- package/dist-es/commands/ExecuteStatementCommand.js +18 -41
- package/dist-es/commands/RollbackTransactionCommand.js +18 -41
- package/dist-es/endpoint/EndpointParameters.js +6 -0
- package/dist-es/models/models_0.js +96 -0
- package/dist-es/protocols/Aws_restJson1.js +211 -1
- package/dist-types/RDSData.d.ts +14 -8
- package/dist-types/RDSDataClient.d.ts +14 -8
- package/dist-types/commands/BatchExecuteStatementCommand.d.ts +44 -27
- package/dist-types/commands/BeginTransactionCommand.d.ts +43 -26
- package/dist-types/commands/CommitTransactionCommand.d.ts +41 -24
- package/dist-types/commands/ExecuteSqlCommand.d.ts +13 -28
- package/dist-types/commands/ExecuteStatementCommand.d.ts +57 -26
- package/dist-types/commands/RollbackTransactionCommand.d.ts +41 -24
- package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/index.d.ts +14 -8
- package/dist-types/models/models_0.d.ts +160 -45
- package/dist-types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/BeginTransactionCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/CommitTransactionCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ExecuteSqlCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ExecuteStatementCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/RollbackTransactionCommand.d.ts +14 -23
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/ts3.4/models/models_0.d.ts +59 -0
- package/package.json +9 -9
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_ExecuteStatementCommand, se_ExecuteStatementCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class ExecuteStatementCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "RDSDataClient";
|
|
26
|
-
const commandName = "ExecuteStatementCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "RdsDataService",
|
|
35
|
-
operation: "ExecuteStatement",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_ExecuteStatementCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_ExecuteStatementCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class ExecuteStatementCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("RdsDataService", "ExecuteStatement", {})
|
|
19
|
+
.n("RDSDataClient", "ExecuteStatementCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ExecuteStatementCommand)
|
|
22
|
+
.de(de_ExecuteStatementCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_RollbackTransactionCommand, se_RollbackTransactionCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class RollbackTransactionCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "RDSDataClient";
|
|
26
|
-
const commandName = "RollbackTransactionCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "RdsDataService",
|
|
35
|
-
operation: "RollbackTransaction",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_RollbackTransactionCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_RollbackTransactionCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class RollbackTransactionCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("RdsDataService", "RollbackTransaction", {})
|
|
19
|
+
.n("RDSDataClient", "RollbackTransactionCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_RollbackTransactionCommand)
|
|
22
|
+
.de(de_RollbackTransactionCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
|
|
|
6
6
|
defaultSigningName: "rds-data",
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
+
export const commonParams = {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
@@ -31,6 +31,42 @@ export const TypeHint = {
|
|
|
31
31
|
TIMESTAMP: "TIMESTAMP",
|
|
32
32
|
UUID: "UUID",
|
|
33
33
|
};
|
|
34
|
+
export class DatabaseErrorException extends __BaseException {
|
|
35
|
+
constructor(opts) {
|
|
36
|
+
super({
|
|
37
|
+
name: "DatabaseErrorException",
|
|
38
|
+
$fault: "client",
|
|
39
|
+
...opts,
|
|
40
|
+
});
|
|
41
|
+
this.name = "DatabaseErrorException";
|
|
42
|
+
this.$fault = "client";
|
|
43
|
+
Object.setPrototypeOf(this, DatabaseErrorException.prototype);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export class DatabaseNotFoundException extends __BaseException {
|
|
47
|
+
constructor(opts) {
|
|
48
|
+
super({
|
|
49
|
+
name: "DatabaseNotFoundException",
|
|
50
|
+
$fault: "client",
|
|
51
|
+
...opts,
|
|
52
|
+
});
|
|
53
|
+
this.name = "DatabaseNotFoundException";
|
|
54
|
+
this.$fault = "client";
|
|
55
|
+
Object.setPrototypeOf(this, DatabaseNotFoundException.prototype);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export class DatabaseUnavailableException extends __BaseException {
|
|
59
|
+
constructor(opts) {
|
|
60
|
+
super({
|
|
61
|
+
name: "DatabaseUnavailableException",
|
|
62
|
+
$fault: "server",
|
|
63
|
+
...opts,
|
|
64
|
+
});
|
|
65
|
+
this.name = "DatabaseUnavailableException";
|
|
66
|
+
this.$fault = "server";
|
|
67
|
+
Object.setPrototypeOf(this, DatabaseUnavailableException.prototype);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
34
70
|
export class ForbiddenException extends __BaseException {
|
|
35
71
|
constructor(opts) {
|
|
36
72
|
super({
|
|
@@ -43,6 +79,18 @@ export class ForbiddenException extends __BaseException {
|
|
|
43
79
|
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
44
80
|
}
|
|
45
81
|
}
|
|
82
|
+
export class HttpEndpointNotEnabledException extends __BaseException {
|
|
83
|
+
constructor(opts) {
|
|
84
|
+
super({
|
|
85
|
+
name: "HttpEndpointNotEnabledException",
|
|
86
|
+
$fault: "client",
|
|
87
|
+
...opts,
|
|
88
|
+
});
|
|
89
|
+
this.name = "HttpEndpointNotEnabledException";
|
|
90
|
+
this.$fault = "client";
|
|
91
|
+
Object.setPrototypeOf(this, HttpEndpointNotEnabledException.prototype);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
46
94
|
export class InternalServerErrorException extends __BaseException {
|
|
47
95
|
constructor(opts) {
|
|
48
96
|
super({
|
|
@@ -55,6 +103,30 @@ export class InternalServerErrorException extends __BaseException {
|
|
|
55
103
|
Object.setPrototypeOf(this, InternalServerErrorException.prototype);
|
|
56
104
|
}
|
|
57
105
|
}
|
|
106
|
+
export class InvalidSecretException extends __BaseException {
|
|
107
|
+
constructor(opts) {
|
|
108
|
+
super({
|
|
109
|
+
name: "InvalidSecretException",
|
|
110
|
+
$fault: "client",
|
|
111
|
+
...opts,
|
|
112
|
+
});
|
|
113
|
+
this.name = "InvalidSecretException";
|
|
114
|
+
this.$fault = "client";
|
|
115
|
+
Object.setPrototypeOf(this, InvalidSecretException.prototype);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
export class SecretsErrorException extends __BaseException {
|
|
119
|
+
constructor(opts) {
|
|
120
|
+
super({
|
|
121
|
+
name: "SecretsErrorException",
|
|
122
|
+
$fault: "client",
|
|
123
|
+
...opts,
|
|
124
|
+
});
|
|
125
|
+
this.name = "SecretsErrorException";
|
|
126
|
+
this.$fault = "client";
|
|
127
|
+
Object.setPrototypeOf(this, SecretsErrorException.prototype);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
58
130
|
export class ServiceUnavailableError extends __BaseException {
|
|
59
131
|
constructor(opts) {
|
|
60
132
|
super({
|
|
@@ -80,6 +152,18 @@ export class StatementTimeoutException extends __BaseException {
|
|
|
80
152
|
this.dbConnectionId = opts.dbConnectionId;
|
|
81
153
|
}
|
|
82
154
|
}
|
|
155
|
+
export class TransactionNotFoundException extends __BaseException {
|
|
156
|
+
constructor(opts) {
|
|
157
|
+
super({
|
|
158
|
+
name: "TransactionNotFoundException",
|
|
159
|
+
$fault: "client",
|
|
160
|
+
...opts,
|
|
161
|
+
});
|
|
162
|
+
this.name = "TransactionNotFoundException";
|
|
163
|
+
this.$fault = "client";
|
|
164
|
+
Object.setPrototypeOf(this, TransactionNotFoundException.prototype);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
83
167
|
export class NotFoundException extends __BaseException {
|
|
84
168
|
constructor(opts) {
|
|
85
169
|
super({
|
|
@@ -104,6 +188,18 @@ export const LongReturnType = {
|
|
|
104
188
|
LONG: "LONG",
|
|
105
189
|
STRING: "STRING",
|
|
106
190
|
};
|
|
191
|
+
export class UnsupportedResultException extends __BaseException {
|
|
192
|
+
constructor(opts) {
|
|
193
|
+
super({
|
|
194
|
+
name: "UnsupportedResultException",
|
|
195
|
+
$fault: "client",
|
|
196
|
+
...opts,
|
|
197
|
+
});
|
|
198
|
+
this.name = "UnsupportedResultException";
|
|
199
|
+
this.$fault = "client";
|
|
200
|
+
Object.setPrototypeOf(this, UnsupportedResultException.prototype);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
107
203
|
export var ArrayValue;
|
|
108
204
|
(function (ArrayValue) {
|
|
109
205
|
ArrayValue.visit = (value, visitor) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { AccessDeniedException, ArrayValue, BadRequestException, Field, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableError, StatementTimeoutException, } from "../models/models_0";
|
|
4
|
+
import { AccessDeniedException, ArrayValue, BadRequestException, DatabaseErrorException, DatabaseNotFoundException, DatabaseUnavailableException, Field, ForbiddenException, HttpEndpointNotEnabledException, InternalServerErrorException, InvalidSecretException, NotFoundException, SecretsErrorException, ServiceUnavailableError, StatementTimeoutException, TransactionNotFoundException, UnsupportedResultException, } from "../models/models_0";
|
|
5
5
|
import { RDSDataServiceException as __BaseException } from "../models/RDSDataServiceException";
|
|
6
6
|
export const se_BatchExecuteStatementCommand = async (input, context) => {
|
|
7
7
|
const b = rb(input, context);
|
|
@@ -135,18 +135,39 @@ const de_BatchExecuteStatementCommandError = async (output, context) => {
|
|
|
135
135
|
case "BadRequestException":
|
|
136
136
|
case "com.amazonaws.rdsdata#BadRequestException":
|
|
137
137
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
138
|
+
case "DatabaseErrorException":
|
|
139
|
+
case "com.amazonaws.rdsdata#DatabaseErrorException":
|
|
140
|
+
throw await de_DatabaseErrorExceptionRes(parsedOutput, context);
|
|
141
|
+
case "DatabaseNotFoundException":
|
|
142
|
+
case "com.amazonaws.rdsdata#DatabaseNotFoundException":
|
|
143
|
+
throw await de_DatabaseNotFoundExceptionRes(parsedOutput, context);
|
|
144
|
+
case "DatabaseUnavailableException":
|
|
145
|
+
case "com.amazonaws.rdsdata#DatabaseUnavailableException":
|
|
146
|
+
throw await de_DatabaseUnavailableExceptionRes(parsedOutput, context);
|
|
138
147
|
case "ForbiddenException":
|
|
139
148
|
case "com.amazonaws.rdsdata#ForbiddenException":
|
|
140
149
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
150
|
+
case "HttpEndpointNotEnabledException":
|
|
151
|
+
case "com.amazonaws.rdsdata#HttpEndpointNotEnabledException":
|
|
152
|
+
throw await de_HttpEndpointNotEnabledExceptionRes(parsedOutput, context);
|
|
141
153
|
case "InternalServerErrorException":
|
|
142
154
|
case "com.amazonaws.rdsdata#InternalServerErrorException":
|
|
143
155
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
156
|
+
case "InvalidSecretException":
|
|
157
|
+
case "com.amazonaws.rdsdata#InvalidSecretException":
|
|
158
|
+
throw await de_InvalidSecretExceptionRes(parsedOutput, context);
|
|
159
|
+
case "SecretsErrorException":
|
|
160
|
+
case "com.amazonaws.rdsdata#SecretsErrorException":
|
|
161
|
+
throw await de_SecretsErrorExceptionRes(parsedOutput, context);
|
|
144
162
|
case "ServiceUnavailableError":
|
|
145
163
|
case "com.amazonaws.rdsdata#ServiceUnavailableError":
|
|
146
164
|
throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
|
|
147
165
|
case "StatementTimeoutException":
|
|
148
166
|
case "com.amazonaws.rdsdata#StatementTimeoutException":
|
|
149
167
|
throw await de_StatementTimeoutExceptionRes(parsedOutput, context);
|
|
168
|
+
case "TransactionNotFoundException":
|
|
169
|
+
case "com.amazonaws.rdsdata#TransactionNotFoundException":
|
|
170
|
+
throw await de_TransactionNotFoundExceptionRes(parsedOutput, context);
|
|
150
171
|
default:
|
|
151
172
|
const parsedBody = parsedOutput.body;
|
|
152
173
|
return throwDefaultError({
|
|
@@ -183,18 +204,39 @@ const de_BeginTransactionCommandError = async (output, context) => {
|
|
|
183
204
|
case "BadRequestException":
|
|
184
205
|
case "com.amazonaws.rdsdata#BadRequestException":
|
|
185
206
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
207
|
+
case "DatabaseErrorException":
|
|
208
|
+
case "com.amazonaws.rdsdata#DatabaseErrorException":
|
|
209
|
+
throw await de_DatabaseErrorExceptionRes(parsedOutput, context);
|
|
210
|
+
case "DatabaseNotFoundException":
|
|
211
|
+
case "com.amazonaws.rdsdata#DatabaseNotFoundException":
|
|
212
|
+
throw await de_DatabaseNotFoundExceptionRes(parsedOutput, context);
|
|
213
|
+
case "DatabaseUnavailableException":
|
|
214
|
+
case "com.amazonaws.rdsdata#DatabaseUnavailableException":
|
|
215
|
+
throw await de_DatabaseUnavailableExceptionRes(parsedOutput, context);
|
|
186
216
|
case "ForbiddenException":
|
|
187
217
|
case "com.amazonaws.rdsdata#ForbiddenException":
|
|
188
218
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
219
|
+
case "HttpEndpointNotEnabledException":
|
|
220
|
+
case "com.amazonaws.rdsdata#HttpEndpointNotEnabledException":
|
|
221
|
+
throw await de_HttpEndpointNotEnabledExceptionRes(parsedOutput, context);
|
|
189
222
|
case "InternalServerErrorException":
|
|
190
223
|
case "com.amazonaws.rdsdata#InternalServerErrorException":
|
|
191
224
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
225
|
+
case "InvalidSecretException":
|
|
226
|
+
case "com.amazonaws.rdsdata#InvalidSecretException":
|
|
227
|
+
throw await de_InvalidSecretExceptionRes(parsedOutput, context);
|
|
228
|
+
case "SecretsErrorException":
|
|
229
|
+
case "com.amazonaws.rdsdata#SecretsErrorException":
|
|
230
|
+
throw await de_SecretsErrorExceptionRes(parsedOutput, context);
|
|
192
231
|
case "ServiceUnavailableError":
|
|
193
232
|
case "com.amazonaws.rdsdata#ServiceUnavailableError":
|
|
194
233
|
throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
|
|
195
234
|
case "StatementTimeoutException":
|
|
196
235
|
case "com.amazonaws.rdsdata#StatementTimeoutException":
|
|
197
236
|
throw await de_StatementTimeoutExceptionRes(parsedOutput, context);
|
|
237
|
+
case "TransactionNotFoundException":
|
|
238
|
+
case "com.amazonaws.rdsdata#TransactionNotFoundException":
|
|
239
|
+
throw await de_TransactionNotFoundExceptionRes(parsedOutput, context);
|
|
198
240
|
default:
|
|
199
241
|
const parsedBody = parsedOutput.body;
|
|
200
242
|
return throwDefaultError({
|
|
@@ -231,21 +273,42 @@ const de_CommitTransactionCommandError = async (output, context) => {
|
|
|
231
273
|
case "BadRequestException":
|
|
232
274
|
case "com.amazonaws.rdsdata#BadRequestException":
|
|
233
275
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
276
|
+
case "DatabaseErrorException":
|
|
277
|
+
case "com.amazonaws.rdsdata#DatabaseErrorException":
|
|
278
|
+
throw await de_DatabaseErrorExceptionRes(parsedOutput, context);
|
|
279
|
+
case "DatabaseNotFoundException":
|
|
280
|
+
case "com.amazonaws.rdsdata#DatabaseNotFoundException":
|
|
281
|
+
throw await de_DatabaseNotFoundExceptionRes(parsedOutput, context);
|
|
282
|
+
case "DatabaseUnavailableException":
|
|
283
|
+
case "com.amazonaws.rdsdata#DatabaseUnavailableException":
|
|
284
|
+
throw await de_DatabaseUnavailableExceptionRes(parsedOutput, context);
|
|
234
285
|
case "ForbiddenException":
|
|
235
286
|
case "com.amazonaws.rdsdata#ForbiddenException":
|
|
236
287
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
288
|
+
case "HttpEndpointNotEnabledException":
|
|
289
|
+
case "com.amazonaws.rdsdata#HttpEndpointNotEnabledException":
|
|
290
|
+
throw await de_HttpEndpointNotEnabledExceptionRes(parsedOutput, context);
|
|
237
291
|
case "InternalServerErrorException":
|
|
238
292
|
case "com.amazonaws.rdsdata#InternalServerErrorException":
|
|
239
293
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
294
|
+
case "InvalidSecretException":
|
|
295
|
+
case "com.amazonaws.rdsdata#InvalidSecretException":
|
|
296
|
+
throw await de_InvalidSecretExceptionRes(parsedOutput, context);
|
|
240
297
|
case "NotFoundException":
|
|
241
298
|
case "com.amazonaws.rdsdata#NotFoundException":
|
|
242
299
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
300
|
+
case "SecretsErrorException":
|
|
301
|
+
case "com.amazonaws.rdsdata#SecretsErrorException":
|
|
302
|
+
throw await de_SecretsErrorExceptionRes(parsedOutput, context);
|
|
243
303
|
case "ServiceUnavailableError":
|
|
244
304
|
case "com.amazonaws.rdsdata#ServiceUnavailableError":
|
|
245
305
|
throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
|
|
246
306
|
case "StatementTimeoutException":
|
|
247
307
|
case "com.amazonaws.rdsdata#StatementTimeoutException":
|
|
248
308
|
throw await de_StatementTimeoutExceptionRes(parsedOutput, context);
|
|
309
|
+
case "TransactionNotFoundException":
|
|
310
|
+
case "com.amazonaws.rdsdata#TransactionNotFoundException":
|
|
311
|
+
throw await de_TransactionNotFoundExceptionRes(parsedOutput, context);
|
|
249
312
|
default:
|
|
250
313
|
const parsedBody = parsedOutput.body;
|
|
251
314
|
return throwDefaultError({
|
|
@@ -331,18 +394,42 @@ const de_ExecuteStatementCommandError = async (output, context) => {
|
|
|
331
394
|
case "BadRequestException":
|
|
332
395
|
case "com.amazonaws.rdsdata#BadRequestException":
|
|
333
396
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
397
|
+
case "DatabaseErrorException":
|
|
398
|
+
case "com.amazonaws.rdsdata#DatabaseErrorException":
|
|
399
|
+
throw await de_DatabaseErrorExceptionRes(parsedOutput, context);
|
|
400
|
+
case "DatabaseNotFoundException":
|
|
401
|
+
case "com.amazonaws.rdsdata#DatabaseNotFoundException":
|
|
402
|
+
throw await de_DatabaseNotFoundExceptionRes(parsedOutput, context);
|
|
403
|
+
case "DatabaseUnavailableException":
|
|
404
|
+
case "com.amazonaws.rdsdata#DatabaseUnavailableException":
|
|
405
|
+
throw await de_DatabaseUnavailableExceptionRes(parsedOutput, context);
|
|
334
406
|
case "ForbiddenException":
|
|
335
407
|
case "com.amazonaws.rdsdata#ForbiddenException":
|
|
336
408
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
409
|
+
case "HttpEndpointNotEnabledException":
|
|
410
|
+
case "com.amazonaws.rdsdata#HttpEndpointNotEnabledException":
|
|
411
|
+
throw await de_HttpEndpointNotEnabledExceptionRes(parsedOutput, context);
|
|
337
412
|
case "InternalServerErrorException":
|
|
338
413
|
case "com.amazonaws.rdsdata#InternalServerErrorException":
|
|
339
414
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
415
|
+
case "InvalidSecretException":
|
|
416
|
+
case "com.amazonaws.rdsdata#InvalidSecretException":
|
|
417
|
+
throw await de_InvalidSecretExceptionRes(parsedOutput, context);
|
|
418
|
+
case "SecretsErrorException":
|
|
419
|
+
case "com.amazonaws.rdsdata#SecretsErrorException":
|
|
420
|
+
throw await de_SecretsErrorExceptionRes(parsedOutput, context);
|
|
340
421
|
case "ServiceUnavailableError":
|
|
341
422
|
case "com.amazonaws.rdsdata#ServiceUnavailableError":
|
|
342
423
|
throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
|
|
343
424
|
case "StatementTimeoutException":
|
|
344
425
|
case "com.amazonaws.rdsdata#StatementTimeoutException":
|
|
345
426
|
throw await de_StatementTimeoutExceptionRes(parsedOutput, context);
|
|
427
|
+
case "TransactionNotFoundException":
|
|
428
|
+
case "com.amazonaws.rdsdata#TransactionNotFoundException":
|
|
429
|
+
throw await de_TransactionNotFoundExceptionRes(parsedOutput, context);
|
|
430
|
+
case "UnsupportedResultException":
|
|
431
|
+
case "com.amazonaws.rdsdata#UnsupportedResultException":
|
|
432
|
+
throw await de_UnsupportedResultExceptionRes(parsedOutput, context);
|
|
346
433
|
default:
|
|
347
434
|
const parsedBody = parsedOutput.body;
|
|
348
435
|
return throwDefaultError({
|
|
@@ -379,21 +466,42 @@ const de_RollbackTransactionCommandError = async (output, context) => {
|
|
|
379
466
|
case "BadRequestException":
|
|
380
467
|
case "com.amazonaws.rdsdata#BadRequestException":
|
|
381
468
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
469
|
+
case "DatabaseErrorException":
|
|
470
|
+
case "com.amazonaws.rdsdata#DatabaseErrorException":
|
|
471
|
+
throw await de_DatabaseErrorExceptionRes(parsedOutput, context);
|
|
472
|
+
case "DatabaseNotFoundException":
|
|
473
|
+
case "com.amazonaws.rdsdata#DatabaseNotFoundException":
|
|
474
|
+
throw await de_DatabaseNotFoundExceptionRes(parsedOutput, context);
|
|
475
|
+
case "DatabaseUnavailableException":
|
|
476
|
+
case "com.amazonaws.rdsdata#DatabaseUnavailableException":
|
|
477
|
+
throw await de_DatabaseUnavailableExceptionRes(parsedOutput, context);
|
|
382
478
|
case "ForbiddenException":
|
|
383
479
|
case "com.amazonaws.rdsdata#ForbiddenException":
|
|
384
480
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
481
|
+
case "HttpEndpointNotEnabledException":
|
|
482
|
+
case "com.amazonaws.rdsdata#HttpEndpointNotEnabledException":
|
|
483
|
+
throw await de_HttpEndpointNotEnabledExceptionRes(parsedOutput, context);
|
|
385
484
|
case "InternalServerErrorException":
|
|
386
485
|
case "com.amazonaws.rdsdata#InternalServerErrorException":
|
|
387
486
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
487
|
+
case "InvalidSecretException":
|
|
488
|
+
case "com.amazonaws.rdsdata#InvalidSecretException":
|
|
489
|
+
throw await de_InvalidSecretExceptionRes(parsedOutput, context);
|
|
388
490
|
case "NotFoundException":
|
|
389
491
|
case "com.amazonaws.rdsdata#NotFoundException":
|
|
390
492
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
493
|
+
case "SecretsErrorException":
|
|
494
|
+
case "com.amazonaws.rdsdata#SecretsErrorException":
|
|
495
|
+
throw await de_SecretsErrorExceptionRes(parsedOutput, context);
|
|
391
496
|
case "ServiceUnavailableError":
|
|
392
497
|
case "com.amazonaws.rdsdata#ServiceUnavailableError":
|
|
393
498
|
throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
|
|
394
499
|
case "StatementTimeoutException":
|
|
395
500
|
case "com.amazonaws.rdsdata#StatementTimeoutException":
|
|
396
501
|
throw await de_StatementTimeoutExceptionRes(parsedOutput, context);
|
|
502
|
+
case "TransactionNotFoundException":
|
|
503
|
+
case "com.amazonaws.rdsdata#TransactionNotFoundException":
|
|
504
|
+
throw await de_TransactionNotFoundExceptionRes(parsedOutput, context);
|
|
397
505
|
default:
|
|
398
506
|
const parsedBody = parsedOutput.body;
|
|
399
507
|
return throwDefaultError({
|
|
@@ -430,6 +538,43 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
430
538
|
});
|
|
431
539
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
432
540
|
};
|
|
541
|
+
const de_DatabaseErrorExceptionRes = async (parsedOutput, context) => {
|
|
542
|
+
const contents = map({});
|
|
543
|
+
const data = parsedOutput.body;
|
|
544
|
+
const doc = take(data, {
|
|
545
|
+
message: __expectString,
|
|
546
|
+
});
|
|
547
|
+
Object.assign(contents, doc);
|
|
548
|
+
const exception = new DatabaseErrorException({
|
|
549
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
550
|
+
...contents,
|
|
551
|
+
});
|
|
552
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
553
|
+
};
|
|
554
|
+
const de_DatabaseNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
555
|
+
const contents = map({});
|
|
556
|
+
const data = parsedOutput.body;
|
|
557
|
+
const doc = take(data, {
|
|
558
|
+
message: __expectString,
|
|
559
|
+
});
|
|
560
|
+
Object.assign(contents, doc);
|
|
561
|
+
const exception = new DatabaseNotFoundException({
|
|
562
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
563
|
+
...contents,
|
|
564
|
+
});
|
|
565
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
566
|
+
};
|
|
567
|
+
const de_DatabaseUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
568
|
+
const contents = map({});
|
|
569
|
+
const data = parsedOutput.body;
|
|
570
|
+
const doc = take(data, {});
|
|
571
|
+
Object.assign(contents, doc);
|
|
572
|
+
const exception = new DatabaseUnavailableException({
|
|
573
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
574
|
+
...contents,
|
|
575
|
+
});
|
|
576
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
577
|
+
};
|
|
433
578
|
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
434
579
|
const contents = map({});
|
|
435
580
|
const data = parsedOutput.body;
|
|
@@ -443,6 +588,19 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
|
443
588
|
});
|
|
444
589
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
445
590
|
};
|
|
591
|
+
const de_HttpEndpointNotEnabledExceptionRes = async (parsedOutput, context) => {
|
|
592
|
+
const contents = map({});
|
|
593
|
+
const data = parsedOutput.body;
|
|
594
|
+
const doc = take(data, {
|
|
595
|
+
message: __expectString,
|
|
596
|
+
});
|
|
597
|
+
Object.assign(contents, doc);
|
|
598
|
+
const exception = new HttpEndpointNotEnabledException({
|
|
599
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
600
|
+
...contents,
|
|
601
|
+
});
|
|
602
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
603
|
+
};
|
|
446
604
|
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
447
605
|
const contents = map({});
|
|
448
606
|
const data = parsedOutput.body;
|
|
@@ -454,6 +612,19 @@ const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
454
612
|
});
|
|
455
613
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
456
614
|
};
|
|
615
|
+
const de_InvalidSecretExceptionRes = async (parsedOutput, context) => {
|
|
616
|
+
const contents = map({});
|
|
617
|
+
const data = parsedOutput.body;
|
|
618
|
+
const doc = take(data, {
|
|
619
|
+
message: __expectString,
|
|
620
|
+
});
|
|
621
|
+
Object.assign(contents, doc);
|
|
622
|
+
const exception = new InvalidSecretException({
|
|
623
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
624
|
+
...contents,
|
|
625
|
+
});
|
|
626
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
627
|
+
};
|
|
457
628
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
458
629
|
const contents = map({});
|
|
459
630
|
const data = parsedOutput.body;
|
|
@@ -467,6 +638,19 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
467
638
|
});
|
|
468
639
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
469
640
|
};
|
|
641
|
+
const de_SecretsErrorExceptionRes = async (parsedOutput, context) => {
|
|
642
|
+
const contents = map({});
|
|
643
|
+
const data = parsedOutput.body;
|
|
644
|
+
const doc = take(data, {
|
|
645
|
+
message: __expectString,
|
|
646
|
+
});
|
|
647
|
+
Object.assign(contents, doc);
|
|
648
|
+
const exception = new SecretsErrorException({
|
|
649
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
650
|
+
...contents,
|
|
651
|
+
});
|
|
652
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
653
|
+
};
|
|
470
654
|
const de_ServiceUnavailableErrorRes = async (parsedOutput, context) => {
|
|
471
655
|
const contents = map({});
|
|
472
656
|
const data = parsedOutput.body;
|
|
@@ -492,6 +676,32 @@ const de_StatementTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
|
492
676
|
});
|
|
493
677
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
494
678
|
};
|
|
679
|
+
const de_TransactionNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
680
|
+
const contents = map({});
|
|
681
|
+
const data = parsedOutput.body;
|
|
682
|
+
const doc = take(data, {
|
|
683
|
+
message: __expectString,
|
|
684
|
+
});
|
|
685
|
+
Object.assign(contents, doc);
|
|
686
|
+
const exception = new TransactionNotFoundException({
|
|
687
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
688
|
+
...contents,
|
|
689
|
+
});
|
|
690
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
691
|
+
};
|
|
692
|
+
const de_UnsupportedResultExceptionRes = async (parsedOutput, context) => {
|
|
693
|
+
const contents = map({});
|
|
694
|
+
const data = parsedOutput.body;
|
|
695
|
+
const doc = take(data, {
|
|
696
|
+
message: __expectString,
|
|
697
|
+
});
|
|
698
|
+
Object.assign(contents, doc);
|
|
699
|
+
const exception = new UnsupportedResultException({
|
|
700
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
701
|
+
...contents,
|
|
702
|
+
});
|
|
703
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
704
|
+
};
|
|
495
705
|
const se_ArrayOfArray = (input, context) => {
|
|
496
706
|
return input
|
|
497
707
|
.filter((e) => e != null)
|
package/dist-types/RDSData.d.ts
CHANGED
|
@@ -46,14 +46,20 @@ export interface RDSData {
|
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
48
|
* @public
|
|
49
|
-
* <fullname>
|
|
50
|
-
*
|
|
51
|
-
* statements, you
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
49
|
+
* <fullname>RDS Data API</fullname>
|
|
50
|
+
* <p>Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora DB cluster. To run these
|
|
51
|
+
* statements, you use the RDS Data API (Data API).</p>
|
|
52
|
+
* <p>Data API is available with the following types of Aurora databases:</p>
|
|
53
|
+
* <ul>
|
|
54
|
+
* <li>
|
|
55
|
+
* <p>Aurora PostgreSQL - Serverless v2, Serverless v1, and provisioned</p>
|
|
56
|
+
* </li>
|
|
57
|
+
* <li>
|
|
58
|
+
* <p>Aurora MySQL - Serverless v1 only</p>
|
|
59
|
+
* </li>
|
|
60
|
+
* </ul>
|
|
61
|
+
* <p>For more information about the Data API, see
|
|
62
|
+
* <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a>
|
|
57
63
|
* in the <i>Amazon Aurora User Guide</i>.</p>
|
|
58
64
|
*/
|
|
59
65
|
export declare class RDSData extends RDSDataClient implements RDSData {
|