stratosphere-0.1.0: EDSL for AWS CloudFormation

Safe HaskellNone
LanguageHaskell2010

Stratosphere.Resources.RecordSet

Description

The AWS::Route53::RecordSet type can be used as a standalone resource or as an embedded property in the AWS::Route53::RecordSetGroup type. Note that some AWS::Route53::RecordSet properties are valid only when used within AWS::Route53::RecordSetGroup. For more information about constraints and values for each property, see POST CreateHostedZone for hosted zones and POST ChangeResourceRecordSet for resource record sets.

Synopsis

Documentation

recordSet Source

Constructor for RecordSet containing required fields as arguments.

rsAliasTarget :: Lens' RecordSet (Maybe AliasTarget) Source

Alias resource record sets only: Information about the domain to which you are redirecting traffic. If you specify this property, do not specify the TTL property. The alias uses a TTL value from the alias target record. For more information about alias resource record sets, see Creating Alias Resource Record Sets in the Amazon Route 53 Developer Guide and POST ChangeResourceRecordSets in the Amazon Route 53 API reference.

rsComment :: Lens' RecordSet (Maybe (Val Text)) Source

Any comments that you want to include about the hosted zone. Important If the record set is part of a record set group, this property isn't valid. Don't specify this property.

rsFailover :: Lens' RecordSet (Maybe (Val Text)) Source

Designates the record set as a PRIMARY or SECONDARY failover record set. When you have more than one resource performing the same function, you can configure Amazon Route 53 to check the health of your resources and use only health resources to respond to DNS queries. You cannot create nonfailover resource record sets that have the same Name and Type property values as failover resource record sets. For more information, see the Failover element in the Amazon Route 53 API Reference. If you specify this property, you must specify the SetIdentifier property.

rsGeoLocation :: Lens' RecordSet (Maybe [RecordSetGeoLocation]) Source

Describes how Amazon Route 53 responds to DNS queries based on the geographic origin of the query.

rsHealthCheckId :: Lens' RecordSet (Maybe (Val Text)) Source

The health check ID that you want to apply to this record set. Amazon Route 53 returns this resource record set in response to a DNS query only while record set is healthy.

rsHostedZoneId :: Lens' RecordSet (Maybe (Val Text)) Source

The ID of the hosted zone.

rsHostedZoneName :: Lens' RecordSet (Maybe (Val Text)) Source

The name of the domain for the hosted zone where you want to add the record set. When you create a stack using an AWS::Route53::RecordSet that specifies HostedZoneName, AWS CloudFormation attempts to find a hosted zone whose name matches the HostedZoneName. If AWS CloudFormation cannot find a hosted zone with a matching domain name, or if there is more than one hosted zone with the specified domain name, AWS CloudFormation will not create the stack. If you have multiple hosted zones with the same domain name, you must explicitly specify the hosted zone using HostedZoneId.

rsName :: Lens' RecordSet (Val Text) Source

The name of the domain. You must specify a fully qualified domain name that ends with a period as the last label indication. If you omit the final period, AWS CloudFormation adds it.

rsRegion :: Lens' RecordSet (Maybe (Val Text)) Source

Latency resource record sets only: The Amazon EC2 region where the resource that is specified in this resource record set resides. The resource typically is an AWS resource, for example, Amazon EC2 instance or an Elastic Load Balancing load balancer, and is referred to by an IP address or a DNS domain name, depending on the record type. When Amazon Route 53 receives a DNS query for a domain name and type for which you have created latency resource record sets, Amazon Route 53 selects the latency resource record set that has the lowest latency between the end user and the associated Amazon EC2 region. Amazon Route 53 then returns the value that is associated with the selected resource record set. The following restrictions must be followed: You can only specify one resource record per latency resource record set. You can only create one latency resource record set for each Amazon EC2 region. You are not required to create latency resource record sets for all Amazon EC2 regions. Amazon Route 53 will choose the region with the best latency from among the regions for which you create latency resource record sets. You cannot create both weighted and latency resource record sets that have the same values for the Name and Type elements. To see a list of regions by service, see Regions and Endpoints in the AWS General Reference.

rsResourceRecords :: Lens' RecordSet (Maybe [Val Text]) Source

List of resource records to add. Each record should be in the format appropriate for the record type specified by the Type property. For information about different record types and their record formats, see Appendix: Domain Name Format in the Amazon Route 53 Developer Guide.

rsSetIdentifier :: Lens' RecordSet (Maybe (Val Text)) Source

A unique identifier that differentiates among multiple resource record sets that have the same combination of DNS name and type.

rsTTL :: Lens' RecordSet (Maybe (Val Text)) Source

The resource record cache time to live (TTL), in seconds. If you specify this property, do not specify the AliasTarget property. For alias target records, the alias uses a TTL value from the target. If you specify this property, you must specify the ResourceRecords property.

rsType :: Lens' RecordSet (Val Text) Source

The type of records to add.

rsWeight :: Lens' RecordSet (Maybe (Val Integer')) Source

Weighted resource record sets only: Among resource record sets that have the same combination of DNS name and type, a value that determines what portion of traffic for the current resource record set is routed to the associated location. For more information about weighted resource record sets, see Setting Up Weighted Resource Record Sets in the Amazon Route 53 Developer Guide.