Use this data source to get DNS CNAME 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, TerraformStack
#
# Provider bindings are generated by running `cdktf get`.
# See https://cdk.tf/provider-generation for more details.
#
from imports.dns.data_dns_cname_record_set import DataDnsCnameRecordSet
class MyConvertedCode(TerraformStack):
def __init__(self, scope, name):
super().__init__(scope, name)
hashicorp = DataDnsCnameRecordSet(self, "hashicorp",
host="www.hashicorp.com"
)
TerraformOutput(self, "hashi_cname",
value=hashicorp.cname
)
host
(String) Host to look up.cname
(String) A CNAME record associated with host.id
(String) Always set to the host.