dns_a_record_set (Resource)

Creates an A type DNS record set.

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 { ARecordSet } from "./.gen/providers/dns/a-record-set";
class MyConvertedCode extends TerraformStack {
  constructor(scope: Construct, name: string) {
    super(scope, name);
    new ARecordSet(this, "www", {
      addresses: ["192.168.0.1", "192.168.0.2", "192.168.0.3"],
      name: "www",
      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_a_record_set.www www.example.com.