"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.DatabaseSecret=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var aws_secretsmanager_1=()=>{var tmp=require("../../aws-secretsmanager");return aws_secretsmanager_1=()=>tmp,tmp},core_1=()=>{var tmp=require("../../core");return core_1=()=>tmp,tmp};class DatabaseSecret extends aws_secretsmanager_1().Secret{constructor(scope,id,props){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_docdb_DatabaseSecretProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,DatabaseSecret),error}const excludedCharacters=props.excludeCharacters??'"@/';super(scope,id,{secretName:props.secretName,description:`Generated by the CDK for stack: ${core_1().Aws.STACK_NAME}`,encryptionKey:props.encryptionKey,generateSecretString:{passwordLength:41,secretStringTemplate:JSON.stringify({username:props.username,masterarn:props.masterSecret?.secretArn}),generateStringKey:"password",excludeCharacters:excludedCharacters}}),this._excludedCharacters=excludedCharacters}}exports.DatabaseSecret=DatabaseSecret,_a=JSII_RTTI_SYMBOL_1,DatabaseSecret[_a]={fqn:"aws-cdk-lib.aws_docdb.DatabaseSecret",version:"2.159.0"};
