@aws-sdk/client-rds-data 3.744.0 → 3.749.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 CHANGED
@@ -38,6 +38,7 @@ __export(src_exports, {
38
38
  ForbiddenException: () => ForbiddenException,
39
39
  HttpEndpointNotEnabledException: () => HttpEndpointNotEnabledException,
40
40
  InternalServerErrorException: () => InternalServerErrorException,
41
+ InvalidResourceStateException: () => InvalidResourceStateException,
41
42
  InvalidSecretException: () => InvalidSecretException,
42
43
  LongReturnType: () => LongReturnType,
43
44
  NotFoundException: () => NotFoundException,
@@ -398,6 +399,24 @@ var InternalServerErrorException = class _InternalServerErrorException extends R
398
399
  Object.setPrototypeOf(this, _InternalServerErrorException.prototype);
399
400
  }
400
401
  };
402
+ var InvalidResourceStateException = class _InvalidResourceStateException extends RDSDataServiceException {
403
+ static {
404
+ __name(this, "InvalidResourceStateException");
405
+ }
406
+ name = "InvalidResourceStateException";
407
+ $fault = "client";
408
+ /**
409
+ * @internal
410
+ */
411
+ constructor(opts) {
412
+ super({
413
+ name: "InvalidResourceStateException",
414
+ $fault: "client",
415
+ ...opts
416
+ });
417
+ Object.setPrototypeOf(this, _InvalidResourceStateException.prototype);
418
+ }
419
+ };
401
420
  var InvalidSecretException = class _InvalidSecretException extends RDSDataServiceException {
402
421
  static {
403
422
  __name(this, "InvalidSecretException");
@@ -845,6 +864,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
845
864
  case "InternalServerErrorException":
846
865
  case "com.amazonaws.rdsdata#InternalServerErrorException":
847
866
  throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
867
+ case "InvalidResourceStateException":
868
+ case "com.amazonaws.rdsdata#InvalidResourceStateException":
869
+ throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
848
870
  case "InvalidSecretException":
849
871
  case "com.amazonaws.rdsdata#InvalidSecretException":
850
872
  throw await de_InvalidSecretExceptionRes(parsedOutput, context);
@@ -989,6 +1011,19 @@ var de_InternalServerErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOut
989
1011
  });
990
1012
  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
991
1013
  }, "de_InternalServerErrorExceptionRes");
1014
+ var de_InvalidResourceStateExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1015
+ const contents = (0, import_smithy_client.map)({});
1016
+ const data = parsedOutput.body;
1017
+ const doc = (0, import_smithy_client.take)(data, {
1018
+ message: import_smithy_client.expectString
1019
+ });
1020
+ Object.assign(contents, doc);
1021
+ const exception = new InvalidResourceStateException({
1022
+ $metadata: deserializeMetadata(parsedOutput),
1023
+ ...contents
1024
+ });
1025
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1026
+ }, "de_InvalidResourceStateExceptionRes");
992
1027
  var de_InvalidSecretExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
993
1028
  const contents = (0, import_smithy_client.map)({});
994
1029
  const data = parsedOutput.body;
@@ -1437,6 +1472,7 @@ var RDSData = class extends RDSDataClient {
1437
1472
  ForbiddenException,
1438
1473
  HttpEndpointNotEnabledException,
1439
1474
  InternalServerErrorException,
1475
+ InvalidResourceStateException,
1440
1476
  InvalidSecretException,
1441
1477
  SecretsErrorException,
1442
1478
  ServiceUnavailableError,
@@ -115,6 +115,18 @@ export class InternalServerErrorException extends __BaseException {
115
115
  Object.setPrototypeOf(this, InternalServerErrorException.prototype);
116
116
  }
117
117
  }
118
+ export class InvalidResourceStateException extends __BaseException {
119
+ name = "InvalidResourceStateException";
120
+ $fault = "client";
121
+ constructor(opts) {
122
+ super({
123
+ name: "InvalidResourceStateException",
124
+ $fault: "client",
125
+ ...opts,
126
+ });
127
+ Object.setPrototypeOf(this, InvalidResourceStateException.prototype);
128
+ }
129
+ }
118
130
  export class InvalidSecretException extends __BaseException {
119
131
  name = "InvalidSecretException";
120
132
  $fault = "client";
@@ -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, DatabaseResumingException, 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, InvalidResourceStateException, 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);
@@ -230,6 +230,9 @@ const de_CommandError = async (output, context) => {
230
230
  case "InternalServerErrorException":
231
231
  case "com.amazonaws.rdsdata#InternalServerErrorException":
232
232
  throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
233
+ case "InvalidResourceStateException":
234
+ case "com.amazonaws.rdsdata#InvalidResourceStateException":
235
+ throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
233
236
  case "InvalidSecretException":
234
237
  case "com.amazonaws.rdsdata#InvalidSecretException":
235
238
  throw await de_InvalidSecretExceptionRes(parsedOutput, context);
@@ -374,6 +377,19 @@ const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
374
377
  });
375
378
  return __decorateServiceException(exception, parsedOutput.body);
