How to use the @aws-cdk/aws-route53-targets.CloudFrontTarget function in @aws-cdk/aws-route53-targets

To help you get started, we’ve selected a few @aws-cdk/aws-route53-targets examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fogfish / aws-cdk-pure / hoc / src / staticweb.ts View on Github external
const SiteDNS  = (): dns.ARecordProps => ({
    recordName: site(props),
    target: {aliasTarget: new target.CloudFrontTarget(cloud)},
    ttl: cdk.Duration.seconds(60),
    zone,
  })
  return iaac(SiteDNS)
github cloudcomponents / cdk-components / packages / cdk-static-website / src / static-website.ts View on Github external
},
            ],
            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),
            });
        }
    }

@aws-cdk/aws-route53-targets

The CDK Construct Library for AWS Route53 Alias Targets

Apache-2.0
Latest version published 1 year ago

Package Health Score

67 / 100
Full package analysis