@aws-sdk/client-rds-data 3.693.0 → 3.696.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 +35 -0
- package/dist-es/models/models_0.js +12 -0
- package/dist-es/protocols/Aws_restJson1.js +17 -1
- package/dist-types/commands/BatchExecuteStatementCommand.d.ts +5 -0
- package/dist-types/commands/BeginTransactionCommand.d.ts +5 -0
- package/dist-types/commands/ExecuteStatementCommand.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +14 -0
- package/dist-types/ts3.4/models/models_0.d.ts +7 -0
- package/package.json +35 -35
package/dist-cjs/index.js
CHANGED
|
@@ -29,6 +29,7 @@ __export(src_exports, {
|
|
|
29
29
|
CommitTransactionCommand: () => CommitTransactionCommand,
|
|
30
30
|
DatabaseErrorException: () => DatabaseErrorException,
|
|
31
31
|
DatabaseNotFoundException: () => DatabaseNotFoundException,
|
|
32
|
+
DatabaseResumingException: () => DatabaseResumingException,
|
|
32
33
|
DatabaseUnavailableException: () => DatabaseUnavailableException,
|
|
33
34
|
DecimalReturnType: () => DecimalReturnType,
|
|
34
35
|
ExecuteSqlCommand: () => ExecuteSqlCommand,
|
|
@@ -297,6 +298,23 @@ var _DatabaseNotFoundException = class _DatabaseNotFoundException extends RDSDat
|
|
|
297
298
|
};
|
|
298
299
|
__name(_DatabaseNotFoundException, "DatabaseNotFoundException");
|
|
299
300
|
var DatabaseNotFoundException = _DatabaseNotFoundException;
|
|
301
|
+
var _DatabaseResumingException = class _DatabaseResumingException extends RDSDataServiceException {
|
|
302
|
+
/**
|
|
303
|
+
* @internal
|
|
304
|
+
*/
|
|
305
|
+
constructor(opts) {
|
|
306
|
+
super({
|
|
307
|
+
name: "DatabaseResumingException",
|
|
308
|
+
$fault: "client",
|
|
309
|
+
...opts
|
|
310
|
+
});
|
|
311
|
+
this.name = "DatabaseResumingException";
|
|
312
|
+
this.$fault = "client";
|
|
313
|
+
Object.setPrototypeOf(this, _DatabaseResumingException.prototype);
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
__name(_DatabaseResumingException, "DatabaseResumingException");
|
|
317
|
+
var DatabaseResumingException = _DatabaseResumingException;
|
|
300
318
|
var _DatabaseUnavailableException = class _DatabaseUnavailableException extends RDSDataServiceException {
|
|
301
319
|
/**
|
|
302
320
|
* @internal
|
|
@@ -785,6 +803,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
785
803
|
case "DatabaseNotFoundException":
|
|
786
804
|
case "com.amazonaws.rdsdata#DatabaseNotFoundException":
|
|
787
805
|
throw await de_DatabaseNotFoundExceptionRes(parsedOutput, context);
|
|
806
|
+
case "DatabaseResumingException":
|
|
807
|
+
case "com.amazonaws.rdsdata#DatabaseResumingException":
|
|
808
|
+
throw await de_DatabaseResumingExceptionRes(parsedOutput, context);
|
|
788
809
|
case "DatabaseUnavailableException":
|
|
789
810
|
case "com.amazonaws.rdsdata#DatabaseUnavailableException":
|
|
790
811
|
throw await de_DatabaseUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -880,6 +901,19 @@ var de_DatabaseNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput
|
|
|
880
901
|
});
|
|
881
902
|
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
882
903
|
}, "de_DatabaseNotFoundExceptionRes");
|
|
904
|
+
var de_DatabaseResumingExceptionRes = /* @__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 DatabaseResumingException({
|
|
912
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
913
|
+
...contents
|
|
914
|
+
});
|
|
915
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
916
|
+
}, "de_DatabaseResumingExceptionRes");
|
|
883
917
|
var de_DatabaseUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
884
918
|
const contents = (0, import_smithy_client.map)({});
|
|
885
919
|
const data = parsedOutput.body;
|
|
@@ -1364,6 +1398,7 @@ var RDSData = _RDSData;
|
|
|
1364
1398
|
TypeHint,
|
|
1365
1399
|
DatabaseErrorException,
|
|
1366
1400
|
DatabaseNotFoundException,
|
|
1401
|
+
DatabaseResumingException,
|
|
1367
1402
|
DatabaseUnavailableException,
|
|
1368
1403
|
ForbiddenException,
|
|
1369
1404
|
HttpEndpointNotEnabledException,
|
|
@@ -55,6 +55,18 @@ export class DatabaseNotFoundException extends __BaseException {
|
|
|
55
55
|
Object.setPrototypeOf(this, DatabaseNotFoundException.prototype);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
+
export class DatabaseResumingException extends __BaseException {
|
|
59
|
+
constructor(opts) {
|
|
60
|
+
super({
|
|
61
|
+
name: "DatabaseResumingException",
|
|
62
|
+
$fault: "client",
|
|
63
|
+
...opts,
|
|
64
|
+
});
|
|
65
|
+
this.name = "DatabaseResumingException";
|
|
66
|
+
this.$fault = "client";
|
|
67
|
+
Object.setPrototypeOf(this, DatabaseResumingException.prototype);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
58
70
|
export class DatabaseUnavailableException extends __BaseException {
|
|
59
71
|
constructor(opts) {
|
|
60
72
|
super({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { AccessDeniedException, ArrayValue, BadRequestException, DatabaseErrorException, DatabaseNotFoundException, DatabaseUnavailableException, Field, ForbiddenException, HttpEndpointNotEnabledException, InternalServerErrorException, InvalidSecretException, NotFoundException, SecretsErrorException, ServiceUnavailableError, StatementTimeoutException, TransactionNotFoundException, UnsupportedResultException, } from "../models/models_0";
|
|
4
|
+
import { AccessDeniedException, ArrayValue, BadRequestException, DatabaseErrorException, DatabaseNotFoundException, DatabaseResumingException, DatabaseUnavailableException, Field, ForbiddenException, HttpEndpointNotEnabledException, InternalServerErrorException, InvalidSecretException, NotFoundException, SecretsErrorException, ServiceUnavailableError, StatementTimeoutException, TransactionNotFoundException, UnsupportedResultException, } from "../models/models_0";
|
|
5
5
|
import { RDSDataServiceException as __BaseException } from "../models/RDSDataServiceException";
|
|
6
6
|
export const se_BatchExecuteStatementCommand = async (input, context) => {
|
|
7
7
|
const b = rb(input, context);
|
|
@@ -215,6 +215,9 @@ const de_CommandError = async (output, context) => {
|
|
|
215
215
|
case "DatabaseNotFoundException":
|
|
216
216
|
case "com.amazonaws.rdsdata#DatabaseNotFoundException":
|
|
217
217
|
throw await de_DatabaseNotFoundExceptionRes(parsedOutput, context);
|
|
218
|
+
case "DatabaseResumingException":
|
|
219
|
+
case "com.amazonaws.rdsdata#DatabaseResumingException":
|
|
220
|
+
throw await de_DatabaseResumingExceptionRes(parsedOutput, context);
|
|
218
221
|
case "DatabaseUnavailableException":
|
|
219
222
|
case "com.amazonaws.rdsdata#DatabaseUnavailableException":
|
|
220
223
|
throw await de_DatabaseUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -310,6 +313,19 @@ const de_DatabaseNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
310
313
|
});
|
|
311
314
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
312
315
|
};
|
|
316
|
+
const de_DatabaseResumingExceptionRes = async (parsedOutput, context) => {
|
|
317
|
+
const contents = map({});
|
|
318
|
+
const data = parsedOutput.body;
|
|
319
|
+
const doc = take(data, {
|
|
320
|
+
message: __expectString,
|
|
321
|
+
});
|
|
322
|
+
Object.assign(contents, doc);
|
|
323
|
+
const exception = new DatabaseResumingException({
|
|
324
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
325
|
+
...contents,
|
|
326
|
+
});
|
|
327
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
328
|
+
};
|
|
313
329
|
const de_DatabaseUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
314
330
|
const contents = map({});
|
|
315
331
|
const data = parsedOutput.body;
|
|
@@ -176,6 +176,11 @@ declare const BatchExecuteStatementCommand_base: {
|
|
|
176
176
|
* @throws {@link DatabaseNotFoundException} (client fault)
|
|
177
177
|
* <p>The DB cluster doesn't have a DB instance.</p>
|
|
178
178
|
*
|
|
179
|
+
* @throws {@link DatabaseResumingException} (client fault)
|
|
180
|
+
* <p>A request was canceled because the Aurora Serverless v2 DB instance was in a paused state.
|
|
181
|
+
* The Data API request automatically causes the DB instance to begin resuming. Wait a few seconds and
|
|
182
|
+
* try again.</p>
|
|
183
|
+
*
|
|
179
184
|
* @throws {@link DatabaseUnavailableException} (server fault)
|
|
180
185
|
* <p>The writer instance in the DB cluster isn't available.</p>
|
|
181
186
|
*
|
|
@@ -74,6 +74,11 @@ declare const BeginTransactionCommand_base: {
|
|
|
74
74
|
* @throws {@link DatabaseNotFoundException} (client fault)
|
|
75
75
|
* <p>The DB cluster doesn't have a DB instance.</p>
|
|
76
76
|
*
|
|
77
|
+
* @throws {@link DatabaseResumingException} (client fault)
|
|
78
|
+
* <p>A request was canceled because the Aurora Serverless v2 DB instance was in a paused state.
|
|
79
|
+
* The Data API request automatically causes the DB instance to begin resuming. Wait a few seconds and
|
|
80
|
+
* try again.</p>
|
|
81
|
+
*
|
|
77
82
|
* @throws {@link DatabaseUnavailableException} (server fault)
|
|
78
83
|
* <p>The writer instance in the DB cluster isn't available.</p>
|
|
79
84
|
*
|
|
@@ -203,6 +203,11 @@ declare const ExecuteStatementCommand_base: {
|
|
|
203
203
|
* @throws {@link DatabaseNotFoundException} (client fault)
|
|
204
204
|
* <p>The DB cluster doesn't have a DB instance.</p>
|
|
205
205
|
*
|
|
206
|
+
* @throws {@link DatabaseResumingException} (client fault)
|
|
207
|
+
* <p>A request was canceled because the Aurora Serverless v2 DB instance was in a paused state.
|
|
208
|
+
* The Data API request automatically causes the DB instance to begin resuming. Wait a few seconds and
|
|
209
|
+
* try again.</p>
|
|
210
|
+
*
|
|
206
211
|
* @throws {@link DatabaseUnavailableException} (server fault)
|
|
207
212
|
* <p>The writer instance in the DB cluster isn't available.</p>
|
|
208
213
|
*
|
|
@@ -64,6 +64,20 @@ export declare class DatabaseNotFoundException extends __BaseException {
|
|
|
64
64
|
*/
|
|
65
65
|
constructor(opts: __ExceptionOptionType<DatabaseNotFoundException, __BaseException>);
|
|
66
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* <p>A request was canceled because the Aurora Serverless v2 DB instance was in a paused state.
|
|
69
|
+
* The Data API request automatically causes the DB instance to begin resuming. Wait a few seconds and
|
|
70
|
+
* try again.</p>
|
|
71
|
+
* @public
|
|
72
|
+
*/
|
|
73
|
+
export declare class DatabaseResumingException extends __BaseException {
|
|
74
|
+
readonly name: "DatabaseResumingException";
|
|
75
|
+
readonly $fault: "client";
|
|
76
|
+
/**
|
|
77
|
+
* @internal
|
|
78
|
+
*/
|
|
79
|
+
constructor(opts: __ExceptionOptionType<DatabaseResumingException, __BaseException>);
|
|
80
|
+
}
|
|
67
81
|
/**
|
|
68
82
|
* <p>The writer instance in the DB cluster isn't available.</p>
|
|
69
83
|
* @public
|
|
@@ -37,6 +37,13 @@ export declare class DatabaseNotFoundException extends __BaseException {
|
|
|
37
37
|
opts: __ExceptionOptionType<DatabaseNotFoundException, __BaseException>
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
+
export declare class DatabaseResumingException extends __BaseException {
|
|
41
|
+
readonly name: "DatabaseResumingException";
|
|
42
|
+
readonly $fault: "client";
|
|
43
|
+
constructor(
|
|
44
|
+
opts: __ExceptionOptionType<DatabaseResumingException, __BaseException>
|
|
45
|
+
);
|
|
46
|
+
}
|
|
40
47
|
export declare class DatabaseUnavailableException extends __BaseException {
|
|
41
48
|
readonly name: "DatabaseUnavailableException";
|
|
42
49
|
readonly $fault: "server";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-rds-data",
|
|
3
3
|
"description": "AWS SDK for JavaScript Rds Data Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.696.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-rds-data",
|
|
@@ -20,43 +20,43 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
28
|
-
"@aws-sdk/middleware-logger": "3.
|
|
29
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^3.0.
|
|
37
|
-
"@smithy/core": "^2.5.
|
|
38
|
-
"@smithy/fetch-http-handler": "^4.1.
|
|
39
|
-
"@smithy/hash-node": "^3.0.
|
|
40
|
-
"@smithy/invalid-dependency": "^3.0.
|
|
41
|
-
"@smithy/middleware-content-length": "^3.0.
|
|
42
|
-
"@smithy/middleware-endpoint": "^3.2.
|
|
43
|
-
"@smithy/middleware-retry": "^3.0.
|
|
44
|
-
"@smithy/middleware-serde": "^3.0.
|
|
45
|
-
"@smithy/middleware-stack": "^3.0.
|
|
46
|
-
"@smithy/node-config-provider": "^3.1.
|
|
47
|
-
"@smithy/node-http-handler": "^3.3.
|
|
48
|
-
"@smithy/protocol-http": "^4.1.
|
|
49
|
-
"@smithy/smithy-client": "^3.4.
|
|
50
|
-
"@smithy/types": "^3.7.
|
|
51
|
-
"@smithy/url-parser": "^3.0.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.696.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.696.0",
|
|
25
|
+
"@aws-sdk/core": "3.696.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.696.0",
|
|
27
|
+
"@aws-sdk/middleware-host-header": "3.696.0",
|
|
28
|
+
"@aws-sdk/middleware-logger": "3.696.0",
|
|
29
|
+
"@aws-sdk/middleware-recursion-detection": "3.696.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.696.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.696.0",
|
|
32
|
+
"@aws-sdk/types": "3.696.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.696.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.696.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.696.0",
|
|
36
|
+
"@smithy/config-resolver": "^3.0.12",
|
|
37
|
+
"@smithy/core": "^2.5.3",
|
|
38
|
+
"@smithy/fetch-http-handler": "^4.1.1",
|
|
39
|
+
"@smithy/hash-node": "^3.0.10",
|
|
40
|
+
"@smithy/invalid-dependency": "^3.0.10",
|
|
41
|
+
"@smithy/middleware-content-length": "^3.0.12",
|
|
42
|
+
"@smithy/middleware-endpoint": "^3.2.3",
|
|
43
|
+
"@smithy/middleware-retry": "^3.0.27",
|
|
44
|
+
"@smithy/middleware-serde": "^3.0.10",
|
|
45
|
+
"@smithy/middleware-stack": "^3.0.10",
|
|
46
|
+
"@smithy/node-config-provider": "^3.1.11",
|
|
47
|
+
"@smithy/node-http-handler": "^3.3.1",
|
|
48
|
+
"@smithy/protocol-http": "^4.1.7",
|
|
49
|
+
"@smithy/smithy-client": "^3.4.4",
|
|
50
|
+
"@smithy/types": "^3.7.1",
|
|
51
|
+
"@smithy/url-parser": "^3.0.10",
|
|
52
52
|
"@smithy/util-base64": "^3.0.0",
|
|
53
53
|
"@smithy/util-body-length-browser": "^3.0.0",
|
|
54
54
|
"@smithy/util-body-length-node": "^3.0.0",
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^3.0.
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
|
57
|
-
"@smithy/util-endpoints": "^2.1.
|
|
58
|
-
"@smithy/util-middleware": "^3.0.
|
|
59
|
-
"@smithy/util-retry": "^3.0.
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^3.0.27",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^3.0.27",
|
|
57
|
+
"@smithy/util-endpoints": "^2.1.6",
|
|
58
|
+
"@smithy/util-middleware": "^3.0.10",
|
|
59
|
+
"@smithy/util-retry": "^3.0.10",
|
|
60
60
|
"@smithy/util-utf8": "^3.0.0",
|
|
61
61
|
"tslib": "^2.6.2"
|
|
62
62
|
},
|