From 8e3712828ca4cf5142d9936951ddb5a52326a332 Mon Sep 17 00:00:00 2001 From: awstools Date: Wed, 6 Mar 2024 19:46:35 +0000 Subject: [PATCH] feat(client-rds): Updated the input of CreateDBCluster and ModifyDBCluster to support setting CA certificates. Updated the output of DescribeDBCluster to show current CA certificate setting value. --- .../src/commands/CreateDBClusterCommand.ts | 9 ++ .../src/commands/DeleteDBClusterCommand.ts | 8 ++ .../src/commands/DescribeDBClustersCommand.ts | 8 ++ .../src/commands/FailoverDBClusterCommand.ts | 8 ++ .../src/commands/ModifyDBClusterCommand.ts | 9 ++ .../PromoteReadReplicaDBClusterCommand.ts | 8 ++ .../src/commands/RebootDBClusterCommand.ts | 8 ++ .../commands/RestoreDBClusterFromS3Command.ts | 8 ++ .../RestoreDBClusterFromSnapshotCommand.ts | 8 ++ .../RestoreDBClusterToPointInTimeCommand.ts | 8 ++ .../src/commands/StartDBClusterCommand.ts | 8 ++ .../src/commands/StopDBClusterCommand.ts | 8 ++ clients/client-rds/src/models/models_0.ts | 99 ++++++++++++------- clients/client-rds/src/models/models_1.ts | 25 +++-- clients/client-rds/src/protocols/Aws_query.ts | 12 +++ codegen/sdk-codegen/aws-models/rds.json | 34 +++++-- 16 files changed, 216 insertions(+), 52 deletions(-) diff --git a/clients/client-rds/src/commands/CreateDBClusterCommand.ts b/clients/client-rds/src/commands/CreateDBClusterCommand.ts index 2c7d10e26b8d..3aa6cde73672 100644 --- a/clients/client-rds/src/commands/CreateDBClusterCommand.ts +++ b/clients/client-rds/src/commands/CreateDBClusterCommand.ts @@ -127,6 +127,7 @@ export interface CreateDBClusterCommandOutput extends CreateDBClusterResult, __M * ManageMasterUserPassword: true || false, * MasterUserSecretKmsKeyId: "STRING_VALUE", * EnableLocalWriteForwarding: true || false, + * CACertificateIdentifier: "STRING_VALUE", * }; * const command = new CreateDBClusterCommand(input); * const response = await client.send(command); @@ -278,6 +279,10 @@ export interface CreateDBClusterCommandOutput extends CreateDBClusterResult, __M * // }, * // Iops: Number("int"), * // StorageType: "STRING_VALUE", + * // CertificateDetails: { // CertificateDetails + * // CAIdentifier: "STRING_VALUE", + * // ValidTill: new Date("TIMESTAMP"), + * // }, * // }, * // DBClusterInstanceClass: "STRING_VALUE", * // StorageType: "STRING_VALUE", @@ -308,6 +313,10 @@ export interface CreateDBClusterCommandOutput extends CreateDBClusterResult, __M * // MinRequiredACU: Number("double"), * // }, * // StorageThroughput: Number("int"), + * // CertificateDetails: { + * // CAIdentifier: "STRING_VALUE", + * // ValidTill: new Date("TIMESTAMP"), + * // }, * // }, * // }; * diff --git a/clients/client-rds/src/commands/DeleteDBClusterCommand.ts b/clients/client-rds/src/commands/DeleteDBClusterCommand.ts index e0d30148fae2..318c914dc456 100644 --- a/clients/client-rds/src/commands/DeleteDBClusterCommand.ts +++ b/clients/client-rds/src/commands/DeleteDBClusterCommand.ts @@ -201,6 +201,10 @@ export interface DeleteDBClusterCommandOutput extends DeleteDBClusterResult, __M * // }, * // Iops: Number("int"), * // StorageType: "STRING_VALUE", + * // CertificateDetails: { // CertificateDetails + * // CAIdentifier: "STRING_VALUE", + * // ValidTill: new Date("TIMESTAMP"), + * // }, * // }, * // DBClusterInstanceClass: "STRING_VALUE", * // StorageType: "STRING_VALUE", @@ -231,6 +235,10 @@ export interface DeleteDBClusterCommandOutput extends DeleteDBClusterResult, __M * // MinRequiredACU: Number("double"), * // }, * // StorageThroughput: Number("int"), + * // CertificateDetails: { + * // CAIdentifier: "STRING_VALUE", + * // ValidTill: new Date("TIMESTAMP"), + * // }, * // }, * // }; * diff --git a/clients/client-rds/src/commands/DescribeDBClustersCommand.ts b/clients/client-rds/src/commands/DescribeDBClustersCommand.ts index de55621ad9f1..30f91b9c560f 100644 --- a/clients/client-rds/src/commands/DescribeDBClustersCommand.ts +++ b/clients/client-rds/src/commands/DescribeDBClustersCommand.ts @@ -208,6 +208,10 @@ export interface DescribeDBClustersCommandOutput extends DBClusterMessage, __Met * // }, * // Iops: Number("int"), * // StorageType: "STRING_VALUE", + * // CertificateDetails: { // CertificateDetails + * // CAIdentifier: "STRING_VALUE", + * // ValidTill: new Date("TIMESTAMP"), + * // }, * // }, * // DBClusterInstanceClass: "STRING_VALUE", * // StorageType: "STRING_VALUE", @@ -238,6 +242,10 @@ export interface DescribeDBClustersCommandOutput extends DBClusterMessage, __Met * // MinRequiredACU: Number("double"), * // }, * // StorageThroughput: Number("int"), + * // CertificateDetails: { + * // CAIdentifier: "STRING_VALUE", + * // ValidTill: new Date("TIMESTAMP"), + * // }, * // }, * // ], * // }; diff --git a/clients/client-rds/src/commands/FailoverDBClusterCommand.ts b/clients/client-rds/src/commands/FailoverDBClusterCommand.ts index 75f09b4646bf..095d7351cd43 100644 --- a/clients/client-rds/src/commands/FailoverDBClusterCommand.ts +++ b/clients/client-rds/src/commands/FailoverDBClusterCommand.ts @@ -207,6 +207,10 @@ export interface FailoverDBClusterCommandOutput extends FailoverDBClusterResult, * // }, * // Iops: Number("int"), * // StorageType: "STRING_VALUE", + * // CertificateDetails: { // CertificateDetails + * // CAIdentifier: "STRING_VALUE", + * // ValidTill: new Date("TIMESTAMP"), + * // }, * // }, * // DBClusterInstanceClass: "STRING_VALUE", * // StorageType: "STRING_VALUE", @@ -237,6 +241,10 @@ export interface FailoverDBClusterCommandOutput extends FailoverDBClusterResult, * // MinRequiredACU: Number("double"), * // }, * // StorageThroughput: Number("int"), + * // CertificateDetails: { + * // CAIdentifier: "STRING_VALUE", + * // ValidTill: new Date("TIMESTAMP"), + * // }, * // }, * // }; * diff --git a/clients/client-rds/src/commands/ModifyDBClusterCommand.ts b/clients/client-rds/src/commands/ModifyDBClusterCommand.ts index 2de339bfb090..b353ba8672a1 100644 --- a/clients/client-rds/src/commands/ModifyDBClusterCommand.ts +++ b/clients/client-rds/src/commands/ModifyDBClusterCommand.ts @@ -107,6 +107,7 @@ export interface ModifyDBClusterCommandOutput extends ModifyDBClusterResult, __M * EnableLocalWriteForwarding: true || false, * AwsBackupRecoveryPointArn: "STRING_VALUE", * EnableLimitlessDatabase: true || false, + * CACertificateIdentifier: "STRING_VALUE", * }; * const command = new ModifyDBClusterCommand(input); * const response = await client.send(command); @@ -258,6 +259,10 @@ export interface ModifyDBClusterCommandOutput extends ModifyDBClusterResult, __M * // }, * // Iops: Number("int"), * // StorageType: "STRING_VALUE", + * // CertificateDetails: { // CertificateDetails + * // CAIdentifier: "STRING_VALUE", + * // ValidTill: new Date("TIMESTAMP"), + * // }, * // }, * // DBClusterInstanceClass: "STRING_VALUE", * // StorageType: "STRING_VALUE", @@ -288,6 +293,10 @@ export interface ModifyDBClusterCommandOutput extends ModifyDBClusterResult, __M * // MinRequiredACU: Number("double"), * // }, * // StorageThroughput: Number("int"), + * // CertificateDetails: { + * // CAIdentifier: "STRING_VALUE", + * // ValidTill: new Date("TIMESTAMP"), + * // }, * // }, * // }; * diff --git a/clients/client-rds/src/commands/PromoteReadReplicaDBClusterCommand.ts b/clients/client-rds/src/commands/PromoteReadReplicaDBClusterCommand.ts index ded0a6584310..04bd8a21e248 100644 --- a/clients/client-rds/src/commands/PromoteReadReplicaDBClusterCommand.ts +++ b/clients/client-rds/src/commands/PromoteReadReplicaDBClusterCommand.ts @@ -188,6 +188,10 @@ export interface PromoteReadReplicaDBClusterCommandOutput extends PromoteReadRep * // }, * // Iops: Number("int"), * // StorageType: "STRING_VALUE", + * // CertificateDetails: { // CertificateDetails + * // CAIdentifier: "STRING_VALUE", + * // ValidTill: new Date("TIMESTAMP"), + * // }, * // }, * // DBClusterInstanceClass: "STRING_VALUE", * // StorageType: "STRING_VALUE", @@ -218,6 +222,10 @@ export interface PromoteReadReplicaDBClusterCommandOutput extends PromoteReadRep * // MinRequiredACU: Number("double"), * // }, * // StorageThroughput: Number("int"), + * // CertificateDetails: { + * // CAIdentifier: "STRING_VALUE", + * // ValidTill: new Date("TIMESTAMP"), + * // }, * // }, * // }; * diff --git a/clients/client-rds/src/commands/RebootDBClusterCommand.ts b/clients/client-rds/src/commands/RebootDBClusterCommand.ts index 45bc4191e888..fd0ad91cc6ca 100644 --- a/clients/client-rds/src/commands/RebootDBClusterCommand.ts +++ b/clients/client-rds/src/commands/RebootDBClusterCommand.ts @@ -198,6 +198,10 @@ export interface RebootDBClusterCommandOutput extends RebootDBClusterResult, __M * // }, * // Iops: Number("int"), * // StorageType: "STRING_VALUE", + * // CertificateDetails: { // CertificateDetails + * // CAIdentifier: "STRING_VALUE", + * // ValidTill: new Date("TIMESTAMP"), + * // }, * // }, * // DBClusterInstanceClass: "STRING_VALUE", * // StorageType: "STRING_VALUE", @@ -228,6 +232,10 @@ export interface RebootDBClusterCommandOutput extends RebootDBClusterResult, __M * // MinRequiredACU: Number("double"), * // }, * // StorageThroughput: Number("int"), + * // CertificateDetails: { + * // CAIdentifier: "STRING_VALUE", + * // ValidTill: new Date("TIMESTAMP"), + * // }, * // }, * // }; * diff --git a/clients/client-rds/src/commands/RestoreDBClusterFromS3Command.ts b/clients/client-rds/src/commands/RestoreDBClusterFromS3Command.ts index af1123c6a7ff..0663c4cc8678 100644 --- a/clients/client-rds/src/commands/RestoreDBClusterFromS3Command.ts +++ b/clients/client-rds/src/commands/RestoreDBClusterFromS3Command.ts @@ -254,6 +254,10 @@ export interface RestoreDBClusterFromS3CommandOutput extends RestoreDBClusterFro * // }, * // Iops: Number("int"), * // StorageType: "STRING_VALUE", + * // CertificateDetails: { // CertificateDetails + * // CAIdentifier: "STRING_VALUE", + * // ValidTill: new Date("TIMESTAMP"), + * // }, * // }, * // DBClusterInstanceClass: "STRING_VALUE", * // StorageType: "STRING_VALUE", @@ -284,6 +288,10 @@ export interface RestoreDBClusterFromS3CommandOutput extends RestoreDBClusterFro * // MinRequiredACU: Number("double"), * // }, * // StorageThroughput: Number("int"), + * // CertificateDetails: { + * // CAIdentifier: "STRING_VALUE", + * // ValidTill: new Date("TIMESTAMP"), + * // }, * // }, * // }; * diff --git a/clients/client-rds/src/commands/RestoreDBClusterFromSnapshotCommand.ts b/clients/client-rds/src/commands/RestoreDBClusterFromSnapshotCommand.ts index bfa88a4d1296..2ebc871dc92b 100644 --- a/clients/client-rds/src/commands/RestoreDBClusterFromSnapshotCommand.ts +++ b/clients/client-rds/src/commands/RestoreDBClusterFromSnapshotCommand.ts @@ -261,6 +261,10 @@ export interface RestoreDBClusterFromSnapshotCommandOutput * // }, * // Iops: Number("int"), * // StorageType: "STRING_VALUE", + * // CertificateDetails: { // CertificateDetails + * // CAIdentifier: "STRING_VALUE", + * // ValidTill: new Date("TIMESTAMP"), + * // }, * // }, * // DBClusterInstanceClass: "STRING_VALUE", * // StorageType: "STRING_VALUE", @@ -291,6 +295,10 @@ export interface RestoreDBClusterFromSnapshotCommandOutput * // MinRequiredACU: Number("double"), * // }, * // StorageThroughput: Number("int"), + * // CertificateDetails: { + * // CAIdentifier: "STRING_VALUE", + * // ValidTill: new Date("TIMESTAMP"), + * // }, * // }, * // }; * diff --git a/clients/client-rds/src/commands/RestoreDBClusterToPointInTimeCommand.ts b/clients/client-rds/src/commands/RestoreDBClusterToPointInTimeCommand.ts index d6367e1b3a8b..49a18b134f69 100644 --- a/clients/client-rds/src/commands/RestoreDBClusterToPointInTimeCommand.ts +++ b/clients/client-rds/src/commands/RestoreDBClusterToPointInTimeCommand.ts @@ -263,6 +263,10 @@ export interface RestoreDBClusterToPointInTimeCommandOutput * // }, * // Iops: Number("int"), * // StorageType: "STRING_VALUE", + * // CertificateDetails: { // CertificateDetails + * // CAIdentifier: "STRING_VALUE", + * // ValidTill: new Date("TIMESTAMP"), + * // }, * // }, * // DBClusterInstanceClass: "STRING_VALUE", * // StorageType: "STRING_VALUE", @@ -293,6 +297,10 @@ export interface RestoreDBClusterToPointInTimeCommandOutput * // MinRequiredACU: Number("double"), * // }, * // StorageThroughput: Number("int"), + * // CertificateDetails: { + * // CAIdentifier: "STRING_VALUE", + * // ValidTill: new Date("TIMESTAMP"), + * // }, * // }, * // }; * diff --git a/clients/client-rds/src/commands/StartDBClusterCommand.ts b/clients/client-rds/src/commands/StartDBClusterCommand.ts index 5434fa72ce29..48d7617d760d 100644 --- a/clients/client-rds/src/commands/StartDBClusterCommand.ts +++ b/clients/client-rds/src/commands/StartDBClusterCommand.ts @@ -195,6 +195,10 @@ export interface StartDBClusterCommandOutput extends StartDBClusterResult, __Met * // }, * // Iops: Number("int"), * // StorageType: "STRING_VALUE", + * // CertificateDetails: { // CertificateDetails + * // CAIdentifier: "STRING_VALUE", + * // ValidTill: new Date("TIMESTAMP"), + * // }, * // }, * // DBClusterInstanceClass: "STRING_VALUE", * // StorageType: "STRING_VALUE", @@ -225,6 +229,10 @@ export interface StartDBClusterCommandOutput extends StartDBClusterResult, __Met * // MinRequiredACU: Number("double"), * // }, * // StorageThroughput: Number("int"), + * // CertificateDetails: { + * // CAIdentifier: "STRING_VALUE", + * // ValidTill: new Date("TIMESTAMP"), + * // }, * // }, * // }; * diff --git a/clients/client-rds/src/commands/StopDBClusterCommand.ts b/clients/client-rds/src/commands/StopDBClusterCommand.ts index 6a4af09360ba..f79d10fc6060 100644 --- a/clients/client-rds/src/commands/StopDBClusterCommand.ts +++ b/clients/client-rds/src/commands/StopDBClusterCommand.ts @@ -196,6 +196,10 @@ export interface StopDBClusterCommandOutput extends StopDBClusterResult, __Metad * // }, * // Iops: Number("int"), * // StorageType: "STRING_VALUE", + * // CertificateDetails: { // CertificateDetails + * // CAIdentifier: "STRING_VALUE", + * // ValidTill: new Date("TIMESTAMP"), + * // }, * // }, * // DBClusterInstanceClass: "STRING_VALUE", * // StorageType: "STRING_VALUE", @@ -226,6 +230,10 @@ export interface StopDBClusterCommandOutput extends StopDBClusterResult, __Metad * // MinRequiredACU: Number("double"), * // }, * // StorageThroughput: Number("int"), + * // CertificateDetails: { + * // CAIdentifier: "STRING_VALUE", + * // ValidTill: new Date("TIMESTAMP"), + * // }, * // }, * // }; * diff --git a/clients/client-rds/src/models/models_0.ts b/clients/client-rds/src/models/models_0.ts index 1d2905db1ee7..8799257a949a 100644 --- a/clients/client-rds/src/models/models_0.ts +++ b/clients/client-rds/src/models/models_0.ts @@ -5129,6 +5129,13 @@ export interface CreateDBClusterMessage { *

