@aws-sdk/client-rds-data 3.1075.0 → 3.1076.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.
@@ -45,7 +45,7 @@ export interface RDSData {
45
45
  rollbackTransaction(args: RollbackTransactionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RollbackTransactionCommandOutput) => void): void;
46
46
  }
47
47
  /**
48
- * <fullname>RDS Data API</fullname> <p>Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora DB cluster. To run these statements, you use the RDS Data API (Data API).</p> <p>Data API is available with the following types of Aurora databases:</p> <ul> <li> <p>Aurora PostgreSQL - Serverless v2, provisioned, and Serverless v1</p> </li> <li> <p>Aurora MySQL - Serverless v2, provisioned, and Serverless v1</p> </li> </ul> <p>For more information about the Data API, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a> in the <i>Amazon Aurora User Guide</i>.</p>
48
+ * <fullname>RDS Data API</fullname> <p>Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora DB cluster. To run these statements, you use the RDS Data API (Data API).</p> <p>Data API is available with the following types of Aurora databases:</p> <ul> <li> <p>Aurora PostgreSQL - Serverless and provisioned</p> </li> <li> <p>Aurora MySQL - Serverless and provisioned</p> </li> </ul> <p>For more information about the Data API, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a> in the <i>Amazon Aurora User Guide</i>.</p>
49
49
  * @public
50
50
  */
