Skip to content

Data Source: azurermPrivateDnsResolverForwardingRule

Gets information about an existing Private DNS Resolver Forwarding Rule.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
new azurerm.dataAzurermPrivateDnsResolverForwardingRule.DataAzurermPrivateDnsResolverForwardingRule(
  this,
  "example",
  {
    dns_forwarding_ruleset_id: "example-forwarding-rulset-id",
    name: "example-rule",
  }
);

Arguments Reference

The following arguments are supported:

  • name - (Required) Name of the Private DNS Resolver Forwarding Rule.

  • dnsForwardingRulesetId - (Required) ID of the Private DNS Resolver Forwarding Ruleset.

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:

  • id - The ID of the Private DNS Resolver Forwarding Rule.

  • domainName - The domain name for the Private DNS Resolver Forwarding Rule.

  • targetDnsServers - A list of targetDnsServers block as defined below.

  • enabled - Is the Private DNS Resolver Forwarding Rule enabled?

  • metadata - The metadata attached to the Private DNS Resolver Forwarding Rule.


A targetDnsServers block exports the following:

  • ipAddress - The DNS server IP address.

  • port - The DNS server port.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minutes) Used when retrieving the Private DNS Resolver Forwarding Rule.