@aws-sdk/client-rds 3.312.0 → 3.314.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.
@@ -5333,6 +5333,9 @@ const de_ModifyDBClusterCommandError = async (output, context) => {
5333
5333
  case "DBClusterParameterGroupNotFound":
5334
5334
  case "com.amazonaws.rds#DBClusterParameterGroupNotFoundFault":
5335
5335
  throw await de_DBClusterParameterGroupNotFoundFaultRes(parsedOutput, context);
5336
+ case "DBInstanceAlreadyExists":
5337
+ case "com.amazonaws.rds#DBInstanceAlreadyExistsFault":
5338
+ throw await de_DBInstanceAlreadyExistsFaultRes(parsedOutput, context);
5336
5339
  case "DBSubnetGroupNotFoundFault":
5337
5340
  case "com.amazonaws.rds#DBSubnetGroupNotFoundFault":
5338
5341
  throw await de_DBSubnetGroupNotFoundFaultRes(parsedOutput, context);
@@ -11555,6 +11558,12 @@ const se_ModifyDBClusterMessage = (input, context) => {
11555
11558
  if (input.MasterUserSecretKmsKeyId != null) {
11556
11559
  entries["MasterUserSecretKmsKeyId"] = input.MasterUserSecretKmsKeyId;
11557
11560
  }
11561
+ if (input.EngineMode != null) {
11562
+ entries["EngineMode"] = input.EngineMode;
11563
+ }
11564
+ if (input.AllowEngineModeChange != null) {
11565
+ entries["AllowEngineModeChange"] = input.AllowEngineModeChange;
11566
+ }
11558
11567
  return entries;
11559
11568
  };
11560
11569
  const se_ModifyDBClusterParameterGroupMessage = (input, context) => {
@@ -5088,6 +5088,9 @@ const de_ModifyDBClusterCommandError = async (output, context) => {
5088
5088
  case "DBClusterParameterGroupNotFound":
5089
5089
  case "com.amazonaws.rds#DBClusterParameterGroupNotFoundFault":
5090
5090
  throw await de_DBClusterParameterGroupNotFoundFaultRes(parsedOutput, context);
5091
+ case "DBInstanceAlreadyExists":
5092
+ case "com.amazonaws.rds#DBInstanceAlreadyExistsFault":
5093
+ throw await de_DBInstanceAlreadyExistsFaultRes(parsedOutput, context);
5091
5094
  case "DBSubnetGroupNotFoundFault":
5092
5095
  case "com.amazonaws.rds#DBSubnetGroupNotFoundFault":
5093
5096
  throw await de_DBSubnetGroupNotFoundFaultRes(parsedOutput, context);
@@ -11265,6 +11268,12 @@ const se_ModifyDBClusterMessage = (input, context) => {
11265
11268
  if (input.MasterUserSecretKmsKeyId != null) {
11266
11269
  entries["MasterUserSecretKmsKeyId"] = input.MasterUserSecretKmsKeyId;
11267
11270
  }
11271
+ if (input.EngineMode != null) {
11272
+ entries["EngineMode"] = input.EngineMode;
11273
+ }
11274
+ if (input.AllowEngineModeChange != null) {
11275
+ entries["AllowEngineModeChange"] = input.AllowEngineModeChange;
11276
+ }
11268
11277
  return entries;
11269
11278
  };
11270
11279
  const se_ModifyDBClusterParameterGroupMessage = (input, context) => {
@@ -93,6 +93,8 @@ export interface ModifyDBClusterCommandOutput extends ModifyDBClusterResult, __M
93
93
  * ManageMasterUserPassword: true || false,
94
94
  * RotateMasterUserPassword: true || false,
95
95
  * MasterUserSecretKmsKeyId: "STRING_VALUE",
96
+ * EngineMode: "STRING_VALUE",
97
+ * AllowEngineModeChange: true || false,
96
98
  * };
97
99
  * const command = new ModifyDBClusterCommand(input);
98
100
  * const response = await client.send(command);
@@ -116,6 +118,9 @@ export interface ModifyDBClusterCommandOutput extends ModifyDBClusterResult, __M
116
118
  * <code>DBClusterParameterGroupName</code> doesn't refer to an existing DB
117
119
  * cluster parameter group.</p>
118
120
  *
121
+ * @throws {@link DBInstanceAlreadyExistsFault} (client fault)
122
+ * <p>The user already has a DB instance with the given identifier.</p>
123
+ *
119
124
  * @throws {@link DBSubnetGroupNotFoundFault} (client fault)
120
125
  * <p>
121
126
  * <code>DBSubnetGroupName</code> doesn't refer to an existing DB subnet group.</p>
@@ -3516,7 +3516,6 @@ export interface ModifyDBClusterMessage {
3516
3516
  DBClusterInstanceClass?: string;
3517
3517
  /**
3518
3518
  * <p>The amount of storage in gibibytes (GiB) to allocate to each DB instance in the Multi-AZ DB cluster.</p>
3519
- * <p>Type: Integer</p>
3520
3519
  * <p>Valid for: Multi-AZ DB clusters only</p>
3521
3520
  */
3522
3521
  AllocatedStorage?: number;
@@ -3706,6 +3705,24 @@ export interface ModifyDBClusterMessage {
3706
3705
  * <p>Valid for: Aurora DB clusters and Multi-AZ DB clusters</p>
3707
3706
  */
3708
3707
  MasterUserSecretKmsKeyId?: string;
3708
+ /**
3709
+ * <p>The DB engine mode of the DB cluster, either <code>provisioned</code> or <code>serverless</code>.</p>
3710
+ * <note>
3711
+ * <p>The DB engine mode can be modified only from <code>serverless</code> to <code>provisioned</code>.</p>
3712
+ * </note>
3713
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBCluster.html">
3714
+ * CreateDBCluster</a>.</p>
3715
+ * <p>Valid for: Aurora DB clusters only</p>
3716
+ */
3717
+ EngineMode?: string;
3718
+ /**
3719
+ * <p>A value that indicates whether engine mode changes from <code>serverless</code> to <code>provisioned</code>
3720
+ * are allowed.</p>
3721
+ * <p>Constraints: You must allow engine mode changes when specifying a different value for the <code>EngineMode</code> parameter
3722
+ * from the DB cluster's current engine mode.</p>
3723
+ * <p>Valid for: Aurora Serverless v1 DB clusters only</p>
3724
+ */
3725
+ AllowEngineModeChange?: boolean;
3709
3726
  }
3710
3727
  /**
3711
3728
  * @public
@@ -694,6 +694,8 @@ export interface ModifyDBClusterMessage {
694
694
  ManageMasterUserPassword?: boolean;
695
695
  RotateMasterUserPassword?: boolean;
696
696
  MasterUserSecretKmsKeyId?: string;
697
+ EngineMode?: string;
698
+ AllowEngineModeChange?: boolean;
697
699
  }
698
700
  export interface ModifyDBClusterResult {
699
701
  DBCluster?: DBCluster;
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.312.0",
4
+ "version": "3.314.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",