dns_cname_record (Resource)

Creates a CNAME type DNS record.

Example Usage

// 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 { CnameRecord } from "./.gen/providers/dns/cname-record";
class MyConvertedCode extends TerraformStack {
  constructor(scope: Construct, name: string) {
    super(scope, name);
    new CnameRecord(this, "foo", {
      cname: "bar.example.com.",
      name: "foo",
      ttl: 300,
      zone: "example.com.",
    });
  }
}

Schema

Required

Optional

Read-Only

Import

Import is supported using the following syntax:

# Import using the FQDN.
terraform import dns_cname_record.foo foo.example.com.