Skip to content

Commit f69b00e

Browse files
author
awstools
committed
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.
1 parent f6a2631 commit f69b00e

11 files changed

+99
-117
lines changed

clients/client-rds/src/commands/CreateDBShardGroupCommand.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export interface CreateDBShardGroupCommandOutput extends DBShardGroup, __Metadat
5656
* // Status: "STRING_VALUE",
5757
* // PubliclyAccessible: true || false,
5858
* // Endpoint: "STRING_VALUE",
59+
* // DBShardGroupArn: "STRING_VALUE",
5960
* // };
6061
*
6162
* ```
@@ -76,9 +77,6 @@ export interface CreateDBShardGroupCommandOutput extends DBShardGroup, __Metadat
7677
* @throws {@link InvalidDBClusterStateFault} (client fault)
7778
* <p>The requested operation can't be performed while the cluster is in this state.</p>
7879
*
79-
* @throws {@link InvalidMaxAcuFault} (client fault)
80-
* <p>The maximum capacity of the DB shard group must be 48-7168 Aurora capacity units (ACUs).</p>
81-
*
8280
* @throws {@link InvalidVPCNetworkStateFault} (client fault)
8381
* <p>The DB subnet group doesn't cover all Availability Zones after it's
8482
* created because of users' change.</p>

clients/client-rds/src/commands/DeleteDBShardGroupCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export interface DeleteDBShardGroupCommandOutput extends DBShardGroup, __Metadat
5050
* // Status: "STRING_VALUE",
5151
* // PubliclyAccessible: true || false,
5252
* // Endpoint: "STRING_VALUE",
53+
* // DBShardGroupArn: "STRING_VALUE",
5354
* // };
5455
*
5556
* ```

clients/client-rds/src/commands/DeleteTenantDatabaseCommand.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ import { Command as $Command } from "@smithy/smithy-client";
55
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
8-
import { DeleteTenantDatabaseMessage } from "../models/models_0";
9-
import { DeleteTenantDatabaseResult, DeleteTenantDatabaseResultFilterSensitiveLog } from "../models/models_1";
8+
import {
9+
DeleteTenantDatabaseMessage,
10+
DeleteTenantDatabaseResult,
11+
DeleteTenantDatabaseResultFilterSensitiveLog,
12+
} from "../models/models_0";
1013
import { de_DeleteTenantDatabaseCommand, se_DeleteTenantDatabaseCommand } from "../protocols/Aws_query";
1114
import { RDSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSClient";
1215

clients/client-rds/src/commands/DescribeDBShardGroupsCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export interface DescribeDBShardGroupsCommandOutput extends DescribeDBShardGroup
6262
* // Status: "STRING_VALUE",
6363
* // PubliclyAccessible: true || false,
6464
* // Endpoint: "STRING_VALUE",
65+
* // DBShardGroupArn: "STRING_VALUE",
6566
* // },
6667
* // ],
6768
* // Marker: "STRING_VALUE",

clients/client-rds/src/commands/ModifyDBShardGroupCommand.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export interface ModifyDBShardGroupCommandOutput extends DBShardGroup, __Metadat
4141
* DBShardGroupIdentifier: "STRING_VALUE", // required
4242
* MaxACU: Number("double"),
4343
* MinACU: Number("double"),
44+
* ComputeRedundancy: Number("int"),
4445
* };
4546
* const command = new ModifyDBShardGroupCommand(input);
4647
* const response = await client.send(command);
@@ -54,6 +55,7 @@ export interface ModifyDBShardGroupCommandOutput extends DBShardGroup, __Metadat
5455
* // Status: "STRING_VALUE",
5556
* // PubliclyAccessible: true || false,
5657
* // Endpoint: "STRING_VALUE",
58+
* // DBShardGroupArn: "STRING_VALUE",
5759
* // };
5860
*
5961
* ```
@@ -73,9 +75,6 @@ export interface ModifyDBShardGroupCommandOutput extends DBShardGroup, __Metadat
7375
* @throws {@link InvalidDBClusterStateFault} (client fault)
7476
* <p>The requested operation can't be performed while the cluster is in this state.</p>
7577
*
76-
* @throws {@link InvalidMaxAcuFault} (client fault)
77-
* <p>The maximum capacity of the DB shard group must be 48-7168 Aurora capacity units (ACUs).</p>
78-
*
7978
* @throws {@link RDSServiceException}
8079
* <p>Base exception class for all service exceptions from RDS service.</p>
8180
*

clients/client-rds/src/commands/RebootDBShardGroupCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export interface RebootDBShardGroupCommandOutput extends DBShardGroup, __Metadat
5353
* // Status: "STRING_VALUE",
5454
* // PubliclyAccessible: true || false,
5555
* // Endpoint: "STRING_VALUE",
56+
* // DBShardGroupArn: "STRING_VALUE",
5657
* // };
5758
*
5859
* ```

