معرفی شرکت ها


aws-cdk.aws-route53-targets-1.99.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

The CDK Construct Library for AWS Route53 Alias Targets
ویژگی مقدار
سیستم عامل OS Independent
نام فایل aws-cdk.aws-route53-targets-1.99.0
نام aws-cdk.aws-route53-targets
نسخه کتابخانه 1.99.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Amazon Web Services
ایمیل نویسنده -
آدرس صفحه اصلی https://github.com/aws/aws-cdk
آدرس اینترنتی https://pypi.org/project/aws-cdk.aws-route53-targets/
مجوز Apache-2.0
# Route53 Alias Record Targets for the CDK Route53 Library <!--BEGIN STABILITY BANNER-->--- ![cdk-constructs: Stable](https://img.shields.io/badge/cdk--constructs-stable-success.svg?style=for-the-badge) --- <!--END STABILITY BANNER--> This library contains Route53 Alias Record targets for: * API Gateway custom domains ```python import aws_cdk.aws_apigateway as apigw # zone: route53.HostedZone # rest_api: apigw.LambdaRestApi route53.ARecord(self, "AliasRecord", zone=zone, target=route53.RecordTarget.from_alias(targets.ApiGateway(rest_api)) ) ``` * API Gateway V2 custom domains ```python import aws_cdk.aws_apigatewayv2 as apigwv2 # zone: route53.HostedZone # domain_name: apigwv2.DomainName route53.ARecord(self, "AliasRecord", zone=zone, target=route53.RecordTarget.from_alias(targets.ApiGatewayv2DomainProperties(domain_name.regional_domain_name, domain_name.regional_hosted_zone_id)) ) ``` * CloudFront distributions ```python import aws_cdk.aws_cloudfront as cloudfront # zone: route53.HostedZone # distribution: cloudfront.CloudFrontWebDistribution route53.ARecord(self, "AliasRecord", zone=zone, target=route53.RecordTarget.from_alias(targets.CloudFrontTarget(distribution)) ) ``` * ELBv2 load balancers ```python import aws_cdk.aws_elasticloadbalancingv2 as elbv2 # zone: route53.HostedZone # lb: elbv2.ApplicationLoadBalancer route53.ARecord(self, "AliasRecord", zone=zone, target=route53.RecordTarget.from_alias(targets.LoadBalancerTarget(lb)) ) ``` * Classic load balancers ```python import aws_cdk.aws_elasticloadbalancing as elb # zone: route53.HostedZone # lb: elb.LoadBalancer route53.ARecord(self, "AliasRecord", zone=zone, target=route53.RecordTarget.from_alias(targets.ClassicLoadBalancerTarget(lb)) ) ``` **Important:** Based on [AWS documentation](https://aws.amazon.com/de/premiumsupport/knowledge-center/alias-resource-record-set-route53-cli/), all alias record in Route 53 that points to a Elastic Load Balancer will always include *dualstack* for the DNSName to resolve IPv4/IPv6 addresses (without *dualstack* IPv6 will not resolve). For example, if the Amazon-provided DNS for the load balancer is `ALB-xxxxxxx.us-west-2.elb.amazonaws.com`, CDK will create alias target in Route 53 will be `dualstack.ALB-xxxxxxx.us-west-2.elb.amazonaws.com`. * GlobalAccelerator ```python import aws_cdk.aws_globalaccelerator as globalaccelerator # zone: route53.HostedZone # accelerator: globalaccelerator.Accelerator route53.ARecord(self, "AliasRecord", zone=zone, target=route53.RecordTarget.from_alias(targets.GlobalAcceleratorTarget(accelerator)) ) ``` **Important:** If you use GlobalAcceleratorDomainTarget, passing a string rather than an instance of IAccelerator, ensure that the string is a valid domain name of an existing Global Accelerator instance. See [the documentation on DNS addressing](https://docs.aws.amazon.com/global-accelerator/latest/dg/dns-addressing-custom-domains.dns-addressing.html) with Global Accelerator for more info. * InterfaceVpcEndpoints **Important:** Based on the CFN docs for VPCEndpoints - [see here](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#aws-resource-ec2-vpcendpoint-return-values) - the attributes returned for DnsEntries in CloudFormation is a combination of the hosted zone ID and the DNS name. The entries are ordered as follows: regional public DNS, zonal public DNS, private DNS, and wildcard DNS. This order is not enforced for AWS Marketplace services, and therefore this CDK construct is ONLY guaranteed to work with non-marketplace services. ```python import aws_cdk.aws_ec2 as ec2 # zone: route53.HostedZone # interface_vpc_endpoint: ec2.InterfaceVpcEndpoint route53.ARecord(self, "AliasRecord", zone=zone, target=route53.RecordTarget.from_alias(targets.InterfaceVpcEndpointTarget(interface_vpc_endpoint)) ) ``` * 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. ```python import aws_cdk.aws_s3 as s3 record_name = "www" domain_name = "example.com" bucket_website = s3.Bucket(self, "BucketWebsite", bucket_name=[record_name, domain_name].join("."), # www.example.com public_read_access=True, website_index_document="index.html" ) zone = route53.HostedZone.from_lookup(self, "Zone", domain_name=domain_name) # example.com route53.ARecord(self, "AliasRecord", zone=zone, record_name=record_name, # www target=route53.RecordTarget.from_alias(targets.BucketWebsiteTarget(bucket_website)) ) ``` * User pool domain ```python import aws_cdk.aws_cognito as cognito # zone: route53.HostedZone # domain: cognito.UserPoolDomain route53.ARecord(self, "AliasRecord", zone=zone, target=route53.RecordTarget.from_alias(targets.UserPoolDomainTarget(domain)) ) ``` * Route 53 record ```python # zone: route53.HostedZone # record: route53.ARecord route53.ARecord(self, "AliasRecord", zone=zone, target=route53.RecordTarget.from_alias(targets.Route53RecordTarget(record)) ) ``` * Elastic Beanstalk environment: **Important:** Only supports Elastic Beanstalk environments created after 2016 that have a regional endpoint. ```python # zone: route53.HostedZone # ebs_environment_url: str route53.ARecord(self, "AliasRecord", zone=zone, target=route53.RecordTarget.from_alias(targets.ElasticBeanstalkEnvironmentEndpointTarget(ebs_environment_url)) ) ``` See the documentation of `@aws-cdk/aws-route53` for more information.


نیازمندی

مقدار نام
==1.179.0 aws-cdk.aws-apigateway
==1.179.0 aws-cdk.aws-cloudfront
==1.179.0 aws-cdk.aws-cognito
==1.179.0 aws-cdk.aws-ec2
==1.179.0 aws-cdk.aws-elasticloadbalancing
==1.179.0 aws-cdk.aws-elasticloadbalancingv2
==1.179.0 aws-cdk.aws-globalaccelerator
==1.179.0 aws-cdk.aws-iam
==1.179.0 aws-cdk.aws-route53
==1.179.0 aws-cdk.aws-s3
==1.179.0 aws-cdk.core
==1.179.0 aws-cdk.region-info
<4.0.0,>=3.3.69 constructs
<2.0.0,>=1.70.0 jsii
>=0.0.3 publication
~=2.13.3 typeguard


زبان مورد نیاز

مقدار نام
~=3.7 Python


نحوه نصب


نصب پکیج whl aws-cdk.aws-route53-targets-1.99.0:

    pip install aws-cdk.aws-route53-targets-1.99.0.whl


نصب پکیج tar.gz aws-cdk.aws-route53-targets-1.99.0:

    pip install aws-cdk.aws-route53-targets-1.99.0.tar.gz