Creates an NS type DNS record set.
// DO NOT EDIT. Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
import { Construct } from "constructs";
import { TerraformStack } from "cdktf";
/*
* Provider bindings are generated by running `cdktf get`.
* See https://cdk.tf/provider-generation for more details.
*/
import { NsRecordSet } from "./.gen/providers/dns/ns-record-set";
class MyConvertedCode extends TerraformStack {
constructor(scope: Construct, name: string) {
super(scope, name);
new NsRecordSet(this, "www", {
name: "www",
nameservers: ["a.iana-servers.net.", "b.iana-servers.net."],
ttl: 300,
zone: "example.com.",
});
}
}
name
(String) The name of the record set. The zone
argument will be appended to this value to create the full record path.nameservers
(Set of String) The nameservers this record set will point to.zone
(String) DNS zone the record set belongs to. It must be an FQDN, that is, include the trailing dot.ttl
(Number) The TTL of the record set. Defaults to 3600
.id
(String) Always set to the fully qualified domain name of the record set.Import is supported using the following syntax:
# Import using the FQDN.
terraform import dns_ns_record_set.www www.example.com.