clients/client-rds/src/commands/RestoreDBInstanceFromDBSnapshotCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export interface RestoreDBInstanceFromDBSnapshotCommandOutput
4646
* must be the ARN of the shared DB snapshot.</p>
4747
* <p>To restore from a DB snapshot with an unsupported engine version, you must first upgrade the
4848
* engine version of the snapshot. For more information about upgrading a RDS for MySQL DB snapshot engine version, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/mysql-upgrade-snapshot.html">Upgrading a MySQL DB snapshot engine version</a>.
49-
* For more information about upgrading a RDS for PostgreSQL DB snapshot engine version, <a href="https://docs.aws.amazon.com/USER_UpgradeDBSnapshot.PostgreSQL.html">Upgrading a PostgreSQL DB snapshot engine version</a>.</p>
49+
* For more information about upgrading a RDS for PostgreSQL DB snapshot engine version, <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBSnapshot.PostgreSQL.html">Upgrading a PostgreSQL DB snapshot engine version</a>.</p>
5050
* <note>
5151
* <p>This command doesn't apply to Aurora MySQL and Aurora PostgreSQL. For Aurora, use <code>RestoreDBClusterFromSnapshot</code>.</p>
5252
* </note>

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

+46-32
Original file line numberDiff line numberDiff line change
@@ -9936,12 +9936,20 @@ export interface CreateDBInstanceReadReplicaMessage {
99369936
OptionGroupName?: string;
99379937

99389938
/**
9939-
* <p>The name of the DB parameter group to associate with this DB instance.</p>
9940-
* <p>If you don't specify a value for <code>DBParameterGroupName</code>, then Amazon RDS
9941-
* uses the <code>DBParameterGroup</code> of the source DB instance for a same Region read
9939+
* <p>The name of the DB parameter group to associate with this read replica DB
9940+
* instance.</p>
9941+
* <p>For Single-AZ or Multi-AZ DB instance read replica instances, if you don't specify a
9942+
* value for <code>DBParameterGroupName</code>, then Amazon RDS uses the
9943+
* <code>DBParameterGroup</code> of the source DB instance for a same Region read
99429944
* replica, or the default <code>DBParameterGroup</code> for the specified DB engine for a
99439945
* cross-Region read replica.</p>
9944-
* <p>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.</p>
9946+
* <p>For Multi-AZ DB cluster same Region read replica instances, if you don't specify a
9947+
* value for <code>DBParameterGroupName</code>, then Amazon RDS uses the default
9948+
* <code>DBParameterGroup</code>.</p>
9949+
* <p>Specifying a parameter group for this operation is only supported for MySQL DB
9950+
* instances for cross-Region read replicas, for Multi-AZ DB cluster read replica
9951+
* instances, and for Oracle DB instances. It isn't supported for MySQL DB instances for
9952+
* same Region read replicas or for RDS Custom.</p>
99459953
* <p>Constraints:</p>
99469954
* <ul>
99479955
* <li>
@@ -11433,16 +11441,16 @@ export interface CreateDBShardGroupMessage {
1143311441
DBClusterIdentifier: string | undefined;
1143411442

1143511443
/**
11436-
* <p>Specifies whether to create standby instances for the DB shard group. Valid values are the following:</p>
11444+
* <p>Specifies whether to create standby DB shard groups for the DB shard group. Valid values are the following:</p>
1143711445
* <ul>
1143811446
* <li>
11439-
* <p>0 - Creates a single, primary DB instance for each physical shard. This is the default value, and the only one supported for the preview.</p>
11447+
* <p>0 - Creates a DB shard group without a standby DB shard group. This is the default value.</p>
1144011448
* </li>
1144111449
* <li>
11442-
* <p>1 - Creates a primary DB instance and a standby instance in a different Availability Zone (AZ) for each physical shard.</p>
11450+
* <p>1 - Creates a DB shard group with a standby DB shard group in a different Availability Zone (AZ).</p>
1144311451
* </li>
1144411452
* <li>
11445-
* <p>2 - Creates a primary DB instance and two standby instances in different AZs for each physical shard.</p>
11453+
* <p>2 - Creates a DB shard group with two standby DB shard groups in two different AZs.</p>
1144611454
* </li>
1144711455
* </ul>
1144811456
* @public
@@ -11527,16 +11535,16 @@ export interface DBShardGroup {
1152711535
MinACU?: number;
1152811536

1152911537
/**
11530-
* <p>Specifies whether to create standby instances for the DB shard group. Valid values are the following:</p>
11538+
* <p>Specifies whether to create standby DB shard groups for the DB shard group. Valid values are the following:</p>
1153111539
* <ul>
1153211540
* <li>
11533-
* <p>0 - Creates a single, primary DB instance for each physical shard. This is the default value, and the only one supported for the preview.</p>
11541+
* <p>0 - Creates a DB shard group without a standby DB shard group. This is the default value.</p>
1153411542
* </li>
1153511543
* <li>
11536-
* <p>1 - Creates a primary DB instance and a standby instance in a different Availability Zone (AZ) for each physical shard.</p>
11544+
* <p>1 - Creates a DB shard group with a standby DB shard group in a different Availability Zone (AZ).</p>
1153711545
* </li>
1153811546
* <li>
11539-
* <p>2 - Creates a primary DB instance and two standby instances in different AZs for each physical shard.</p>
11547+
* <p>2 - Creates a DB shard group with two standby DB shard groups in two different AZs.</p>
1154011548
* </li>
1154111549
* </ul>
1154211550
* @public
@@ -11569,6 +11577,12 @@ export interface DBShardGroup {
1156911577
* @public
1157011578
*/
1157111579
Endpoint?: string;
11580+
11581+
/**
11582+
* <p>The Amazon Resource Name (ARN) for the DB shard group.</p>
11583+
* @public
11584+
*/
11585+
DBShardGroupArn?: string;
1157211586
}
1157311587