Valid for: Aurora DB clusters only

*/ EnableLocalWriteForwarding?: boolean; + + /** + * @public + *

The CA certificate identifier to use for the DB cluster's server certificate.

+ *

Valid for Cluster Type: Multi-AZ DB clusters

+ */ + CACertificateIdentifier?: string; } /** @@ -5173,6 +5180,29 @@ export interface DBClusterRole { FeatureName?: string; } +/** + * @public + *

Returns the details of the DB instance’s server certificate.

+ *

For more information, see Using SSL/TLS to encrypt a connection to a DB + * instance in the Amazon RDS User Guide and + * + * Using SSL/TLS to encrypt a connection to a DB cluster in the Amazon Aurora + * User Guide.

+ */ +export interface CertificateDetails { + /** + * @public + *

The CA identifier of the CA certificate used for the DB instance's server certificate.

+ */ + CAIdentifier?: string; + + /** + * @public + *

The expiration date of the DB instance’s server certificate.

+ */ + ValidTill?: Date; +} + /** * @public *

Contains information about an instance that is part of a DB cluster.

@@ -5483,6 +5513,17 @@ export interface ClusterPendingModifiedValues { *

The storage type for the DB cluster.

*/ StorageType?: string; + + /** + * @public + *

Returns the details of the DB instance’s server certificate.

+ *

For more information, see Using SSL/TLS to encrypt a connection to a DB + * instance in the Amazon RDS User Guide and + * + * Using SSL/TLS to encrypt a connection to a DB cluster in the Amazon Aurora + * User Guide.

+ */ + CertificateDetails?: CertificateDetails; } /** @@ -6182,6 +6223,17 @@ export interface DBCluster { *

This setting is only for non-Aurora Multi-AZ DB clusters.

*/ StorageThroughput?: number; + + /** + * @public + *

Returns the details of the DB instance’s server certificate.

+ *

For more information, see Using SSL/TLS to encrypt a connection to a DB + * instance in the Amazon RDS User Guide and + * + * Using SSL/TLS to encrypt a connection to a DB cluster in the Amazon Aurora + * User Guide.

+ */ + CertificateDetails?: CertificateDetails; } /** @@ -7077,7 +7129,7 @@ export interface CreateDBInstanceMessage { * 16384 for RDS Custom for SQL Server.

* *
  • - *

    Provisioned IOPS storage (io1): Must be an integer from 40 to 65536 for RDS Custom for Oracle, + *

    Provisioned IOPS storage (io1, io2): Must be an integer from 40 to 65536 for RDS Custom for Oracle, * 16384 for RDS Custom for SQL Server.

    *
  • * @@ -7087,10 +7139,10 @@ export interface CreateDBInstanceMessage { *

    Constraints to the amount of storage for each storage type are the following:

    * * @@ -7102,7 +7154,7 @@ export interface CreateDBInstanceMessage { *

    General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.

    * *
  • - *

    Provisioned IOPS storage (io1): Must be an integer from 100 to 65536.

    + *

    Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.

    *
  • *
  • *

    Magnetic storage (standard): Must be an integer from 5 to 3072.

    @@ -7117,7 +7169,7 @@ export interface CreateDBInstanceMessage { *

    General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.

    *
  • *
  • - *

    Provisioned IOPS storage (io1): Must be an integer from 100 to 65536.

    + *

    Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.

    *
  • *
  • *

    Magnetic storage (standard): Must be an integer from 5 to 3072.

    @@ -7132,7 +7184,7 @@ export interface CreateDBInstanceMessage { *

    General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.

    *
  • *
  • - *

    Provisioned IOPS storage (io1): Must be an integer from 100 to 65536.

    + *

    Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.

    *
  • *
  • *

    Magnetic storage (standard): Must be an integer from 10 to 3072.

    @@ -7147,7 +7199,7 @@ export interface CreateDBInstanceMessage { *

    General Purpose (SSD) storage (gp2, gp3): Must be an integer from 20 to 65536.

    *
  • *
  • - *

    Provisioned IOPS storage (io1): Must be an integer from 100 to 65536.

    + *

    Provisioned IOPS storage (io1, io2): Must be an integer from 100 to 65536.

    *
  • *
  • *

    Magnetic storage (standard): Must be an integer from 5 to 3072.

    @@ -7170,7 +7222,7 @@ export interface CreateDBInstanceMessage { * *
  • *
  • - *

    Provisioned IOPS storage (io1):

    + *

    Provisioned IOPS storage (io1, io2):

    *