Fugue.AWS.Route53.ResourceRecordSet.SRV

Table of Contents

Module Members

new

(Function)

Create a new SRV ResourceRecordSet.

Example usage:

import Fugue.AWS.Route53 as Route53

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

srv: Route53.ResourceRecordSet.SRV.new {
  name: "_foo._tcp.example.com",
  values: [
    {priority: 0, weight: 5, port: 3000, target: "foo1.example.com"},
    {priority: 0, weight: 5, port: 3000, target: "foo2.example.com"},
  ],
  ttl: 60,
  hostedZone: zone,
  healthCheck: healthCheck
}

Type Signature

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

The fully qualified domain name of the record set.

Type: String

Argument: values

The list of values to include in the record set.

Type: List<Value>

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

Value

(Type)

type Value:
  priority: Int
  weight: Int
  port: Int
  target: String

See https://en.wikipedia.org/wiki/SRV_record for more details on the SRV record format.

Record {

Field: priority

Priority of the host. Lower values result in higher preference.

Type: Int

Field: weight

Relative weight compared to other values with the same priority. Higher values result in higher preference. Mutable.

Type: Int

Field: port

The port the service is listening on.

Type: Int

Field: target

The fully qualified domain name of the host providing the service.

Type: String

}