1157411588
/**
@@ -11591,26 +11605,6 @@ export class DBShardGroupAlreadyExistsFault extends __BaseException {
1159111605
}
1159211606
}
1159311607

11594-
/**
11595-
* <p>The maximum capacity of the DB shard group must be 48-7168 Aurora capacity units (ACUs).</p>
11596-
* @public
11597-
*/
11598-
export class InvalidMaxAcuFault extends __BaseException {
11599-
readonly name: "InvalidMaxAcuFault" = "InvalidMaxAcuFault";
11600-
readonly $fault: "client" = "client";
11601-
/**
11602-
* @internal
11603-
*/
11604-
constructor(opts: __ExceptionOptionType<InvalidMaxAcuFault, __BaseException>) {
11605-
super({
11606-
name: "InvalidMaxAcuFault",
11607-
$fault: "client",
11608-
...opts,
11609-
});
11610-
Object.setPrototypeOf(this, InvalidMaxAcuFault.prototype);
11611-
}
11612-
}
11613-
1161411608
/**
1161511609
* <p>The maximum number of DB shard groups for your Amazon Web Services account in the specified Amazon Web Services Region has been reached.</p>
1161611610
* @public
@@ -14519,6 +14513,18 @@ export interface DeleteTenantDatabaseMessage {
1451914513
FinalDBSnapshotIdentifier?: string;
1452014514
}
1452114515

14516+
/**
14517+
* @public
14518+
*/
14519+
export interface DeleteTenantDatabaseResult {
14520+
/**
14521+
* <p>A tenant database in the DB instance. This data type is an element in the response to
14522+
* the <code>DescribeTenantDatabases</code> action.</p>
14523+
* @public
14524+
*/
14525+
TenantDatabase?: TenantDatabase;
14526+
}
14527+
1452214528
/**
1452314529
* @internal
1452414530
*/
@@ -14554,3 +14560,11 @@ export const CreateTenantDatabaseResultFilterSensitiveLog = (obj: CreateTenantDa
1455414560
...obj,
1455514561
...(obj.TenantDatabase && { TenantDatabase: TenantDatabaseFilterSensitiveLog(obj.TenantDatabase) }),
1455614562
});
14563+
14564+
/**
14565+
* @internal
14566+
*/
14567+
export const DeleteTenantDatabaseResultFilterSensitiveLog = (obj: DeleteTenantDatabaseResult): any => ({
14568+
...obj,
14569+
...(obj.TenantDatabase && { TenantDatabase: TenantDatabaseFilterSensitiveLog(obj.TenantDatabase) }),
14570+
});

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

