Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const SiteDNS = (): dns.ARecordProps => ({
recordName: site(props),
target: {aliasTarget: new target.CloudFrontTarget(cloud)},
ttl: cdk.Duration.seconds(60),
zone,
})
return iaac(SiteDNS)
},
],
aliasConfiguration,
};
this.distribution = new CloudFrontWebDistribution(
this,
'WebSiteDistribution',
distibutionConfig,
);
if (aliasConfiguration) {
new WebsiteAliasRecord(this, 'WebsiteAliasRecord', {
domainName: aliasConfiguration.domainName,
recordNames: aliasConfiguration.names,
target: new CloudFrontTarget(this.distribution),
});
}
}