C# Класс Amazon.Route53.Model.AliasTarget

Alias resource record sets only: Information about the domain to which you are redirecting traffic.

For more information and an example, see Creating Alias Resource Record Sets in the Amazon Route 53 Developer Guide

.

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AliasTarget ( ) : System

Empty constructor used to set properties independently even when a simple constructor is available

AliasTarget ( string hostedZoneId, string dnsName ) : System

Instantiates AliasTarget with the parameterized properties

Приватные методы

Метод Описание
IsSetDNSName ( ) : bool
IsSetEvaluateTargetHealth ( ) : bool
IsSetHostedZoneId ( ) : bool

Описание методов

AliasTarget() публичный Метод

Empty constructor used to set properties independently even when a simple constructor is available
public AliasTarget ( ) : System
Результат System

AliasTarget() публичный Метод

Instantiates AliasTarget with the parameterized properties
public AliasTarget ( string hostedZoneId, string dnsName ) : System
hostedZoneId string Alias resource records sets only: The value used depends on where the queries are routed:
A CloudFront distribution
Specify Z2FDTNDATAQYW2. Alias resource record sets for CloudFront can't be created in a private zone.
Elastic Beanstalk environment
Specify the hosted zone ID for the region in which you created the environment. The environment must have a regionalized subdomain. For a list of regions and the corresponding hosted zone IDs, see AWS Elastic Beanstalk in the Regions and Endpoints chapter of the Amazon Web Services General Reference.
ELB load balancer
Specify the value of the hosted zone ID for the load balancer. Use the following methods to get the hosted zone ID:
  • AWS Management Console: Go to the Amazon EC2 page, click Load Balancers in the navigation pane, select the load balancer, and get the value of the Hosted zone field on the Description tab. Use the same process to get the value of DNS name. (You specify the value of DNS name for AliasTarget$DNSName.)
  • Elastic Load Balancing API: Use DescribeLoadBalancers to get the value of CanonicalHostedZoneNameId and DNSName. (You specify the value of DNSName for AliasTarget$DNSName.) For more information, see the applicable guide:
  • AWS CLI: Use describe-load-balancers to get the value of CanonicalHostedZoneNameID and DNSName. (You specify the value of DNSName for AliasTarget$DNSName.)
An Amazon S3 bucket configured as a static website
Specify the hosted zone ID for the region that you created the bucket in. For more information about valid values, see the table Amazon Simple Storage Service Website Endpoints in the Amazon Web Services General Reference.
Another Amazon Route 53 resource record set in your hosted zone
Specify the hosted zone ID of your hosted zone. (An alias resource record set can't reference a resource record set in a different hosted zone.)
dnsName string Alias resource record sets only: The value that you specify depends on where you want to route queries:
  • A CloudFront distribution: Specify the domain name that CloudFront assigned when you created your distribution. Your CloudFront distribution must include an alternate domain name that matches the name of the resource record set. For example, if the name of the resource record set is acme.example.com, your CloudFront distribution must include acme.example.com as one of the alternate domain names. For more information, see Using Alternate Domain Names (CNAMEs) in the Amazon CloudFront Developer Guide.
  • Elastic Beanstalk environment: Specify the CNAME attribute for the environment. (The environment must have a regionalized domain name.) You can use the following methods to get the value of the CNAME attribute:
    • AWS Management Console: For information about how to get the value by using the console, see Using Custom Domains with AWS Elastic Beanstalk in the AWS Elastic Beanstalk Developer Guide.
    • Elastic Beanstalk API: Use the DescribeEnvironments action to get the value of the CNAME attribute. For more information, see DescribeEnvironments in the AWS Elastic Beanstalk API Reference.
    • AWS CLI: Use the describe-environments command to get the value of the CNAME attribute. For more information, see describe-environments in the AWS Command Line Interface Reference.
  • An ELB load balancer: Specify the DNS name that is associated with the load balancer. Get the DNS name by using the AWS Management Console, the ELB API, or the AWS CLI. Use the same method to get values for HostedZoneId and DNSName. If you get one value from the console and the other value from the API or the CLI, creating the resource record set will fail.
    • AWS Management Console: Go to the EC2 page, click Load Balancers in the navigation pane, choose the load balancer, choose the Description tab, and get the value of the DNS name field. (If you're routing traffic to a Classic Load Balancer, get the value that begins with dualstack.) Use the same process to get the value of the Hosted zone field. See AliasTarget$HostedZoneId.
    • Elastic Load Balancing API: Use DescribeLoadBalancers to get the value of DNSName and CanonicalHostedZoneNameId. (You specify the value of CanonicalHostedZoneNameId for AliasTarget$HostedZoneId.) For more information, see the applicable guide:
    • AWS CLI: Use describe-load-balancers to get the value of DNSName and CanonicalHostedZoneNameId. (You specify the value of CanonicalHostedZoneNameId for AliasTarget$HostedZoneId.)
  • An Amazon S3 bucket that is configured as a static website: Specify the domain name of the Amazon S3 website endpoint in which you created the bucket, for example, s3-website-us-east-1.amazonaws.com. For more information about valid values, see the table Amazon Simple Storage Service (S3) Website Endpoints in the Amazon Web Services General Reference. For more information about using S3 buckets for websites, see Getting Started with Amazon Route 53 in the Amazon Route 53 Developer Guide.
  • Another Amazon Route 53 resource record set: Specify the value of the Name element for a resource record set in the current hosted zone.
Результат System