Skip to content

Commit

Permalink
feat(client-rds): This release adds support for specifying optional M…
Browse files Browse the repository at this point in the history
…inACU parameter in CreateDBShardGroup and ModifyDBShardGroup API. DBShardGroup response will contain MinACU if specified.
  • Loading branch information
awstools committed Aug 1, 2024
1 parent bd90490 commit d2d3328
Show file tree
Hide file tree
Showing 9 changed files with 209 additions and 105 deletions.
2 changes: 2 additions & 0 deletions clients/client-rds/src/commands/CreateDBShardGroupCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export interface CreateDBShardGroupCommandOutput extends DBShardGroup, __Metadat
* DBClusterIdentifier: "STRING_VALUE", // required
* ComputeRedundancy: Number("int"),
* MaxACU: Number("double"), // required
* MinACU: Number("double"),
* PubliclyAccessible: true || false,
* };
* const command = new CreateDBShardGroupCommand(input);
Expand All @@ -50,6 +51,7 @@ export interface CreateDBShardGroupCommandOutput extends DBShardGroup, __Metadat
* // DBShardGroupIdentifier: "STRING_VALUE",
* // DBClusterIdentifier: "STRING_VALUE",
* // MaxACU: Number("double"),
* // MinACU: Number("double"),
* // ComputeRedundancy: Number("int"),
* // Status: "STRING_VALUE",
* // PubliclyAccessible: true || false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export interface DeleteDBShardGroupCommandOutput extends DBShardGroup, __Metadat
* // DBShardGroupIdentifier: "STRING_VALUE",
* // DBClusterIdentifier: "STRING_VALUE",
* // MaxACU: Number("double"),
* // MinACU: Number("double"),
* // ComputeRedundancy: Number("int"),
* // Status: "STRING_VALUE",
* // PubliclyAccessible: true || false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export interface DescribeDBShardGroupsCommandOutput extends DescribeDBShardGroup
* // DBShardGroupIdentifier: "STRING_VALUE",
* // DBClusterIdentifier: "STRING_VALUE",
* // MaxACU: Number("double"),
* // MinACU: Number("double"),
* // ComputeRedundancy: Number("int"),
* // Status: "STRING_VALUE",
* // PubliclyAccessible: true || false,
Expand Down
2 changes: 2 additions & 0 deletions clients/client-rds/src/commands/ModifyDBShardGroupCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export interface ModifyDBShardGroupCommandOutput extends DBShardGroup, __Metadat
* const input = { // ModifyDBShardGroupMessage
* DBShardGroupIdentifier: "STRING_VALUE", // required
* MaxACU: Number("double"),
* MinACU: Number("double"),
* };
* const command = new ModifyDBShardGroupCommand(input);
* const response = await client.send(command);
Expand All @@ -48,6 +49,7 @@ export interface ModifyDBShardGroupCommandOutput extends DBShardGroup, __Metadat
* // DBShardGroupIdentifier: "STRING_VALUE",
* // DBClusterIdentifier: "STRING_VALUE",
* // MaxACU: Number("double"),
* // MinACU: Number("double"),
* // ComputeRedundancy: Number("int"),
* // Status: "STRING_VALUE",
* // PubliclyAccessible: true || false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export interface RebootDBShardGroupCommandOutput extends DBShardGroup, __Metadat
* // DBShardGroupIdentifier: "STRING_VALUE",
* // DBClusterIdentifier: "STRING_VALUE",
* // MaxACU: Number("double"),
* // MinACU: Number("double"),
* // ComputeRedundancy: Number("int"),
* // Status: "STRING_VALUE",
* // PubliclyAccessible: true || false,
Expand Down
199 changes: 125 additions & 74 deletions clients/client-rds/src/models/models_0.ts

Large diffs are not rendered by default.

