Skip to content

googleDnsRecordSet

Get a DNS record set within Google Cloud DNS For more information see the official documentation and API

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
const dataGoogleDnsManagedZoneSample =
  new google.dataGoogleDnsManagedZone.DataGoogleDnsManagedZone(this, "sample", {
    name: "sample-zone",
  });
new google.dataGoogleDnsRecordSet.DataGoogleDnsRecordSet(this, "rs", {
  managed_zone: dataGoogleDnsManagedZoneSample.name,
  name: `my-record.\${${dataGoogleDnsManagedZoneSample.dnsName}}`,
  type: "A",
});

Argument Reference

The following arguments are supported:

  • managedZone - (Required) The Name of the zone.

  • name - (Required) The DNS name for the resource.

  • type - (Required) The RRSet type. See this table for supported types.

  • project - (Optional) The ID of the project for the Google Cloud.

Attributes Reference

The following attributes are exported:

  • rrdatas - The string data for the records in this record set.

  • ttl - The time-to-live of this record set (seconds).