Skip to content

Commit 3777ad6

Browse files
author
Niranjan Jayakar
committed
chore(rds): undeprecated SnapshotCredentials.fromGeneratedPassword()
All deprecated APIs will be removed from CDKv2. APIs where the proposed alternative will modify the resource in ways that may impact usability of the resource, must not be deprecated.
1 parent 279c4be commit 3777ad6

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

DEPRECATED_APIs.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,6 @@
600600
| @aws-cdk/aws-dynamodb | Table.​grantListStreams() | Use {@link #grantTableListStreams} for more granular permission |
601601
| @aws-cdk/aws-dynamodb | Table.​metricSystemErrors() | use `metricSystemErrorsForOperations`. |
602602
| @aws-cdk/aws-dynamodb | TableOptions.​serverSideEncryption | This property is deprecated. In order to obtain the same behavior as enabling this, set the `encryption` property to `TableEncryption.AWS_MANAGED` instead. |
603-
| @aws-cdk/aws-rds | Credentials.​fromUsername() | use `fromGeneratedSecret()` or `fromPassword()` for new Clusters and Instances. Note that switching from `fromUsername()` to `fromGeneratedSecret()` or `fromPassword()` for already deployed Clusters or Instances will result in their replacement! |
604603
| @aws-cdk/aws-rds | CredentialsFromUsernameOptions | supporting API `fromUsername()` has been deprecated. See deprecation notice of the API. |
605604
| @aws-cdk/aws-rds | CredentialsFromUsernameOptions.​password | supporting API `fromUsername()` has been deprecated. See deprecation notice of the API. |
606605
| @aws-cdk/aws-rds | DatabaseInstanceEngine.​MARIADB | using unversioned engines is an availability risk. We recommend using versioned engines created using the {@link mariaDb()} method |

deprecated_apis.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,6 @@ constructs.Node#uniqueId
721721
@aws-cdk/aws-rds.PostgresEngineVersion#VER_9_6_6
722722
@aws-cdk/aws-rds.PostgresEngineVersion#VER_9_6_8
723723
@aws-cdk/aws-rds.PostgresEngineVersion#VER_9_6_9
724-
@aws-cdk/aws-rds.SnapshotCredentials#fromGeneratedPassword
725724
@aws-cdk/aws-rds.SqlServerEngineVersion#VER_15_00_4043_23_V1
726725
@aws-cdk/aws-autoscaling.BlockDevice#mappingEnabled
727726
@aws-cdk/aws-autoscaling.CommonAutoScalingGroupProps#notificationsTopic

packages/@aws-cdk/aws-rds/lib/props.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,7 @@ export abstract class SnapshotCredentials {
346346
*
347347
* Note - The username must match the existing master username of the snapshot.
348348
*
349-
* @deprecated use `fromGeneratedSecret()` for new Clusters and Instances.
350-
* Note that switching from `fromGeneratedPassword()` to `fromGeneratedSecret()` for already deployed
351-
* Clusters or Instances will update their master password.
349+
* NOTE: use `fromGeneratedSecret()` for new Clusters and Instances.
352350
*/
353351
public static fromGeneratedPassword(username: string, options: SnapshotCredentialsFromGeneratedPasswordOptions = {}): SnapshotCredentials {
354352
return {

0 commit comments

Comments
 (0)