62 changes: 40 additions & 22 deletions clients/client-rds/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ export interface DescribeDBClusterParametersMessage {
* <ul>
* <li>
* <p>
* <code>user</code>
* <code>customer</code>
* </p>
* </li>
* <li>
Expand Down Expand Up @@ -3758,9 +3758,11 @@ export interface DBSnapshotTenantDatabase {
NcharCharacterSetName?: string;

/**
* <p>A list of tags.
* For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html">Tagging Amazon RDS Resources</a> in the <i>Amazon RDS User Guide.</i>
* </p>
* <p>A list of tags.</p>
* <p>For more information, see
* <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html">Tagging Amazon RDS resources</a> in the <i>Amazon RDS User Guide</i> or
* <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html">Tagging Amazon Aurora and Amazon RDS resources</a> in the <i>Amazon Aurora User Guide</i>.
* </p>
* @public
*/
TagList?: Tag[];
Expand Down Expand Up @@ -9709,6 +9711,12 @@ export interface ModifyDBShardGroupMessage {
* @public
*/
MaxACU?: number;

/**
* <p>The minimum capacity of the DB shard group in Aurora capacity units (ACUs).</p>
* @public
*/
MinACU?: number;
}

/**
Expand Down Expand Up @@ -10083,7 +10091,7 @@ export interface ModifyIntegrationMessage {
}

/**
* <p>A list of all available options</p>
* <p>A list of all available options for an option group.</p>
* @public
*/
export interface OptionConfiguration {
Expand All @@ -10106,13 +10114,13 @@ export interface OptionConfiguration {
OptionVersion?: string;

/**
* <p>A list of DBSecurityGroupMembership name strings used for this option.</p>
* <p>A list of DB security groups used for this option.</p>
* @public
*/
DBSecurityGroupMemberships?: string[];

/**
* <p>A list of VpcSecurityGroupMembership name strings used for this option.</p>
* <p>A list of VPC security group names used for this option.</p>
* @public
*/
VpcSecurityGroupMemberships?: string[];
Expand Down Expand Up @@ -10409,9 +10417,11 @@ export interface PurchaseReservedDBInstancesOfferingMessage {
DBInstanceCount?: number;

/**
* <p>A list of tags.
* For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html">Tagging Amazon RDS Resources</a> in the <i>Amazon RDS User Guide.</i>
* </p>
* <p>A list of tags.</p>
* <p>For more information, see
* <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html">Tagging Amazon RDS resources</a> in the <i>Amazon RDS User Guide</i> or
* <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html">Tagging Amazon Aurora and Amazon RDS resources</a> in the <i>Amazon Aurora User Guide</i>.
* </p>
* @public
*/
Tags?: Tag[];
Expand Down Expand Up @@ -11122,9 +11132,11 @@ export interface RestoreDBClusterFromS3Message {
PreferredMaintenanceWindow?: string;

/**
* <p>A list of tags.
* For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html">Tagging Amazon RDS Resources</a> in the <i>Amazon RDS User Guide.</i>
* </p>
* <p>A list of tags.</p>
* <p>For more information, see
* <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html">Tagging Amazon RDS resources</a> in the <i>Amazon RDS User Guide</i> or
* <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html">Tagging Amazon Aurora and Amazon RDS resources</a> in the <i>Amazon Aurora User Guide</i>.
* </p>
* @public
*/
Tags?: Tag[];
Expand Down Expand Up @@ -12031,9 +12043,11 @@ export interface RestoreDBClusterToPointInTimeMessage {
VpcSecurityGroupIds?: string[];

/**
* <p>A list of tags.
* For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html">Tagging Amazon RDS Resources</a> in the <i>Amazon RDS User Guide.</i>
* </p>
* <p>A list of tags.</p>
* <p>For more information, see
* <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html">Tagging Amazon RDS resources</a> in the <i>Amazon RDS User Guide</i> or
* <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html">Tagging Amazon Aurora and Amazon RDS resources</a> in the <i>Amazon Aurora User Guide</i>.
* </p>
* @public
*/
Tags?: Tag[];
Expand Down Expand Up @@ -12632,9 +12646,11 @@ export interface RestoreDBInstanceFromDBSnapshotMessage {
OptionGroupName?: string;

/**
* <p>A list of tags.
* For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html">Tagging Amazon RDS Resources</a> in the <i>Amazon RDS User Guide.</i>
* </p>
* <p>A list of tags.</p>
* <p>For more information, see
* <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html">Tagging Amazon RDS resources</a> in the <i>Amazon RDS User Guide</i> or
* <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html">Tagging Amazon Aurora and Amazon RDS resources</a> in the <i>Amazon Aurora User Guide</i>.
* </p>
* @public
*/
Tags?: Tag[];
Expand Down Expand Up @@ -13986,9 +14002,11 @@ export interface RestoreDBInstanceToPointInTimeMessage {
CopyTagsToSnapshot?: boolean;

/**
* <p>A list of tags.
* For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html">Tagging Amazon RDS Resources</a> in the <i>Amazon RDS User Guide.</i>
* </p>
* <p>A list of tags.</p>
* <p>For more information, see
* <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html">Tagging Amazon RDS resources</a> in the <i>Amazon RDS User Guide</i> or
* <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html">Tagging Amazon Aurora and Amazon RDS resources</a> in the <i>Amazon Aurora User Guide</i>.
* </p>
* @public
*/
Tags?: Tag[];
Expand Down
10 changes: 10 additions & 0 deletions clients/client-rds/src/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11239,6 +11239,9 @@ const se_CreateDBShardGroupMessage = (input: CreateDBShardGroupMessage, context:
if (input[_MACU] != null) {
entries[_MACU] = __serializeFloat(input[_MACU]);
}
if (input[_MACUi] != null) {
entries[_MACUi] = __serializeFloat(input[_MACUi]);
}
if (input[_PA] != null) {
entries[_PA] = input[_PA];
}
Expand Down Expand Up @@ -14161,6 +14164,9 @@ const se_ModifyDBShardGroupMessage = (input: ModifyDBShardGroupMessage, context:
if (input[_MACU] != null) {
entries[_MACU] = __serializeFloat(input[_MACU]);
}
if (input[_MACUi] != null) {
entries[_MACUi] = __serializeFloat(input[_MACUi]);
}
return entries;
};

Expand Down Expand Up @@ -19755,6 +19761,9 @@ const de_DBShardGroup = (output: any, context: __SerdeContext): DBShardGroup =>
if (output[_MACU] != null) {
contents[_MACU] = __strictParseFloat(output[_MACU]) as number;
}
if (output[_MACUi] != null) {
contents[_MACUi] = __strictParseFloat(output[_MACUi]) as number;
}
if (output[_CR] != null) {
contents[_CR] = __strictParseInt32(output[_CR]) as number;
}
Expand Down Expand Up @@ -25402,6 +25411,7 @@ const _Li = "Links";
const _Lim = "Limit";
const _M = "Manifest";
const _MACU = "MaxACU";
const _MACUi = "MinACU";
const _MAS = "ModifyActivityStream";
const _MASa = "MaxAllocatedStorage";
const _MAZ = "MultiAZ";
Expand Down
Loading

0 comments on commit d2d3328

Please sign in to comment.