@Stability(value=Stable) @Internal public static final class CfnRecordSetGroup.AliasTargetProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnRecordSetGroup.AliasTargetProperty
CfnRecordSetGroup.AliasTargetProperty
software.amazon.jsii.JsiiObject.InitializationMode
CfnRecordSetGroup.AliasTargetProperty.Builder, CfnRecordSetGroup.AliasTargetProperty.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(CfnRecordSetGroup.AliasTargetProperty.Builder builder)
Constructor that initializes the object based on literal property values passed by the
CfnRecordSetGroup.AliasTargetProperty.Builder . |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getDnsName()
*Alias records only:* The value that you specify depends on where you want to route queries:.
|
Object |
getEvaluateTargetHealth()
*Applies only to alias records with any routing policy:* When `EvaluateTargetHealth` is `true` , an alias record inherits the health of the referenced AWS resource, such as an ELB load balancer or another record in the hosted zone.
|
String |
getHostedZoneId()
*Alias resource records sets only* : The value used depends on where you want to route traffic:.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.protected Jsii$Proxy(CfnRecordSetGroup.AliasTargetProperty.Builder builder)
CfnRecordSetGroup.AliasTargetProperty.Builder
.public final String getDnsName()
CfnRecordSetGroup.AliasTargetProperty
regionalDomainName
.distributionDomainName
. This is the name of the associated CloudFront distribution, such as da1b2c3d4e5.cloudfront.net
.
The name of the record that you're creating must match a custom domain name for your API, such as
api.example.com
.
vpce-123456789abcdef01-example-us-east-1a.elasticloadbalancing.us-east-1.vpce.amazonaws.com
. For edge-optimized APIs, this is the domain name for the corresponding CloudFront distribution. You can get the value of DnsName
using the AWS CLI command describe-vpc-endpoints .Your CloudFront distribution must include an alternate domain name that matches the name of the record. For example, if the name of the record 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 .
You can't create a record in a private hosted zone to route traffic to a CloudFront distribution.
For failover alias records, you can't specify a CloudFront distribution for both the primary and secondary records. A distribution must include an alternate domain name that matches the name of the record. However, the primary and secondary records have the same name, and you can't include the same alternate domain name in more than one distribution.
my-environment. *us-west-2* .elasticbeanstalk.com
is a regionalized domain name.
For environments that were created before early 2016, the domain name doesn't include the region. To route traffic to these environments, you must create a CNAME record instead of an alias record. Note that you can't create a CNAME record for the root domain name. For example, if your domain name is example.com, you can create a record that routes traffic for acme.example.com to your Elastic Beanstalk environment, but you can't create a record that routes traffic for example.com to your Elastic Beanstalk environment.
For Elastic Beanstalk environments that have regionalized subdomains, specify the CNAME
attribute for the environment. You can use the following methods to get the value of the CNAME attribute:
DescribeEnvironments
action to get the value of the CNAME
attribute. For more information, see DescribeEnvironments in the AWS Elastic Beanstalk API Reference .describe-environments
command to get the value of the CNAME
attribute. For more information, see describe-environments in the AWS CLI .If you're routing traffic to a Classic Load Balancer, get the value that begins with dualstack . If you're routing traffic to another type of load balancer, get the value that applies to the record type, A or AAAA.
DescribeLoadBalancers
to get the value of DNSName
. For more information, see the applicable guide:DNSName
:describe-load-balancers
to get the value of DNSName
. For more information, see the applicable guide:s3-website.us-east-2.amazonaws.com
. For more information about valid values, see the table Amazon 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.Name
element for a record in the current hosted zone.
If you're creating an alias record that has the same name as the hosted zone (known as the zone apex), you can't specify the domain name for a record for which the value of
Type
isCNAME
. This is because the alias record must have the same type as the record that you're routing traffic to, and creating a CNAME record for the zone apex isn't supported even for an alias record.
getDnsName
in interface CfnRecordSetGroup.AliasTargetProperty
public final String getHostedZoneId()
CfnRecordSetGroup.AliasTargetProperty
regionalHostedZoneId
.distributionHostedZoneId
.HostedZoneId
using the AWS CLI command describe-vpc-endpoints .Z2FDTNDATAQYW2
. This is always the hosted zone ID when you create an alias record that routes traffic to a CloudFront distribution.
Alias records for CloudFront can't be created in a private zone.
DescribeLoadBalancers
to get the applicable value. For more information, see the applicable guide:CanonicalHostedZoneNameID
.CanonicalHostedZoneID
.describe-load-balancers
to get the applicable value. For more information, see the applicable guide:CanonicalHostedZoneNameID
.CanonicalHostedZoneID
.Z2BJ6XQ5FK7U4H
.getHostedZoneId
in interface CfnRecordSetGroup.AliasTargetProperty
public final Object getEvaluateTargetHealth()
CfnRecordSetGroup.AliasTargetProperty
Note the following:
EvaluateTargetHealth
to true
when the alias target is a CloudFront distribution.DNSName
and the environment contains an ELB load balancer, Elastic Load Balancing routes queries only to the healthy Amazon EC2 instances that are registered with the load balancer. (An environment automatically contains an ELB load balancer if it includes more than one Amazon EC2 instance.) If you set EvaluateTargetHealth
to true
and either no Amazon EC2 instances are healthy or the load balancer itself is unhealthy, Route 53 routes queries to other available resources that are healthy, if any.If the environment contains a single Amazon EC2 instance, there are no special requirements.
DNSName
, Elastic Load Balancing routes queries only to the healthy Amazon EC2 instances that are registered with the load balancer. If you set EvaluateTargetHealth
to true
and either no EC2 instances are healthy or the load balancer itself is unhealthy, Route 53 routes queries to other resources.EvaluateTargetHealth
to true
, Route 53 routes queries to the load balancer based on the health of the target groups that are associated with the load balancer:
When you create a load balancer, you configure settings for Elastic Load Balancing health checks; they're not Route 53 health checks, but they perform a similar function. Do not create Route 53 health checks for the EC2 instances that you register with an ELB load balancer.
EvaluateTargetHealth
to true
when the alias target is an S3 bucket.DNSName
is a record or a group of records (for example, a group of weighted records) but is not another alias record, we recommend that you associate a health check with all of the records in the alias target. For more information, see What Happens When You Omit Health Checks? in the Amazon Route 53 Developer Guide .For more information and examples, see Amazon Route 53 Health Checks and DNS Failover in the Amazon Route 53 Developer Guide .
getEvaluateTargetHealth
in interface CfnRecordSetGroup.AliasTargetProperty
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson
in interface software.amazon.jsii.JsiiSerializable
Copyright © 2023. All rights reserved.