From f69b00edab12702846a50e656a509fa0b0713202 Mon Sep 17 00:00:00 2001 From: awstools Date: Mon, 23 Sep 2024 18:20:04 +0000 Subject: [PATCH] feat(client-rds): Support ComputeRedundancy parameter in ModifyDBShardGroup API. Add DBShardGroupArn in DBShardGroup API response. Remove InvalidMaxAcuFault from CreateDBShardGroup and ModifyDBShardGroup API. Both API will throw InvalidParameterValueException for invalid ACU configuration. --- .../src/commands/CreateDBShardGroupCommand.ts | 4 +- .../src/commands/DeleteDBShardGroupCommand.ts | 1 + .../commands/DeleteTenantDatabaseCommand.ts | 7 +- .../commands/DescribeDBShardGroupsCommand.ts | 1 + .../src/commands/ModifyDBShardGroupCommand.ts | 5 +- .../src/commands/RebootDBShardGroupCommand.ts | 1 + .../RestoreDBInstanceFromDBSnapshotCommand.ts | 2 +- clients/client-rds/src/models/models_0.ts | 78 +++++++++++-------- clients/client-rds/src/models/models_1.ts | 37 ++++----- clients/client-rds/src/protocols/Aws_query.ts | 37 ++------- codegen/sdk-codegen/aws-models/rds.json | 43 ++++------ 11 files changed, 99 insertions(+), 117 deletions(-) diff --git a/clients/client-rds/src/commands/CreateDBShardGroupCommand.ts b/clients/client-rds/src/commands/CreateDBShardGroupCommand.ts index 3409516adfc2..303ea171645b 100644 --- a/clients/client-rds/src/commands/CreateDBShardGroupCommand.ts +++ b/clients/client-rds/src/commands/CreateDBShardGroupCommand.ts @@ -56,6 +56,7 @@ export interface CreateDBShardGroupCommandOutput extends DBShardGroup, __Metadat * // Status: "STRING_VALUE", * // PubliclyAccessible: true || false, * // Endpoint: "STRING_VALUE", + * // DBShardGroupArn: "STRING_VALUE", * // }; * * ``` @@ -76,9 +77,6 @@ export interface CreateDBShardGroupCommandOutput extends DBShardGroup, __Metadat * @throws {@link InvalidDBClusterStateFault} (client fault) *

The requested operation can't be performed while the cluster is in this state.

* - * @throws {@link InvalidMaxAcuFault} (client fault) - *

The maximum capacity of the DB shard group must be 48-7168 Aurora capacity units (ACUs).

- * * @throws {@link InvalidVPCNetworkStateFault} (client fault) *

The DB subnet group doesn't cover all Availability Zones after it's * created because of users' change.

diff --git a/clients/client-rds/src/commands/DeleteDBShardGroupCommand.ts b/clients/client-rds/src/commands/DeleteDBShardGroupCommand.ts index 1b72194fd7ff..4b68929bd302 100644 --- a/clients/client-rds/src/commands/DeleteDBShardGroupCommand.ts +++ b/clients/client-rds/src/commands/DeleteDBShardGroupCommand.ts @@ -50,6 +50,7 @@ export interface DeleteDBShardGroupCommandOutput extends DBShardGroup, __Metadat * // Status: "STRING_VALUE", * // PubliclyAccessible: true || false, * // Endpoint: "STRING_VALUE", + * // DBShardGroupArn: "STRING_VALUE", * // }; * * ``` diff --git a/clients/client-rds/src/commands/DeleteTenantDatabaseCommand.ts b/clients/client-rds/src/commands/DeleteTenantDatabaseCommand.ts index bec629119ca0..6be520f1415b 100644 --- a/clients/client-rds/src/commands/DeleteTenantDatabaseCommand.ts +++ b/clients/client-rds/src/commands/DeleteTenantDatabaseCommand.ts @@ -5,8 +5,11 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { DeleteTenantDatabaseMessage } from "../models/models_0"; -import { DeleteTenantDatabaseResult, DeleteTenantDatabaseResultFilterSensitiveLog } from "../models/models_1"; +import { + DeleteTenantDatabaseMessage, + DeleteTenantDatabaseResult, + DeleteTenantDatabaseResultFilterSensitiveLog, +} from "../models/models_0"; import { de_DeleteTenantDatabaseCommand, se_DeleteTenantDatabaseCommand } from "../protocols/Aws_query"; import { RDSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSClient"; diff --git a/clients/client-rds/src/commands/DescribeDBShardGroupsCommand.ts b/clients/client-rds/src/commands/DescribeDBShardGroupsCommand.ts index 9764f98d3556..51fe4fa0a731 100644 --- a/clients/client-rds/src/commands/DescribeDBShardGroupsCommand.ts +++ b/clients/client-rds/src/commands/DescribeDBShardGroupsCommand.ts @@ -62,6 +62,7 @@ export interface DescribeDBShardGroupsCommandOutput extends DescribeDBShardGroup * // Status: "STRING_VALUE", * // PubliclyAccessible: true || false, * // Endpoint: "STRING_VALUE", + * // DBShardGroupArn: "STRING_VALUE", * // }, * // ], * // Marker: "STRING_VALUE", diff --git a/clients/client-rds/src/commands/ModifyDBShardGroupCommand.ts b/clients/client-rds/src/commands/ModifyDBShardGroupCommand.ts index 5c06c77f9aaa..0a011c6b854a 100644 --- a/clients/client-rds/src/commands/ModifyDBShardGroupCommand.ts +++ b/clients/client-rds/src/commands/ModifyDBShardGroupCommand.ts @@ -41,6 +41,7 @@ export interface ModifyDBShardGroupCommandOutput extends DBShardGroup, __Metadat * DBShardGroupIdentifier: "STRING_VALUE", // required * MaxACU: Number("double"), * MinACU: Number("double"), + * ComputeRedundancy: Number("int"), * }; * const command = new ModifyDBShardGroupCommand(input); * const response = await client.send(command); @@ -54,6 +55,7 @@ export interface ModifyDBShardGroupCommandOutput extends DBShardGroup, __Metadat * // Status: "STRING_VALUE", * // PubliclyAccessible: true || false, * // Endpoint: "STRING_VALUE", + * // DBShardGroupArn: "STRING_VALUE", * // }; * * ``` @@ -73,9 +75,6 @@ export interface ModifyDBShardGroupCommandOutput extends DBShardGroup, __Metadat * @throws {@link InvalidDBClusterStateFault} (client fault) *