+17-20
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,6 @@ import {
4545

4646
import { RDSServiceException as __BaseException } from "./RDSServiceException";
4747

48-
/**
49-
* @public
50-
*/
51-
export interface DeleteTenantDatabaseResult {
52-
/**
53-
* <p>A tenant database in the DB instance. This data type is an element in the response to
54-
* the <code>DescribeTenantDatabases</code> action.</p>
55-
* @public
56-
*/
57-
TenantDatabase?: TenantDatabase;
58-
}
59-
6048
/**
6149
* <p>The specified RDS DB instance or Aurora DB cluster isn't available for a proxy owned by your Amazon Web Services account in the specified Amazon Web Services Region.</p>
6250
* @public
@@ -9717,6 +9705,23 @@ export interface ModifyDBShardGroupMessage {
97179705
* @public
97189706
*/
97199707
MinACU?: number;
9708+
9709+
/**
9710+
* <p>Specifies whether to create standby DB shard groups for the DB shard group. Valid values are the following:</p>
9711+
* <ul>
9712+
* <li>
9713+
* <p>0 - Creates a DB shard group without a standby DB shard group. This is the default value.</p>
9714+
* </li>
9715+
* <li>
9716+
* <p>1 - Creates a DB shard group with a standby DB shard group in a different Availability Zone (AZ).</p>
9717+
* </li>
9718+
* <li>
9719+
* <p>2 - Creates a DB shard group with two standby DB shard groups in two different AZs.</p>
9720+
* </li>
9721+
* </ul>
9722+
* @public
9723+
*/
9724+
ComputeRedundancy?: number;
97209725
}
97219726

97229727
/**
@@ -15139,14 +15144,6 @@ export interface SwitchoverReadReplicaResult {
1513915144
DBInstance?: DBInstance;
1514015145
}
1514115146

15142-
/**
15143-
* @internal
15144-
*/
15145-
export const DeleteTenantDatabaseResultFilterSensitiveLog = (obj: DeleteTenantDatabaseResult): any => ({
15146-
...obj,
15147-
...(obj.TenantDatabase && { TenantDatabase: TenantDatabaseFilterSensitiveLog(obj.TenantDatabase) }),
15148-
});
15149-
1515015147
/**
1515115148
* @internal
1515215149
*/

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

