aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 560 B
JavaScript
;Object.defineProperty(exports,"__esModule",{value:!0});const route53=require("../../aws-route53"),core_1=require("../../core"),certmgr=require("../lib");class CertStack extends core_1.Stack{constructor(scope,id){super(scope,id);const hostedZone=route53.HostedZone.fromLookup(this,"HostedZone",{domainName:"example.com",privateZone:!1}),certificate=new certmgr.DnsValidatedCertificate(this,"TestCertificate",{domainName:"test.example.com",hostedZone});Array.isArray(certificate)}}const app=new core_1.App;new CertStack(app,"MyStack4"),app.synth();