@jaypie/constructs 1.1.62-rc.1 → 1.1.62-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1775,14 +1775,20 @@ class JaypieDistribution extends constructs.Construct {
1775
1775
  this.distributionDomainName = this.distribution.distributionDomainName;
1776
1776
  this.distributionId = this.distribution.distributionId;
1777
1777
  this.domainName = this.distribution.domainName;
1778
- // Create DNS record if we have host and zone
1778
+ // Create DNS records if we have host and zone
1779
1779
  if (host && hostedZone) {
1780
- const record = new route53__namespace.ARecord(this, "AliasRecord", {
1780
+ const aRecord = new route53__namespace.ARecord(this, "AliasRecord", {
1781
1781
  recordName: host,
1782
1782
  target: route53__namespace.RecordTarget.fromAlias(new route53Targets__namespace.CloudFrontTarget(this.distribution)),
1783
1783
  zone: hostedZone,
1784
1784
  });
1785
- cdk.Tags.of(record).add(CDK$2.TAG.ROLE, CDK$2.ROLE.NETWORKING);
1785
+ cdk.Tags.of(aRecord).add(CDK$2.TAG.ROLE, CDK$2.ROLE.NETWORKING);
1786
+ const aaaaRecord = new route53__namespace.AaaaRecord(this, "AaaaAliasRecord", {
1787
+ recordName: host,
1788
+ target: route53__namespace.RecordTarget.fromAlias(new route53Targets__namespace.CloudFrontTarget(this.distribution)),
1789
+ zone: hostedZone,
1790
+ });
1791
+ cdk.Tags.of(aaaaRecord).add(CDK$2.TAG.ROLE, CDK$2.ROLE.NETWORKING);
1786
1792
  }
1787
1793
  }
1788
1794
  // Type guards for handler types