Skip to content

Commit 3e47615

Browse files
author
awstools
committedJan 29, 2024
feat(client-rds): Introduced support for the InsufficientDBInstanceCapacityFault error in the RDS RestoreDBClusterFromSnapshot and RestoreDBClusterToPointInTime API methods. This provides enhanced error handling, ensuring a more robust experience.
1 parent 0fae62e commit 3e47615

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed
 

‎clients/client-rds/src/commands/RestoreDBClusterFromSnapshotCommand.ts

+4
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,10 @@ export interface RestoreDBClusterFromSnapshotCommandOutput
335335
* @throws {@link InsufficientDBClusterCapacityFault} (client fault)
336336
* <p>The DB cluster doesn't have enough capacity for the current operation.</p>
337337
*
338+
* @throws {@link InsufficientDBInstanceCapacityFault} (client fault)
339+
* <p>The specified DB instance class isn't available in the specified Availability
340+
* Zone.</p>
341+
*
338342
* @throws {@link InsufficientStorageClusterCapacityFault} (client fault)
339343
* <p>There is insufficient storage available for the current action. You might be able to
340344
* resolve this error by updating your subnet group to use different Availability Zones

‎clients/client-rds/src/commands/RestoreDBClusterToPointInTimeCommand.ts

+4
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,10 @@ export interface RestoreDBClusterToPointInTimeCommandOutput
337337
* @throws {@link InsufficientDBClusterCapacityFault} (client fault)
338338
* <p>The DB cluster doesn't have enough capacity for the current operation.</p>
339339
*
340+
* @throws {@link InsufficientDBInstanceCapacityFault} (client fault)
341+
* <p>The specified DB instance class isn't available in the specified Availability
342+
* Zone.</p>
343+
*
340344
* @throws {@link InsufficientStorageClusterCapacityFault} (client fault)
341345
* <p>There is insufficient storage available for the current action. You might be able to
342346
* resolve this error by updating your subnet group to use different Availability Zones

‎clients/client-rds/src/protocols/Aws_query.ts

+6
Original file line numberDiff line numberDiff line change
@@ -11433,6 +11433,9 @@ const de_RestoreDBClusterFromSnapshotCommandError = async (
1143311433
case "InsufficientDBClusterCapacityFault":
1143411434
case "com.amazonaws.rds#InsufficientDBClusterCapacityFault":
1143511435
throw await de_InsufficientDBClusterCapacityFaultRes(parsedOutput, context);
11436+
case "InsufficientDBInstanceCapacity":
11437+
case "com.amazonaws.rds#InsufficientDBInstanceCapacityFault":
11438+
throw await de_InsufficientDBInstanceCapacityFaultRes(parsedOutput, context);
1143611439
case "InsufficientStorageClusterCapacity":
1143711440
case "com.amazonaws.rds#InsufficientStorageClusterCapacityFault":
1143811441
throw await de_InsufficientStorageClusterCapacityFaultRes(parsedOutput, context);
@@ -11533,6 +11536,9 @@ const de_RestoreDBClusterToPointInTimeCommandError = async (
1153311536
case "InsufficientDBClusterCapacityFault":
1153411537
case "com.amazonaws.rds#InsufficientDBClusterCapacityFault":
1153511538
throw await de_InsufficientDBClusterCapacityFaultRes(parsedOutput, context);
11539+
case "InsufficientDBInstanceCapacity":
11540+
case "com.amazonaws.rds#InsufficientDBInstanceCapacityFault":
11541+
throw await de_InsufficientDBInstanceCapacityFaultRes(parsedOutput, context);
1153611542
case "InsufficientStorageClusterCapacity":
1153711543
case "com.amazonaws.rds#InsufficientStorageClusterCapacityFault":
1153811544
throw await de_InsufficientStorageClusterCapacityFaultRes(parsedOutput, context);

‎codegen/sdk-codegen/aws-models/rds.json

+6
Original file line numberDiff line numberDiff line change
@@ -26653,6 +26653,9 @@
2665326653
{
2665426654
"target": "com.amazonaws.rds#InsufficientDBClusterCapacityFault"
2665526655
},
26656+
{
26657+
"target": "com.amazonaws.rds#InsufficientDBInstanceCapacityFault"
26658+
},
2665626659
{
2665726660
"target": "com.amazonaws.rds#InsufficientStorageClusterCapacityFault"
2665826661
},
@@ -26976,6 +26979,9 @@
2697626979
{
2697726980
"target": "com.amazonaws.rds#InsufficientDBClusterCapacityFault"
2697826981
},
26982+
{
26983+
"target": "com.amazonaws.rds#InsufficientDBInstanceCapacityFault"
26984+
},
2697926985
{
2698026986
"target": "com.amazonaws.rds#InsufficientStorageClusterCapacityFault"
2698126987
},

0 commit comments

Comments
 (0)
Please sign in to comment.