CDK Constructs for AWS Route53 Alias Targets
Project description
Route53 Alias Record Targets for the CDK Route53 Library
This library contains Route53 Alias Record targets for:
- API Gateway custom domains
new route53.ARecord(this, 'AliasRecord', { zone, target: route53.RecordTarget.fromAlias(new alias.ApiGateway(restApi)), // or - route53.RecordTarget.fromAlias(new alias.ApiGatewayDomainName(domainName)), });
- CloudFront distributions
new route53.ARecord(this, 'AliasRecord', { zone, target: route53.RecordTarget.fromAlias(new alias.CloudFrontTarget(distribution)), });
- S3 Bucket WebSite
new route53.ARecord(this, 'AliasRecord', { zone, target: route53.RecordTarget.fromAlias(new alias.BucketWebsiteTarget(bucket)), });
- ELBv2 load balancers
new route53.ARecord(this, 'AliasRecord', { zone, target: route53.RecordTarget.fromAlias(new alias.LoadBalancerTarget(elbv2)), // or - route53.RecordTarget.fromAlias(new alias.ApiGatewayDomainName(domainName)), });
- Classic load balancers
new route53.ARecord(this, 'AliasRecord', { zone, target: route53.RecordTarget.fromAlias(new alias.ClassicLoadBalancerTarget(elb)), // or - route53.RecordTarget.fromAlias(new alias.ApiGatewayDomainName(domainName)), });
See the documentation of @aws-cdk/aws-route53
for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for aws-cdk.aws-route53-targets-1.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfb69606d11de22416bcb5909f8d7e5ec5573371becfa758fb304b82c3ac4afa |
|
MD5 | da1786c1c2199b6b88f6adfa9d44ee71 |
|
BLAKE2b-256 | b26741097fc3e6617205c89b4002a73edbb0c7d68929f286e90da44b34f36094 |
Close
Hashes for aws_cdk.aws_route53_targets-1.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 873d27a9af3382ce892e2141b29b538ca638ea460f4637fbb4f7d501f09efa73 |
|
MD5 | 19027b7efe64fdfb3f7bfdd990a46235 |
|
BLAKE2b-256 | 0323e67a0eb160f7ac96e6d397aa3ac5cf741402ae787eeedabb87c5d0b43768 |