Skip to content

Commit 1b96437

Browse files
author
awstools
committed
feat(client-rds): This release adds support for restoring an RDS Multi-AZ DB cluster snapshot to a Single-AZ deployment or a Multi-AZ DB instance deployment.
1 parent 89aa4c2 commit 1b96437

File tree

3 files changed

+46
-1
lines changed

3 files changed

+46
-1
lines changed

clients/client-rds/src/models/models_0.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6272,6 +6272,7 @@ export interface CreateDBInstanceMessage {
62726272

62736273
/**
62746274
* <p>Specifies the storage throughput value for the DB instance.</p>
6275+
* <p>This setting applies only to the <code>gp3</code> storage type.</p>
62756276
* <p>This setting doesn't apply to RDS Custom or Amazon Aurora.</p>
62766277
*/
62776278
StorageThroughput?: number;
@@ -7250,6 +7251,7 @@ export interface DBInstance {
72507251

72517252
/**
72527253
* <p>Specifies the storage throughput for the DB instance.</p>
7254+
* <p>This setting applies only to the <code>gp3</code> storage type.</p>
72537255
*/
72547256
StorageThroughput?: number;
72557257
}

clients/client-rds/src/models/models_1.ts

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4339,6 +4339,7 @@ export interface ModifyDBInstanceMessage {
43394339

43404340
/**
43414341
* <p>Specifies the storage throughput value for the DB instance.</p>
4342+
* <p>This setting applies only to the <code>gp3</code> storage type.</p>
43424343
* <p>This setting doesn't apply to RDS Custom or Amazon Aurora.</p>
43434344
*/
43444345
StorageThroughput?: number;
@@ -6712,12 +6713,18 @@ export interface RestoreDBInstanceFromDBSnapshotMessage {
67126713
* <p>Must match the identifier of an existing DBSnapshot.</p>
67136714
* </li>
67146715
* <li>
6716+
* <p>Can't be specified when <code>DBClusterSnapshotIdentifier</code> is specified.</p>
6717+
* </li>
6718+
* <li>
6719+
* <p>Must be specified when <code>DBClusterSnapshotIdentifier</code> isn't specified.</p>
6720+
* </li>
6721+
* <li>
67156722
* <p>If you are restoring from a shared manual DB snapshot, the <code>DBSnapshotIdentifier</code>
67166723
* must be the ARN of the shared DB snapshot.</p>
67176724
* </li>
67186725
* </ul>
67196726
*/
6720-
DBSnapshotIdentifier: string | undefined;
6727+
DBSnapshotIdentifier?: string;
67216728

67226729
/**
67236730
* <p>The compute and memory capacity of the Amazon RDS DB instance, for example db.m4.large.
@@ -7086,6 +7093,36 @@ export interface RestoreDBInstanceFromDBSnapshotMessage {
70867093
* <p>This setting doesn't apply to RDS Custom or Amazon Aurora.</p>
70877094
*/
70887095
StorageThroughput?: number;
7096+
7097+
/**
7098+
* <p>The identifier for the RDS for MySQL Multi-AZ DB cluster snapshot to restore from.</p>
7099+
* <p>For more information on Multi-AZ DB clusters, see
7100+
* <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html">
7101+
* Multi-AZ deployments with two readable standby DB instances</a> in the <i>Amazon RDS User Guide</i>.</p>
7102+
* <p>Constraints:</p>
7103+
* <ul>
7104+
* <li>
7105+
* <p>Must match the identifier of an existing Multi-AZ DB cluster snapshot.</p>
7106+
* </li>
7107+
* <li>
7108+
* <p>Can't be specified when <code>DBSnapshotIdentifier</code> is specified.</p>
7109+
* </li>
7110+
* <li>
7111+
* <p>Must be specified when <code>DBSnapshotIdentifier</code> isn't specified.</p>
7112+
* </li>
7113+
* <li>
7114+
* <p>If you are restoring from a shared manual Multi-AZ DB cluster snapshot, the <code>DBClusterSnapshotIdentifier</code>
7115+
* must be the ARN of the shared snapshot.</p>
7116+
* </li>
7117+
* <li>
7118+
* <p>Can't be the identifier of an Aurora DB cluster snapshot.</p>
7119+
* </li>
7120+
* <li>
7121+
* <p>Can't be the identifier of an RDS for PostgreSQL Multi-AZ DB cluster snapshot.</p>
7122+
* </li>
7123+
* </ul>
7124+
*/
7125+
DBClusterSnapshotIdentifier?: string;
70897126
}
70907127

70917128
export interface RestoreDBInstanceFromDBSnapshotResult {

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9090,6 +9090,9 @@ const deserializeAws_queryRestoreDBInstanceFromDBSnapshotCommandError = async (
90909090
case "BackupPolicyNotFoundFault":
90919091
case "com.amazonaws.rds#BackupPolicyNotFoundFault":
90929092
throw await deserializeAws_queryBackupPolicyNotFoundFaultResponse(parsedOutput, context);
9093+
case "DBClusterSnapshotNotFoundFault":
9094+
case "com.amazonaws.rds#DBClusterSnapshotNotFoundFault":
9095+
throw await deserializeAws_queryDBClusterSnapshotNotFoundFaultResponse(parsedOutput, context);
90939096
case "DBInstanceAlreadyExists":
90949097
case "com.amazonaws.rds#DBInstanceAlreadyExistsFault":
90959098
throw await deserializeAws_queryDBInstanceAlreadyExistsFaultResponse(parsedOutput, context);
@@ -16056,6 +16059,9 @@ const serializeAws_queryRestoreDBInstanceFromDBSnapshotMessage = (
1605616059
if (input.StorageThroughput != null) {
1605716060
entries["StorageThroughput"] = input.StorageThroughput;
1605816061
}
16062+
if (input.DBClusterSnapshotIdentifier != null) {
16063+
entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier;
16064+
}
1605916065
return entries;
1606016066
};
1606116067

0 commit comments

Comments
 (0)