How to use the @aws-cdk/aws-route53.RecordTarget.fromAlias function in @aws-cdk/aws-route53

To help you get started, we’ve selected a few @aws-cdk/aws-route53 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 cloudcomponents / cdk-components / packages / cdk-static-website / src / website-alias-record.ts View on Github external
recordNames.forEach((recordName, idx): void => {
            new ARecord(this, `WebsiteAliasRecord${idx}`, {
                zone,
                recordName: `${recordName}.`,
                target: RecordTarget.fromAlias(target),
            });
        });
    }