Use this data source to get DNS TXT record set of the host.
// 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)),
});
}
}
host
(String) Host to look up.id
(String) Always set to the host.record
(String) The first TXT record.records
(List of String) A list of TXT records.