in src/constructs/acm/certificate.ts [22:36]
constructor(scope: GuStack, props: GuCertificatePropsWithApp) {
const { app, domainName, hostedZoneId } = props;
const maybeHostedZone = hostedZoneId
? HostedZone.fromHostedZoneId(scope, AppIdentity.suffixText({ app }, "HostedZone"), hostedZoneId)
: undefined;
const awsCertificateProps: CertificateProps & AppIdentity = {
domainName,
validation: CertificateValidation.fromDns(maybeHostedZone),
app,
};
super(scope, "Certificate", awsCertificateProps);
this.applyRemovalPolicy(RemovalPolicy.RETAIN);
}