"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.DatabaseSecret=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),aws_secretsmanager_1=require("../../aws-secretsmanager"),core_1=require("../../core");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.96.1"};
