Fugue.AWS.Route53.ResourceRecordSet.CNAME

Table of Contents

Module Members

new

(Function)

Create a new CNAME ResourceRecordSet.

Example usage:

import Fugue.AWS.Route53 as Route53

zone: Route53.HostedZone.external("12345679ABCDEF")
healthCheck: Route53.HealthCheck.external("12345678-1234-1234-1234567890")

cname: Route53.ResourceRecordSet.CNAME.new {
  name: "foo.example.com",
  value: "bar.example.com",
  ttl: 60,
  hostedZone: zone,
  healthCheck: healthCheck
}

Type Signature

 fun { name: String,
       value: String,
       ttl: Int,
       hostedZone: HostedZone,
       healthCheck: Optional<HealthCheck> } -> ResourceRecordSet
Argument: name

The fully qualified domain name of the record set.

Type: String

Argument: value

The fully qualified domain name of the target DNS record.

Type: String

Argument: ttl

The time to live in seconds. Mutable.

Type: Int

Argument: hostedZone

The hosted zone to create the record in.

Type: HostedZone

Argument: healthCheck

Optional health check that determines if Route53 will return this resource record set.

Type: Optional<HealthCheck>

Returns:
Type: ResourceRecordSet