dns_txt_record_set (Data Source)

Use this data source to get DNS TXT record set of the host.

Example Usage

// DO NOT EDIT. Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
import { Construct } from "constructs";
import { TerraformOutput, Fn, Token, TerraformStack } from "cdktf";
/*
 * Provider bindings are generated by running `cdktf get`.
 * See https://cdk.tf/provider-generation for more details.
 */
import { DataDnsTxtRecordSet } from "./.gen/providers/dns/data-dns-txt-record-set";
class MyConvertedCode extends TerraformStack {
  constructor(scope: Construct, name: string) {
    super(scope, name);
    const hashicorp = new DataDnsTxtRecordSet(this, "hashicorp", {
      host: "www.hashicorp.com",
    });
    new TerraformOutput(this, "hashi_txt", {
      value: hashicorp.record,
    });
    new TerraformOutput(this, "hashi_txts", {
      value: Fn.join(",", Token.asList(hashicorp.records)),
    });
  }
}

Schema

Required

Read-Only