Added ttl to a record resource

Added ttl setting to a record.