"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.PrivateCertificate=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var certificate_base_1=()=>{var tmp=require("./certificate-base");return certificate_base_1=()=>tmp,tmp},certificatemanager_generated_1=()=>{var tmp=require("./certificatemanager.generated");return certificatemanager_generated_1=()=>tmp,tmp};class PrivateCertificate extends certificate_base_1().CertificateBase{static fromCertificateArn(scope,id,certificateArn){class Import extends certificate_base_1().CertificateBase{constructor(){super(...arguments),this.certificateArn=certificateArn}}return new Import(scope,id)}constructor(scope,id,props){super(scope,id);try{jsiiDeprecationWarnings().aws_cdk_lib_aws_certificatemanager_PrivateCertificateProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,PrivateCertificate),error}const cert=new(certificatemanager_generated_1()).CfnCertificate(this,"Resource",{domainName:props.domainName,subjectAlternativeNames:props.subjectAlternativeNames,certificateAuthorityArn:props.certificateAuthority.certificateAuthorityArn,keyAlgorithm:props.keyAlgorithm?.name});this.certificateArn=cert.ref}}exports.PrivateCertificate=PrivateCertificate,_a=JSII_RTTI_SYMBOL_1,PrivateCertificate[_a]={fqn:"aws-cdk-lib.aws_certificatemanager.PrivateCertificate",version:"2.159.0"};
