From 59e2f13f52deacb6f7fdb2bf56f1e32ff9fdf35f Mon Sep 17 00:00:00 2001 From: awstools Date: Tue, 9 Apr 2024 18:14:07 +0000 Subject: [PATCH] feat(client-rds): This release adds support for specifying the CA certificate to use for the new db instance when restoring from db snapshot, restoring from s3, restoring to point in time, and creating a db instance read replica. --- .../CreateDBInstanceReadReplicaCommand.ts | 6 +++ .../RestoreDBInstanceFromDBSnapshotCommand.ts | 6 +++ .../RestoreDBInstanceFromS3Command.ts | 6 +++ .../RestoreDBInstanceToPointInTimeCommand.ts | 6 +++ clients/client-rds/src/models/models_0.ts | 15 +++++++- clients/client-rds/src/models/models_1.ts | 36 ++++++++++++++++++ clients/client-rds/src/protocols/Aws_query.ts | 12 ++++++ codegen/sdk-codegen/aws-models/rds.json | 38 ++++++++++++++++++- 8 files changed, 123 insertions(+), 2 deletions(-) diff --git a/clients/client-rds/src/commands/CreateDBInstanceReadReplicaCommand.ts b/clients/client-rds/src/commands/CreateDBInstanceReadReplicaCommand.ts index 66437642622b4..9099d03816d88 100644 --- a/clients/client-rds/src/commands/CreateDBInstanceReadReplicaCommand.ts +++ b/clients/client-rds/src/commands/CreateDBInstanceReadReplicaCommand.ts @@ -108,6 +108,7 @@ export interface CreateDBInstanceReadReplicaCommandOutput extends CreateDBInstan * SourceDBClusterIdentifier: "STRING_VALUE", * DedicatedLogVolume: true || false, * UpgradeStorageConfig: true || false, + * CACertificateIdentifier: "STRING_VALUE", * }; * const command = new CreateDBInstanceReadReplicaCommand(input); * const response = await client.send(command); @@ -345,6 +346,11 @@ export interface CreateDBInstanceReadReplicaCommandOutput extends CreateDBInstan * @see {@link CreateDBInstanceReadReplicaCommandOutput} for command's `response` shape. * @see {@link RDSClientResolvedConfig | config} for RDSClient's `config` shape. * + * @throws {@link CertificateNotFoundFault} (client fault) + *

+ * CertificateIdentifier doesn't refer to an + * existing certificate.

+ * * @throws {@link DBClusterNotFoundFault} (client fault) *

* DBClusterIdentifier doesn't refer to an existing DB cluster.

diff --git a/clients/client-rds/src/commands/RestoreDBInstanceFromDBSnapshotCommand.ts b/clients/client-rds/src/commands/RestoreDBInstanceFromDBSnapshotCommand.ts index 1958e13759c68..03f56a6900105 100644 --- a/clients/client-rds/src/commands/RestoreDBInstanceFromDBSnapshotCommand.ts +++ b/clients/client-rds/src/commands/RestoreDBInstanceFromDBSnapshotCommand.ts @@ -109,6 +109,7 @@ export interface RestoreDBInstanceFromDBSnapshotCommandOutput * DBClusterSnapshotIdentifier: "STRING_VALUE", * AllocatedStorage: Number("int"), * DedicatedLogVolume: true || false, + * CACertificateIdentifier: "STRING_VALUE", * }; * const command = new RestoreDBInstanceFromDBSnapshotCommand(input); * const response = await client.send(command); @@ -354,6 +355,11 @@ export interface RestoreDBInstanceFromDBSnapshotCommandOutput * * @throws {@link BackupPolicyNotFoundFault} (client fault) * + * @throws {@link CertificateNotFoundFault} (client fault) + *

+ * CertificateIdentifier doesn't refer to an + * existing certificate.

+ * * @throws {@link DBClusterSnapshotNotFoundFault} (client fault) *

* DBClusterSnapshotIdentifier doesn't refer to an existing DB cluster snapshot.

diff --git a/clients/client-rds/src/commands/RestoreDBInstanceFromS3Command.ts b/clients/client-rds/src/commands/RestoreDBInstanceFromS3Command.ts index c557be6824775..e6811bd4fb1cd 100644 --- a/clients/client-rds/src/commands/RestoreDBInstanceFromS3Command.ts +++ b/clients/client-rds/src/commands/RestoreDBInstanceFromS3Command.ts @@ -108,6 +108,7 @@ export interface RestoreDBInstanceFromS3CommandOutput extends RestoreDBInstanceF * ManageMasterUserPassword: true || false, * MasterUserSecretKmsKeyId: "STRING_VALUE", * DedicatedLogVolume: true || false, + * CACertificateIdentifier: "STRING_VALUE", * }; * const command = new RestoreDBInstanceFromS3Command(input); * const response = await client.send(command); @@ -353,6 +354,11 @@ export interface RestoreDBInstanceFromS3CommandOutput extends RestoreDBInstanceF * * @throws {@link BackupPolicyNotFoundFault} (client fault) * + * @throws {@link CertificateNotFoundFault} (client fault) + *

+ * CertificateIdentifier doesn't refer to an + * existing certificate.

+ * * @throws {@link DBInstanceAlreadyExistsFault} (client fault) *

The user already has a DB instance with the given identifier.

* diff --git a/clients/client-rds/src/commands/RestoreDBInstanceToPointInTimeCommand.ts b/clients/client-rds/src/commands/RestoreDBInstanceToPointInTimeCommand.ts index cfbec5975fd61..6dae3616d3fc1 100644 --- a/clients/client-rds/src/commands/RestoreDBInstanceToPointInTimeCommand.ts +++ b/clients/client-rds/src/commands/RestoreDBInstanceToPointInTimeCommand.ts @@ -109,6 +109,7 @@ export interface RestoreDBInstanceToPointInTimeCommandOutput * StorageThroughput: Number("int"), * AllocatedStorage: Number("int"), * DedicatedLogVolume: true || false, + * CACertificateIdentifier: "STRING_VALUE", * }; * const command = new RestoreDBInstanceToPointInTimeCommand(input); * const response = await client.send(command); @@ -354,6 +355,11 @@ export interface RestoreDBInstanceToPointInTimeCommandOutput * * @throws {@link BackupPolicyNotFoundFault} (client fault) * + * @throws {@link CertificateNotFoundFault} (client fault) + *

+ * CertificateIdentifier doesn't refer to an + * existing certificate.

+ * * @throws {@link DBInstanceAlreadyExistsFault} (client fault) *

The user already has a DB instance with the given identifier.

* diff --git a/clients/client-rds/src/models/models_0.ts b/clients/client-rds/src/models/models_0.ts index 3619eb5ec059f..6057f9a49a330 100644 --- a/clients/client-rds/src/models/models_0.ts +++ b/clients/client-rds/src/models/models_0.ts @@ -4752,7 +4752,8 @@ export interface CreateDBClusterMessage { /** *

The DB engine mode of the DB cluster, either provisioned or serverless.

- *

The serverless engine mode only applies for Aurora Serverless v1 DB clusters.

+ *

The serverless engine mode only applies for Aurora Serverless v1 DB clusters. Aurora Serverless v2 DB clusters use the + * provisioned engine mode.

*

For information about limitations and requirements for Serverless DB clusters, see the * following sections in the Amazon Aurora User Guide:

*