"use strict";var _a,_b;Object.defineProperty(exports,"__esModule",{value:!0}),exports.PerformanceInsightRetention=exports.SnapshotCredentials=exports.Credentials=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");class Credentials{static fromGeneratedSecret(username,options={}){return jsiiDeprecationWarnings.aws_cdk_lib_aws_rds_CredentialsBaseOptions(options),{...options,username,usernameAsString:!0}}static fromPassword(username,password){return jsiiDeprecationWarnings.aws_cdk_lib_SecretValue(password),{username,password,usernameAsString:!0}}static fromUsername(username,options={}){return jsiiDeprecationWarnings.aws_cdk_lib_aws_rds_CredentialsFromUsernameOptions(options),{...options,username}}static fromSecret(secret,username){return jsiiDeprecationWarnings.aws_cdk_lib_aws_secretsmanager_ISecret(secret),{username:username!=null?username:secret.secretValueFromJson("username").toString(),password:secret.secretValueFromJson("password"),encryptionKey:secret.encryptionKey,secret}}}exports.Credentials=Credentials,_a=JSII_RTTI_SYMBOL_1,Credentials[_a]={fqn:"aws-cdk-lib.aws_rds.Credentials",version:"2.13.0"};class SnapshotCredentials{static fromGeneratedSecret(username,options={}){return jsiiDeprecationWarnings.aws_cdk_lib_aws_rds_SnapshotCredentialsFromGeneratedPasswordOptions(options),{...options,generatePassword:!0,replaceOnPasswordCriteriaChanges:!0,username}}static fromGeneratedPassword(username,options={}){return jsiiDeprecationWarnings.aws_cdk_lib_aws_rds_SnapshotCredentialsFromGeneratedPasswordOptions(options),{...options,generatePassword:!0,username}}static fromPassword(password){return jsiiDeprecationWarnings.aws_cdk_lib_SecretValue(password),{generatePassword:!1,password}}static fromSecret(secret){return jsiiDeprecationWarnings.aws_cdk_lib_aws_secretsmanager_Secret(secret),{generatePassword:!1,password:secret.secretValueFromJson("password"),secret}}}exports.SnapshotCredentials=SnapshotCredentials,_b=JSII_RTTI_SYMBOL_1,SnapshotCredentials[_b]={fqn:"aws-cdk-lib.aws_rds.SnapshotCredentials",version:"2.13.0"};var PerformanceInsightRetention;(function(PerformanceInsightRetention2){PerformanceInsightRetention2[PerformanceInsightRetention2.DEFAULT=7]="DEFAULT",PerformanceInsightRetention2[PerformanceInsightRetention2.LONG_TERM=731]="LONG_TERM"})(PerformanceInsightRetention=exports.PerformanceInsightRetention||(exports.PerformanceInsightRetention={}));
//# sourceMappingURL=props.js.map
