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
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))
        )

Schema

Required

Read-Only