UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

28 lines (23 loc) 693 B
import * as route53 from '../../aws-route53'; import { App, Stack } from '../../core'; import { Construct } from 'constructs'; import * as certmgr from '../lib'; class CertStack extends Stack { constructor(scope: Construct, id: string) { super(scope, id); /// !show const hostedZone = route53.HostedZone.fromLookup(this, 'HostedZone', { domainName: 'example.com', privateZone: false, }); const certificate = new certmgr.DnsValidatedCertificate(this, 'TestCertificate', { domainName: 'test.example.com', hostedZone, }); /// !hide Array.isArray(certificate); } } const app = new App(); new CertStack(app, 'MyStack4'); app.synth();