Metadata-Version: 2.1
Name: aws-cdk.aws-route53-targets
Version: 1.10.0
Summary: CDK Constructs for AWS Route53 Alias Targets
Home-page: https://github.com/aws/aws-cdk
Author: Amazon Web Services
License: UNKNOWN
Project-URL: Source, https://github.com/aws/aws-cdk.git
Description: # Route53 Alias Record Targets for the CDK Route53 Library
        <!--BEGIN STABILITY BANNER-->
        
        ---
        
        ![Stability: Stable](https://img.shields.io/badge/stability-Stable-success.svg?style=for-the-badge)
        
        
        ---
        <!--END STABILITY BANNER-->
        
        This library contains Route53 Alias Record targets for:
        * API Gateway custom domains
          ```ts
          new route53.ARecord(this, 'AliasRecord', {
            zone,
            target: route53.RecordTarget.fromAlias(new alias.ApiGateway(restApi)),
            // or - route53.RecordTarget.fromAlias(new alias.ApiGatewayDomainName(domainName)),
          });
          ```
        * CloudFront distributions
          ```ts
          new route53.ARecord(this, 'AliasRecord', {
            zone,
            target: route53.RecordTarget.fromAlias(new alias.CloudFrontTarget(distribution)),
          });
          ```
        * ELBv2 load balancers
          ```ts
          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
          ```ts
          new route53.ARecord(this, 'AliasRecord', {
            zone,
            target: route53.RecordTarget.fromAlias(new alias.ClassicLoadBalancerTarget(elb)),
            // or - route53.RecordTarget.fromAlias(new alias.ApiGatewayDomainName(domainName)),
          });
          ```
        * S3 Bucket WebSite:
        
        **Important:** The Bucket name must strictly match the full DNS name.
        See [the Developer Guide](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/getting-started.html) for more info.
          ```ts
          const [recordName, domainName] = ['www', 'example.com'];
        
          const bucketWebsite = new Bucket(this, 'BucketWebsite', {
            bucketName: [recordName, domainName].join('.'), // www.example.com
            publicReadAccess: true,
            websiteIndexDocument: 'index.html',
          });
        
          const zone = HostedZone.fromLookup(this, 'Zone', {domainName}); // example.com
        
          new route53.ARecord(this, 'AliasRecord', {
            zone,
            recordName, // www
            target: route53.RecordTarget.fromAlias(new alias.BucketWebsiteTarget(bucket)),
          });
          ```
        
        See the documentation of `@aws-cdk/aws-route53` for more information.
        
        
Platform: UNKNOWN
Requires-Python: >=3.6
Description-Content-Type: text/markdown
