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
from constructs import Construct
from cdktf import TerraformOutput, Fn, Token, TerraformStack
#
# Provider bindings are generated by running `cdktf get`.
# See https://cdk.tf/provider-generation for more details.
#
from imports.dns.data_dns_txt_record_set import DataDnsTxtRecordSet
class MyConvertedCode(TerraformStack):
def __init__(self, scope, name):
super().__init__(scope, name)
hashicorp = DataDnsTxtRecordSet(self, "hashicorp",
host="www.hashicorp.com"
)
TerraformOutput(self, "hashi_txt",
value=hashicorp.record
)
TerraformOutput(self, "hashi_txts",
value=Fn.join(",", Token.as_list(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.