The requested operation can't be performed while the cluster is in this state.

* - * @throws {@link InvalidMaxAcuFault} (client fault) - *

The maximum capacity of the DB shard group must be 48-7168 Aurora capacity units (ACUs).

- * * @throws {@link RDSServiceException} *

Base exception class for all service exceptions from RDS service.

* diff --git a/clients/client-rds/src/commands/RebootDBShardGroupCommand.ts b/clients/client-rds/src/commands/RebootDBShardGroupCommand.ts index f17cc4747aa0..68e11d0f3962 100644 --- a/clients/client-rds/src/commands/RebootDBShardGroupCommand.ts +++ b/clients/client-rds/src/commands/RebootDBShardGroupCommand.ts @@ -53,6 +53,7 @@ export interface RebootDBShardGroupCommandOutput extends DBShardGroup, __Metadat * // Status: "STRING_VALUE", * // PubliclyAccessible: true || false, * // Endpoint: "STRING_VALUE", + * // DBShardGroupArn: "STRING_VALUE", * // }; * * ``` diff --git a/clients/client-rds/src/commands/RestoreDBInstanceFromDBSnapshotCommand.ts b/clients/client-rds/src/commands/RestoreDBInstanceFromDBSnapshotCommand.ts index 0412233d920e..dcfd91d2702c 100644 --- a/clients/client-rds/src/commands/RestoreDBInstanceFromDBSnapshotCommand.ts +++ b/clients/client-rds/src/commands/RestoreDBInstanceFromDBSnapshotCommand.ts @@ -46,7 +46,7 @@ export interface RestoreDBInstanceFromDBSnapshotCommandOutput * must be the ARN of the shared DB snapshot.

*

To restore from a DB snapshot with an unsupported engine version, you must first upgrade the * engine version of the snapshot. For more information about upgrading a RDS for MySQL DB snapshot engine version, see Upgrading a MySQL DB snapshot engine version. - * For more information about upgrading a RDS for PostgreSQL DB snapshot engine version, Upgrading a PostgreSQL DB snapshot engine version.

+ * For more information about upgrading a RDS for PostgreSQL DB snapshot engine version, Upgrading a PostgreSQL DB snapshot engine version.

* *

This command doesn't apply to Aurora MySQL and Aurora PostgreSQL. For Aurora, use RestoreDBClusterFromSnapshot.

*
diff --git a/clients/client-rds/src/models/models_0.ts b/clients/client-rds/src/models/models_0.ts index 7ccf80d04ea1..0f7c2742d86a 100644 --- a/clients/client-rds/src/models/models_0.ts +++ b/clients/client-rds/src/models/models_0.ts @@ -9936,12 +9936,20 @@ export interface CreateDBInstanceReadReplicaMessage { OptionGroupName?: string; /** - *

The name of the DB parameter group to associate with this DB instance.

- *

If you don't specify a value for DBParameterGroupName, then Amazon RDS - * uses the DBParameterGroup of the source DB instance for a same Region read + *

The name of the DB parameter group to associate with this read replica DB + * instance.

+ *

For Single-AZ or Multi-AZ DB instance read replica instances, if you don't specify a + * value for DBParameterGroupName, then Amazon RDS uses the + * DBParameterGroup of the source DB instance for a same Region read * replica, or the default DBParameterGroup for the specified DB engine for a * cross-Region read replica.

- *

Specifying a parameter group for this operation is only supported for MySQL DB instances for cross-Region read replicas and for Oracle DB instances. It isn't supported for MySQL DB instances for same Region read replicas or for RDS Custom.

+ *

For Multi-AZ DB cluster same Region read replica instances, if you don't specify a + * value for DBParameterGroupName, then Amazon RDS uses the default + * DBParameterGroup.

+ *

Specifying a parameter group for this operation is only supported for MySQL DB + * instances for cross-Region read replicas, for Multi-AZ DB cluster read replica + * instances, and for Oracle DB instances. It isn't supported for MySQL DB instances for + * same Region read replicas or for RDS Custom.

*

Constraints:

*