@aws-sdk/client-rds 3.501.0 → 3.502.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
@@ -10454,6 +10454,9 @@ var de_RestoreDBClusterFromSnapshotCommandError = /* @__PURE__ */ __name(async (
10454
10454
  case "InsufficientDBClusterCapacityFault":
10455
10455
  case "com.amazonaws.rds#InsufficientDBClusterCapacityFault":
10456
10456
  throw await de_InsufficientDBClusterCapacityFaultRes(parsedOutput, context);
10457
+ case "InsufficientDBInstanceCapacity":
10458
+ case "com.amazonaws.rds#InsufficientDBInstanceCapacityFault":
10459
+ throw await de_InsufficientDBInstanceCapacityFaultRes(parsedOutput, context);
10457
10460
  case "InsufficientStorageClusterCapacity":
10458
10461
  case "com.amazonaws.rds#InsufficientStorageClusterCapacityFault":
10459
10462
  throw await de_InsufficientStorageClusterCapacityFaultRes(parsedOutput, context);
@@ -10540,6 +10543,9 @@ var de_RestoreDBClusterToPointInTimeCommandError = /* @__PURE__ */ __name(async
10540
10543
  case "InsufficientDBClusterCapacityFault":
10541
10544
  case "com.amazonaws.rds#InsufficientDBClusterCapacityFault":
10542
10545
  throw await de_InsufficientDBClusterCapacityFaultRes(parsedOutput, context);
10546
+ case "InsufficientDBInstanceCapacity":
10547
+ case "com.amazonaws.rds#InsufficientDBInstanceCapacityFault":
10548
+ throw await de_InsufficientDBInstanceCapacityFaultRes(parsedOutput, context);
10543
10549
  case "InsufficientStorageClusterCapacity":
10544
10550
  case "com.amazonaws.rds#InsufficientStorageClusterCapacityFault":
10545
10551
  throw await de_InsufficientStorageClusterCapacityFaultRes(parsedOutput, context);
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
- const client_sts_1 = require("@aws-sdk/client-sts");
7
6
  const core_1 = require("@aws-sdk/core");
8
7
  const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
9
8
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
@@ -30,7 +29,7 @@ const getRuntimeConfig = (config) => {
30
29
  runtime: "node",
31
30
  defaultsMode,
32
31
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
33
- credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
32
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
34
33
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
35
34
  (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
36
35
  maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
@@ -7185,6 +7185,9 @@ const de_RestoreDBClusterFromSnapshotCommandError = async (output, context) => {
7185
7185
  case "InsufficientDBClusterCapacityFault":
7186
7186
  case "com.amazonaws.rds#InsufficientDBClusterCapacityFault":
7187
7187
  throw await de_InsufficientDBClusterCapacityFaultRes(parsedOutput, context);
7188
+ case "InsufficientDBInstanceCapacity":
7189
+ case "com.amazonaws.rds#InsufficientDBInstanceCapacityFault":
7190
+ throw await de_InsufficientDBInstanceCapacityFaultRes(parsedOutput, context);
7188
7191
  case "InsufficientStorageClusterCapacity":
7189
7192
  case "com.amazonaws.rds#InsufficientStorageClusterCapacityFault":
7190
7193
  throw await de_InsufficientStorageClusterCapacityFaultRes(parsedOutput, context);
@@ -7271,6 +7274,9 @@ const de_RestoreDBClusterToPointInTimeCommandError = async (output, context) =>
7271
7274
  case "InsufficientDBClusterCapacityFault":
7272
7275
  case "com.amazonaws.rds#InsufficientDBClusterCapacityFault":
7273
7276
  throw await de_InsufficientDBClusterCapacityFaultRes(parsedOutput, context);
7277
+ case "InsufficientDBInstanceCapacity":
7278
+ case "com.amazonaws.rds#InsufficientDBInstanceCapacityFault":
7279
+ throw await de_InsufficientDBInstanceCapacityFaultRes(parsedOutput, context);
7274
7280
  case "InsufficientStorageClusterCapacity":
7275
7281
  case "com.amazonaws.rds#InsufficientStorageClusterCapacityFault":
7276
7282
  throw await de_InsufficientStorageClusterCapacityFaultRes(parsedOutput, context);
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
3
2
  import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
4
3
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
5
4
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
@@ -26,7 +25,7 @@ export const getRuntimeConfig = (config) => {
26
25
  runtime: "node",
27
26
  defaultsMode,
28
27
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
29
- credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
28
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
30
29
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
31
30
  defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
32
31
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
@@ -331,6 +331,10 @@ declare const RestoreDBClusterFromSnapshotCommand_base: {
331
331
  * @throws {@link InsufficientDBClusterCapacityFault} (client fault)
332
332
  * <p>The DB cluster doesn't have enough capacity for the current operation.</p>
333
333
  *
334
+ * @throws {@link InsufficientDBInstanceCapacityFault} (client fault)
335
+ * <p>The specified DB instance class isn't available in the specified Availability
336
+ * Zone.</p>
337
+ *
334
338
  * @throws {@link InsufficientStorageClusterCapacityFault} (client fault)
335
339
  * <p>There is insufficient storage available for the current action. You might be able to
336
340
  * resolve this error by updating your subnet group to use different Availability Zones
@@ -330,6 +330,10 @@ declare const RestoreDBClusterToPointInTimeCommand_base: {
330
330
  * @throws {@link InsufficientDBClusterCapacityFault} (client fault)
331
331
  * <p>The DB cluster doesn't have enough capacity for the current operation.</p>
332
332
  *
333
+ * @throws {@link InsufficientDBInstanceCapacityFault} (client fault)
334
+ * <p>The specified DB instance class isn't available in the specified Availability
335
+ * Zone.</p>
336
+ *
333
337
  * @throws {@link InsufficientStorageClusterCapacityFault} (client fault)
334
338
  * <p>There is insufficient storage available for the current action. You might be able to
335
339
  * resolve this error by updating your subnet group to use different Availability Zones
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: RDSClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
10
+ credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
11
11
  defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<string>;
@@ -7,8 +7,12 @@ export declare const getRuntimeConfig: (config: RDSClientConfig) => {
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
9
  credentialDefaultProvider: (
10
- input: any
11
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
10
+ init?:
11
+ | import("@aws-sdk/credential-provider-node").DefaultProviderInit
12
+ | undefined
13
+ ) => import("@smithy/types").MemoizedProvider<
14
+ import("@smithy/types").AwsCredentialIdentity
15
+ >;
12
16
  defaultUserAgentProvider: import("@smithy/types").Provider<
13
17
  import("@smithy/types").UserAgent
14
18
  >;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-rds",
3
3
  "description": "AWS SDK for JavaScript Rds Client for Node.js, Browser and React Native",
4
- "version": "3.501.0",
4
+ "version": "3.502.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",
@@ -20,19 +20,19 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.501.0",
23
+ "@aws-sdk/client-sts": "3.502.0",
24
24
  "@aws-sdk/core": "3.496.0",
25
- "@aws-sdk/credential-provider-node": "3.501.0",
26
- "@aws-sdk/middleware-host-header": "3.496.0",
27
- "@aws-sdk/middleware-logger": "3.496.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.496.0",
29
- "@aws-sdk/middleware-sdk-rds": "3.496.0",
30
- "@aws-sdk/middleware-user-agent": "3.496.0",
31
- "@aws-sdk/region-config-resolver": "3.496.0",
32
- "@aws-sdk/types": "3.496.0",
33
- "@aws-sdk/util-endpoints": "3.496.0",
34
- "@aws-sdk/util-user-agent-browser": "3.496.0",
35
- "@aws-sdk/util-user-agent-node": "3.496.0",
25
+ "@aws-sdk/credential-provider-node": "3.502.0",
26
+ "@aws-sdk/middleware-host-header": "3.502.0",
27
+ "@aws-sdk/middleware-logger": "3.502.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.502.0",
29
+ "@aws-sdk/middleware-sdk-rds": "3.502.0",
30
+ "@aws-sdk/middleware-user-agent": "3.502.0",
31
+ "@aws-sdk/region-config-resolver": "3.502.0",
32
+ "@aws-sdk/types": "3.502.0",
33
+ "@aws-sdk/util-endpoints": "3.502.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.502.0",
35
+ "@aws-sdk/util-user-agent-node": "3.502.0",
36
36
  "@smithy/config-resolver": "^2.1.1",
37
37
  "@smithy/core": "^1.3.1",
38
38
  "@smithy/fetch-http-handler": "^2.4.1",