@aws-sdk/client-rds-data 3.899.0 → 3.906.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/dist-cjs/index.js +1260 -1432
- package/package.json +37 -37
package/dist-cjs/index.js
CHANGED
|
@@ -1,1467 +1,1295 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
'use strict';
|
|
20
2
|
|
|
21
|
-
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
Field: () => Field,
|
|
38
|
-
ForbiddenException: () => ForbiddenException,
|
|
39
|
-
HttpEndpointNotEnabledException: () => HttpEndpointNotEnabledException,
|
|
40
|
-
InternalServerErrorException: () => InternalServerErrorException,
|
|
41
|
-
InvalidResourceStateException: () => InvalidResourceStateException,
|
|
42
|
-
InvalidSecretException: () => InvalidSecretException,
|
|
43
|
-
LongReturnType: () => LongReturnType,
|
|
44
|
-
NotFoundException: () => NotFoundException,
|
|
45
|
-
RDSData: () => RDSData,
|
|
46
|
-
RDSDataClient: () => RDSDataClient,
|
|
47
|
-
RDSDataServiceException: () => RDSDataServiceException,
|
|
48
|
-
RecordsFormatType: () => RecordsFormatType,
|
|
49
|
-
RollbackTransactionCommand: () => RollbackTransactionCommand,
|
|
50
|
-
SecretsErrorException: () => SecretsErrorException,
|
|
51
|
-
ServiceUnavailableError: () => ServiceUnavailableError,
|
|
52
|
-
StatementTimeoutException: () => StatementTimeoutException,
|
|
53
|
-
TransactionNotFoundException: () => TransactionNotFoundException,
|
|
54
|
-
TypeHint: () => TypeHint,
|
|
55
|
-
UnsupportedResultException: () => UnsupportedResultException,
|
|
56
|
-
Value: () => Value,
|
|
57
|
-
__Client: () => import_smithy_client.Client
|
|
58
|
-
});
|
|
59
|
-
module.exports = __toCommonJS(index_exports);
|
|
60
|
-
|
|
61
|
-
// src/RDSDataClient.ts
|
|
62
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
63
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
64
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
65
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
66
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
67
|
-
var import_core = require("@smithy/core");
|
|
68
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
69
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
70
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
71
19
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
85
|
-
Region: { type: "builtInParams", name: "region" },
|
|
86
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
20
|
+
const resolveClientEndpointParameters = (options) => {
|
|
21
|
+
return Object.assign(options, {
|
|
22
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
23
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
24
|
+
defaultSigningName: "rds-data",
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const commonParams = {
|
|
28
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
29
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
30
|
+
Region: { type: "builtInParams", name: "region" },
|
|
31
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
87
32
|
};
|
|
88
33
|
|
|
89
|
-
|
|
90
|
-
|
|
34
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
37
|
+
let _credentials = runtimeConfig.credentials;
|
|
38
|
+
return {
|
|
39
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
40
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
41
|
+
if (index === -1) {
|
|
42
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
httpAuthSchemes() {
|
|
49
|
+
return _httpAuthSchemes;
|
|
50
|
+
},
|
|
51
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
52
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
53
|
+
},
|
|
54
|
+
httpAuthSchemeProvider() {
|
|
55
|
+
return _httpAuthSchemeProvider;
|
|
56
|
+
},
|
|
57
|
+
setCredentials(credentials) {
|
|
58
|
+
_credentials = credentials;
|
|
59
|
+
},
|
|
60
|
+
credentials() {
|
|
61
|
+
return _credentials;
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
66
|
+
return {
|
|
67
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
68
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
69
|
+
credentials: config.credentials(),
|
|
70
|
+
};
|
|
71
|
+
};
|
|
91
72
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
73
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
74
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
75
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
76
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
77
|
+
};
|
|
96
78
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
79
|
+
class RDSDataClient extends smithyClient.Client {
|
|
80
|
+
config;
|
|
81
|
+
constructor(...[configuration]) {
|
|
82
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
83
|
+
super(_config_0);
|
|
84
|
+
this.initConfig = _config_0;
|
|
85
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
86
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
|
+
this.config = _config_8;
|
|
94
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
101
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultRDSDataHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
107
|
+
}
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
125
110
|
}
|
|
126
|
-
|
|
127
|
-
}, "getHttpAuthExtensionConfiguration");
|
|
128
|
-
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
129
|
-
return {
|
|
130
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
131
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
132
|
-
credentials: config.credentials()
|
|
133
|
-
};
|
|
134
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
111
|
+
}
|
|
135
112
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
143
|
-
);
|
|
144
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
145
|
-
return Object.assign(
|
|
146
|
-
runtimeConfig,
|
|
147
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
148
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
149
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
150
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
151
|
-
);
|
|
152
|
-
}, "resolveRuntimeExtensions");
|
|
113
|
+
class RDSDataServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, RDSDataServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
153
119
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
186
|
-
"aws.auth#sigv4": config.credentials
|
|
187
|
-
}), "identityProviderConfigProvider")
|
|
188
|
-
})
|
|
189
|
-
);
|
|
190
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
194
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
195
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
196
|
-
*/
|
|
197
|
-
destroy() {
|
|
198
|
-
super.destroy();
|
|
199
|
-
}
|
|
120
|
+
class AccessDeniedException extends RDSDataServiceException {
|
|
121
|
+
name = "AccessDeniedException";
|
|
122
|
+
$fault = "client";
|
|
123
|
+
constructor(opts) {
|
|
124
|
+
super({
|
|
125
|
+
name: "AccessDeniedException",
|
|
126
|
+
$fault: "client",
|
|
127
|
+
...opts,
|
|
128
|
+
});
|
|
129
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
class BadRequestException extends RDSDataServiceException {
|
|
133
|
+
name = "BadRequestException";
|
|
134
|
+
$fault = "client";
|
|
135
|
+
constructor(opts) {
|
|
136
|
+
super({
|
|
137
|
+
name: "BadRequestException",
|
|
138
|
+
$fault: "client",
|
|
139
|
+
...opts,
|
|
140
|
+
});
|
|
141
|
+
Object.setPrototypeOf(this, BadRequestException.prototype);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
const TypeHint = {
|
|
145
|
+
DATE: "DATE",
|
|
146
|
+
DECIMAL: "DECIMAL",
|
|
147
|
+
JSON: "JSON",
|
|
148
|
+
TIME: "TIME",
|
|
149
|
+
TIMESTAMP: "TIMESTAMP",
|
|
150
|
+
UUID: "UUID",
|
|
200
151
|
};
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
152
|
+
class DatabaseErrorException extends RDSDataServiceException {
|
|
153
|
+
name = "DatabaseErrorException";
|
|
154
|
+
$fault = "client";
|
|
155
|
+
constructor(opts) {
|
|
156
|
+
super({
|
|
157
|
+
name: "DatabaseErrorException",
|
|
158
|
+
$fault: "client",
|
|
159
|
+
...opts,
|
|
160
|
+
});
|
|
161
|
+
Object.setPrototypeOf(this, DatabaseErrorException.prototype);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
class DatabaseNotFoundException extends RDSDataServiceException {
|
|
165
|
+
name = "DatabaseNotFoundException";
|
|
166
|
+
$fault = "client";
|
|
167
|
+
constructor(opts) {
|
|
168
|
+
super({
|
|
169
|
+
name: "DatabaseNotFoundException",
|
|
170
|
+
$fault: "client",
|
|
171
|
+
...opts,
|
|
172
|
+
});
|
|
173
|
+
Object.setPrototypeOf(this, DatabaseNotFoundException.prototype);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
class DatabaseResumingException extends RDSDataServiceException {
|
|
177
|
+
name = "DatabaseResumingException";
|
|
178
|
+
$fault = "client";
|
|
179
|
+
constructor(opts) {
|
|
180
|
+
super({
|
|
181
|
+
name: "DatabaseResumingException",
|
|
182
|
+
$fault: "client",
|
|
183
|
+
...opts,
|
|
184
|
+
});
|
|
185
|
+
Object.setPrototypeOf(this, DatabaseResumingException.prototype);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
class DatabaseUnavailableException extends RDSDataServiceException {
|
|
189
|
+
name = "DatabaseUnavailableException";
|
|
190
|
+
$fault = "server";
|
|
191
|
+
constructor(opts) {
|
|
192
|
+
super({
|
|
193
|
+
name: "DatabaseUnavailableException",
|
|
194
|
+
$fault: "server",
|
|
195
|
+
...opts,
|
|
196
|
+
});
|
|
197
|
+
Object.setPrototypeOf(this, DatabaseUnavailableException.prototype);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
class ForbiddenException extends RDSDataServiceException {
|
|
201
|
+
name = "ForbiddenException";
|
|
202
|
+
$fault = "client";
|
|
203
|
+
constructor(opts) {
|
|
204
|
+
super({
|
|
205
|
+
name: "ForbiddenException",
|
|
206
|
+
$fault: "client",
|
|
207
|
+
...opts,
|
|
208
|
+
});
|
|
209
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
class HttpEndpointNotEnabledException extends RDSDataServiceException {
|
|
213
|
+
name = "HttpEndpointNotEnabledException";
|
|
214
|
+
$fault = "client";
|
|
215
|
+
constructor(opts) {
|
|
216
|
+
super({
|
|
217
|
+
name: "HttpEndpointNotEnabledException",
|
|
218
|
+
$fault: "client",
|
|
219
|
+
...opts,
|
|
220
|
+
});
|
|
221
|
+
Object.setPrototypeOf(this, HttpEndpointNotEnabledException.prototype);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
class InternalServerErrorException extends RDSDataServiceException {
|
|
225
|
+
name = "InternalServerErrorException";
|
|
226
|
+
$fault = "server";
|
|
227
|
+
constructor(opts) {
|
|
228
|
+
super({
|
|
229
|
+
name: "InternalServerErrorException",
|
|
230
|
+
$fault: "server",
|
|
231
|
+
...opts,
|
|
232
|
+
});
|
|
233
|
+
Object.setPrototypeOf(this, InternalServerErrorException.prototype);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
class InvalidResourceStateException extends RDSDataServiceException {
|
|
237
|
+
name = "InvalidResourceStateException";
|
|
238
|
+
$fault = "client";
|
|
239
|
+
constructor(opts) {
|
|
240
|
+
super({
|
|
241
|
+
name: "InvalidResourceStateException",
|
|
242
|
+
$fault: "client",
|
|
243
|
+
...opts,
|
|
244
|
+
});
|
|
245
|
+
Object.setPrototypeOf(this, InvalidResourceStateException.prototype);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
class InvalidSecretException extends RDSDataServiceException {
|
|
249
|
+
name = "InvalidSecretException";
|
|
250
|
+
$fault = "client";
|
|
251
|
+
constructor(opts) {
|
|
252
|
+
super({
|
|
253
|
+
name: "InvalidSecretException",
|
|
254
|
+
$fault: "client",
|
|
255
|
+
...opts,
|
|
256
|
+
});
|
|
257
|
+
Object.setPrototypeOf(this, InvalidSecretException.prototype);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
class SecretsErrorException extends RDSDataServiceException {
|
|
261
|
+
name = "SecretsErrorException";
|
|
262
|
+
$fault = "client";
|
|
263
|
+
constructor(opts) {
|
|
264
|
+
super({
|
|
265
|
+
name: "SecretsErrorException",
|
|
266
|
+
$fault: "client",
|
|
267
|
+
...opts,
|
|
268
|
+
});
|
|
269
|
+
Object.setPrototypeOf(this, SecretsErrorException.prototype);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
class ServiceUnavailableError extends RDSDataServiceException {
|
|
273
|
+
name = "ServiceUnavailableError";
|
|
274
|
+
$fault = "server";
|
|
275
|
+
constructor(opts) {
|
|
276
|
+
super({
|
|
277
|
+
name: "ServiceUnavailableError",
|
|
278
|
+
$fault: "server",
|
|
279
|
+
...opts,
|
|
280
|
+
});
|
|
281
|
+
Object.setPrototypeOf(this, ServiceUnavailableError.prototype);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
class StatementTimeoutException extends RDSDataServiceException {
|
|
285
|
+
name = "StatementTimeoutException";
|
|
286
|
+
$fault = "client";
|
|
287
|
+
dbConnectionId;
|
|
288
|
+
constructor(opts) {
|
|
289
|
+
super({
|
|
290
|
+
name: "StatementTimeoutException",
|
|
291
|
+
$fault: "client",
|
|
292
|
+
...opts,
|
|
293
|
+
});
|
|
294
|
+
Object.setPrototypeOf(this, StatementTimeoutException.prototype);
|
|
295
|
+
this.dbConnectionId = opts.dbConnectionId;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
class TransactionNotFoundException extends RDSDataServiceException {
|
|
299
|
+
name = "TransactionNotFoundException";
|
|
300
|
+
$fault = "client";
|
|
301
|
+
constructor(opts) {
|
|
302
|
+
super({
|
|
303
|
+
name: "TransactionNotFoundException",
|
|
304
|
+
$fault: "client",
|
|
305
|
+
...opts,
|
|
306
|
+
});
|
|
307
|
+
Object.setPrototypeOf(this, TransactionNotFoundException.prototype);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
class NotFoundException extends RDSDataServiceException {
|
|
311
|
+
name = "NotFoundException";
|
|
312
|
+
$fault = "client";
|
|
313
|
+
constructor(opts) {
|
|
314
|
+
super({
|
|
315
|
+
name: "NotFoundException",
|
|
316
|
+
$fault: "client",
|
|
317
|
+
...opts,
|
|
318
|
+
});
|
|
319
|
+
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
const DecimalReturnType = {
|
|
323
|
+
DOUBLE_OR_LONG: "DOUBLE_OR_LONG",
|
|
324
|
+
STRING: "STRING",
|
|
228
325
|
};
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
});
|
|
264
|
-
Object.setPrototypeOf(this, _BadRequestException.prototype);
|
|
265
|
-
}
|
|
266
|
-
};
|
|
267
|
-
var TypeHint = {
|
|
268
|
-
DATE: "DATE",
|
|
269
|
-
DECIMAL: "DECIMAL",
|
|
270
|
-
JSON: "JSON",
|
|
271
|
-
TIME: "TIME",
|
|
272
|
-
TIMESTAMP: "TIMESTAMP",
|
|
273
|
-
UUID: "UUID"
|
|
274
|
-
};
|
|
275
|
-
var DatabaseErrorException = class _DatabaseErrorException extends RDSDataServiceException {
|
|
276
|
-
static {
|
|
277
|
-
__name(this, "DatabaseErrorException");
|
|
278
|
-
}
|
|
279
|
-
name = "DatabaseErrorException";
|
|
280
|
-
$fault = "client";
|
|
281
|
-
/**
|
|
282
|
-
* @internal
|
|
283
|
-
*/
|
|
284
|
-
constructor(opts) {
|
|
285
|
-
super({
|
|
286
|
-
name: "DatabaseErrorException",
|
|
287
|
-
$fault: "client",
|
|
288
|
-
...opts
|
|
289
|
-
});
|
|
290
|
-
Object.setPrototypeOf(this, _DatabaseErrorException.prototype);
|
|
291
|
-
}
|
|
292
|
-
};
|
|
293
|
-
var DatabaseNotFoundException = class _DatabaseNotFoundException extends RDSDataServiceException {
|
|
294
|
-
static {
|
|
295
|
-
__name(this, "DatabaseNotFoundException");
|
|
296
|
-
}
|
|
297
|
-
name = "DatabaseNotFoundException";
|
|
298
|
-
$fault = "client";
|
|
299
|
-
/**
|
|
300
|
-
* @internal
|
|
301
|
-
*/
|
|
302
|
-
constructor(opts) {
|
|
303
|
-
super({
|
|
304
|
-
name: "DatabaseNotFoundException",
|
|
305
|
-
$fault: "client",
|
|
306
|
-
...opts
|
|
307
|
-
});
|
|
308
|
-
Object.setPrototypeOf(this, _DatabaseNotFoundException.prototype);
|
|
309
|
-
}
|
|
310
|
-
};
|
|
311
|
-
var DatabaseResumingException = class _DatabaseResumingException extends RDSDataServiceException {
|
|
312
|
-
static {
|
|
313
|
-
__name(this, "DatabaseResumingException");
|
|
314
|
-
}
|
|
315
|
-
name = "DatabaseResumingException";
|
|
316
|
-
$fault = "client";
|
|
317
|
-
/**
|
|
318
|
-
* @internal
|
|
319
|
-
*/
|
|
320
|
-
constructor(opts) {
|
|
321
|
-
super({
|
|
322
|
-
name: "DatabaseResumingException",
|
|
323
|
-
$fault: "client",
|
|
324
|
-
...opts
|
|
325
|
-
});
|
|
326
|
-
Object.setPrototypeOf(this, _DatabaseResumingException.prototype);
|
|
327
|
-
}
|
|
328
|
-
};
|
|
329
|
-
var DatabaseUnavailableException = class _DatabaseUnavailableException extends RDSDataServiceException {
|
|
330
|
-
static {
|
|
331
|
-
__name(this, "DatabaseUnavailableException");
|
|
332
|
-
}
|
|
333
|
-
name = "DatabaseUnavailableException";
|
|
334
|
-
$fault = "server";
|
|
335
|
-
/**
|
|
336
|
-
* @internal
|
|
337
|
-
*/
|
|
338
|
-
constructor(opts) {
|
|
339
|
-
super({
|
|
340
|
-
name: "DatabaseUnavailableException",
|
|
341
|
-
$fault: "server",
|
|
342
|
-
...opts
|
|
343
|
-
});
|
|
344
|
-
Object.setPrototypeOf(this, _DatabaseUnavailableException.prototype);
|
|
345
|
-
}
|
|
346
|
-
};
|
|
347
|
-
var ForbiddenException = class _ForbiddenException extends RDSDataServiceException {
|
|
348
|
-
static {
|
|
349
|
-
__name(this, "ForbiddenException");
|
|
350
|
-
}
|
|
351
|
-
name = "ForbiddenException";
|
|
352
|
-
$fault = "client";
|
|
353
|
-
/**
|
|
354
|
-
* @internal
|
|
355
|
-
*/
|
|
356
|
-
constructor(opts) {
|
|
357
|
-
super({
|
|
358
|
-
name: "ForbiddenException",
|
|
359
|
-
$fault: "client",
|
|
360
|
-
...opts
|
|
361
|
-
});
|
|
362
|
-
Object.setPrototypeOf(this, _ForbiddenException.prototype);
|
|
363
|
-
}
|
|
364
|
-
};
|
|
365
|
-
var HttpEndpointNotEnabledException = class _HttpEndpointNotEnabledException extends RDSDataServiceException {
|
|
366
|
-
static {
|
|
367
|
-
__name(this, "HttpEndpointNotEnabledException");
|
|
368
|
-
}
|
|
369
|
-
name = "HttpEndpointNotEnabledException";
|
|
370
|
-
$fault = "client";
|
|
371
|
-
/**
|
|
372
|
-
* @internal
|
|
373
|
-
*/
|
|
374
|
-
constructor(opts) {
|
|
375
|
-
super({
|
|
376
|
-
name: "HttpEndpointNotEnabledException",
|
|
377
|
-
$fault: "client",
|
|
378
|
-
...opts
|
|
379
|
-
});
|
|
380
|
-
Object.setPrototypeOf(this, _HttpEndpointNotEnabledException.prototype);
|
|
381
|
-
}
|
|
382
|
-
};
|
|
383
|
-
var InternalServerErrorException = class _InternalServerErrorException extends RDSDataServiceException {
|
|
384
|
-
static {
|
|
385
|
-
__name(this, "InternalServerErrorException");
|
|
386
|
-
}
|
|
387
|
-
name = "InternalServerErrorException";
|
|
388
|
-
$fault = "server";
|
|
389
|
-
/**
|
|
390
|
-
* @internal
|
|
391
|
-
*/
|
|
392
|
-
constructor(opts) {
|
|
393
|
-
super({
|
|
394
|
-
name: "InternalServerErrorException",
|
|
395
|
-
$fault: "server",
|
|
396
|
-
...opts
|
|
397
|
-
});
|
|
398
|
-
Object.setPrototypeOf(this, _InternalServerErrorException.prototype);
|
|
399
|
-
}
|
|
400
|
-
};
|
|
401
|
-
var InvalidResourceStateException = class _InvalidResourceStateException extends RDSDataServiceException {
|
|
402
|
-
static {
|
|
403
|
-
__name(this, "InvalidResourceStateException");
|
|
404
|
-
}
|
|
405
|
-
name = "InvalidResourceStateException";
|
|
406
|
-
$fault = "client";
|
|
407
|
-
/**
|
|
408
|
-
* @internal
|
|
409
|
-
*/
|
|
410
|
-
constructor(opts) {
|
|
411
|
-
super({
|
|
412
|
-
name: "InvalidResourceStateException",
|
|
413
|
-
$fault: "client",
|
|
414
|
-
...opts
|
|
415
|
-
});
|
|
416
|
-
Object.setPrototypeOf(this, _InvalidResourceStateException.prototype);
|
|
417
|
-
}
|
|
418
|
-
};
|
|
419
|
-
var InvalidSecretException = class _InvalidSecretException extends RDSDataServiceException {
|
|
420
|
-
static {
|
|
421
|
-
__name(this, "InvalidSecretException");
|
|
422
|
-
}
|
|
423
|
-
name = "InvalidSecretException";
|
|
424
|
-
$fault = "client";
|
|
425
|
-
/**
|
|
426
|
-
* @internal
|
|
427
|
-
*/
|
|
428
|
-
constructor(opts) {
|
|
429
|
-
super({
|
|
430
|
-
name: "InvalidSecretException",
|
|
431
|
-
$fault: "client",
|
|
432
|
-
...opts
|
|
433
|
-
});
|
|
434
|
-
Object.setPrototypeOf(this, _InvalidSecretException.prototype);
|
|
435
|
-
}
|
|
436
|
-
};
|
|
437
|
-
var SecretsErrorException = class _SecretsErrorException extends RDSDataServiceException {
|
|
438
|
-
static {
|
|
439
|
-
__name(this, "SecretsErrorException");
|
|
440
|
-
}
|
|
441
|
-
name = "SecretsErrorException";
|
|
442
|
-
$fault = "client";
|
|
443
|
-
/**
|
|
444
|
-
* @internal
|
|
445
|
-
*/
|
|
446
|
-
constructor(opts) {
|
|
447
|
-
super({
|
|
448
|
-
name: "SecretsErrorException",
|
|
449
|
-
$fault: "client",
|
|
450
|
-
...opts
|
|
451
|
-
});
|
|
452
|
-
Object.setPrototypeOf(this, _SecretsErrorException.prototype);
|
|
453
|
-
}
|
|
454
|
-
};
|
|
455
|
-
var ServiceUnavailableError = class _ServiceUnavailableError extends RDSDataServiceException {
|
|
456
|
-
static {
|
|
457
|
-
__name(this, "ServiceUnavailableError");
|
|
458
|
-
}
|
|
459
|
-
name = "ServiceUnavailableError";
|
|
460
|
-
$fault = "server";
|
|
461
|
-
/**
|
|
462
|
-
* @internal
|
|
463
|
-
*/
|
|
464
|
-
constructor(opts) {
|
|
465
|
-
super({
|
|
466
|
-
name: "ServiceUnavailableError",
|
|
467
|
-
$fault: "server",
|
|
468
|
-
...opts
|
|
469
|
-
});
|
|
470
|
-
Object.setPrototypeOf(this, _ServiceUnavailableError.prototype);
|
|
471
|
-
}
|
|
472
|
-
};
|
|
473
|
-
var StatementTimeoutException = class _StatementTimeoutException extends RDSDataServiceException {
|
|
474
|
-
static {
|
|
475
|
-
__name(this, "StatementTimeoutException");
|
|
476
|
-
}
|
|
477
|
-
name = "StatementTimeoutException";
|
|
478
|
-
$fault = "client";
|
|
479
|
-
/**
|
|
480
|
-
* <p>The database connection ID that executed the SQL statement.</p>
|
|
481
|
-
* @public
|
|
482
|
-
*/
|
|
483
|
-
dbConnectionId;
|
|
484
|
-
/**
|
|
485
|
-
* @internal
|
|
486
|
-
*/
|
|
487
|
-
constructor(opts) {
|
|
488
|
-
super({
|
|
489
|
-
name: "StatementTimeoutException",
|
|
490
|
-
$fault: "client",
|
|
491
|
-
...opts
|
|
492
|
-
});
|
|
493
|
-
Object.setPrototypeOf(this, _StatementTimeoutException.prototype);
|
|
494
|
-
this.dbConnectionId = opts.dbConnectionId;
|
|
495
|
-
}
|
|
496
|
-
};
|
|
497
|
-
var TransactionNotFoundException = class _TransactionNotFoundException extends RDSDataServiceException {
|
|
498
|
-
static {
|
|
499
|
-
__name(this, "TransactionNotFoundException");
|
|
500
|
-
}
|
|
501
|
-
name = "TransactionNotFoundException";
|
|
502
|
-
$fault = "client";
|
|
503
|
-
/**
|
|
504
|
-
* @internal
|
|
505
|
-
*/
|
|
506
|
-
constructor(opts) {
|
|
507
|
-
super({
|
|
508
|
-
name: "TransactionNotFoundException",
|
|
509
|
-
$fault: "client",
|
|
510
|
-
...opts
|
|
511
|
-
});
|
|
512
|
-
Object.setPrototypeOf(this, _TransactionNotFoundException.prototype);
|
|
513
|
-
}
|
|
514
|
-
};
|
|
515
|
-
var NotFoundException = class _NotFoundException extends RDSDataServiceException {
|
|
516
|
-
static {
|
|
517
|
-
__name(this, "NotFoundException");
|
|
518
|
-
}
|
|
519
|
-
name = "NotFoundException";
|
|
520
|
-
$fault = "client";
|
|
521
|
-
/**
|
|
522
|
-
* @internal
|
|
523
|
-
*/
|
|
524
|
-
constructor(opts) {
|
|
525
|
-
super({
|
|
526
|
-
name: "NotFoundException",
|
|
527
|
-
$fault: "client",
|
|
528
|
-
...opts
|
|
529
|
-
});
|
|
530
|
-
Object.setPrototypeOf(this, _NotFoundException.prototype);
|
|
531
|
-
}
|
|
532
|
-
};
|
|
533
|
-
var DecimalReturnType = {
|
|
534
|
-
DOUBLE_OR_LONG: "DOUBLE_OR_LONG",
|
|
535
|
-
STRING: "STRING"
|
|
536
|
-
};
|
|
537
|
-
var RecordsFormatType = {
|
|
538
|
-
JSON: "JSON",
|
|
539
|
-
NONE: "NONE"
|
|
540
|
-
};
|
|
541
|
-
var LongReturnType = {
|
|
542
|
-
LONG: "LONG",
|
|
543
|
-
STRING: "STRING"
|
|
544
|
-
};
|
|
545
|
-
var UnsupportedResultException = class _UnsupportedResultException extends RDSDataServiceException {
|
|
546
|
-
static {
|
|
547
|
-
__name(this, "UnsupportedResultException");
|
|
548
|
-
}
|
|
549
|
-
name = "UnsupportedResultException";
|
|
550
|
-
$fault = "client";
|
|
551
|
-
/**
|
|
552
|
-
* @internal
|
|
553
|
-
*/
|
|
554
|
-
constructor(opts) {
|
|
555
|
-
super({
|
|
556
|
-
name: "UnsupportedResultException",
|
|
557
|
-
$fault: "client",
|
|
558
|
-
...opts
|
|
559
|
-
});
|
|
560
|
-
Object.setPrototypeOf(this, _UnsupportedResultException.prototype);
|
|
561
|
-
}
|
|
562
|
-
};
|
|
563
|
-
var ArrayValue;
|
|
564
|
-
((ArrayValue2) => {
|
|
565
|
-
ArrayValue2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
566
|
-
if (value.booleanValues !== void 0) return visitor.booleanValues(value.booleanValues);
|
|
567
|
-
if (value.longValues !== void 0) return visitor.longValues(value.longValues);
|
|
568
|
-
if (value.doubleValues !== void 0) return visitor.doubleValues(value.doubleValues);
|
|
569
|
-
if (value.stringValues !== void 0) return visitor.stringValues(value.stringValues);
|
|
570
|
-
if (value.arrayValues !== void 0) return visitor.arrayValues(value.arrayValues);
|
|
571
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
572
|
-
}, "visit");
|
|
573
|
-
})(ArrayValue || (ArrayValue = {}));
|
|
574
|
-
var Field;
|
|
575
|
-
((Field2) => {
|
|
576
|
-
Field2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
577
|
-
if (value.isNull !== void 0) return visitor.isNull(value.isNull);
|
|
578
|
-
if (value.booleanValue !== void 0) return visitor.booleanValue(value.booleanValue);
|
|
579
|
-
if (value.longValue !== void 0) return visitor.longValue(value.longValue);
|
|
580
|
-
if (value.doubleValue !== void 0) return visitor.doubleValue(value.doubleValue);
|
|
581
|
-
if (value.stringValue !== void 0) return visitor.stringValue(value.stringValue);
|
|
582
|
-
if (value.blobValue !== void 0) return visitor.blobValue(value.blobValue);
|
|
583
|
-
if (value.arrayValue !== void 0) return visitor.arrayValue(value.arrayValue);
|
|
584
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
585
|
-
}, "visit");
|
|
586
|
-
})(Field || (Field = {}));
|
|
587
|
-
var Value;
|
|
588
|
-
((Value3) => {
|
|
589
|
-
Value3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
590
|
-
if (value.isNull !== void 0) return visitor.isNull(value.isNull);
|
|
591
|
-
if (value.bitValue !== void 0) return visitor.bitValue(value.bitValue);
|
|
592
|
-
if (value.bigIntValue !== void 0) return visitor.bigIntValue(value.bigIntValue);
|
|
593
|
-
if (value.intValue !== void 0) return visitor.intValue(value.intValue);
|
|
594
|
-
if (value.doubleValue !== void 0) return visitor.doubleValue(value.doubleValue);
|
|
595
|
-
if (value.realValue !== void 0) return visitor.realValue(value.realValue);
|
|
596
|
-
if (value.stringValue !== void 0) return visitor.stringValue(value.stringValue);
|
|
597
|
-
if (value.blobValue !== void 0) return visitor.blobValue(value.blobValue);
|
|
598
|
-
if (value.arrayValues !== void 0) return visitor.arrayValues(value.arrayValues);
|
|
599
|
-
if (value.structValue !== void 0) return visitor.structValue(value.structValue);
|
|
600
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
601
|
-
}, "visit");
|
|
602
|
-
})(Value || (Value = {}));
|
|
603
|
-
|
|
604
|
-
// src/protocols/Aws_restJson1.ts
|
|
605
|
-
var se_BatchExecuteStatementCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
606
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
607
|
-
const headers = {
|
|
608
|
-
"content-type": "application/json"
|
|
609
|
-
};
|
|
610
|
-
b.bp("/BatchExecute");
|
|
611
|
-
let body;
|
|
612
|
-
body = JSON.stringify(
|
|
613
|
-
(0, import_smithy_client.take)(input, {
|
|
614
|
-
database: [],
|
|
615
|
-
parameterSets: /* @__PURE__ */ __name((_) => se_SqlParameterSets(_, context), "parameterSets"),
|
|
616
|
-
resourceArn: [],
|
|
617
|
-
schema: [],
|
|
618
|
-
secretArn: [],
|
|
619
|
-
sql: [],
|
|
620
|
-
transactionId: []
|
|
621
|
-
})
|
|
622
|
-
);
|
|
623
|
-
b.m("POST").h(headers).b(body);
|
|
624
|
-
return b.build();
|
|
625
|
-
}, "se_BatchExecuteStatementCommand");
|
|
626
|
-
var se_BeginTransactionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
627
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
628
|
-
const headers = {
|
|
629
|
-
"content-type": "application/json"
|
|
630
|
-
};
|
|
631
|
-
b.bp("/BeginTransaction");
|
|
632
|
-
let body;
|
|
633
|
-
body = JSON.stringify(
|
|
634
|
-
(0, import_smithy_client.take)(input, {
|
|
635
|
-
database: [],
|
|
636
|
-
resourceArn: [],
|
|
637
|
-
schema: [],
|
|
638
|
-
secretArn: []
|
|
639
|
-
})
|
|
640
|
-
);
|
|
641
|
-
b.m("POST").h(headers).b(body);
|
|
642
|
-
return b.build();
|
|
643
|
-
}, "se_BeginTransactionCommand");
|
|
644
|
-
var se_CommitTransactionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
645
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
646
|
-
const headers = {
|
|
647
|
-
"content-type": "application/json"
|
|
648
|
-
};
|
|
649
|
-
b.bp("/CommitTransaction");
|
|
650
|
-
let body;
|
|
651
|
-
body = JSON.stringify(
|
|
652
|
-
(0, import_smithy_client.take)(input, {
|
|
653
|
-
resourceArn: [],
|
|
654
|
-
secretArn: [],
|
|
655
|
-
transactionId: []
|
|
656
|
-
})
|
|
657
|
-
);
|
|
658
|
-
b.m("POST").h(headers).b(body);
|
|
659
|
-
return b.build();
|
|
660
|
-
}, "se_CommitTransactionCommand");
|
|
661
|
-
var se_ExecuteSqlCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
662
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
663
|
-
const headers = {
|
|
664
|
-
"content-type": "application/json"
|
|
665
|
-
};
|
|
666
|
-
b.bp("/ExecuteSql");
|
|
667
|
-
let body;
|
|
668
|
-
body = JSON.stringify(
|
|
669
|
-
(0, import_smithy_client.take)(input, {
|
|
670
|
-
awsSecretStoreArn: [],
|
|
671
|
-
database: [],
|
|
672
|
-
dbClusterOrInstanceArn: [],
|
|
673
|
-
schema: [],
|
|
674
|
-
sqlStatements: []
|
|
675
|
-
})
|
|
676
|
-
);
|
|
677
|
-
b.m("POST").h(headers).b(body);
|
|
678
|
-
return b.build();
|
|
679
|
-
}, "se_ExecuteSqlCommand");
|
|
680
|
-
var se_ExecuteStatementCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
681
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
682
|
-
const headers = {
|
|
683
|
-
"content-type": "application/json"
|
|
684
|
-
};
|
|
685
|
-
b.bp("/Execute");
|
|
686
|
-
let body;
|
|
687
|
-
body = JSON.stringify(
|
|
688
|
-
(0, import_smithy_client.take)(input, {
|
|
689
|
-
continueAfterTimeout: [],
|
|
690
|
-
database: [],
|
|
691
|
-
formatRecordsAs: [],
|
|
692
|
-
includeResultMetadata: [],
|
|
693
|
-
parameters: /* @__PURE__ */ __name((_) => se_SqlParametersList(_, context), "parameters"),
|
|
694
|
-
resourceArn: [],
|
|
695
|
-
resultSetOptions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "resultSetOptions"),
|
|
696
|
-
schema: [],
|
|
697
|
-
secretArn: [],
|
|
698
|
-
sql: [],
|
|
699
|
-
transactionId: []
|
|
700
|
-
})
|
|
701
|
-
);
|
|
702
|
-
b.m("POST").h(headers).b(body);
|
|
703
|
-
return b.build();
|
|
704
|
-
}, "se_ExecuteStatementCommand");
|
|
705
|
-
var se_RollbackTransactionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
706
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
707
|
-
const headers = {
|
|
708
|
-
"content-type": "application/json"
|
|
709
|
-
};
|
|
710
|
-
b.bp("/RollbackTransaction");
|
|
711
|
-
let body;
|
|
712
|
-
body = JSON.stringify(
|
|
713
|
-
(0, import_smithy_client.take)(input, {
|
|
714
|
-
resourceArn: [],
|
|
715
|
-
secretArn: [],
|
|
716
|
-
transactionId: []
|
|
717
|
-
})
|
|
718
|
-
);
|
|
719
|
-
b.m("POST").h(headers).b(body);
|
|
720
|
-
return b.build();
|
|
721
|
-
}, "se_RollbackTransactionCommand");
|
|
722
|
-
var de_BatchExecuteStatementCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
723
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
724
|
-
return de_CommandError(output, context);
|
|
725
|
-
}
|
|
726
|
-
const contents = (0, import_smithy_client.map)({
|
|
727
|
-
$metadata: deserializeMetadata(output)
|
|
728
|
-
});
|
|
729
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
730
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
731
|
-
updateResults: /* @__PURE__ */ __name((_) => de_UpdateResults(_, context), "updateResults")
|
|
732
|
-
});
|
|
733
|
-
Object.assign(contents, doc);
|
|
734
|
-
return contents;
|
|
735
|
-
}, "de_BatchExecuteStatementCommand");
|
|
736
|
-
var de_BeginTransactionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
737
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
738
|
-
return de_CommandError(output, context);
|
|
739
|
-
}
|
|
740
|
-
const contents = (0, import_smithy_client.map)({
|
|
741
|
-
$metadata: deserializeMetadata(output)
|
|
742
|
-
});
|
|
743
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
744
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
745
|
-
transactionId: import_smithy_client.expectString
|
|
746
|
-
});
|
|
747
|
-
Object.assign(contents, doc);
|
|
748
|
-
return contents;
|
|
749
|
-
}, "de_BeginTransactionCommand");
|
|
750
|
-
var de_CommitTransactionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
751
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
752
|
-
return de_CommandError(output, context);
|
|
753
|
-
}
|
|
754
|
-
const contents = (0, import_smithy_client.map)({
|
|
755
|
-
$metadata: deserializeMetadata(output)
|
|
756
|
-
});
|
|
757
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
758
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
759
|
-
transactionStatus: import_smithy_client.expectString
|
|
760
|
-
});
|
|
761
|
-
Object.assign(contents, doc);
|
|
762
|
-
return contents;
|
|
763
|
-
}, "de_CommitTransactionCommand");
|
|
764
|
-
var de_ExecuteSqlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
765
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
766
|
-
return de_CommandError(output, context);
|
|
767
|
-
}
|
|
768
|
-
const contents = (0, import_smithy_client.map)({
|
|
769
|
-
$metadata: deserializeMetadata(output)
|
|
770
|
-
});
|
|
771
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
772
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
773
|
-
sqlStatementResults: /* @__PURE__ */ __name((_) => de_SqlStatementResults(_, context), "sqlStatementResults")
|
|
774
|
-
});
|
|
775
|
-
Object.assign(contents, doc);
|
|
776
|
-
return contents;
|
|
777
|
-
}, "de_ExecuteSqlCommand");
|
|
778
|
-
var de_ExecuteStatementCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
779
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
780
|
-
return de_CommandError(output, context);
|
|
781
|
-
}
|
|
782
|
-
const contents = (0, import_smithy_client.map)({
|
|
783
|
-
$metadata: deserializeMetadata(output)
|
|
784
|
-
});
|
|
785
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
786
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
787
|
-
columnMetadata: import_smithy_client._json,
|
|
788
|
-
formattedRecords: import_smithy_client.expectString,
|
|
789
|
-
generatedFields: /* @__PURE__ */ __name((_) => de_FieldList(_, context), "generatedFields"),
|
|
790
|
-
numberOfRecordsUpdated: import_smithy_client.expectLong,
|
|
791
|
-
records: /* @__PURE__ */ __name((_) => de_SqlRecords(_, context), "records")
|
|
792
|
-
});
|
|
793
|
-
Object.assign(contents, doc);
|
|
794
|
-
return contents;
|
|
795
|
-
}, "de_ExecuteStatementCommand");
|
|
796
|
-
var de_RollbackTransactionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
797
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
798
|
-
return de_CommandError(output, context);
|
|
799
|
-
}
|
|
800
|
-
const contents = (0, import_smithy_client.map)({
|
|
801
|
-
$metadata: deserializeMetadata(output)
|
|
802
|
-
});
|
|
803
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
804
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
805
|
-
transactionStatus: import_smithy_client.expectString
|
|
806
|
-
});
|
|
807
|
-
Object.assign(contents, doc);
|
|
808
|
-
return contents;
|
|
809
|
-
}, "de_RollbackTransactionCommand");
|
|
810
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
811
|
-
const parsedOutput = {
|
|
812
|
-
...output,
|
|
813
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
814
|
-
};
|
|
815
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
816
|
-
switch (errorCode) {
|
|
817
|
-
case "AccessDeniedException":
|
|
818
|
-
case "com.amazonaws.rdsdata#AccessDeniedException":
|
|
819
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
820
|
-
case "BadRequestException":
|
|
821
|
-
case "com.amazonaws.rdsdata#BadRequestException":
|
|
822
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
823
|
-
case "DatabaseErrorException":
|
|
824
|
-
case "com.amazonaws.rdsdata#DatabaseErrorException":
|
|
825
|
-
throw await de_DatabaseErrorExceptionRes(parsedOutput, context);
|
|
826
|
-
case "DatabaseNotFoundException":
|
|
827
|
-
case "com.amazonaws.rdsdata#DatabaseNotFoundException":
|
|
828
|
-
throw await de_DatabaseNotFoundExceptionRes(parsedOutput, context);
|
|
829
|
-
case "DatabaseResumingException":
|
|
830
|
-
case "com.amazonaws.rdsdata#DatabaseResumingException":
|
|
831
|
-
throw await de_DatabaseResumingExceptionRes(parsedOutput, context);
|
|
832
|
-
case "DatabaseUnavailableException":
|
|
833
|
-
case "com.amazonaws.rdsdata#DatabaseUnavailableException":
|
|
834
|
-
throw await de_DatabaseUnavailableExceptionRes(parsedOutput, context);
|
|
835
|
-
case "ForbiddenException":
|
|
836
|
-
case "com.amazonaws.rdsdata#ForbiddenException":
|
|
837
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
838
|
-
case "HttpEndpointNotEnabledException":
|
|
839
|
-
case "com.amazonaws.rdsdata#HttpEndpointNotEnabledException":
|
|
840
|
-
throw await de_HttpEndpointNotEnabledExceptionRes(parsedOutput, context);
|
|
841
|
-
case "InternalServerErrorException":
|
|
842
|
-
case "com.amazonaws.rdsdata#InternalServerErrorException":
|
|
843
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
844
|
-
case "InvalidResourceStateException":
|
|
845
|
-
case "com.amazonaws.rdsdata#InvalidResourceStateException":
|
|
846
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
847
|
-
case "InvalidSecretException":
|
|
848
|
-
case "com.amazonaws.rdsdata#InvalidSecretException":
|
|
849
|
-
throw await de_InvalidSecretExceptionRes(parsedOutput, context);
|
|
850
|
-
case "SecretsErrorException":
|
|
851
|
-
case "com.amazonaws.rdsdata#SecretsErrorException":
|
|
852
|
-
throw await de_SecretsErrorExceptionRes(parsedOutput, context);
|
|
853
|
-
case "ServiceUnavailableError":
|
|
854
|
-
case "com.amazonaws.rdsdata#ServiceUnavailableError":
|
|
855
|
-
throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
|
|
856
|
-
case "StatementTimeoutException":
|
|
857
|
-
case "com.amazonaws.rdsdata#StatementTimeoutException":
|
|
858
|
-
throw await de_StatementTimeoutExceptionRes(parsedOutput, context);
|
|
859
|
-
case "TransactionNotFoundException":
|
|
860
|
-
case "com.amazonaws.rdsdata#TransactionNotFoundException":
|
|
861
|
-
throw await de_TransactionNotFoundExceptionRes(parsedOutput, context);
|
|
862
|
-
case "NotFoundException":
|
|
863
|
-
case "com.amazonaws.rdsdata#NotFoundException":
|
|
864
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
865
|
-
case "UnsupportedResultException":
|
|
866
|
-
case "com.amazonaws.rdsdata#UnsupportedResultException":
|
|
867
|
-
throw await de_UnsupportedResultExceptionRes(parsedOutput, context);
|
|
868
|
-
default:
|
|
869
|
-
const parsedBody = parsedOutput.body;
|
|
870
|
-
return throwDefaultError({
|
|
871
|
-
output,
|
|
872
|
-
parsedBody,
|
|
873
|
-
errorCode
|
|
874
|
-
});
|
|
875
|
-
}
|
|
876
|
-
}, "de_CommandError");
|
|
877
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(RDSDataServiceException);
|
|
878
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
879
|
-
const contents = (0, import_smithy_client.map)({});
|
|
880
|
-
const data = parsedOutput.body;
|
|
881
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
882
|
-
message: import_smithy_client.expectString
|
|
883
|
-
});
|
|
884
|
-
Object.assign(contents, doc);
|
|
885
|
-
const exception = new AccessDeniedException({
|
|
886
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
887
|
-
...contents
|
|
888
|
-
});
|
|
889
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
890
|
-
}, "de_AccessDeniedExceptionRes");
|
|
891
|
-
var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
892
|
-
const contents = (0, import_smithy_client.map)({});
|
|
893
|
-
const data = parsedOutput.body;
|
|
894
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
895
|
-
message: import_smithy_client.expectString
|
|
896
|
-
});
|
|
897
|
-
Object.assign(contents, doc);
|
|
898
|
-
const exception = new BadRequestException({
|
|
899
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
900
|
-
...contents
|
|
901
|
-
});
|
|
902
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
903
|
-
}, "de_BadRequestExceptionRes");
|
|
904
|
-
var de_DatabaseErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
905
|
-
const contents = (0, import_smithy_client.map)({});
|
|
906
|
-
const data = parsedOutput.body;
|
|
907
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
908
|
-
message: import_smithy_client.expectString
|
|
909
|
-
});
|
|
910
|
-
Object.assign(contents, doc);
|
|
911
|
-
const exception = new DatabaseErrorException({
|
|
912
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
913
|
-
...contents
|
|
914
|
-
});
|
|
915
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
916
|
-
}, "de_DatabaseErrorExceptionRes");
|
|
917
|
-
var de_DatabaseNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
918
|
-
const contents = (0, import_smithy_client.map)({});
|
|
919
|
-
const data = parsedOutput.body;
|
|
920
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
921
|
-
message: import_smithy_client.expectString
|
|
922
|
-
});
|
|
923
|
-
Object.assign(contents, doc);
|
|
924
|
-
const exception = new DatabaseNotFoundException({
|
|
925
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
926
|
-
...contents
|
|
927
|
-
});
|
|
928
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
929
|
-
}, "de_DatabaseNotFoundExceptionRes");
|
|
930
|
-
var de_DatabaseResumingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
931
|
-
const contents = (0, import_smithy_client.map)({});
|
|
932
|
-
const data = parsedOutput.body;
|
|
933
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
934
|
-
message: import_smithy_client.expectString
|
|
935
|
-
});
|
|
936
|
-
Object.assign(contents, doc);
|
|
937
|
-
const exception = new DatabaseResumingException({
|
|
938
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
939
|
-
...contents
|
|
940
|
-
});
|
|
941
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
942
|
-
}, "de_DatabaseResumingExceptionRes");
|
|
943
|
-
var de_DatabaseUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
944
|
-
const contents = (0, import_smithy_client.map)({});
|
|
945
|
-
const data = parsedOutput.body;
|
|
946
|
-
const doc = (0, import_smithy_client.take)(data, {});
|
|
947
|
-
Object.assign(contents, doc);
|
|
948
|
-
const exception = new DatabaseUnavailableException({
|
|
949
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
950
|
-
...contents
|
|
951
|
-
});
|
|
952
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
953
|
-
}, "de_DatabaseUnavailableExceptionRes");
|
|
954
|
-
var de_ForbiddenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
955
|
-
const contents = (0, import_smithy_client.map)({});
|
|
956
|
-
const data = parsedOutput.body;
|
|
957
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
958
|
-
message: import_smithy_client.expectString
|
|
959
|
-
});
|
|
960
|
-
Object.assign(contents, doc);
|
|
961
|
-
const exception = new ForbiddenException({
|
|
962
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
963
|
-
...contents
|
|
964
|
-
});
|
|
965
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
966
|
-
}, "de_ForbiddenExceptionRes");
|
|
967
|
-
var de_HttpEndpointNotEnabledExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
968
|
-
const contents = (0, import_smithy_client.map)({});
|
|
969
|
-
const data = parsedOutput.body;
|
|
970
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
971
|
-
message: import_smithy_client.expectString
|
|
972
|
-
});
|
|
973
|
-
Object.assign(contents, doc);
|
|
974
|
-
const exception = new HttpEndpointNotEnabledException({
|
|
975
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
976
|
-
...contents
|
|
977
|
-
});
|
|
978
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
979
|
-
}, "de_HttpEndpointNotEnabledExceptionRes");
|
|
980
|
-
var de_InternalServerErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
981
|
-
const contents = (0, import_smithy_client.map)({});
|
|
982
|
-
const data = parsedOutput.body;
|
|
983
|
-
const doc = (0, import_smithy_client.take)(data, {});
|
|
984
|
-
Object.assign(contents, doc);
|
|
985
|
-
const exception = new InternalServerErrorException({
|
|
986
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
987
|
-
...contents
|
|
988
|
-
});
|
|
989
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
990
|
-
}, "de_InternalServerErrorExceptionRes");
|
|
991
|
-
var de_InvalidResourceStateExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
992
|
-
const contents = (0, import_smithy_client.map)({});
|
|
993
|
-
const data = parsedOutput.body;
|
|
994
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
995
|
-
message: import_smithy_client.expectString
|
|
996
|
-
});
|
|
997
|
-
Object.assign(contents, doc);
|
|
998
|
-
const exception = new InvalidResourceStateException({
|
|
999
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1000
|
-
...contents
|
|
1001
|
-
});
|
|
1002
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1003
|
-
}, "de_InvalidResourceStateExceptionRes");
|
|
1004
|
-
var de_InvalidSecretExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1005
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1006
|
-
const data = parsedOutput.body;
|
|
1007
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1008
|
-
message: import_smithy_client.expectString
|
|
1009
|
-
});
|
|
1010
|
-
Object.assign(contents, doc);
|
|
1011
|
-
const exception = new InvalidSecretException({
|
|
1012
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1013
|
-
...contents
|
|
1014
|
-
});
|
|
1015
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1016
|
-
}, "de_InvalidSecretExceptionRes");
|
|
1017
|
-
var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1018
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1019
|
-
const data = parsedOutput.body;
|
|
1020
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1021
|
-
message: import_smithy_client.expectString
|
|
1022
|
-
});
|
|
1023
|
-
Object.assign(contents, doc);
|
|
1024
|
-
const exception = new NotFoundException({
|
|
1025
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1026
|
-
...contents
|
|
1027
|
-
});
|
|
1028
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1029
|
-
}, "de_NotFoundExceptionRes");
|
|
1030
|
-
var de_SecretsErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1031
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1032
|
-
const data = parsedOutput.body;
|
|
1033
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1034
|
-
message: import_smithy_client.expectString
|
|
1035
|
-
});
|
|
1036
|
-
Object.assign(contents, doc);
|
|
1037
|
-
const exception = new SecretsErrorException({
|
|
1038
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1039
|
-
...contents
|
|
1040
|
-
});
|
|
1041
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1042
|
-
}, "de_SecretsErrorExceptionRes");
|
|
1043
|
-
var de_ServiceUnavailableErrorRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1044
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1045
|
-
const data = parsedOutput.body;
|
|
1046
|
-
const doc = (0, import_smithy_client.take)(data, {});
|
|
1047
|
-
Object.assign(contents, doc);
|
|
1048
|
-
const exception = new ServiceUnavailableError({
|
|
1049
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1050
|
-
...contents
|
|
1051
|
-
});
|
|
1052
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1053
|
-
}, "de_ServiceUnavailableErrorRes");
|
|
1054
|
-
var de_StatementTimeoutExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1055
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1056
|
-
const data = parsedOutput.body;
|
|
1057
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1058
|
-
dbConnectionId: import_smithy_client.expectLong,
|
|
1059
|
-
message: import_smithy_client.expectString
|
|
1060
|
-
});
|
|
1061
|
-
Object.assign(contents, doc);
|
|
1062
|
-
const exception = new StatementTimeoutException({
|
|
1063
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1064
|
-
...contents
|
|
1065
|
-
});
|
|
1066
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1067
|
-
}, "de_StatementTimeoutExceptionRes");
|
|
1068
|
-
var de_TransactionNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1069
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1070
|
-
const data = parsedOutput.body;
|
|
1071
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1072
|
-
message: import_smithy_client.expectString
|
|
1073
|
-
});
|
|
1074
|
-
Object.assign(contents, doc);
|
|
1075
|
-
const exception = new TransactionNotFoundException({
|
|
1076
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1077
|
-
...contents
|
|
1078
|
-
});
|
|
1079
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1080
|
-
}, "de_TransactionNotFoundExceptionRes");
|
|
1081
|
-
var de_UnsupportedResultExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1082
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1083
|
-
const data = parsedOutput.body;
|
|
1084
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1085
|
-
message: import_smithy_client.expectString
|
|
1086
|
-
});
|
|
1087
|
-
Object.assign(contents, doc);
|
|
1088
|
-
const exception = new UnsupportedResultException({
|
|
1089
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1090
|
-
...contents
|
|
1091
|
-
});
|
|
1092
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1093
|
-
}, "de_UnsupportedResultExceptionRes");
|
|
1094
|
-
var se_ArrayOfArray = /* @__PURE__ */ __name((input, context) => {
|
|
1095
|
-
return input.filter((e) => e != null).map((entry) => {
|
|
1096
|
-
return se_ArrayValue(entry, context);
|
|
1097
|
-
});
|
|
1098
|
-
}, "se_ArrayOfArray");
|
|
1099
|
-
var se_ArrayValue = /* @__PURE__ */ __name((input, context) => {
|
|
1100
|
-
return ArrayValue.visit(input, {
|
|
1101
|
-
arrayValues: /* @__PURE__ */ __name((value) => ({ arrayValues: se_ArrayOfArray(value, context) }), "arrayValues"),
|
|
1102
|
-
booleanValues: /* @__PURE__ */ __name((value) => ({ booleanValues: (0, import_smithy_client._json)(value) }), "booleanValues"),
|
|
1103
|
-
doubleValues: /* @__PURE__ */ __name((value) => ({ doubleValues: se_DoubleArray(value, context) }), "doubleValues"),
|
|
1104
|
-
longValues: /* @__PURE__ */ __name((value) => ({ longValues: (0, import_smithy_client._json)(value) }), "longValues"),
|
|
1105
|
-
stringValues: /* @__PURE__ */ __name((value) => ({ stringValues: (0, import_smithy_client._json)(value) }), "stringValues"),
|
|
1106
|
-
_: /* @__PURE__ */ __name((name, value) => ({ [name]: value }), "_")
|
|
1107
|
-
});
|
|
1108
|
-
}, "se_ArrayValue");
|
|
1109
|
-
var se_DoubleArray = /* @__PURE__ */ __name((input, context) => {
|
|
1110
|
-
return input.filter((e) => e != null).map((entry) => {
|
|
1111
|
-
return (0, import_smithy_client.serializeFloat)(entry);
|
|
1112
|
-
});
|
|
1113
|
-
}, "se_DoubleArray");
|
|
1114
|
-
var se_Field = /* @__PURE__ */ __name((input, context) => {
|
|
1115
|
-
return Field.visit(input, {
|
|
1116
|
-
arrayValue: /* @__PURE__ */ __name((value) => ({ arrayValue: se_ArrayValue(value, context) }), "arrayValue"),
|
|
1117
|
-
blobValue: /* @__PURE__ */ __name((value) => ({ blobValue: context.base64Encoder(value) }), "blobValue"),
|
|
1118
|
-
booleanValue: /* @__PURE__ */ __name((value) => ({ booleanValue: value }), "booleanValue"),
|
|
1119
|
-
doubleValue: /* @__PURE__ */ __name((value) => ({ doubleValue: (0, import_smithy_client.serializeFloat)(value) }), "doubleValue"),
|
|
1120
|
-
isNull: /* @__PURE__ */ __name((value) => ({ isNull: value }), "isNull"),
|
|
1121
|
-
longValue: /* @__PURE__ */ __name((value) => ({ longValue: value }), "longValue"),
|
|
1122
|
-
stringValue: /* @__PURE__ */ __name((value) => ({ stringValue: value }), "stringValue"),
|
|
1123
|
-
_: /* @__PURE__ */ __name((name, value) => ({ [name]: value }), "_")
|
|
1124
|
-
});
|
|
1125
|
-
}, "se_Field");
|
|
1126
|
-
var se_SqlParameter = /* @__PURE__ */ __name((input, context) => {
|
|
1127
|
-
return (0, import_smithy_client.take)(input, {
|
|
1128
|
-
name: [],
|
|
1129
|
-
typeHint: [],
|
|
1130
|
-
value: /* @__PURE__ */ __name((_) => se_Field(_, context), "value")
|
|
1131
|
-
});
|
|
1132
|
-
}, "se_SqlParameter");
|
|
1133
|
-
var se_SqlParameterSets = /* @__PURE__ */ __name((input, context) => {
|
|
1134
|
-
return input.filter((e) => e != null).map((entry) => {
|
|
1135
|
-
return se_SqlParametersList(entry, context);
|
|
1136
|
-
});
|
|
1137
|
-
}, "se_SqlParameterSets");
|
|
1138
|
-
var se_SqlParametersList = /* @__PURE__ */ __name((input, context) => {
|
|
1139
|
-
return input.filter((e) => e != null).map((entry) => {
|
|
1140
|
-
return se_SqlParameter(entry, context);
|
|
1141
|
-
});
|
|
1142
|
-
}, "se_SqlParametersList");
|
|
1143
|
-
var de_ArrayOfArray = /* @__PURE__ */ __name((output, context) => {
|
|
1144
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1145
|
-
return de_ArrayValue((0, import_core2.awsExpectUnion)(entry), context);
|
|
1146
|
-
});
|
|
1147
|
-
return retVal;
|
|
1148
|
-
}, "de_ArrayOfArray");
|
|
1149
|
-
var de_ArrayValue = /* @__PURE__ */ __name((output, context) => {
|
|
1150
|
-
if (output.arrayValues != null) {
|
|
1151
|
-
return {
|
|
1152
|
-
arrayValues: de_ArrayOfArray(output.arrayValues, context)
|
|
326
|
+
const RecordsFormatType = {
|
|
327
|
+
JSON: "JSON",
|
|
328
|
+
NONE: "NONE",
|
|
329
|
+
};
|
|
330
|
+
const LongReturnType = {
|
|
331
|
+
LONG: "LONG",
|
|
332
|
+
STRING: "STRING",
|
|
333
|
+
};
|
|
334
|
+
class UnsupportedResultException extends RDSDataServiceException {
|
|
335
|
+
name = "UnsupportedResultException";
|
|
336
|
+
$fault = "client";
|
|
337
|
+
constructor(opts) {
|
|
338
|
+
super({
|
|
339
|
+
name: "UnsupportedResultException",
|
|
340
|
+
$fault: "client",
|
|
341
|
+
...opts,
|
|
342
|
+
});
|
|
343
|
+
Object.setPrototypeOf(this, UnsupportedResultException.prototype);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
exports.ArrayValue = void 0;
|
|
347
|
+
(function (ArrayValue) {
|
|
348
|
+
ArrayValue.visit = (value, visitor) => {
|
|
349
|
+
if (value.booleanValues !== undefined)
|
|
350
|
+
return visitor.booleanValues(value.booleanValues);
|
|
351
|
+
if (value.longValues !== undefined)
|
|
352
|
+
return visitor.longValues(value.longValues);
|
|
353
|
+
if (value.doubleValues !== undefined)
|
|
354
|
+
return visitor.doubleValues(value.doubleValues);
|
|
355
|
+
if (value.stringValues !== undefined)
|
|
356
|
+
return visitor.stringValues(value.stringValues);
|
|
357
|
+
if (value.arrayValues !== undefined)
|
|
358
|
+
return visitor.arrayValues(value.arrayValues);
|
|
359
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1153
360
|
};
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
361
|
+
})(exports.ArrayValue || (exports.ArrayValue = {}));
|
|
362
|
+
exports.Field = void 0;
|
|
363
|
+
(function (Field) {
|
|
364
|
+
Field.visit = (value, visitor) => {
|
|
365
|
+
if (value.isNull !== undefined)
|
|
366
|
+
return visitor.isNull(value.isNull);
|
|
367
|
+
if (value.booleanValue !== undefined)
|
|
368
|
+
return visitor.booleanValue(value.booleanValue);
|
|
369
|
+
if (value.longValue !== undefined)
|
|
370
|
+
return visitor.longValue(value.longValue);
|
|
371
|
+
if (value.doubleValue !== undefined)
|
|
372
|
+
return visitor.doubleValue(value.doubleValue);
|
|
373
|
+
if (value.stringValue !== undefined)
|
|
374
|
+
return visitor.stringValue(value.stringValue);
|
|
375
|
+
if (value.blobValue !== undefined)
|
|
376
|
+
return visitor.blobValue(value.blobValue);
|
|
377
|
+
if (value.arrayValue !== undefined)
|
|
378
|
+
return visitor.arrayValue(value.arrayValue);
|
|
379
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1158
380
|
};
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
381
|
+
})(exports.Field || (exports.Field = {}));
|
|
382
|
+
exports.Value = void 0;
|
|
383
|
+
(function (Value) {
|
|
384
|
+
Value.visit = (value, visitor) => {
|
|
385
|
+
if (value.isNull !== undefined)
|
|
386
|
+
return visitor.isNull(value.isNull);
|
|
387
|
+
if (value.bitValue !== undefined)
|
|
388
|
+
return visitor.bitValue(value.bitValue);
|
|
389
|
+
if (value.bigIntValue !== undefined)
|
|
390
|
+
return visitor.bigIntValue(value.bigIntValue);
|
|
391
|
+
if (value.intValue !== undefined)
|
|
392
|
+
return visitor.intValue(value.intValue);
|
|
393
|
+
if (value.doubleValue !== undefined)
|
|
394
|
+
return visitor.doubleValue(value.doubleValue);
|
|
395
|
+
if (value.realValue !== undefined)
|
|
396
|
+
return visitor.realValue(value.realValue);
|
|
397
|
+
if (value.stringValue !== undefined)
|
|
398
|
+
return visitor.stringValue(value.stringValue);
|
|
399
|
+
if (value.blobValue !== undefined)
|
|
400
|
+
return visitor.blobValue(value.blobValue);
|
|
401
|
+
if (value.arrayValues !== undefined)
|
|
402
|
+
return visitor.arrayValues(value.arrayValues);
|
|
403
|
+
if (value.structValue !== undefined)
|
|
404
|
+
return visitor.structValue(value.structValue);
|
|
405
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1163
406
|
};
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
407
|
+
})(exports.Value || (exports.Value = {}));
|
|
408
|
+
|
|
409
|
+
const se_BatchExecuteStatementCommand = async (input, context) => {
|
|
410
|
+
const b = core.requestBuilder(input, context);
|
|
411
|
+
const headers = {
|
|
412
|
+
"content-type": "application/json",
|
|
1168
413
|
};
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
414
|
+
b.bp("/BatchExecute");
|
|
415
|
+
let body;
|
|
416
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
417
|
+
database: [],
|
|
418
|
+
parameterSets: (_) => se_SqlParameterSets(_, context),
|
|
419
|
+
resourceArn: [],
|
|
420
|
+
schema: [],
|
|
421
|
+
secretArn: [],
|
|
422
|
+
sql: [],
|
|
423
|
+
transactionId: [],
|
|
424
|
+
}));
|
|
425
|
+
b.m("POST").h(headers).b(body);
|
|
426
|
+
return b.build();
|
|
427
|
+
};
|
|
428
|
+
const se_BeginTransactionCommand = async (input, context) => {
|
|
429
|
+
const b = core.requestBuilder(input, context);
|
|
430
|
+
const headers = {
|
|
431
|
+
"content-type": "application/json",
|
|
1173
432
|
};
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
var de_Field = /* @__PURE__ */ __name((output, context) => {
|
|
1190
|
-
if (output.arrayValue != null) {
|
|
1191
|
-
return {
|
|
1192
|
-
arrayValue: de_ArrayValue((0, import_core2.awsExpectUnion)(output.arrayValue), context)
|
|
433
|
+
b.bp("/BeginTransaction");
|
|
434
|
+
let body;
|
|
435
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
436
|
+
database: [],
|
|
437
|
+
resourceArn: [],
|
|
438
|
+
schema: [],
|
|
439
|
+
secretArn: [],
|
|
440
|
+
}));
|
|
441
|
+
b.m("POST").h(headers).b(body);
|
|
442
|
+
return b.build();
|
|
443
|
+
};
|
|
444
|
+
const se_CommitTransactionCommand = async (input, context) => {
|
|
445
|
+
const b = core.requestBuilder(input, context);
|
|
446
|
+
const headers = {
|
|
447
|
+
"content-type": "application/json",
|
|
1193
448
|
};
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
449
|
+
b.bp("/CommitTransaction");
|
|
450
|
+
let body;
|
|
451
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
452
|
+
resourceArn: [],
|
|
453
|
+
secretArn: [],
|
|
454
|
+
transactionId: [],
|
|
455
|
+
}));
|
|
456
|
+
b.m("POST").h(headers).b(body);
|
|
457
|
+
return b.build();
|
|
458
|
+
};
|
|
459
|
+
const se_ExecuteSqlCommand = async (input, context) => {
|
|
460
|
+
const b = core.requestBuilder(input, context);
|
|
461
|
+
const headers = {
|
|
462
|
+
"content-type": "application/json",
|
|
1198
463
|
};
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
return { $unknown: Object.entries(output)[0] };
|
|
1216
|
-
}, "de_Field");
|
|
1217
|
-
var de_FieldList = /* @__PURE__ */ __name((output, context) => {
|
|
1218
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1219
|
-
return de_Field((0, import_core2.awsExpectUnion)(entry), context);
|
|
1220
|
-
});
|
|
1221
|
-
return retVal;
|
|
1222
|
-
}, "de_FieldList");
|
|
1223
|
-
var de__Record = /* @__PURE__ */ __name((output, context) => {
|
|
1224
|
-
return (0, import_smithy_client.take)(output, {
|
|
1225
|
-
values: /* @__PURE__ */ __name((_) => de_Row(_, context), "values")
|
|
1226
|
-
});
|
|
1227
|
-
}, "de__Record");
|
|
1228
|
-
var de_Records = /* @__PURE__ */ __name((output, context) => {
|
|
1229
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1230
|
-
return de__Record(entry, context);
|
|
1231
|
-
});
|
|
1232
|
-
return retVal;
|
|
1233
|
-
}, "de_Records");
|
|
1234
|
-
var de_ResultFrame = /* @__PURE__ */ __name((output, context) => {
|
|
1235
|
-
return (0, import_smithy_client.take)(output, {
|
|
1236
|
-
records: /* @__PURE__ */ __name((_) => de_Records(_, context), "records"),
|
|
1237
|
-
resultSetMetadata: import_smithy_client._json
|
|
1238
|
-
});
|
|
1239
|
-
}, "de_ResultFrame");
|
|
1240
|
-
var de_Row = /* @__PURE__ */ __name((output, context) => {
|
|
1241
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1242
|
-
return de_Value((0, import_core2.awsExpectUnion)(entry), context);
|
|
1243
|
-
});
|
|
1244
|
-
return retVal;
|
|
1245
|
-
}, "de_Row");
|
|
1246
|
-
var de_SqlRecords = /* @__PURE__ */ __name((output, context) => {
|
|
1247
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1248
|
-
return de_FieldList(entry, context);
|
|
1249
|
-
});
|
|
1250
|
-
return retVal;
|
|
1251
|
-
}, "de_SqlRecords");
|
|
1252
|
-
var de_SqlStatementResult = /* @__PURE__ */ __name((output, context) => {
|
|
1253
|
-
return (0, import_smithy_client.take)(output, {
|
|
1254
|
-
numberOfRecordsUpdated: import_smithy_client.expectLong,
|
|
1255
|
-
resultFrame: /* @__PURE__ */ __name((_) => de_ResultFrame(_, context), "resultFrame")
|
|
1256
|
-
});
|
|
1257
|
-
}, "de_SqlStatementResult");
|
|
1258
|
-
var de_SqlStatementResults = /* @__PURE__ */ __name((output, context) => {
|
|
1259
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1260
|
-
return de_SqlStatementResult(entry, context);
|
|
1261
|
-
});
|
|
1262
|
-
return retVal;
|
|
1263
|
-
}, "de_SqlStatementResults");
|
|
1264
|
-
var de_StructValue = /* @__PURE__ */ __name((output, context) => {
|
|
1265
|
-
return (0, import_smithy_client.take)(output, {
|
|
1266
|
-
attributes: /* @__PURE__ */ __name((_) => de_ArrayValueList(_, context), "attributes")
|
|
1267
|
-
});
|
|
1268
|
-
}, "de_StructValue");
|
|
1269
|
-
var de_UpdateResult = /* @__PURE__ */ __name((output, context) => {
|
|
1270
|
-
return (0, import_smithy_client.take)(output, {
|
|
1271
|
-
generatedFields: /* @__PURE__ */ __name((_) => de_FieldList(_, context), "generatedFields")
|
|
1272
|
-
});
|
|
1273
|
-
}, "de_UpdateResult");
|
|
1274
|
-
var de_UpdateResults = /* @__PURE__ */ __name((output, context) => {
|
|
1275
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1276
|
-
return de_UpdateResult(entry, context);
|
|
1277
|
-
});
|
|
1278
|
-
return retVal;
|
|
1279
|
-
}, "de_UpdateResults");
|
|
1280
|
-
var de_Value = /* @__PURE__ */ __name((output, context) => {
|
|
1281
|
-
if (output.arrayValues != null) {
|
|
1282
|
-
return {
|
|
1283
|
-
arrayValues: de_ArrayValueList(output.arrayValues, context)
|
|
464
|
+
b.bp("/ExecuteSql");
|
|
465
|
+
let body;
|
|
466
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
467
|
+
awsSecretStoreArn: [],
|
|
468
|
+
database: [],
|
|
469
|
+
dbClusterOrInstanceArn: [],
|
|
470
|
+
schema: [],
|
|
471
|
+
sqlStatements: [],
|
|
472
|
+
}));
|
|
473
|
+
b.m("POST").h(headers).b(body);
|
|
474
|
+
return b.build();
|
|
475
|
+
};
|
|
476
|
+
const se_ExecuteStatementCommand = async (input, context) => {
|
|
477
|
+
const b = core.requestBuilder(input, context);
|
|
478
|
+
const headers = {
|
|
479
|
+
"content-type": "application/json",
|
|
1284
480
|
};
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
481
|
+
b.bp("/Execute");
|
|
482
|
+
let body;
|
|
483
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
484
|
+
continueAfterTimeout: [],
|
|
485
|
+
database: [],
|
|
486
|
+
formatRecordsAs: [],
|
|
487
|
+
includeResultMetadata: [],
|
|
488
|
+
parameters: (_) => se_SqlParametersList(_, context),
|
|
489
|
+
resourceArn: [],
|
|
490
|
+
resultSetOptions: (_) => smithyClient._json(_),
|
|
491
|
+
schema: [],
|
|
492
|
+
secretArn: [],
|
|
493
|
+
sql: [],
|
|
494
|
+
transactionId: [],
|
|
495
|
+
}));
|
|
496
|
+
b.m("POST").h(headers).b(body);
|
|
497
|
+
return b.build();
|
|
498
|
+
};
|
|
499
|
+
const se_RollbackTransactionCommand = async (input, context) => {
|
|
500
|
+
const b = core.requestBuilder(input, context);
|
|
501
|
+
const headers = {
|
|
502
|
+
"content-type": "application/json",
|
|
1295
503
|
};
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
return
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
504
|
+
b.bp("/RollbackTransaction");
|
|
505
|
+
let body;
|
|
506
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
507
|
+
resourceArn: [],
|
|
508
|
+
secretArn: [],
|
|
509
|
+
transactionId: [],
|
|
510
|
+
}));
|
|
511
|
+
b.m("POST").h(headers).b(body);
|
|
512
|
+
return b.build();
|
|
513
|
+
};
|
|
514
|
+
const de_BatchExecuteStatementCommand = async (output, context) => {
|
|
515
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
516
|
+
return de_CommandError(output, context);
|
|
517
|
+
}
|
|
518
|
+
const contents = smithyClient.map({
|
|
519
|
+
$metadata: deserializeMetadata(output),
|
|
520
|
+
});
|
|
521
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
522
|
+
const doc = smithyClient.take(data, {
|
|
523
|
+
updateResults: (_) => de_UpdateResults(_, context),
|
|
524
|
+
});
|
|
525
|
+
Object.assign(contents, doc);
|
|
526
|
+
return contents;
|
|
527
|
+
};
|
|
528
|
+
const de_BeginTransactionCommand = async (output, context) => {
|
|
529
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
530
|
+
return de_CommandError(output, context);
|
|
531
|
+
}
|
|
532
|
+
const contents = smithyClient.map({
|
|
533
|
+
$metadata: deserializeMetadata(output),
|
|
534
|
+
});
|
|
535
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
536
|
+
const doc = smithyClient.take(data, {
|
|
537
|
+
transactionId: smithyClient.expectString,
|
|
538
|
+
});
|
|
539
|
+
Object.assign(contents, doc);
|
|
540
|
+
return contents;
|
|
541
|
+
};
|
|
542
|
+
const de_CommitTransactionCommand = async (output, context) => {
|
|
543
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
544
|
+
return de_CommandError(output, context);
|
|
545
|
+
}
|
|
546
|
+
const contents = smithyClient.map({
|
|
547
|
+
$metadata: deserializeMetadata(output),
|
|
548
|
+
});
|
|
549
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
550
|
+
const doc = smithyClient.take(data, {
|
|
551
|
+
transactionStatus: smithyClient.expectString,
|
|
552
|
+
});
|
|
553
|
+
Object.assign(contents, doc);
|
|
554
|
+
return contents;
|
|
555
|
+
};
|
|
556
|
+
const de_ExecuteSqlCommand = async (output, context) => {
|
|
557
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
558
|
+
return de_CommandError(output, context);
|
|
559
|
+
}
|
|
560
|
+
const contents = smithyClient.map({
|
|
561
|
+
$metadata: deserializeMetadata(output),
|
|
562
|
+
});
|
|
563
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
564
|
+
const doc = smithyClient.take(data, {
|
|
565
|
+
sqlStatementResults: (_) => de_SqlStatementResults(_, context),
|
|
566
|
+
});
|
|
567
|
+
Object.assign(contents, doc);
|
|
568
|
+
return contents;
|
|
569
|
+
};
|
|
570
|
+
const de_ExecuteStatementCommand = async (output, context) => {
|
|
571
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
572
|
+
return de_CommandError(output, context);
|
|
573
|
+
}
|
|
574
|
+
const contents = smithyClient.map({
|
|
575
|
+
$metadata: deserializeMetadata(output),
|
|
576
|
+
});
|
|
577
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
578
|
+
const doc = smithyClient.take(data, {
|
|
579
|
+
columnMetadata: smithyClient._json,
|
|
580
|
+
formattedRecords: smithyClient.expectString,
|
|
581
|
+
generatedFields: (_) => de_FieldList(_, context),
|
|
582
|
+
numberOfRecordsUpdated: smithyClient.expectLong,
|
|
583
|
+
records: (_) => de_SqlRecords(_, context),
|
|
584
|
+
});
|
|
585
|
+
Object.assign(contents, doc);
|
|
586
|
+
return contents;
|
|
587
|
+
};
|
|
588
|
+
const de_RollbackTransactionCommand = async (output, context) => {
|
|
589
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
590
|
+
return de_CommandError(output, context);
|
|
591
|
+
}
|
|
592
|
+
const contents = smithyClient.map({
|
|
593
|
+
$metadata: deserializeMetadata(output),
|
|
594
|
+
});
|
|
595
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
596
|
+
const doc = smithyClient.take(data, {
|
|
597
|
+
transactionStatus: smithyClient.expectString,
|
|
598
|
+
});
|
|
599
|
+
Object.assign(contents, doc);
|
|
600
|
+
return contents;
|
|
601
|
+
};
|
|
602
|
+
const de_CommandError = async (output, context) => {
|
|
603
|
+
const parsedOutput = {
|
|
604
|
+
...output,
|
|
605
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
1315
606
|
};
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
607
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
608
|
+
switch (errorCode) {
|
|
609
|
+
case "AccessDeniedException":
|
|
610
|
+
case "com.amazonaws.rdsdata#AccessDeniedException":
|
|
611
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
612
|
+
case "BadRequestException":
|
|
613
|
+
case "com.amazonaws.rdsdata#BadRequestException":
|
|
614
|
+
throw await de_BadRequestExceptionRes(parsedOutput);
|
|
615
|
+
case "DatabaseErrorException":
|
|
616
|
+
case "com.amazonaws.rdsdata#DatabaseErrorException":
|
|
617
|
+
throw await de_DatabaseErrorExceptionRes(parsedOutput);
|
|
618
|
+
case "DatabaseNotFoundException":
|
|
619
|
+
case "com.amazonaws.rdsdata#DatabaseNotFoundException":
|
|
620
|
+
throw await de_DatabaseNotFoundExceptionRes(parsedOutput);
|
|
621
|
+
case "DatabaseResumingException":
|
|
622
|
+
case "com.amazonaws.rdsdata#DatabaseResumingException":
|
|
623
|
+
throw await de_DatabaseResumingExceptionRes(parsedOutput);
|
|
624
|
+
case "DatabaseUnavailableException":
|
|
625
|
+
case "com.amazonaws.rdsdata#DatabaseUnavailableException":
|
|
626
|
+
throw await de_DatabaseUnavailableExceptionRes(parsedOutput);
|
|
627
|
+
case "ForbiddenException":
|
|
628
|
+
case "com.amazonaws.rdsdata#ForbiddenException":
|
|
629
|
+
throw await de_ForbiddenExceptionRes(parsedOutput);
|
|
630
|
+
case "HttpEndpointNotEnabledException":
|
|
631
|
+
case "com.amazonaws.rdsdata#HttpEndpointNotEnabledException":
|
|
632
|
+
throw await de_HttpEndpointNotEnabledExceptionRes(parsedOutput);
|
|
633
|
+
case "InternalServerErrorException":
|
|
634
|
+
case "com.amazonaws.rdsdata#InternalServerErrorException":
|
|
635
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput);
|
|
636
|
+
case "InvalidResourceStateException":
|
|
637
|
+
case "com.amazonaws.rdsdata#InvalidResourceStateException":
|
|
638
|
+
throw await de_InvalidResourceStateExceptionRes(parsedOutput);
|
|
639
|
+
case "InvalidSecretException":
|
|
640
|
+
case "com.amazonaws.rdsdata#InvalidSecretException":
|
|
641
|
+
throw await de_InvalidSecretExceptionRes(parsedOutput);
|
|
642
|
+
case "SecretsErrorException":
|
|
643
|
+
case "com.amazonaws.rdsdata#SecretsErrorException":
|
|
644
|
+
throw await de_SecretsErrorExceptionRes(parsedOutput);
|
|
645
|
+
case "ServiceUnavailableError":
|
|
646
|
+
case "com.amazonaws.rdsdata#ServiceUnavailableError":
|
|
647
|
+
throw await de_ServiceUnavailableErrorRes(parsedOutput);
|
|
648
|
+
case "StatementTimeoutException":
|
|
649
|
+
case "com.amazonaws.rdsdata#StatementTimeoutException":
|
|
650
|
+
throw await de_StatementTimeoutExceptionRes(parsedOutput);
|
|
651
|
+
case "TransactionNotFoundException":
|
|
652
|
+
case "com.amazonaws.rdsdata#TransactionNotFoundException":
|
|
653
|
+
throw await de_TransactionNotFoundExceptionRes(parsedOutput);
|
|
654
|
+
case "NotFoundException":
|
|
655
|
+
case "com.amazonaws.rdsdata#NotFoundException":
|
|
656
|
+
throw await de_NotFoundExceptionRes(parsedOutput);
|
|
657
|
+
case "UnsupportedResultException":
|
|
658
|
+
case "com.amazonaws.rdsdata#UnsupportedResultException":
|
|
659
|
+
throw await de_UnsupportedResultExceptionRes(parsedOutput);
|
|
660
|
+
default:
|
|
661
|
+
const parsedBody = parsedOutput.body;
|
|
662
|
+
return throwDefaultError({
|
|
663
|
+
output,
|
|
664
|
+
parsedBody,
|
|
665
|
+
errorCode,
|
|
666
|
+
});
|
|
667
|
+
}
|
|
1336
668
|
};
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
}
|
|
669
|
+
const throwDefaultError = smithyClient.withBaseException(RDSDataServiceException);
|
|
670
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
671
|
+
const contents = smithyClient.map({});
|
|
672
|
+
const data = parsedOutput.body;
|
|
673
|
+
const doc = smithyClient.take(data, {
|
|
674
|
+
message: smithyClient.expectString,
|
|
675
|
+
});
|
|
676
|
+
Object.assign(contents, doc);
|
|
677
|
+
const exception = new AccessDeniedException({
|
|
678
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
679
|
+
...contents,
|
|
680
|
+
});
|
|
681
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1351
682
|
};
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
})
|
|
1363
|
-
|
|
1364
|
-
__name(this, "CommitTransactionCommand");
|
|
1365
|
-
}
|
|
683
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
684
|
+
const contents = smithyClient.map({});
|
|
685
|
+
const data = parsedOutput.body;
|
|
686
|
+
const doc = smithyClient.take(data, {
|
|
687
|
+
message: smithyClient.expectString,
|
|
688
|
+
});
|
|
689
|
+
Object.assign(contents, doc);
|
|
690
|
+
const exception = new BadRequestException({
|
|
691
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
692
|
+
...contents,
|
|
693
|
+
});
|
|
694
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1366
695
|
};
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
})
|
|
1378
|
-
|
|
1379
|
-
__name(this, "ExecuteSqlCommand");
|
|
1380
|
-
}
|
|
696
|
+
const de_DatabaseErrorExceptionRes = async (parsedOutput, context) => {
|
|
697
|
+
const contents = smithyClient.map({});
|
|
698
|
+
const data = parsedOutput.body;
|
|
699
|
+
const doc = smithyClient.take(data, {
|
|
700
|
+
message: smithyClient.expectString,
|
|
701
|
+
});
|
|
702
|
+
Object.assign(contents, doc);
|
|
703
|
+
const exception = new DatabaseErrorException({
|
|
704
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
705
|
+
...contents,
|
|
706
|
+
});
|
|
707
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1381
708
|
};
|
|
709
|
+
const de_DatabaseNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
710
|
+
const contents = smithyClient.map({});
|
|
711
|
+
const data = parsedOutput.body;
|
|
712
|
+
const doc = smithyClient.take(data, {
|
|
713
|
+
message: smithyClient.expectString,
|
|
714
|
+
});
|
|
715
|
+
Object.assign(contents, doc);
|
|
716
|
+
const exception = new DatabaseNotFoundException({
|
|
717
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
718
|
+
...contents,
|
|
719
|
+
});
|
|
720
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
721
|
+
};
|
|
722
|
+
const de_DatabaseResumingExceptionRes = async (parsedOutput, context) => {
|
|
723
|
+
const contents = smithyClient.map({});
|
|
724
|
+
const data = parsedOutput.body;
|
|
725
|
+
const doc = smithyClient.take(data, {
|
|
726
|
+
message: smithyClient.expectString,
|
|
727
|
+
});
|
|
728
|
+
Object.assign(contents, doc);
|
|
729
|
+
const exception = new DatabaseResumingException({
|
|
730
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
731
|
+
...contents,
|
|
732
|
+
});
|
|
733
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
734
|
+
};
|
|
735
|
+
const de_DatabaseUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
736
|
+
const contents = smithyClient.map({});
|
|
737
|
+
const data = parsedOutput.body;
|
|
738
|
+
const doc = smithyClient.take(data, {});
|
|
739
|
+
Object.assign(contents, doc);
|
|
740
|
+
const exception = new DatabaseUnavailableException({
|
|
741
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
742
|
+
...contents,
|
|
743
|
+
});
|
|
744
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
745
|
+
};
|
|
746
|
+
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
747
|
+
const contents = smithyClient.map({});
|
|
748
|
+
const data = parsedOutput.body;
|
|
749
|
+
const doc = smithyClient.take(data, {
|
|
750
|
+
message: smithyClient.expectString,
|
|
751
|
+
});
|
|
752
|
+
Object.assign(contents, doc);
|
|
753
|
+
const exception = new ForbiddenException({
|
|
754
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
755
|
+
...contents,
|
|
756
|
+
});
|
|
757
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
758
|
+
};
|
|
759
|
+
const de_HttpEndpointNotEnabledExceptionRes = async (parsedOutput, context) => {
|
|
760
|
+
const contents = smithyClient.map({});
|
|
761
|
+
const data = parsedOutput.body;
|
|
762
|
+
const doc = smithyClient.take(data, {
|
|
763
|
+
message: smithyClient.expectString,
|
|
764
|
+
});
|
|
765
|
+
Object.assign(contents, doc);
|
|
766
|
+
const exception = new HttpEndpointNotEnabledException({
|
|
767
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
768
|
+
...contents,
|
|
769
|
+
});
|
|
770
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
771
|
+
};
|
|
772
|
+
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
773
|
+
const contents = smithyClient.map({});
|
|
774
|
+
const data = parsedOutput.body;
|
|
775
|
+
const doc = smithyClient.take(data, {});
|
|
776
|
+
Object.assign(contents, doc);
|
|
777
|
+
const exception = new InternalServerErrorException({
|
|
778
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
779
|
+
...contents,
|
|
780
|
+
});
|
|
781
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
782
|
+
};
|
|
783
|
+
const de_InvalidResourceStateExceptionRes = async (parsedOutput, context) => {
|
|
784
|
+
const contents = smithyClient.map({});
|
|
785
|
+
const data = parsedOutput.body;
|
|
786
|
+
const doc = smithyClient.take(data, {
|
|
787
|
+
message: smithyClient.expectString,
|
|
788
|
+
});
|
|
789
|
+
Object.assign(contents, doc);
|
|
790
|
+
const exception = new InvalidResourceStateException({
|
|
791
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
792
|
+
...contents,
|
|
793
|
+
});
|
|
794
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
795
|
+
};
|
|
796
|
+
const de_InvalidSecretExceptionRes = async (parsedOutput, context) => {
|
|
797
|
+
const contents = smithyClient.map({});
|
|
798
|
+
const data = parsedOutput.body;
|
|
799
|
+
const doc = smithyClient.take(data, {
|
|
800
|
+
message: smithyClient.expectString,
|
|
801
|
+
});
|
|
802
|
+
Object.assign(contents, doc);
|
|
803
|
+
const exception = new InvalidSecretException({
|
|
804
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
805
|
+
...contents,
|
|
806
|
+
});
|
|
807
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
808
|
+
};
|
|
809
|
+
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
810
|
+
const contents = smithyClient.map({});
|
|
811
|
+
const data = parsedOutput.body;
|
|
812
|
+
const doc = smithyClient.take(data, {
|
|
813
|
+
message: smithyClient.expectString,
|
|
814
|
+
});
|
|
815
|
+
Object.assign(contents, doc);
|
|
816
|
+
const exception = new NotFoundException({
|
|
817
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
818
|
+
...contents,
|
|
819
|
+
});
|
|
820
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
821
|
+
};
|
|
822
|
+
const de_SecretsErrorExceptionRes = async (parsedOutput, context) => {
|
|
823
|
+
const contents = smithyClient.map({});
|
|
824
|
+
const data = parsedOutput.body;
|
|
825
|
+
const doc = smithyClient.take(data, {
|
|
826
|
+
message: smithyClient.expectString,
|
|
827
|
+
});
|
|
828
|
+
Object.assign(contents, doc);
|
|
829
|
+
const exception = new SecretsErrorException({
|
|
830
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
831
|
+
...contents,
|
|
832
|
+
});
|
|
833
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
834
|
+
};
|
|
835
|
+
const de_ServiceUnavailableErrorRes = async (parsedOutput, context) => {
|
|
836
|
+
const contents = smithyClient.map({});
|
|
837
|
+
const data = parsedOutput.body;
|
|
838
|
+
const doc = smithyClient.take(data, {});
|
|
839
|
+
Object.assign(contents, doc);
|
|
840
|
+
const exception = new ServiceUnavailableError({
|
|
841
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
842
|
+
...contents,
|
|
843
|
+
});
|
|
844
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
845
|
+
};
|
|
846
|
+
const de_StatementTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
847
|
+
const contents = smithyClient.map({});
|
|
848
|
+
const data = parsedOutput.body;
|
|
849
|
+
const doc = smithyClient.take(data, {
|
|
850
|
+
dbConnectionId: smithyClient.expectLong,
|
|
851
|
+
message: smithyClient.expectString,
|
|
852
|
+
});
|
|
853
|
+
Object.assign(contents, doc);
|
|
854
|
+
const exception = new StatementTimeoutException({
|
|
855
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
856
|
+
...contents,
|
|
857
|
+
});
|
|
858
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
859
|
+
};
|
|
860
|
+
const de_TransactionNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
861
|
+
const contents = smithyClient.map({});
|
|
862
|
+
const data = parsedOutput.body;
|
|
863
|
+
const doc = smithyClient.take(data, {
|
|
864
|
+
message: smithyClient.expectString,
|
|
865
|
+
});
|
|
866
|
+
Object.assign(contents, doc);
|
|
867
|
+
const exception = new TransactionNotFoundException({
|
|
868
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
869
|
+
...contents,
|
|
870
|
+
});
|
|
871
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
872
|
+
};
|
|
873
|
+
const de_UnsupportedResultExceptionRes = async (parsedOutput, context) => {
|
|
874
|
+
const contents = smithyClient.map({});
|
|
875
|
+
const data = parsedOutput.body;
|
|
876
|
+
const doc = smithyClient.take(data, {
|
|
877
|
+
message: smithyClient.expectString,
|
|
878
|
+
});
|
|
879
|
+
Object.assign(contents, doc);
|
|
880
|
+
const exception = new UnsupportedResultException({
|
|
881
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
882
|
+
...contents,
|
|
883
|
+
});
|
|
884
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
885
|
+
};
|
|
886
|
+
const se_ArrayOfArray = (input, context) => {
|
|
887
|
+
return input
|
|
888
|
+
.filter((e) => e != null)
|
|
889
|
+
.map((entry) => {
|
|
890
|
+
return se_ArrayValue(entry);
|
|
891
|
+
});
|
|
892
|
+
};
|
|
893
|
+
const se_ArrayValue = (input, context) => {
|
|
894
|
+
return exports.ArrayValue.visit(input, {
|
|
895
|
+
arrayValues: (value) => ({ arrayValues: se_ArrayOfArray(value) }),
|
|
896
|
+
booleanValues: (value) => ({ booleanValues: smithyClient._json(value) }),
|
|
897
|
+
doubleValues: (value) => ({ doubleValues: se_DoubleArray(value) }),
|
|
898
|
+
longValues: (value) => ({ longValues: smithyClient._json(value) }),
|
|
899
|
+
stringValues: (value) => ({ stringValues: smithyClient._json(value) }),
|
|
900
|
+
_: (name, value) => ({ [name]: value }),
|
|
901
|
+
});
|
|
902
|
+
};
|
|
903
|
+
const se_DoubleArray = (input, context) => {
|
|
904
|
+
return input
|
|
905
|
+
.filter((e) => e != null)
|
|
906
|
+
.map((entry) => {
|
|
907
|
+
return smithyClient.serializeFloat(entry);
|
|
908
|
+
});
|
|
909
|
+
};
|
|
910
|
+
const se_Field = (input, context) => {
|
|
911
|
+
return exports.Field.visit(input, {
|
|
912
|
+
arrayValue: (value) => ({ arrayValue: se_ArrayValue(value) }),
|
|
913
|
+
blobValue: (value) => ({ blobValue: context.base64Encoder(value) }),
|
|
914
|
+
booleanValue: (value) => ({ booleanValue: value }),
|
|
915
|
+
doubleValue: (value) => ({ doubleValue: smithyClient.serializeFloat(value) }),
|
|
916
|
+
isNull: (value) => ({ isNull: value }),
|
|
917
|
+
longValue: (value) => ({ longValue: value }),
|
|
918
|
+
stringValue: (value) => ({ stringValue: value }),
|
|
919
|
+
_: (name, value) => ({ [name]: value }),
|
|
920
|
+
});
|
|
921
|
+
};
|
|
922
|
+
const se_SqlParameter = (input, context) => {
|
|
923
|
+
return smithyClient.take(input, {
|
|
924
|
+
name: [],
|
|
925
|
+
typeHint: [],
|
|
926
|
+
value: (_) => se_Field(_, context),
|
|
927
|
+
});
|
|
928
|
+
};
|
|
929
|
+
const se_SqlParameterSets = (input, context) => {
|
|
930
|
+
return input
|
|
931
|
+
.filter((e) => e != null)
|
|
932
|
+
.map((entry) => {
|
|
933
|
+
return se_SqlParametersList(entry, context);
|
|
934
|
+
});
|
|
935
|
+
};
|
|
936
|
+
const se_SqlParametersList = (input, context) => {
|
|
937
|
+
return input
|
|
938
|
+
.filter((e) => e != null)
|
|
939
|
+
.map((entry) => {
|
|
940
|
+
return se_SqlParameter(entry, context);
|
|
941
|
+
});
|
|
942
|
+
};
|
|
943
|
+
const de_ArrayOfArray = (output, context) => {
|
|
944
|
+
const retVal = (output || [])
|
|
945
|
+
.filter((e) => e != null)
|
|
946
|
+
.map((entry) => {
|
|
947
|
+
return de_ArrayValue(core$1.awsExpectUnion(entry));
|
|
948
|
+
});
|
|
949
|
+
return retVal;
|
|
950
|
+
};
|
|
951
|
+
const de_ArrayValue = (output, context) => {
|
|
952
|
+
if (output.arrayValues != null) {
|
|
953
|
+
return {
|
|
954
|
+
arrayValues: de_ArrayOfArray(output.arrayValues),
|
|
955
|
+
};
|
|
956
|
+
}
|
|
957
|
+
if (output.booleanValues != null) {
|
|
958
|
+
return {
|
|
959
|
+
booleanValues: smithyClient._json(output.booleanValues),
|
|
960
|
+
};
|
|
961
|
+
}
|
|
962
|
+
if (output.doubleValues != null) {
|
|
963
|
+
return {
|
|
964
|
+
doubleValues: de_DoubleArray(output.doubleValues),
|
|
965
|
+
};
|
|
966
|
+
}
|
|
967
|
+
if (output.longValues != null) {
|
|
968
|
+
return {
|
|
969
|
+
longValues: smithyClient._json(output.longValues),
|
|
970
|
+
};
|
|
971
|
+
}
|
|
972
|
+
if (output.stringValues != null) {
|
|
973
|
+
return {
|
|
974
|
+
stringValues: smithyClient._json(output.stringValues),
|
|
975
|
+
};
|
|
976
|
+
}
|
|
977
|
+
return { $unknown: Object.entries(output)[0] };
|
|
978
|
+
};
|
|
979
|
+
const de_ArrayValueList = (output, context) => {
|
|
980
|
+
const retVal = (output || [])
|
|
981
|
+
.filter((e) => e != null)
|
|
982
|
+
.map((entry) => {
|
|
983
|
+
return de_Value(core$1.awsExpectUnion(entry), context);
|
|
984
|
+
});
|
|
985
|
+
return retVal;
|
|
986
|
+
};
|
|
987
|
+
const de_DoubleArray = (output, context) => {
|
|
988
|
+
const retVal = (output || [])
|
|
989
|
+
.filter((e) => e != null)
|
|
990
|
+
.map((entry) => {
|
|
991
|
+
return smithyClient.limitedParseDouble(entry);
|
|
992
|
+
});
|
|
993
|
+
return retVal;
|
|
994
|
+
};
|
|
995
|
+
const de_Field = (output, context) => {
|
|
996
|
+
if (output.arrayValue != null) {
|
|
997
|
+
return {
|
|
998
|
+
arrayValue: de_ArrayValue(core$1.awsExpectUnion(output.arrayValue)),
|
|
999
|
+
};
|
|
1000
|
+
}
|
|
1001
|
+
if (output.blobValue != null) {
|
|
1002
|
+
return {
|
|
1003
|
+
blobValue: context.base64Decoder(output.blobValue),
|
|
1004
|
+
};
|
|
1005
|
+
}
|
|
1006
|
+
if (smithyClient.expectBoolean(output.booleanValue) !== undefined) {
|
|
1007
|
+
return { booleanValue: smithyClient.expectBoolean(output.booleanValue) };
|
|
1008
|
+
}
|
|
1009
|
+
if (smithyClient.limitedParseDouble(output.doubleValue) !== undefined) {
|
|
1010
|
+
return { doubleValue: smithyClient.limitedParseDouble(output.doubleValue) };
|
|
1011
|
+
}
|
|
1012
|
+
if (smithyClient.expectBoolean(output.isNull) !== undefined) {
|
|
1013
|
+
return { isNull: smithyClient.expectBoolean(output.isNull) };
|
|
1014
|
+
}
|
|
1015
|
+
if (smithyClient.expectLong(output.longValue) !== undefined) {
|
|
1016
|
+
return { longValue: smithyClient.expectLong(output.longValue) };
|
|
1017
|
+
}
|
|
1018
|
+
if (smithyClient.expectString(output.stringValue) !== undefined) {
|
|
1019
|
+
return { stringValue: smithyClient.expectString(output.stringValue) };
|
|
1020
|
+
}
|
|
1021
|
+
return { $unknown: Object.entries(output)[0] };
|
|
1022
|
+
};
|
|
1023
|
+
const de_FieldList = (output, context) => {
|
|
1024
|
+
const retVal = (output || [])
|
|
1025
|
+
.filter((e) => e != null)
|
|
1026
|
+
.map((entry) => {
|
|
1027
|
+
return de_Field(core$1.awsExpectUnion(entry), context);
|
|
1028
|
+
});
|
|
1029
|
+
return retVal;
|
|
1030
|
+
};
|
|
1031
|
+
const de__Record = (output, context) => {
|
|
1032
|
+
return smithyClient.take(output, {
|
|
1033
|
+
values: (_) => de_Row(_, context),
|
|
1034
|
+
});
|
|
1035
|
+
};
|
|
1036
|
+
const de_Records = (output, context) => {
|
|
1037
|
+
const retVal = (output || [])
|
|
1038
|
+
.filter((e) => e != null)
|
|
1039
|
+
.map((entry) => {
|
|
1040
|
+
return de__Record(entry, context);
|
|
1041
|
+
});
|
|
1042
|
+
return retVal;
|
|
1043
|
+
};
|
|
1044
|
+
const de_ResultFrame = (output, context) => {
|
|
1045
|
+
return smithyClient.take(output, {
|
|
1046
|
+
records: (_) => de_Records(_, context),
|
|
1047
|
+
resultSetMetadata: smithyClient._json,
|
|
1048
|
+
});
|
|
1049
|
+
};
|
|
1050
|
+
const de_Row = (output, context) => {
|
|
1051
|
+
const retVal = (output || [])
|
|
1052
|
+
.filter((e) => e != null)
|
|
1053
|
+
.map((entry) => {
|
|
1054
|
+
return de_Value(core$1.awsExpectUnion(entry), context);
|
|
1055
|
+
});
|
|
1056
|
+
return retVal;
|
|
1057
|
+
};
|
|
1058
|
+
const de_SqlRecords = (output, context) => {
|
|
1059
|
+
const retVal = (output || [])
|
|
1060
|
+
.filter((e) => e != null)
|
|
1061
|
+
.map((entry) => {
|
|
1062
|
+
return de_FieldList(entry, context);
|
|
1063
|
+
});
|
|
1064
|
+
return retVal;
|
|
1065
|
+
};
|
|
1066
|
+
const de_SqlStatementResult = (output, context) => {
|
|
1067
|
+
return smithyClient.take(output, {
|
|
1068
|
+
numberOfRecordsUpdated: smithyClient.expectLong,
|
|
1069
|
+
resultFrame: (_) => de_ResultFrame(_, context),
|
|
1070
|
+
});
|
|
1071
|
+
};
|
|
1072
|
+
const de_SqlStatementResults = (output, context) => {
|
|
1073
|
+
const retVal = (output || [])
|
|
1074
|
+
.filter((e) => e != null)
|
|
1075
|
+
.map((entry) => {
|
|
1076
|
+
return de_SqlStatementResult(entry, context);
|
|
1077
|
+
});
|
|
1078
|
+
return retVal;
|
|
1079
|
+
};
|
|
1080
|
+
const de_StructValue = (output, context) => {
|
|
1081
|
+
return smithyClient.take(output, {
|
|
1082
|
+
attributes: (_) => de_ArrayValueList(_, context),
|
|
1083
|
+
});
|
|
1084
|
+
};
|
|
1085
|
+
const de_UpdateResult = (output, context) => {
|
|
1086
|
+
return smithyClient.take(output, {
|
|
1087
|
+
generatedFields: (_) => de_FieldList(_, context),
|
|
1088
|
+
});
|
|
1089
|
+
};
|
|
1090
|
+
const de_UpdateResults = (output, context) => {
|
|
1091
|
+
const retVal = (output || [])
|
|
1092
|
+
.filter((e) => e != null)
|
|
1093
|
+
.map((entry) => {
|
|
1094
|
+
return de_UpdateResult(entry, context);
|
|
1095
|
+
});
|
|
1096
|
+
return retVal;
|
|
1097
|
+
};
|
|
1098
|
+
const de_Value = (output, context) => {
|
|
1099
|
+
if (output.arrayValues != null) {
|
|
1100
|
+
return {
|
|
1101
|
+
arrayValues: de_ArrayValueList(output.arrayValues, context),
|
|
1102
|
+
};
|
|
1103
|
+
}
|
|
1104
|
+
if (smithyClient.expectLong(output.bigIntValue) !== undefined) {
|
|
1105
|
+
return { bigIntValue: smithyClient.expectLong(output.bigIntValue) };
|
|
1106
|
+
}
|
|
1107
|
+
if (smithyClient.expectBoolean(output.bitValue) !== undefined) {
|
|
1108
|
+
return { bitValue: smithyClient.expectBoolean(output.bitValue) };
|
|
1109
|
+
}
|
|
1110
|
+
if (output.blobValue != null) {
|
|
1111
|
+
return {
|
|
1112
|
+
blobValue: context.base64Decoder(output.blobValue),
|
|
1113
|
+
};
|
|
1114
|
+
}
|
|
1115
|
+
if (smithyClient.limitedParseDouble(output.doubleValue) !== undefined) {
|
|
1116
|
+
return { doubleValue: smithyClient.limitedParseDouble(output.doubleValue) };
|
|
1117
|
+
}
|
|
1118
|
+
if (smithyClient.expectInt32(output.intValue) !== undefined) {
|
|
1119
|
+
return { intValue: smithyClient.expectInt32(output.intValue) };
|
|
1120
|
+
}
|
|
1121
|
+
if (smithyClient.expectBoolean(output.isNull) !== undefined) {
|
|
1122
|
+
return { isNull: smithyClient.expectBoolean(output.isNull) };
|
|
1123
|
+
}
|
|
1124
|
+
if (smithyClient.limitedParseFloat32(output.realValue) !== undefined) {
|
|
1125
|
+
return { realValue: smithyClient.limitedParseFloat32(output.realValue) };
|
|
1126
|
+
}
|
|
1127
|
+
if (smithyClient.expectString(output.stringValue) !== undefined) {
|
|
1128
|
+
return { stringValue: smithyClient.expectString(output.stringValue) };
|
|
1129
|
+
}
|
|
1130
|
+
if (output.structValue != null) {
|
|
1131
|
+
return {
|
|
1132
|
+
structValue: de_StructValue(output.structValue, context),
|
|
1133
|
+
};
|
|
1134
|
+
}
|
|
1135
|
+
return { $unknown: Object.entries(output)[0] };
|
|
1136
|
+
};
|
|
1137
|
+
const deserializeMetadata = (output) => ({
|
|
1138
|
+
httpStatusCode: output.statusCode,
|
|
1139
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1140
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1141
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1142
|
+
});
|
|
1382
1143
|
|
|
1383
|
-
|
|
1384
|
-
|
|
1144
|
+
class BatchExecuteStatementCommand extends smithyClient.Command
|
|
1145
|
+
.classBuilder()
|
|
1146
|
+
.ep(commonParams)
|
|
1147
|
+
.m(function (Command, cs, config, o) {
|
|
1148
|
+
return [
|
|
1149
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1150
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1151
|
+
];
|
|
1152
|
+
})
|
|
1153
|
+
.s("RdsDataService", "BatchExecuteStatement", {})
|
|
1154
|
+
.n("RDSDataClient", "BatchExecuteStatementCommand")
|
|
1155
|
+
.f(void 0, void 0)
|
|
1156
|
+
.ser(se_BatchExecuteStatementCommand)
|
|
1157
|
+
.de(de_BatchExecuteStatementCommand)
|
|
1158
|
+
.build() {
|
|
1159
|
+
}
|
|
1385
1160
|
|
|
1161
|
+
class BeginTransactionCommand extends smithyClient.Command
|
|
1162
|
+
.classBuilder()
|
|
1163
|
+
.ep(commonParams)
|
|
1164
|
+
.m(function (Command, cs, config, o) {
|
|
1165
|
+
return [
|
|
1166
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1167
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1168
|
+
];
|
|
1169
|
+
})
|
|
1170
|
+
.s("RdsDataService", "BeginTransaction", {})
|
|
1171
|
+
.n("RDSDataClient", "BeginTransactionCommand")
|
|
1172
|
+
.f(void 0, void 0)
|
|
1173
|
+
.ser(se_BeginTransactionCommand)
|
|
1174
|
+
.de(de_BeginTransactionCommand)
|
|
1175
|
+
.build() {
|
|
1176
|
+
}
|
|
1386
1177
|
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
(
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
}
|
|
1178
|
+
class CommitTransactionCommand extends smithyClient.Command
|
|
1179
|
+
.classBuilder()
|
|
1180
|
+
.ep(commonParams)
|
|
1181
|
+
.m(function (Command, cs, config, o) {
|
|
1182
|
+
return [
|
|
1183
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1184
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1185
|
+
];
|
|
1186
|
+
})
|
|
1187
|
+
.s("RdsDataService", "CommitTransaction", {})
|
|
1188
|
+
.n("RDSDataClient", "CommitTransactionCommand")
|
|
1189
|
+
.f(void 0, void 0)
|
|
1190
|
+
.ser(se_CommitTransactionCommand)
|
|
1191
|
+
.de(de_CommitTransactionCommand)
|
|
1192
|
+
.build() {
|
|
1193
|
+
}
|
|
1397
1194
|
|
|
1398
|
-
|
|
1195
|
+
class ExecuteSqlCommand extends smithyClient.Command
|
|
1196
|
+
.classBuilder()
|
|
1197
|
+
.ep(commonParams)
|
|
1198
|
+
.m(function (Command, cs, config, o) {
|
|
1199
|
+
return [
|
|
1200
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1201
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1202
|
+
];
|
|
1203
|
+
})
|
|
1204
|
+
.s("RdsDataService", "ExecuteSql", {})
|
|
1205
|
+
.n("RDSDataClient", "ExecuteSqlCommand")
|
|
1206
|
+
.f(void 0, void 0)
|
|
1207
|
+
.ser(se_ExecuteSqlCommand)
|
|
1208
|
+
.de(de_ExecuteSqlCommand)
|
|
1209
|
+
.build() {
|
|
1210
|
+
}
|
|
1399
1211
|
|
|
1212
|
+
class ExecuteStatementCommand extends smithyClient.Command
|
|
1213
|
+
.classBuilder()
|
|
1214
|
+
.ep(commonParams)
|
|
1215
|
+
.m(function (Command, cs, config, o) {
|
|
1216
|
+
return [
|
|
1217
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1218
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1219
|
+
];
|
|
1220
|
+
})
|
|
1221
|
+
.s("RdsDataService", "ExecuteStatement", {})
|
|
1222
|
+
.n("RDSDataClient", "ExecuteStatementCommand")
|
|
1223
|
+
.f(void 0, void 0)
|
|
1224
|
+
.ser(se_ExecuteStatementCommand)
|
|
1225
|
+
.de(de_ExecuteStatementCommand)
|
|
1226
|
+
.build() {
|
|
1227
|
+
}
|
|
1400
1228
|
|
|
1229
|
+
class RollbackTransactionCommand extends smithyClient.Command
|
|
1230
|
+
.classBuilder()
|
|
1231
|
+
.ep(commonParams)
|
|
1232
|
+
.m(function (Command, cs, config, o) {
|
|
1233
|
+
return [
|
|
1234
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1235
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1236
|
+
];
|
|
1237
|
+
})
|
|
1238
|
+
.s("RdsDataService", "RollbackTransaction", {})
|
|
1239
|
+
.n("RDSDataClient", "RollbackTransactionCommand")
|
|
1240
|
+
.f(void 0, void 0)
|
|
1241
|
+
.ser(se_RollbackTransactionCommand)
|
|
1242
|
+
.de(de_RollbackTransactionCommand)
|
|
1243
|
+
.build() {
|
|
1244
|
+
}
|
|
1401
1245
|
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
__name(this, "RollbackTransactionCommand");
|
|
1410
|
-
}
|
|
1246
|
+
const commands = {
|
|
1247
|
+
BatchExecuteStatementCommand,
|
|
1248
|
+
BeginTransactionCommand,
|
|
1249
|
+
CommitTransactionCommand,
|
|
1250
|
+
ExecuteSqlCommand,
|
|
1251
|
+
ExecuteStatementCommand,
|
|
1252
|
+
RollbackTransactionCommand,
|
|
1411
1253
|
};
|
|
1254
|
+
class RDSData extends RDSDataClient {
|
|
1255
|
+
}
|
|
1256
|
+
smithyClient.createAggregatedClient(commands, RDSData);
|
|
1412
1257
|
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
BeginTransactionCommand,
|
|
1417
|
-
CommitTransactionCommand,
|
|
1418
|
-
ExecuteSqlCommand,
|
|
1419
|
-
ExecuteStatementCommand,
|
|
1420
|
-
RollbackTransactionCommand
|
|
1421
|
-
};
|
|
1422
|
-
var RDSData = class extends RDSDataClient {
|
|
1423
|
-
static {
|
|
1424
|
-
__name(this, "RDSData");
|
|
1425
|
-
}
|
|
1426
|
-
};
|
|
1427
|
-
(0, import_smithy_client.createAggregatedClient)(commands, RDSData);
|
|
1428
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1429
|
-
|
|
1430
|
-
0 && (module.exports = {
|
|
1431
|
-
RDSDataServiceException,
|
|
1432
|
-
__Client,
|
|
1433
|
-
RDSDataClient,
|
|
1434
|
-
RDSData,
|
|
1435
|
-
$Command,
|
|
1436
|
-
BatchExecuteStatementCommand,
|
|
1437
|
-
BeginTransactionCommand,
|
|
1438
|
-
CommitTransactionCommand,
|
|
1439
|
-
ExecuteSqlCommand,
|
|
1440
|
-
ExecuteStatementCommand,
|
|
1441
|
-
RollbackTransactionCommand,
|
|
1442
|
-
AccessDeniedException,
|
|
1443
|
-
BadRequestException,
|
|
1444
|
-
TypeHint,
|
|
1445
|
-
DatabaseErrorException,
|
|
1446
|
-
DatabaseNotFoundException,
|
|
1447
|
-
DatabaseResumingException,
|
|
1448
|
-
DatabaseUnavailableException,
|
|
1449
|
-
ForbiddenException,
|
|
1450
|
-
HttpEndpointNotEnabledException,
|
|
1451
|
-
InternalServerErrorException,
|
|
1452
|
-
InvalidResourceStateException,
|
|
1453
|
-
InvalidSecretException,
|
|
1454
|
-
SecretsErrorException,
|
|
1455
|
-
ServiceUnavailableError,
|
|
1456
|
-
StatementTimeoutException,
|
|
1457
|
-
TransactionNotFoundException,
|
|
1458
|
-
NotFoundException,
|
|
1459
|
-
DecimalReturnType,
|
|
1460
|
-
RecordsFormatType,
|
|
1461
|
-
LongReturnType,
|
|
1462
|
-
UnsupportedResultException,
|
|
1463
|
-
ArrayValue,
|
|
1464
|
-
Field,
|
|
1465
|
-
Value
|
|
1258
|
+
Object.defineProperty(exports, "$Command", {
|
|
1259
|
+
enumerable: true,
|
|
1260
|
+
get: function () { return smithyClient.Command; }
|
|
1466
1261
|
});
|
|
1467
|
-
|
|
1262
|
+
Object.defineProperty(exports, "__Client", {
|
|
1263
|
+
enumerable: true,
|
|
1264
|
+
get: function () { return smithyClient.Client; }
|
|
1265
|
+
});
|
|
1266
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
1267
|
+
exports.BadRequestException = BadRequestException;
|
|
1268
|
+
exports.BatchExecuteStatementCommand = BatchExecuteStatementCommand;
|
|
1269
|
+
exports.BeginTransactionCommand = BeginTransactionCommand;
|
|
1270
|
+
exports.CommitTransactionCommand = CommitTransactionCommand;
|
|
1271
|
+
exports.DatabaseErrorException = DatabaseErrorException;
|
|
1272
|
+
exports.DatabaseNotFoundException = DatabaseNotFoundException;
|
|
1273
|
+
exports.DatabaseResumingException = DatabaseResumingException;
|
|
1274
|
+
exports.DatabaseUnavailableException = DatabaseUnavailableException;
|
|
1275
|
+
exports.DecimalReturnType = DecimalReturnType;
|
|
1276
|
+
exports.ExecuteSqlCommand = ExecuteSqlCommand;
|
|
1277
|
+
exports.ExecuteStatementCommand = ExecuteStatementCommand;
|
|
1278
|
+
exports.ForbiddenException = ForbiddenException;
|
|
1279
|
+
exports.HttpEndpointNotEnabledException = HttpEndpointNotEnabledException;
|
|
1280
|
+
exports.InternalServerErrorException = InternalServerErrorException;
|
|
1281
|
+
exports.InvalidResourceStateException = InvalidResourceStateException;
|
|
1282
|
+
exports.InvalidSecretException = InvalidSecretException;
|
|
1283
|
+
exports.LongReturnType = LongReturnType;
|
|
1284
|
+
exports.NotFoundException = NotFoundException;
|
|
1285
|
+
exports.RDSData = RDSData;
|
|
1286
|
+
exports.RDSDataClient = RDSDataClient;
|
|
1287
|
+
exports.RDSDataServiceException = RDSDataServiceException;
|
|
1288
|
+
exports.RecordsFormatType = RecordsFormatType;
|
|
1289
|
+
exports.RollbackTransactionCommand = RollbackTransactionCommand;
|
|
1290
|
+
exports.SecretsErrorException = SecretsErrorException;
|
|
1291
|
+
exports.ServiceUnavailableError = ServiceUnavailableError;
|
|
1292
|
+
exports.StatementTimeoutException = StatementTimeoutException;
|
|
1293
|
+
exports.TransactionNotFoundException = TransactionNotFoundException;
|
|
1294
|
+
exports.TypeHint = TypeHint;
|
|
1295
|
+
exports.UnsupportedResultException = UnsupportedResultException;
|