public class AliasTarget extends Object implements Serializable, Cloneable
Alias resource record sets only: Information about the CloudFront distribution, ELB load balancer, Amazon S3 bucket, or Amazon Route 53 resource record set to which you are routing traffic.
If you're creating resource record sets for a private hosted zone, note the following:
For more information and an example, see Example: Creating Alias Resource Record Sets in the Amazon Route 53 API Reference .
| Constructor and Description |
|---|
AliasTarget()
Default constructor for a new AliasTarget object.
|
AliasTarget(String hostedZoneId,
String dNSName)
Constructs a new AliasTarget object.
|
| Modifier and Type | Method and Description |
|---|---|
AliasTarget |
clone() |
boolean |
equals(Object obj) |
String |
getDNSName()
Alias resource record sets only: The external DNS name
associated with the AWS Resource.
|
Boolean |
getEvaluateTargetHealth()
Alias resource record sets only: If you set the value of
EvaluateTargetHealth to true for the
resource record set or sets in an alias, weighted alias, latency
alias, or failover alias resource record set, and if you specify a
value for HealthCheckId for every resource record set
that is referenced by these alias resource record sets, the alias
resource record sets inherit the health of the referenced resource
record sets. |
String |
getHostedZoneId()
Alias resource record sets only: The value you use depends on
where you want to route queries: A CloudFront
distribution: Specify
Z2FDTNDATAQYW2. An ELB
load balancer: Specify the value of the hosted zone ID for the load
balancer. |
int |
hashCode() |
Boolean |
isEvaluateTargetHealth()
Alias resource record sets only: If you set the value of
EvaluateTargetHealth to true for the
resource record set or sets in an alias, weighted alias, latency
alias, or failover alias resource record set, and if you specify a
value for HealthCheckId for every resource record set
that is referenced by these alias resource record sets, the alias
resource record sets inherit the health of the referenced resource
record sets. |
void |
setDNSName(String dNSName)
Alias resource record sets only: The external DNS name
associated with the AWS Resource.
|
void |
setEvaluateTargetHealth(Boolean evaluateTargetHealth)
Alias resource record sets only: If you set the value of
EvaluateTargetHealth to true for the
resource record set or sets in an alias, weighted alias, latency
alias, or failover alias resource record set, and if you specify a
value for HealthCheckId for every resource record set
that is referenced by these alias resource record sets, the alias
resource record sets inherit the health of the referenced resource
record sets. |
void |
setHostedZoneId(String hostedZoneId)
Alias resource record sets only: The value you use depends on
where you want to route queries: A CloudFront
distribution: Specify
Z2FDTNDATAQYW2. An ELB
load balancer: Specify the value of the hosted zone ID for the load
balancer. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AliasTarget |
withDNSName(String dNSName)
Alias resource record sets only: The external DNS name
associated with the AWS Resource.
|
AliasTarget |
withEvaluateTargetHealth(Boolean evaluateTargetHealth)
Alias resource record sets only: If you set the value of
EvaluateTargetHealth to true for the
resource record set or sets in an alias, weighted alias, latency
alias, or failover alias resource record set, and if you specify a
value for HealthCheckId for every resource record set
that is referenced by these alias resource record sets, the alias
resource record sets inherit the health of the referenced resource
record sets. |
AliasTarget |
withHostedZoneId(String hostedZoneId)
Alias resource record sets only: The value you use depends on
where you want to route queries: A CloudFront
distribution: Specify
Z2FDTNDATAQYW2. An ELB
load balancer: Specify the value of the hosted zone ID for the load
balancer. |
public AliasTarget()
public AliasTarget(String hostedZoneId, String dNSName)
hostedZoneId - Alias resource record sets only: The value
you use depends on where you want to route queries: Z2FDTNDATAQYW2.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.For more information and an example, see Example: Creating Alias Resource Record Sets in the Amazon Route 53 API Reference.
dNSName - Alias resource record sets only: The external
DNS name associated with the AWS Resource. The value that you specify
depends on where you want to route queries: 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.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.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
Amazon S3 buckets for websites, see Hosting
a Static Website on Amazon S3 in the Amazon Simple Storage
Service Developer Guide.For more information and an example, see Example: Creating Alias Resource Record Sets in the Amazon Route 53 API Reference.
public String getHostedZoneId()
Z2FDTNDATAQYW2.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.For more information and an example, see Example: Creating Alias Resource Record Sets in the Amazon Route 53 API Reference.
Constraints:
Length: 0 - 32
Z2FDTNDATAQYW2.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.For more information and an example, see Example: Creating Alias Resource Record Sets in the Amazon Route 53 API Reference.
public void setHostedZoneId(String hostedZoneId)
Z2FDTNDATAQYW2.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.For more information and an example, see Example: Creating Alias Resource Record Sets in the Amazon Route 53 API Reference.
Constraints:
Length: 0 - 32
hostedZoneId - Alias resource record sets only: The value you use depends on
where you want to route queries: Z2FDTNDATAQYW2.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.For more information and an example, see Example: Creating Alias Resource Record Sets in the Amazon Route 53 API Reference.
public AliasTarget withHostedZoneId(String hostedZoneId)
Z2FDTNDATAQYW2.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.For more information and an example, see Example: Creating Alias Resource Record Sets in the Amazon Route 53 API Reference.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 32
hostedZoneId - Alias resource record sets only: The value you use depends on
where you want to route queries: Z2FDTNDATAQYW2.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.For more information and an example, see Example: Creating Alias Resource Record Sets in the Amazon Route 53 API Reference.
public String getDNSName()
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.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.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
Amazon S3 buckets for websites, see Hosting
a Static Website on Amazon S3 in the Amazon Simple Storage
Service Developer Guide.For more information and an example, see Example: Creating Alias Resource Record Sets in the Amazon Route 53 API Reference.
Constraints:
Length: 0 - 1024
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.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.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
Amazon S3 buckets for websites, see Hosting
a Static Website on Amazon S3 in the Amazon Simple Storage
Service Developer Guide.For more information and an example, see Example: Creating Alias Resource Record Sets in the Amazon Route 53 API Reference.
public void setDNSName(String dNSName)
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.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.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
Amazon S3 buckets for websites, see Hosting
a Static Website on Amazon S3 in the Amazon Simple Storage
Service Developer Guide.For more information and an example, see Example: Creating Alias Resource Record Sets in the Amazon Route 53 API Reference.
Constraints:
Length: 0 - 1024
dNSName - Alias resource record sets only: The external DNS name
associated with the AWS Resource. The value that you specify depends
on where you want to route queries: 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.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.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
Amazon S3 buckets for websites, see Hosting
a Static Website on Amazon S3 in the Amazon Simple Storage
Service Developer Guide.For more information and an example, see Example: Creating Alias Resource Record Sets in the Amazon Route 53 API Reference.
public AliasTarget withDNSName(String dNSName)
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.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.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
Amazon S3 buckets for websites, see Hosting
a Static Website on Amazon S3 in the Amazon Simple Storage
Service Developer Guide.For more information and an example, see Example: Creating Alias Resource Record Sets in the Amazon Route 53 API Reference.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 1024
dNSName - Alias resource record sets only: The external DNS name
associated with the AWS Resource. The value that you specify depends
on where you want to route queries: 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.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.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
Amazon S3 buckets for websites, see Hosting
a Static Website on Amazon S3 in the Amazon Simple Storage
Service Developer Guide.For more information and an example, see Example: Creating Alias Resource Record Sets in the Amazon Route 53 API Reference.
public Boolean isEvaluateTargetHealth()
EvaluateTargetHealth to true for the
resource record set or sets in an alias, weighted alias, latency
alias, or failover alias resource record set, and if you specify a
value for HealthCheckId for every resource record set
that is referenced by these alias resource record sets, the alias
resource record sets inherit the health of the referenced resource
record sets. In this configuration, when Amazon Route 53 receives a DNS query for an alias resource record set:
Note the following:
AliasTarget is a
resource record set or a group of resource record sets (for example, a
group of weighted resource record sets), but it is not another alias
resource record set, we recommend that you associate a health check
with all of the resource record sets in the alias target. For more
information, see What
Happens When You Omit Health Checks? in the Amazon Route 53
Developer Guide.AliasTarget, Elastic Load Balancing routes queries only
to the healthy Amazon EC2 instances that are registered with the load
balancer. If no Amazon EC2 instances are healthy or if the load
balancer itself is unhealthy, and if EvaluateTargetHealth
is true for the corresponding alias resource record set,
Amazon Route 53 routes queries to other resources.We
recommend that you set EvaluateTargetHealth to
true only when you have enough idle capacity to handle
the failure of one or more endpoints.
For more information and examples, see Amazon Route 53 Health Checks and DNS Failover in the Amazon Route 53 Developer Guide.
EvaluateTargetHealth to true for the
resource record set or sets in an alias, weighted alias, latency
alias, or failover alias resource record set, and if you specify a
value for HealthCheckId for every resource record set
that is referenced by these alias resource record sets, the alias
resource record sets inherit the health of the referenced resource
record sets. In this configuration, when Amazon Route 53 receives a DNS query for an alias resource record set:
Note the following:
AliasTarget is a
resource record set or a group of resource record sets (for example, a
group of weighted resource record sets), but it is not another alias
resource record set, we recommend that you associate a health check
with all of the resource record sets in the alias target. For more
information, see What
Happens When You Omit Health Checks? in the Amazon Route 53
Developer Guide.AliasTarget, Elastic Load Balancing routes queries only
to the healthy Amazon EC2 instances that are registered with the load
balancer. If no Amazon EC2 instances are healthy or if the load
balancer itself is unhealthy, and if EvaluateTargetHealth
is true for the corresponding alias resource record set,
Amazon Route 53 routes queries to other resources.We
recommend that you set EvaluateTargetHealth to
true only when you have enough idle capacity to handle
the failure of one or more endpoints.
For more information and examples, see Amazon Route 53 Health Checks and DNS Failover in the Amazon Route 53 Developer Guide.
public void setEvaluateTargetHealth(Boolean evaluateTargetHealth)
EvaluateTargetHealth to true for the
resource record set or sets in an alias, weighted alias, latency
alias, or failover alias resource record set, and if you specify a
value for HealthCheckId for every resource record set
that is referenced by these alias resource record sets, the alias
resource record sets inherit the health of the referenced resource
record sets. In this configuration, when Amazon Route 53 receives a DNS query for an alias resource record set:
Note the following:
AliasTarget is a
resource record set or a group of resource record sets (for example, a
group of weighted resource record sets), but it is not another alias
resource record set, we recommend that you associate a health check
with all of the resource record sets in the alias target. For more
information, see What
Happens When You Omit Health Checks? in the Amazon Route 53
Developer Guide.AliasTarget, Elastic Load Balancing routes queries only
to the healthy Amazon EC2 instances that are registered with the load
balancer. If no Amazon EC2 instances are healthy or if the load
balancer itself is unhealthy, and if EvaluateTargetHealth
is true for the corresponding alias resource record set,
Amazon Route 53 routes queries to other resources.We
recommend that you set EvaluateTargetHealth to
true only when you have enough idle capacity to handle
the failure of one or more endpoints.
For more information and examples, see Amazon Route 53 Health Checks and DNS Failover in the Amazon Route 53 Developer Guide.
evaluateTargetHealth - Alias resource record sets only: If you set the value of
EvaluateTargetHealth to true for the
resource record set or sets in an alias, weighted alias, latency
alias, or failover alias resource record set, and if you specify a
value for HealthCheckId for every resource record set
that is referenced by these alias resource record sets, the alias
resource record sets inherit the health of the referenced resource
record sets. In this configuration, when Amazon Route 53 receives a DNS query for an alias resource record set:
Note the following:
AliasTarget is a
resource record set or a group of resource record sets (for example, a
group of weighted resource record sets), but it is not another alias
resource record set, we recommend that you associate a health check
with all of the resource record sets in the alias target. For more
information, see What
Happens When You Omit Health Checks? in the Amazon Route 53
Developer Guide.AliasTarget, Elastic Load Balancing routes queries only
to the healthy Amazon EC2 instances that are registered with the load
balancer. If no Amazon EC2 instances are healthy or if the load
balancer itself is unhealthy, and if EvaluateTargetHealth
is true for the corresponding alias resource record set,
Amazon Route 53 routes queries to other resources.We
recommend that you set EvaluateTargetHealth to
true only when you have enough idle capacity to handle
the failure of one or more endpoints.
For more information and examples, see Amazon Route 53 Health Checks and DNS Failover in the Amazon Route 53 Developer Guide.
public AliasTarget withEvaluateTargetHealth(Boolean evaluateTargetHealth)
EvaluateTargetHealth to true for the
resource record set or sets in an alias, weighted alias, latency
alias, or failover alias resource record set, and if you specify a
value for HealthCheckId for every resource record set
that is referenced by these alias resource record sets, the alias
resource record sets inherit the health of the referenced resource
record sets. In this configuration, when Amazon Route 53 receives a DNS query for an alias resource record set:
Note the following:
AliasTarget is a
resource record set or a group of resource record sets (for example, a
group of weighted resource record sets), but it is not another alias
resource record set, we recommend that you associate a health check
with all of the resource record sets in the alias target. For more
information, see What
Happens When You Omit Health Checks? in the Amazon Route 53
Developer Guide.AliasTarget, Elastic Load Balancing routes queries only
to the healthy Amazon EC2 instances that are registered with the load
balancer. If no Amazon EC2 instances are healthy or if the load
balancer itself is unhealthy, and if EvaluateTargetHealth
is true for the corresponding alias resource record set,
Amazon Route 53 routes queries to other resources.We
recommend that you set EvaluateTargetHealth to
true only when you have enough idle capacity to handle
the failure of one or more endpoints.
For more information and examples, see Amazon Route 53 Health Checks and DNS Failover in the Amazon Route 53 Developer Guide.
Returns a reference to this object so that method calls can be chained together.
evaluateTargetHealth - Alias resource record sets only: If you set the value of
EvaluateTargetHealth to true for the
resource record set or sets in an alias, weighted alias, latency
alias, or failover alias resource record set, and if you specify a
value for HealthCheckId for every resource record set
that is referenced by these alias resource record sets, the alias
resource record sets inherit the health of the referenced resource
record sets. In this configuration, when Amazon Route 53 receives a DNS query for an alias resource record set:
Note the following:
AliasTarget is a
resource record set or a group of resource record sets (for example, a
group of weighted resource record sets), but it is not another alias
resource record set, we recommend that you associate a health check
with all of the resource record sets in the alias target. For more
information, see What
Happens When You Omit Health Checks? in the Amazon Route 53
Developer Guide.AliasTarget, Elastic Load Balancing routes queries only
to the healthy Amazon EC2 instances that are registered with the load
balancer. If no Amazon EC2 instances are healthy or if the load
balancer itself is unhealthy, and if EvaluateTargetHealth
is true for the corresponding alias resource record set,
Amazon Route 53 routes queries to other resources.We
recommend that you set EvaluateTargetHealth to
true only when you have enough idle capacity to handle
the failure of one or more endpoints.
For more information and examples, see Amazon Route 53 Health Checks and DNS Failover in the Amazon Route 53 Developer Guide.
public Boolean getEvaluateTargetHealth()
EvaluateTargetHealth to true for the
resource record set or sets in an alias, weighted alias, latency
alias, or failover alias resource record set, and if you specify a
value for HealthCheckId for every resource record set
that is referenced by these alias resource record sets, the alias
resource record sets inherit the health of the referenced resource
record sets. In this configuration, when Amazon Route 53 receives a DNS query for an alias resource record set:
Note the following:
AliasTarget is a
resource record set or a group of resource record sets (for example, a
group of weighted resource record sets), but it is not another alias
resource record set, we recommend that you associate a health check
with all of the resource record sets in the alias target. For more
information, see What
Happens When You Omit Health Checks? in the Amazon Route 53
Developer Guide.AliasTarget, Elastic Load Balancing routes queries only
to the healthy Amazon EC2 instances that are registered with the load
balancer. If no Amazon EC2 instances are healthy or if the load
balancer itself is unhealthy, and if EvaluateTargetHealth
is true for the corresponding alias resource record set,
Amazon Route 53 routes queries to other resources.We
recommend that you set EvaluateTargetHealth to
true only when you have enough idle capacity to handle
the failure of one or more endpoints.
For more information and examples, see Amazon Route 53 Health Checks and DNS Failover in the Amazon Route 53 Developer Guide.
EvaluateTargetHealth to true for the
resource record set or sets in an alias, weighted alias, latency
alias, or failover alias resource record set, and if you specify a
value for HealthCheckId for every resource record set
that is referenced by these alias resource record sets, the alias
resource record sets inherit the health of the referenced resource
record sets. In this configuration, when Amazon Route 53 receives a DNS query for an alias resource record set:
Note the following:
AliasTarget is a
resource record set or a group of resource record sets (for example, a
group of weighted resource record sets), but it is not another alias
resource record set, we recommend that you associate a health check
with all of the resource record sets in the alias target. For more
information, see What
Happens When You Omit Health Checks? in the Amazon Route 53
Developer Guide.AliasTarget, Elastic Load Balancing routes queries only
to the healthy Amazon EC2 instances that are registered with the load
balancer. If no Amazon EC2 instances are healthy or if the load
balancer itself is unhealthy, and if EvaluateTargetHealth
is true for the corresponding alias resource record set,
Amazon Route 53 routes queries to other resources.We
recommend that you set EvaluateTargetHealth to
true only when you have enough idle capacity to handle
the failure of one or more endpoints.
For more information and examples, see Amazon Route 53 Health Checks and DNS Failover in the Amazon Route 53 Developer Guide.
public String toString()
toString in class ObjectObject.toString()public AliasTarget clone()
Copyright © 2015. All rights reserved.