51
51
  export declare class RDSData extends RDSDataClient implements RDSData {
@@ -174,7 +174,7 @@ export type RDSDataClientResolvedConfigType = __SmithyResolvedConfiguration<__Ht
174
174
  export interface RDSDataClientResolvedConfig extends RDSDataClientResolvedConfigType {
175
175
  }
176
176
  /**
177
- * <fullname>RDS Data API</fullname> <p>Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora DB cluster. To run these statements, you use the RDS Data API (Data API).</p> <p>Data API is available with the following types of Aurora databases:</p> <ul> <li> <p>Aurora PostgreSQL - Serverless v2, provisioned, and Serverless v1</p> </li> <li> <p>Aurora MySQL - Serverless v2, provisioned, and Serverless v1</p> </li> </ul> <p>For more information about the Data API, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a> in the <i>Amazon Aurora User Guide</i>.</p>
177
+ * <fullname>RDS Data API</fullname> <p>Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora DB cluster. To run these statements, you use the RDS Data API (Data API).</p> <p>Data API is available with the following types of Aurora databases:</p> <ul> <li> <p>Aurora PostgreSQL - Serverless and provisioned</p> </li> <li> <p>Aurora MySQL - Serverless and provisioned</p> </li> </ul> <p>For more information about the Data API, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a> in the <i>Amazon Aurora User Guide</i>.</p>
178
178
  * @public
179
179
  */
180
180
  export declare class RDSDataClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, RDSDataClientResolvedConfig> {
@@ -159,7 +159,7 @@ declare const BatchExecuteStatementCommand_base: {
159
159
  * <p>You don't have sufficient access to perform this action.</p>
160
160
  *
161
161
  * @throws {@link BadRequestException} (client fault)
162
- * <p>There is an error in the call or in a SQL statement. (This error only appears in calls from Aurora Serverless v1 databases.)</p>
162
+ * <p>There is an error in the call or in a SQL statement. This exception is deprecated.</p>
163
163
  *
164
164
  * @throws {@link DatabaseErrorException} (client fault)
165
165
  * <p>There was an error in processing the SQL statement.</p>
@@ -168,7 +168,7 @@ declare const BatchExecuteStatementCommand_base: {
168
168
  * <p>The DB cluster doesn't have a DB instance.</p>
169
169
  *
170
170
  * @throws {@link DatabaseResumingException} (client fault)
171
- * <p>A request was cancelled because the Aurora Serverless v2 DB instance was paused. The Data API request automatically resumes the DB instance. Wait a few seconds and try again.</p>
171
+ * <p>A request was cancelled because the Aurora Serverless DB instance was paused. The Data API request automatically resumes the DB instance. Wait a few seconds and try again.</p>
172
172
  *
173
173
  * @throws {@link DatabaseUnavailableException} (server fault)
174
174
  * <p>The writer instance in the DB cluster isn't available.</p>
@@ -62,7 +62,7 @@ declare const BeginTransactionCommand_base: {
62
62
  * <p>You don't have sufficient access to perform this action.</p>
63
63
  *
64
64
  * @throws {@link BadRequestException} (client fault)
65
- * <p>There is an error in the call or in a SQL statement. (This error only appears in calls from Aurora Serverless v1 databases.)</p>
65
+ * <p>There is an error in the call or in a SQL statement. This exception is deprecated.</p>
66
66
  *
67
67
  * @throws {@link DatabaseErrorException} (client fault)
68
68
  * <p>There was an error in processing the SQL statement.</p>
@@ -71,7 +71,7 @@ declare const BeginTransactionCommand_base: {
71
71
  * <p>The DB cluster doesn't have a DB instance.</p>
72
72
  *
73
73
  * @throws {@link DatabaseResumingException} (client fault)
74
- * <p>A request was cancelled because the Aurora Serverless v2 DB instance was paused. The Data API request automatically resumes the DB instance. Wait a few seconds and try again.</p>
74
+ * <p>A request was cancelled because the Aurora Serverless DB instance was paused. The Data API request automatically resumes the DB instance. Wait a few seconds and try again.</p>
75
75
  *
76
76
  * @throws {@link DatabaseUnavailableException} (server fault)
77
77
  * <p>The writer instance in the DB cluster isn't available.</p>
@@ -61,7 +61,7 @@ declare const CommitTransactionCommand_base: {
61
61
  * <p>You don't have sufficient access to perform this action.</p>
62
62
  *
63
63
  * @throws {@link BadRequestException} (client fault)
64
- * <p>There is an error in the call or in a SQL statement. (This error only appears in calls from Aurora Serverless v1 databases.)</p>
64
+ * <p>There is an error in the call or in a SQL statement. This exception is deprecated.</p>
65
65
  *
66
66
  * @throws {@link DatabaseErrorException} (client fault)
67
67
  * <p>There was an error in processing the SQL statement.</p>
@@ -29,7 +29,7 @@ declare const ExecuteSqlCommand_base: {
29
29
  };
30
30
  };
31
31
  /**
32
- * <p>Runs one or more SQL statements.</p> <note> <p>This operation isn't supported for Aurora Serverless v2 and provisioned DB clusters. For Aurora Serverless v1 DB clusters, the operation is deprecated. Use the <code>BatchExecuteStatement</code> or <code>ExecuteStatement</code> operation.</p> </note>
32
+ * <p>Runs one or more SQL statements.</p> <note> <p>This operation is deprecated. Please use the <code>BatchExecuteStatement</code> or <code>ExecuteStatement</code> operation.</p> </note>
33
33
  *
34
34
  * @deprecated (since 2019-03-21) The ExecuteSql API is deprecated, please use the ExecuteStatement API.
35
35
  * @example
@@ -129,7 +129,7 @@ declare const ExecuteSqlCommand_base: {
129
129
  * <p>You don't have sufficient access to perform this action.</p>
130
130
  *
131
131
  * @throws {@link BadRequestException} (client fault)
132
- * <p>There is an error in the call or in a SQL statement. (This error only appears in calls from Aurora Serverless v1 databases.)</p>
132
+ * <p>There is an error in the call or in a SQL statement. This exception is deprecated.</p>
133
133
  *
134
134
  * @throws {@link ForbiddenException} (client fault)
135
135
  * <p>There are insufficient privileges to make the call.</p>
@@ -193,7 +193,7 @@ declare const ExecuteStatementCommand_base: {
193
193
  * <p>You don't have sufficient access to perform this action.</p>
194
194
  *
195
195
  * @throws {@link BadRequestException} (client fault)
196
- * <p>There is an error in the call or in a SQL statement. (This error only appears in calls from Aurora Serverless v1 databases.)</p>
196
+ * <p>There is an error in the call or in a SQL statement. This exception is deprecated.</p>
197
197
  *
198
198
  * @throws {@link DatabaseErrorException} (client fault)
199
199
  * <p>There was an error in processing the SQL statement.</p>
@@ -202,7 +202,7 @@ declare const ExecuteStatementCommand_base: {
202
202
  * <p>The DB cluster doesn't have a DB instance.</p>
203
203
  *
204
204
  * @throws {@link DatabaseResumingException} (client fault)
205
- * <p>A request was cancelled because the Aurora Serverless v2 DB instance was paused. The Data API request automatically resumes the DB instance. Wait a few seconds and try again.</p>
205
+ * <p>A request was cancelled because the Aurora Serverless DB instance was paused. The Data API request automatically resumes the DB instance. Wait a few seconds and try again.</p>
206
206
  *
207
207
  * @throws {@link DatabaseUnavailableException} (server fault)
208
208
  * <p>The writer instance in the DB cluster isn't available.</p>
@@ -61,7 +61,7 @@ declare const RollbackTransactionCommand_base: {
61
61
  * <p>You don't have sufficient access to perform this action.</p>
62
62
  *
63
63
  * @throws {@link BadRequestException} (client fault)
64
- * <p>There is an error in the call or in a SQL statement. (This error only appears in calls from Aurora Serverless v1 databases.)</p>
64
+ * <p>There is an error in the call or in a SQL statement. This exception is deprecated.</p>
65
65
  *
66
66
  * @throws {@link DatabaseErrorException} (client fault)
67
67
  * <p>There was an error in processing the SQL statement.</p>
@@ -1,5 +1,5 @@
1
1
  /**
2
- * <fullname>RDS Data API</fullname> <p>Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora DB cluster. To run these statements, you use the RDS Data API (Data API).</p> <p>Data API is available with the following types of Aurora databases:</p> <ul> <li> <p>Aurora PostgreSQL - Serverless v2, provisioned, and Serverless v1</p> </li> <li> <p>Aurora MySQL - Serverless v2, provisioned, and Serverless v1</p> </li> </ul> <p>For more information about the Data API, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a> in the <i>Amazon Aurora User Guide</i>.</p>
2
+ * <fullname>RDS Data API</fullname> <p>Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora DB cluster. To run these statements, you use the RDS Data API (Data API).</p> <p>Data API is available with the following types of Aurora databases:</p> <ul> <li> <p>Aurora PostgreSQL - Serverless and provisioned</p> </li> <li> <p>Aurora MySQL - Serverless and provisioned</p> </li> </ul> <p>For more information about the Data API, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a> in the <i>Amazon Aurora User Guide</i>.</p>
3
3
  *
4
4
  * @packageDocumentation
5
5
  */
@@ -13,7 +13,7 @@ export declare class AccessDeniedException extends __BaseException {
13
13
  constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
14
14
  }
15
15
  /**
16
- * <p>There is an error in the call or in a SQL statement. (This error only appears in calls from Aurora Serverless v1 databases.)</p>
16
+ * <p>There is an error in the call or in a SQL statement. This exception is deprecated.</p>
17
17
  * @public
18
18
  */
19
19
  export declare class BadRequestException extends __BaseException {
@@ -49,7 +49,7 @@ export declare class DatabaseNotFoundException extends __BaseException {
49
49
  constructor(opts: __ExceptionOptionType<DatabaseNotFoundException, __BaseException>);
50
50
  }
51
51
  /**
52
- * <p>A request was cancelled because the Aurora Serverless v2 DB instance was paused. The Data API request automatically resumes the DB instance. Wait a few seconds and try again.</p>
52
+ * <p>A request was cancelled because the Aurora Serverless DB instance was paused. The Data API request automatically resumes the DB instance. Wait a few seconds and try again.</p>
53
53
  * @public
54
54
  */
55
55
  export declare class DatabaseResumingException extends __BaseException {
@@ -14,7 +14,7 @@ export declare const getRuntimeConfig: (config: RDSDataClientConfig) => {
14
14
  requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
15
15
  retryMode: string | import("@smithy/types").Provider<string>;
16
16
  sha256: import("@smithy/types").HashConstructor;
17
- streamCollector: import("@smithy/types").StreamCollector;
17
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
18
18
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
19
19
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
20
20
  cacheMiddleware?: boolean | undefined;
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: RDSDataClientConfig) => {
15
15
  requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
16
16
  retryMode: string | import("@smithy/types").Provider<string>;
17
17
  sha256: import("@smithy/types").HashConstructor;
18
- streamCollector: import("@smithy/types").StreamCollector;
18
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
19
19
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
20
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: RDSDataClientConfig) => {
15
15
  apiVersion: string;
16
16
  urlParser: import("@smithy/types").UrlParser;
17
17
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
18
- streamCollector: import("@smithy/types").StreamCollector;
18
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
19
19
  base64Decoder: import("@smithy/types").Decoder;
20
20
  base64Encoder: (_input: Uint8Array | string) => string;
21
21
  utf8Decoder: import("@smithy/types").Decoder;
@@ -21,7 +21,13 @@ export declare const getRuntimeConfig: (config: RDSDataClientConfig) => {
21
21
  | RequestHandler;
22
22
  retryMode: string | import("@smithy/types").Provider<string>;
23
23
  sha256: import("@smithy/types").HashConstructor;
24
- streamCollector: import("@smithy/types").StreamCollector;
24
+ streamCollector: (
25
+ stream:
26
+ | import("stream").Readable
27
+ | import("stream/web").ReadableStream
28
+ | ReadableStream
29
+ | Blob
30
+ ) => Promise<Uint8Array>;
25
31
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
26
32
  (boolean | import("@smithy/types").Provider<boolean | undefined>);
27
33
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
@@ -22,7 +22,13 @@ export declare const getRuntimeConfig: (config: RDSDataClientConfig) => {
22
22
  | import("@smithy/core/protocols").HttpHandler<any>;
23
23
  retryMode: string | import("@smithy/types").Provider<string>;
24
24
  sha256: import("@smithy/types").HashConstructor;
25
- streamCollector: import("@smithy/types").StreamCollector;
25
+ streamCollector: (
26
+ stream:
27
+ | import("stream").Readable
28
+ | import("stream/web").ReadableStream
29
+ | ReadableStream
30
+ | Blob
31
+ ) => Promise<Uint8Array>;
26
32
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
27
33
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
28
34
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
@@ -20,7 +20,13 @@ export declare const getRuntimeConfig: (config: RDSDataClientConfig) => {
20
20
  apiVersion: string;
21
21
  urlParser: import("@smithy/types").UrlParser;
22
22
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
23
- streamCollector: import("@smithy/types").StreamCollector;
23
+ streamCollector: (
24
+ stream:
25
+ | import("stream").Readable
26
+ | import("stream/web").ReadableStream
27
+ | ReadableStream
28
+ | Blob
29
+ ) => Promise<Uint8Array>;
24
30
  base64Decoder: import("@smithy/types").Decoder;
25
31
  base64Encoder: (_input: Uint8Array | string) => string;
26
32
  utf8Decoder: import("@smithy/types").Decoder;
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.1075.0",
4
+ "version": "3.1076.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline",
@@ -21,13 +21,13 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.974.23",
25
- "@aws-sdk/credential-provider-node": "^3.972.58",
26
- "@aws-sdk/types": "^3.973.13",
27
- "@smithy/core": "^3.24.6",
28
- "@smithy/fetch-http-handler": "^5.4.6",
29
- "@smithy/node-http-handler": "^4.7.6",
30
- "@smithy/types": "^4.14.3",
24
+ "@aws-sdk/core": "^3.974.24",
25
+ "@aws-sdk/credential-provider-node": "^3.972.59",
26
+ "@aws-sdk/types": "^3.973.14",
27
+ "@smithy/core": "^3.27.0",
28
+ "@smithy/fetch-http-handler": "^5.6.0",
29
+ "@smithy/node-http-handler": "^4.9.0",
30
+ "@smithy/types": "^4.15.0",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "devDependencies": {
@@ -1,40 +0,0 @@
1
- const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
2
- const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
3
- exports.defaultRDSDataHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
- return {
5
- operation: getSmithyContext(context).operation,
6
- region: await normalizeProvider(config.region)() || (() => {
7
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
8
- })(),
9
- };
10
- };
11
- function createAwsAuthSigv4HttpAuthOption(authParameters) {
12
- return {
13
- schemeId: "aws.auth#sigv4",
14
- signingProperties: {
15
- name: "rds-data",
16
- region: authParameters.region,
17
- },
18
- propertiesExtractor: (config, context) => ({
19
- signingProperties: {
20
- config,
21
- context,
22
- },
23
- }),
24
- };
25
- }
26
- exports.defaultRDSDataHttpAuthSchemeProvider = (authParameters) => {
27
- const options = [];
28
- switch (authParameters.operation) {
29
- default: {
30
- options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
31
- }
32
- }
33
- return options;
34
- };
35
- exports.resolveHttpAuthSchemeConfig = (config) => {
36
- const config_0 = resolveAwsSdkSigV4Config(config);
37
- return Object.assign(config_0, {
38
- authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
39
- });
40
- };
@@ -1,46 +0,0 @@
1
- const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
2
- const k = "ref";
3
- const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
4
- const _data = {
5
- conditions: [
6
- [c, [g]],
7
- [c, j],
8
- ["aws.partition", j, d],
9
- [e, [{ [k]: "UseFIPS" }, b]],
10
- [e, [{ [k]: "UseDualStack" }, b]],
11
- [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
12
- [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
13
- ],
14
- results: [
15
- [a],
16
- [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
17
- [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
18
- [g, i],
19
- ["https://rds-data-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
20
- [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
21
- ["https://rds-data-fips.{Region}.{PartitionResult#dnsSuffix}", i],
22
- [a, "FIPS is enabled but this partition does not support FIPS"],
23
- ["https://rds-data.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
24
- [a, "DualStack is enabled but this partition does not support DualStack"],
25
- ["https://rds-data.{Region}.{PartitionResult#dnsSuffix}", i],
26
- [a, "Invalid Configuration: Missing Region"]
27
- ]
28
- };
29
- const root = 2;
30
- const r = 100_000_000;
31
- const nodes = new Int32Array([
32
- -1, 1, -1,
33
- 0, 12, 3,
34
- 1, 4, r + 11,
35
- 2, 5, r + 11,
36
- 3, 8, 6,
37
- 4, 7, r + 10,
38
- 5, r + 8, r + 9,
39
- 4, 10, 9,
40
- 6, r + 6, r + 7,
41
- 5, 11, r + 5,
42
- 6, r + 4, r + 5,
43
- 3, r + 1, 13,
44
- 4, r + 2, r + 3,
45
- ]);
46
- exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,14 +0,0 @@
1
- const { awsEndpointFunctions } = require("@aws-sdk/core/client");
2
- const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
3
- const { bdd } = require("./bdd");
4
- const cache = new EndpointCache({
5
- size: 50,
6
- params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
- });
8
- exports.defaultEndpointResolver = (endpointParams, context = {}) => {
9
- return cache.get(endpointParams, () => decideEndpoint(bdd, {
10
- endpointParams: endpointParams,
11
- logger: context.logger,
12
- }));
13
- };
14
- customEndpointFunctions.aws = awsEndpointFunctions;
@@ -1,8 +0,0 @@
1
- const { ServiceException: __ServiceException } = require("@smithy/core/client");
2
- exports.__ServiceException = __ServiceException;
3
- exports.RDSDataServiceException = class RDSDataServiceException extends __ServiceException {
4
- constructor(options) {
5
- super(options);
6
- Object.setPrototypeOf(this, RDSDataServiceException.prototype);
7
- }
8
- };
@@ -1,207 +0,0 @@
1
- const { RDSDataServiceException: __BaseException } = require("./RDSDataServiceException");
2
- exports.AccessDeniedException = class AccessDeniedException extends __BaseException {
3
- name = "AccessDeniedException";
4
- $fault = "client";
5
- constructor(opts) {
6
- super({
7
- name: "AccessDeniedException",
8
- $fault: "client",
9
- ...opts,
10
- });
11
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
- }
13
- };
14
- exports.BadRequestException = class BadRequestException extends __BaseException {
15
- name = "BadRequestException";
16
- $fault = "client";
17
- constructor(opts) {
18
- super({
19
- name: "BadRequestException",
20
- $fault: "client",
21
- ...opts,
22
- });
23
- Object.setPrototypeOf(this, BadRequestException.prototype);
24
- }
25
- };
26
- exports.DatabaseErrorException = class DatabaseErrorException extends __BaseException {
27
- name = "DatabaseErrorException";
28
- $fault = "client";
29
- constructor(opts) {
30
- super({
31
- name: "DatabaseErrorException",
32
- $fault: "client",
33
- ...opts,
34
- });
35
- Object.setPrototypeOf(this, DatabaseErrorException.prototype);
36
- }
37
- };
38
- exports.DatabaseNotFoundException = class DatabaseNotFoundException extends __BaseException {
39
- name = "DatabaseNotFoundException";
40
- $fault = "client";
41
- constructor(opts) {
42
- super({
43
- name: "DatabaseNotFoundException",
44
- $fault: "client",
45
- ...opts,
46
- });
47
- Object.setPrototypeOf(this, DatabaseNotFoundException.prototype);
48
- }
49
- };
50
- exports.DatabaseResumingException = class DatabaseResumingException extends __BaseException {
51
- name = "DatabaseResumingException";
52
- $fault = "client";
53
- constructor(opts) {
54
- super({
55
- name: "DatabaseResumingException",
56
- $fault: "client",
57
- ...opts,
58
- });
59
- Object.setPrototypeOf(this, DatabaseResumingException.prototype);
60
- }
61
- };
62
- exports.DatabaseUnavailableException = class DatabaseUnavailableException extends __BaseException {
63
- name = "DatabaseUnavailableException";
64
- $fault = "server";
65
- constructor(opts) {
66
- super({
67
- name: "DatabaseUnavailableException",
68
- $fault: "server",
69
- ...opts,
70
- });
71
- Object.setPrototypeOf(this, DatabaseUnavailableException.prototype);
72
- }
73
- };
74
- exports.ForbiddenException = class ForbiddenException extends __BaseException {
75
- name = "ForbiddenException";
76
- $fault = "client";
77
- constructor(opts) {
78
- super({
79
- name: "ForbiddenException",
80
- $fault: "client",
81
- ...opts,
82
- });
83
- Object.setPrototypeOf(this, ForbiddenException.prototype);
84
- }
85
- };
86
- exports.HttpEndpointNotEnabledException = class HttpEndpointNotEnabledException extends __BaseException {
87
- name = "HttpEndpointNotEnabledException";
88
- $fault = "client";
89
- constructor(opts) {
90
- super({
91
- name: "HttpEndpointNotEnabledException",
92
- $fault: "client",
93
- ...opts,
94
- });
95
- Object.setPrototypeOf(this, HttpEndpointNotEnabledException.prototype);
96
- }
97
- };
98
- exports.InternalServerErrorException = class InternalServerErrorException extends __BaseException {
99
- name = "InternalServerErrorException";
100
- $fault = "server";
101
- constructor(opts) {
102
- super({
103
- name: "InternalServerErrorException",
104
- $fault: "server",
105
- ...opts,
106
- });
107
- Object.setPrototypeOf(this, InternalServerErrorException.prototype);
108
- }
109
- };
110
- exports.InvalidResourceStateException = class InvalidResourceStateException extends __BaseException {
111
- name = "InvalidResourceStateException";
112
- $fault = "client";
113
- constructor(opts) {
114
- super({
115
- name: "InvalidResourceStateException",
116
- $fault: "client",
117
- ...opts,
118
- });
119
- Object.setPrototypeOf(this, InvalidResourceStateException.prototype);
120
- }
121
- };
122
- exports.InvalidSecretException = class InvalidSecretException extends __BaseException {
123
- name = "InvalidSecretException";
124
- $fault = "client";
125
- constructor(opts) {
126
- super({
127
- name: "InvalidSecretException",
128
- $fault: "client",
129
- ...opts,
130
- });
131
- Object.setPrototypeOf(this, InvalidSecretException.prototype);
132
- }
133
- };
134
- exports.SecretsErrorException = class SecretsErrorException extends __BaseException {
135
- name = "SecretsErrorException";
136
- $fault = "client";
137
- constructor(opts) {
138
- super({
139
- name: "SecretsErrorException",
140
- $fault: "client",
141
- ...opts,
142
- });
143
- Object.setPrototypeOf(this, SecretsErrorException.prototype);
144
- }
145
- };
146
- exports.ServiceUnavailableError = class ServiceUnavailableError extends __BaseException {
147
- name = "ServiceUnavailableError";
148
- $fault = "server";
149
- constructor(opts) {
150
- super({
151
- name: "ServiceUnavailableError",
152
- $fault: "server",
153
- ...opts,
154
- });
155
- Object.setPrototypeOf(this, ServiceUnavailableError.prototype);
156
- }
157
- };
158
- exports.StatementTimeoutException = class StatementTimeoutException extends __BaseException {
159
- name = "StatementTimeoutException";
160
- $fault = "client";
161
- dbConnectionId;
162
- constructor(opts) {
163
- super({
164
- name: "StatementTimeoutException",
165
- $fault: "client",
166
- ...opts,
167
- });
168
- Object.setPrototypeOf(this, StatementTimeoutException.prototype);
169
- this.dbConnectionId = opts.dbConnectionId;
170
- }
171
- };
172
- exports.TransactionNotFoundException = class TransactionNotFoundException extends __BaseException {
173
- name = "TransactionNotFoundException";
174
- $fault = "client";
175
- constructor(opts) {
176
- super({
177
- name: "TransactionNotFoundException",
178
- $fault: "client",
179
- ...opts,
180
- });
181
- Object.setPrototypeOf(this, TransactionNotFoundException.prototype);
182
- }
183
- };
184
- exports.NotFoundException = class NotFoundException extends __BaseException {
185
- name = "NotFoundException";
186
- $fault = "client";
187
- constructor(opts) {
188
- super({
189
- name: "NotFoundException",
190
- $fault: "client",
191
- ...opts,
192
- });
193
- Object.setPrototypeOf(this, NotFoundException.prototype);
194
- }
195
- };
196
- exports.UnsupportedResultException = class UnsupportedResultException extends __BaseException {
197
- name = "UnsupportedResultException";
198
- $fault = "client";
199
- constructor(opts) {
200
- super({
201
- name: "UnsupportedResultException",
202
- $fault: "client",
203
- ...opts,
204
- });
205
- Object.setPrototypeOf(this, UnsupportedResultException.prototype);
206
- }
207
- };
@@ -1,32 +0,0 @@
1
- const packageInfo = require("../package.json");
2
- const { Sha256 } = require("@aws-crypto/sha256-browser");
3
- const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
4
- const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
5
- const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
6
- const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
7
- const { calculateBodyLength } = require("@smithy/core/serde");
8
- const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
9
- const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
10
- const getRuntimeConfig = (config) => {
11
- const defaultsMode = resolveDefaultsModeConfig(config);
12
- const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
13
- const clientSharedValues = getSharedRuntimeConfig(config);
14
- return {
15
- ...clientSharedValues,
16
- ...config,
17
- runtime: "browser",
18
- defaultsMode,
19
- bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
20
- credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
21
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
22
- maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
23
- region: config?.region ?? invalidProvider("Region is missing"),
24
- requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
- retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
- streamCollector: config?.streamCollector ?? streamCollector,
28
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
- useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
30
- };
31
- };
32
- exports.getRuntimeConfig = getRuntimeConfig;