Skip to content

Commit

Permalink
feat(client-rds): Introduced support for the InsufficientDBInstanceCa…
Browse files Browse the repository at this point in the history
…pacityFault error in the RDS RestoreDBClusterFromSnapshot and RestoreDBClusterToPointInTime API methods. This provides enhanced error handling, ensuring a more robust experience.
  • Loading branch information
awstools committed Jan 29, 2024
1 parent 0fae62e commit 3e47615
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
Expand Up @@ -335,6 +335,10 @@ export interface RestoreDBClusterFromSnapshotCommandOutput
* @throws {@link InsufficientDBClusterCapacityFault} (client fault)
* <p>The DB cluster doesn't have enough capacity for the current operation.</p>
*
* @throws {@link InsufficientDBInstanceCapacityFault} (client fault)
* <p>The specified DB instance class isn't available in the specified Availability
* Zone.</p>
*
* @throws {@link InsufficientStorageClusterCapacityFault} (client fault)
* <p>There is insufficient storage available for the current action. You might be able to
* resolve this error by updating your subnet group to use different Availability Zones
Expand Down
Expand Up @@ -337,6 +337,10 @@ export interface RestoreDBClusterToPointInTimeCommandOutput
* @throws {@link InsufficientDBClusterCapacityFault} (client fault)
* <p>The DB cluster doesn't have enough capacity for the current operation.</p>
*
* @throws {@link InsufficientDBInstanceCapacityFault} (client fault)
* <p>The specified DB instance class isn't available in the specified Availability
* Zone.</p>
*
* @throws {@link InsufficientStorageClusterCapacityFault} (client fault)
* <p>There is insufficient storage available for the current action. You might be able to
* resolve this error by updating your subnet group to use different Availability Zones
Expand Down
6 changes: 6 additions & 0 deletions clients/client-rds/src/protocols/Aws_query.ts
Expand Up @@ -11433,6 +11433,9 @@ const de_RestoreDBClusterFromSnapshotCommandError = async (
case "InsufficientDBClusterCapacityFault":
case "com.amazonaws.rds#InsufficientDBClusterCapacityFault":
throw await de_InsufficientDBClusterCapacityFaultRes(parsedOutput, context);
case "InsufficientDBInstanceCapacity":
case "com.amazonaws.rds#InsufficientDBInstanceCapacityFault":
throw await de_InsufficientDBInstanceCapacityFaultRes(parsedOutput, context);
case "InsufficientStorageClusterCapacity":
case "com.amazonaws.rds#InsufficientStorageClusterCapacityFault":
throw await de_InsufficientStorageClusterCapacityFaultRes(parsedOutput, context);
Expand Down Expand Up @@ -11533,6 +11536,9 @@ const de_RestoreDBClusterToPointInTimeCommandError = async (
case "InsufficientDBClusterCapacityFault":
case "com.amazonaws.rds#InsufficientDBClusterCapacityFault":
throw await de_InsufficientDBClusterCapacityFaultRes(parsedOutput, context);
case "InsufficientDBInstanceCapacity":
case "com.amazonaws.rds#InsufficientDBInstanceCapacityFault":
throw await de_InsufficientDBInstanceCapacityFaultRes(parsedOutput, context);
case "InsufficientStorageClusterCapacity":
case "com.amazonaws.rds#InsufficientStorageClusterCapacityFault":
throw await de_InsufficientStorageClusterCapacityFaultRes(parsedOutput, context);
Expand Down
6 changes: 6 additions & 0 deletions codegen/sdk-codegen/aws-models/rds.json
Expand Up @@ -26653,6 +26653,9 @@
{
"target": "com.amazonaws.rds#InsufficientDBClusterCapacityFault"
},
{
"target": "com.amazonaws.rds#InsufficientDBInstanceCapacityFault"
},
{
"target": "com.amazonaws.rds#InsufficientStorageClusterCapacityFault"
},
Expand Down Expand Up @@ -26976,6 +26979,9 @@
{
"target": "com.amazonaws.rds#InsufficientDBClusterCapacityFault"
},
{
"target": "com.amazonaws.rds#InsufficientDBInstanceCapacityFault"
},
{
"target": "com.amazonaws.rds#InsufficientStorageClusterCapacityFault"
},
Expand Down

0 comments on commit 3e47615

Please sign in to comment.