/**
 *    Copyright 2016-2017 PeopleWare n.v.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

variable "zone_id" {
  description = "AWS zone id in which we define a version"
  type        = "string"
}

variable "domain_name" {
  description = <<EOF
Name of the DNS domain which is controlled by the hosted zone we are defining the version of.
Can end or not with a trailing dot. We take care of that.
EOF

  type = "string"
}

variable "ns-domain_name" {
  description = <<EOF
Domain name of the authoritative name server for the DNS domain we are defining the
version of.
EOF

  type = "string"
}

variable "additional_meta" {
  type = "map"

  description = <<EOF
Map with additional meta-information about the domain. This information will be added to the payload of the TXT
records meta-${var.domain_name}, following https://tools.ietf.org/html/rfc1464, besides calculated meta-information.
The default is an empty map. Entries in this map overwrite calculated entries. Values must be strings.
EOF

  default = {}
}

variable "ttl" {
  description = <<EOF
Time-to-live in s. Used for SOA and the meta-information TXT record.
Default is 60s.
EOF

  default = "60"
}
