diff --git a/DEPRECATED_APIs.md b/DEPRECATED_APIs.md index de3f69163db65..c39b41d8ad275 100644 --- a/DEPRECATED_APIs.md +++ b/DEPRECATED_APIs.md @@ -600,20 +600,10 @@ | @aws-cdk/aws-dynamodb | Table.​grantListStreams() | Use {@link #grantTableListStreams} for more granular permission | | @aws-cdk/aws-dynamodb | Table.​metricSystemErrors() | use `metricSystemErrorsForOperations`. | | @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. | -| @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! | | @aws-cdk/aws-rds | CredentialsFromUsernameOptions | supporting API `fromUsername()` has been deprecated. See deprecation notice of the API. | | @aws-cdk/aws-rds | CredentialsFromUsernameOptions.​password | supporting API `fromUsername()` has been deprecated. See deprecation notice of the API. | -| @aws-cdk/aws-rds | DatabaseInstanceEngine.​MARIADB | using unversioned engines is an availability risk. We recommend using versioned engines created using the {@link mariaDb()} method | -| @aws-cdk/aws-rds | DatabaseInstanceEngine.​MYSQL | using unversioned engines is an availability risk. We recommend using versioned engines created using the {@link mysql()} method | -| @aws-cdk/aws-rds | DatabaseInstanceEngine.​ORACLE_​EE | using unversioned engines is an availability risk. We recommend using versioned engines created using the {@link oracleEe()} method | | @aws-cdk/aws-rds | DatabaseInstanceEngine.​ORACLE_​SE | instances can no longer be created with this engine. See https://forums.aws.amazon.com/ann.jspa?annID=7341 | | @aws-cdk/aws-rds | DatabaseInstanceEngine.​ORACLE_​SE1 | instances can no longer be created with this engine. See https://forums.aws.amazon.com/ann.jspa?annID=7341 | -| @aws-cdk/aws-rds | DatabaseInstanceEngine.​ORACLE_​SE2 | using unversioned engines is an availability risk. We recommend using versioned engines created using the {@link oracleSe2()} method | -| @aws-cdk/aws-rds | DatabaseInstanceEngine.​POSTGRES | using unversioned engines is an availability risk. We recommend using versioned engines created using the {@link postgres()} method | -| @aws-cdk/aws-rds | DatabaseInstanceEngine.​SQL_​SERVER_​EE | using unversioned engines is an availability risk. We recommend using versioned engines created using the {@link sqlServerEe()} method | -| @aws-cdk/aws-rds | DatabaseInstanceEngine.​SQL_​SERVER_​EX | using unversioned engines is an availability risk. We recommend using versioned engines created using the {@link sqlServerEx()} method | -| @aws-cdk/aws-rds | DatabaseInstanceEngine.​SQL_​SERVER_​SE | using unversioned engines is an availability risk. We recommend using versioned engines created using the {@link sqlServerSe()} method | -| @aws-cdk/aws-rds | DatabaseInstanceEngine.​SQL_​SERVER_​WEB | using unversioned engines is an availability risk. We recommend using versioned engines created using the {@link sqlServerWeb()} method | | @aws-cdk/aws-rds | DatabaseInstanceEngine.​oracleSe() | instances can no longer be created with this engine. See https://forums.aws.amazon.com/ann.jspa?annID=7341 | | @aws-cdk/aws-rds | DatabaseInstanceEngine.​oracleSe1() | instances can no longer be created with this engine. See https://forums.aws.amazon.com/ann.jspa?annID=7341 | | @aws-cdk/aws-rds | DatabaseInstanceNewProps.​vpcPlacement | use `vpcSubnets` | diff --git a/deprecated_apis.txt b/deprecated_apis.txt index 433d6fe5438eb..aa0ae3918b0d6 100644 --- a/deprecated_apis.txt +++ b/deprecated_apis.txt @@ -599,17 +599,8 @@ constructs.Node#uniqueId @aws-cdk/aws-rds.Credentials#fromUsername @aws-cdk/aws-rds.CredentialsFromUsernameOptions @aws-cdk/aws-rds.CredentialsFromUsernameOptions#password -@aws-cdk/aws-rds.DatabaseInstanceEngine#MARIADB -@aws-cdk/aws-rds.DatabaseInstanceEngine#MYSQL -@aws-cdk/aws-rds.DatabaseInstanceEngine#ORACLE_EE @aws-cdk/aws-rds.DatabaseInstanceEngine#ORACLE_SE @aws-cdk/aws-rds.DatabaseInstanceEngine#ORACLE_SE1 -@aws-cdk/aws-rds.DatabaseInstanceEngine#ORACLE_SE2 -@aws-cdk/aws-rds.DatabaseInstanceEngine#POSTGRES -@aws-cdk/aws-rds.DatabaseInstanceEngine#SQL_SERVER_EE -@aws-cdk/aws-rds.DatabaseInstanceEngine#SQL_SERVER_EX -@aws-cdk/aws-rds.DatabaseInstanceEngine#SQL_SERVER_SE -@aws-cdk/aws-rds.DatabaseInstanceEngine#SQL_SERVER_WEB @aws-cdk/aws-rds.DatabaseInstanceEngine#oracleSe @aws-cdk/aws-rds.DatabaseInstanceEngine#oracleSe1 @aws-cdk/aws-rds.DatabaseInstanceNewProps#vpcPlacement @@ -721,7 +712,6 @@ constructs.Node#uniqueId @aws-cdk/aws-rds.PostgresEngineVersion#VER_9_6_6 @aws-cdk/aws-rds.PostgresEngineVersion#VER_9_6_8 @aws-cdk/aws-rds.PostgresEngineVersion#VER_9_6_9 -@aws-cdk/aws-rds.SnapshotCredentials#fromGeneratedPassword @aws-cdk/aws-rds.SqlServerEngineVersion#VER_15_00_4043_23_V1 @aws-cdk/aws-autoscaling.BlockDevice#mappingEnabled @aws-cdk/aws-autoscaling.CommonAutoScalingGroupProps#notificationsTopic diff --git a/packages/@aws-cdk/aws-rds/lib/instance-engine.ts b/packages/@aws-cdk/aws-rds/lib/instance-engine.ts index 81deab4cabbf4..21edeeaaed63d 100644 --- a/packages/@aws-cdk/aws-rds/lib/instance-engine.ts +++ b/packages/@aws-cdk/aws-rds/lib/instance-engine.ts @@ -1572,7 +1572,7 @@ export class DatabaseInstanceEngine { /** * The unversioned 'mariadb' instance engine. * - * @deprecated using unversioned engines is an availability risk. + * NOTE: using unversioned engines is an availability risk. * We recommend using versioned engines created using the {@link mariaDb()} method */ public static readonly MARIADB: IInstanceEngine = new MariaDbInstanceEngine(); @@ -1580,7 +1580,7 @@ export class DatabaseInstanceEngine { /** * The unversioned 'mysql' instance engine. * - * @deprecated using unversioned engines is an availability risk. + * NOTE: using unversioned engines is an availability risk. * We recommend using versioned engines created using the {@link mysql()} method */ public static readonly MYSQL: IInstanceEngine = new MySqlInstanceEngine(); @@ -1588,7 +1588,7 @@ export class DatabaseInstanceEngine { /** * The unversioned 'oracle-ee' instance engine. * - * @deprecated using unversioned engines is an availability risk. + * NOTE: using unversioned engines is an availability risk. * We recommend using versioned engines created using the {@link oracleEe()} method */ public static readonly ORACLE_EE: IInstanceEngine = new OracleEeInstanceEngine(); @@ -1596,7 +1596,7 @@ export class DatabaseInstanceEngine { /** * The unversioned 'oracle-se2' instance engine. * - * @deprecated using unversioned engines is an availability risk. + * NOTE: using unversioned engines is an availability risk. * We recommend using versioned engines created using the {@link oracleSe2()} method */ public static readonly ORACLE_SE2: IInstanceEngine = new OracleSe2InstanceEngine(); @@ -1618,7 +1618,7 @@ export class DatabaseInstanceEngine { /** * The unversioned 'postgres' instance engine. * - * @deprecated using unversioned engines is an availability risk. + * NOTE: using unversioned engines is an availability risk. * We recommend using versioned engines created using the {@link postgres()} method */ public static readonly POSTGRES: IInstanceEngine = new PostgresInstanceEngine(); @@ -1626,7 +1626,7 @@ export class DatabaseInstanceEngine { /** * The unversioned 'sqlserver-ee' instance engine. * - * @deprecated using unversioned engines is an availability risk. + * NOTE: using unversioned engines is an availability risk. * We recommend using versioned engines created using the {@link sqlServerEe()} method */ public static readonly SQL_SERVER_EE: IInstanceEngine = new SqlServerEeInstanceEngine(); @@ -1634,7 +1634,7 @@ export class DatabaseInstanceEngine { /** * The unversioned 'sqlserver-se' instance engine. * - * @deprecated using unversioned engines is an availability risk. + * NOTE: using unversioned engines is an availability risk. * We recommend using versioned engines created using the {@link sqlServerSe()} method */ public static readonly SQL_SERVER_SE: IInstanceEngine = new SqlServerSeInstanceEngine(); @@ -1642,7 +1642,7 @@ export class DatabaseInstanceEngine { /** * The unversioned 'sqlserver-ex' instance engine. * - * @deprecated using unversioned engines is an availability risk. + * NOTE: using unversioned engines is an availability risk. * We recommend using versioned engines created using the {@link sqlServerEx()} method */ public static readonly SQL_SERVER_EX: IInstanceEngine = new SqlServerExInstanceEngine(); @@ -1650,7 +1650,7 @@ export class DatabaseInstanceEngine { /** * The unversioned 'sqlserver-web' instance engine. * - * @deprecated using unversioned engines is an availability risk. + * NOTE: using unversioned engines is an availability risk. * We recommend using versioned engines created using the {@link sqlServerWeb()} method */ public static readonly SQL_SERVER_WEB: IInstanceEngine = new SqlServerWebInstanceEngine(); diff --git a/packages/@aws-cdk/aws-rds/lib/props.ts b/packages/@aws-cdk/aws-rds/lib/props.ts index 75f8402b16d68..4a8883df504e3 100644 --- a/packages/@aws-cdk/aws-rds/lib/props.ts +++ b/packages/@aws-cdk/aws-rds/lib/props.ts @@ -346,9 +346,7 @@ export abstract class SnapshotCredentials { * * Note - The username must match the existing master username of the snapshot. * - * @deprecated use `fromGeneratedSecret()` for new Clusters and Instances. - * Note that switching from `fromGeneratedPassword()` to `fromGeneratedSecret()` for already deployed - * Clusters or Instances will update their master password. + * NOTE: use `fromGeneratedSecret()` for new Clusters and Instances. */ public static fromGeneratedPassword(username: string, options: SnapshotCredentialsFromGeneratedPasswordOptions = {}): SnapshotCredentials { return {