aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 1.33 kB
JavaScript
;var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.PrivateCertificate=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),certificate_base_1=require("./certificate-base"),certificatemanager_generated_1=require("./certificatemanager.generated");class PrivateCertificate extends certificate_base_1.CertificateBase{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});this.certificateArn=cert.ref}static fromCertificateArn(scope,id,certificateArn){class Import extends certificate_base_1.CertificateBase{constructor(){super(...arguments),this.certificateArn=certificateArn}}return new Import(scope,id)}}exports.PrivateCertificate=PrivateCertificate,_a=JSII_RTTI_SYMBOL_1,PrivateCertificate[_a]={fqn:"aws-cdk-lib.aws_certificatemanager.PrivateCertificate",version:"2.70.0"};