376
379
  };
380
+ const de_InvalidResourceStateExceptionRes = async (parsedOutput, context) => {
381
+ const contents = map({});
382
+ const data = parsedOutput.body;
383
+ const doc = take(data, {
384
+ message: __expectString,
385
+ });
386
+ Object.assign(contents, doc);
387
+ const exception = new InvalidResourceStateException({
388
+ $metadata: deserializeMetadata(parsedOutput),
389
+ ...contents,
390
+ });
391
+ return __decorateServiceException(exception, parsedOutput.body);
392
+ };
377
393
  const de_InvalidSecretExceptionRes = async (parsedOutput, context) => {
378
394
  const contents = map({});
379
395
  const data = parsedOutput.body;
@@ -177,9 +177,9 @@ declare const BatchExecuteStatementCommand_base: {
177
177
  * <p>The DB cluster doesn't have a DB instance.</p>
178
178
  *
179
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>
180
+ * <p>A request was cancelled because the Aurora Serverless v2 DB instance was paused.
181
+ * The Data API request automatically resumes the DB instance. Wait a few seconds and
182
+ * try again.</p>
183
183
  *
184
184
  * @throws {@link DatabaseUnavailableException} (server fault)
185
185
  * <p>The writer instance in the DB cluster isn't available.</p>
@@ -193,6 +193,9 @@ declare const BatchExecuteStatementCommand_base: {
193
193
  * @throws {@link InternalServerErrorException} (server fault)
194
194
  * <p>An internal error occurred.</p>
195
195
  *
196
+ * @throws {@link InvalidResourceStateException} (client fault)
197
+ * <p>The resource is in an invalid state.</p>
198
+ *
196
199
  * @throws {@link InvalidSecretException} (client fault)
197
200
  * <p>The Secrets Manager secret used with the request isn't valid.</p>
198
201
  *
@@ -75,9 +75,9 @@ declare const BeginTransactionCommand_base: {
75
75
  * <p>The DB cluster doesn't have a DB instance.</p>
76
76
  *
77
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>
78
+ * <p>A request was cancelled because the Aurora Serverless v2 DB instance was paused.
79
+ * The Data API request automatically resumes the DB instance. Wait a few seconds and
80
+ * try again.</p>
81
81
  *
82
82
  * @throws {@link DatabaseUnavailableException} (server fault)
83
83
  * <p>The writer instance in the DB cluster isn't available.</p>
@@ -91,6 +91,9 @@ declare const BeginTransactionCommand_base: {
91
91
  * @throws {@link InternalServerErrorException} (server fault)
92
92
  * <p>An internal error occurred.</p>
93
93
  *
94
+ * @throws {@link InvalidResourceStateException} (client fault)
95
+ * <p>The resource is in an invalid state.</p>
96
+ *
94
97
  * @throws {@link InvalidSecretException} (client fault)
95
98
  * <p>The Secrets Manager secret used with the request isn't valid.</p>
96
99
  *
@@ -78,6 +78,9 @@ declare const CommitTransactionCommand_base: {
78
78
  * @throws {@link InternalServerErrorException} (server fault)
79
79
  * <p>An internal error occurred.</p>
80
80
  *
81
+ * @throws {@link InvalidResourceStateException} (client fault)
82
+ * <p>The resource is in an invalid state.</p>
83
+ *
81
84
  * @throws {@link InvalidSecretException} (client fault)
82
85
  * <p>The Secrets Manager secret used with the request isn't valid.</p>
83
86
  *
@@ -204,9 +204,9 @@ declare const ExecuteStatementCommand_base: {
204
204
  * <p>The DB cluster doesn't have a DB instance.</p>
205
205
  *
206
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>
207
+ * <p>A request was cancelled because the Aurora Serverless v2 DB instance was paused.
208
+ * The Data API request automatically resumes the DB instance. Wait a few seconds and
209
+ * try again.</p>
210
210
  *
211
211
  * @throws {@link DatabaseUnavailableException} (server fault)
212
212
  * <p>The writer instance in the DB cluster isn't available.</p>
@@ -220,6 +220,9 @@ declare const ExecuteStatementCommand_base: {
220
220
  * @throws {@link InternalServerErrorException} (server fault)
221
221
  * <p>An internal error occurred.</p>
222
222
  *
223
+ * @throws {@link InvalidResourceStateException} (client fault)
224
+ * <p>The resource is in an invalid state.</p>
225
+ *
223
226
  * @throws {@link InvalidSecretException} (client fault)
224
227
  * <p>The Secrets Manager secret used with the request isn't valid.</p>
225
228
  *
@@ -77,6 +77,9 @@ declare const RollbackTransactionCommand_base: {
77
77
  * @throws {@link InternalServerErrorException} (server fault)
78
78
  * <p>An internal error occurred.</p>
79
79
  *
80
+ * @throws {@link InvalidResourceStateException} (client fault)
81
+ * <p>The resource is in an invalid state.</p>
82
+ *
80
83
  * @throws {@link InvalidSecretException} (client fault)
81
84
  * <p>The Secrets Manager secret used with the request isn't valid.</p>
82
85
  *
@@ -65,9 +65,9 @@ export declare class DatabaseNotFoundException extends __BaseException {
65
65
  constructor(opts: __ExceptionOptionType<DatabaseNotFoundException, __BaseException>);
66
66
  }
67
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>
68
+ * <p>A request was cancelled because the Aurora Serverless v2 DB instance was paused.
69
+ * The Data API request automatically resumes the DB instance. Wait a few seconds and
70
+ * try again.</p>
71
71
  * @public
72
72
  */
73
73
  export declare class DatabaseResumingException extends __BaseException {
@@ -126,6 +126,18 @@ export declare class InternalServerErrorException extends __BaseException {
126
126
  */
127
127
  constructor(opts: __ExceptionOptionType<InternalServerErrorException, __BaseException>);
128
128
  }
129
+ /**
130
+ * <p>The resource is in an invalid state.</p>
131
+ * @public
132
+ */
133
+ export declare class InvalidResourceStateException extends __BaseException {
134
+ readonly name: "InvalidResourceStateException";
135
+ readonly $fault: "client";
136
+ /**
137
+ * @internal
138
+ */
139
+ constructor(opts: __ExceptionOptionType<InvalidResourceStateException, __BaseException>);
140
+ }
129
141
  /**
130
142
  * <p>The Secrets Manager secret used with the request isn't valid.</p>
131
143
  * @public
@@ -73,6 +73,13 @@ export declare class InternalServerErrorException extends __BaseException {
73
73
  opts: __ExceptionOptionType<InternalServerErrorException, __BaseException>
74
74
  );
75
75
  }
76
+ export declare class InvalidResourceStateException extends __BaseException {
77
+ readonly name: "InvalidResourceStateException";
78
+ readonly $fault: "client";
79
+ constructor(
80
+ opts: __ExceptionOptionType<InvalidResourceStateException, __BaseException>
81
+ );
82
+ }
76
83
  export declare class InvalidSecretException extends __BaseException {
77
84
  readonly name: "InvalidSecretException";
78
85
  readonly $fault: "client";
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.744.0",
4
+ "version": "3.749.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,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.744.0",
24
- "@aws-sdk/credential-provider-node": "3.744.0",
23
+ "@aws-sdk/core": "3.749.0",
24
+ "@aws-sdk/credential-provider-node": "3.749.0",
25
25
  "@aws-sdk/middleware-host-header": "3.734.0",
26
26
  "@aws-sdk/middleware-logger": "3.734.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.734.0",
28
- "@aws-sdk/middleware-user-agent": "3.744.0",
28
+ "@aws-sdk/middleware-user-agent": "3.749.0",
29
29
  "@aws-sdk/region-config-resolver": "3.734.0",
30
30
  "@aws-sdk/types": "3.734.0",
31
31
  "@aws-sdk/util-endpoints": "3.743.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.734.0",
33
- "@aws-sdk/util-user-agent-node": "3.744.0",
33
+ "@aws-sdk/util-user-agent-node": "3.749.0",
34
34
  "@smithy/config-resolver": "^4.0.1",
35
- "@smithy/core": "^3.1.2",
35
+ "@smithy/core": "^3.1.3",
36
36
  "@smithy/fetch-http-handler": "^5.0.1",
37
37
  "@smithy/hash-node": "^4.0.1",
38
38
  "@smithy/invalid-dependency": "^4.0.1",
39
39
  "@smithy/middleware-content-length": "^4.0.1",
40
- "@smithy/middleware-endpoint": "^4.0.3",
41
- "@smithy/middleware-retry": "^4.0.4",
40
+ "@smithy/middleware-endpoint": "^4.0.4",
41
+ "@smithy/middleware-retry": "^4.0.5",
42
42
  "@smithy/middleware-serde": "^4.0.2",
43
43
  "@smithy/middleware-stack": "^4.0.1",
44
44
  "@smithy/node-config-provider": "^4.0.1",
45
45
  "@smithy/node-http-handler": "^4.0.2",
46
46
  "@smithy/protocol-http": "^5.0.1",
47
- "@smithy/smithy-client": "^4.1.3",
47
+ "@smithy/smithy-client": "^4.1.4",
48
48
  "@smithy/types": "^4.1.0",
49
49
  "@smithy/url-parser": "^4.0.1",
50
50
  "@smithy/util-base64": "^4.0.0",
51
51
  "@smithy/util-body-length-browser": "^4.0.0",
52
52
  "@smithy/util-body-length-node": "^4.0.0",
53
- "@smithy/util-defaults-mode-browser": "^4.0.4",
54
- "@smithy/util-defaults-mode-node": "^4.0.4",
53
+ "@smithy/util-defaults-mode-browser": "^4.0.5",
54
+ "@smithy/util-defaults-mode-node": "^4.0.5",
55
55
  "@smithy/util-endpoints": "^3.0.1",
56
56
  "@smithy/util-middleware": "^4.0.1",
57
57
  "@smithy/util-retry": "^4.0.1",