+8-29
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,7 @@ import {
720720
DeleteIntegrationMessage,
721721
DeleteOptionGroupMessage,
722722
DeleteTenantDatabaseMessage,
723+
DeleteTenantDatabaseResult,
723724
DomainMembership,
724725
DomainNotFoundFault,
725726
Ec2ImagePropertiesNotSupportedFault,
@@ -765,7 +766,6 @@ import {
765766
InvalidExportTaskStateFault,
766767
InvalidGlobalClusterStateFault,
767768
InvalidIntegrationStateFault,
768-
InvalidMaxAcuFault,
769769
InvalidOptionGroupStateFault,
770770
InvalidSubnet,
771771
InvalidVPCNetworkStateFault,
@@ -867,7 +867,6 @@ import {
867867
DBSnapshotTenantDatabasesMessage,
868868
DBSubnetGroupMessage,
869869
DBUpgradeDependencyFailureFault,
870-
DeleteTenantDatabaseResult,
871870
DeregisterDBProxyTargetsRequest,
872871
DeregisterDBProxyTargetsResponse,
873872
DescribeAccountAttributesMessage,
@@ -7332,9 +7331,6 @@ const de_CommandError = async (output: __HttpResponse, context: __SerdeContext):
73327331
case "DBShardGroupAlreadyExists":
73337332
case "com.amazonaws.rds#DBShardGroupAlreadyExistsFault":
73347333
throw await de_DBShardGroupAlreadyExistsFaultRes(parsedOutput, context);
7335-
case "InvalidMaxAcu":
7336-
case "com.amazonaws.rds#InvalidMaxAcuFault":
7337-
throw await de_InvalidMaxAcuFaultRes(parsedOutput, context);
73387334
case "MaxDBShardGroupLimitReached":
73397335
case "com.amazonaws.rds#MaxDBShardGroupLimitReached":
73407336
throw await de_MaxDBShardGroupLimitReachedRes(parsedOutput, context);
@@ -9227,19 +9223,6 @@ const de_InvalidIntegrationStateFaultRes = async (
92279223
return __decorateServiceException(exception, body);
92289224
};
92299225

9230-
/**
9231-
* deserializeAws_queryInvalidMaxAcuFaultRes
9232-
*/
9233-
const de_InvalidMaxAcuFaultRes = async (parsedOutput: any, context: __SerdeContext): Promise<InvalidMaxAcuFault> => {
9234-
const body = parsedOutput.body;
9235-
const deserialized: any = de_InvalidMaxAcuFault(body.Error, context);
9236-
const exception = new InvalidMaxAcuFault({
9237-
$metadata: deserializeMetadata(parsedOutput),
9238-
...deserialized,
9239-
});
9240-
return __decorateServiceException(exception, body);
9241-
};
9242-
92439226
/**
92449227
* deserializeAws_queryInvalidOptionGroupStateFaultRes
92459228
*/
@@ -14177,6 +14160,9 @@ const se_ModifyDBShardGroupMessage = (input: ModifyDBShardGroupMessage, context:
1417714160
if (input[_MACUi] != null) {
1417814161
entries[_MACUi] = __serializeFloat(input[_MACUi]);
1417914162
}
14163+
if (input[_CR] != null) {
14164+
entries[_CR] = input[_CR];
14165+
}
1418014166
return entries;
1418114167
};
1418214168

@@ -19786,6 +19772,9 @@ const de_DBShardGroup = (output: any, context: __SerdeContext): DBShardGroup =>
1978619772
if (output[_End] != null) {
1978719773
contents[_End] = __expectString(output[_End]);
1978819774
}
19775+
if (output[_DBSGAh] != null) {
19776+
contents[_DBSGAh] = __expectString(output[_DBSGAh]);
19777+
}
1978919778
return contents;
1979019779
};
1979119780

@@ -21919,17 +21908,6 @@ const de_InvalidIntegrationStateFault = (output: any, context: __SerdeContext):
2191921908
return contents;
2192021909
};
2192121910

21922-
/**
21923-
* deserializeAws_queryInvalidMaxAcuFault
21924-
*/
21925-
const de_InvalidMaxAcuFault = (output: any, context: __SerdeContext): InvalidMaxAcuFault => {
21926-
const contents: any = {};
21927-
if (output[_m] != null) {
21928-
contents[_m] = __expectString(output[_m]);
21929-
}
21930-
return contents;
21931-
};
21932-
2193321911
/**
2193421912
* deserializeAws_queryInvalidOptionGroupStateFault
2193521913
*/
@@ -25164,6 +25142,7 @@ const _DBSAn = "DBSnapshotAttributes";
2516425142
const _DBSAna = "DBSnapshotAttribute";
2516525143
const _DBSG = "DBSecurityGroups";
2516625144
const _DBSGA = "DBSecurityGroupArn";
25145+
const _DBSGAh = "DBShardGroupArn";
2516725146
const _DBSGAu = "DBSubnetGroupArn";
2516825147
const _DBSGD = "DBSecurityGroupDescription";
2516925148
const _DBSGDu = "DBSubnetGroupDescription";

0 commit comments

Comments
 (0)