Skip to content

Data Source: azurermCdnFrontdoorCustomDomain

Use this data source to access information about an existing Front Door (standard/premium) Custom Domain.

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.dataAzurermCdnFrontdoorCustomDomain.DataAzurermCdnFrontdoorCustomDomain(
  this,
  "example",
  {
    name: "${azurerm_cdn_frontdoor_custom_domain.example.name}",
    profile_name: "${azurerm_cdn_frontdoor_profile.example.name}",
    resource_group_name:
      "${azurerm_cdn_frontdoor_profile.example.resource_group_name}",
  }
);

Arguments Reference

The following arguments are supported:

  • name - (Required) The name of the Front Door Custom Domain.

  • profileName - (Required) The name of the Front Door Profile which the Front Door Custom Domain is bound to.

  • resourceGroupName - (Required) The name of the Resource Group where the Front Door Profile exists.

Attributes Reference

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

  • id - The ID of the Front Door Custom Domain.

  • cdnFrontdoorProfileId - The ID of the Front Door Profile which the Front Door Custom Domain is bound to.

  • expirationDate - The date time that the token expires.

  • hostName - The host name of the domain.

  • tls - A tls block as defined below.

  • validationToken - The challenge used for DNS TXT record or file based validation.


A tls block exports the following:

  • cdnFrontdoorSecretId - The Resource ID of the Front Door Secret.

  • certificateType - The SSL certificate type.

  • minimumTlsVersion - The TLS protocol version that will be used for Https connections.


Timeouts

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

  • read - (Defaults to 5 minutes) Used when retrieving the Front Door Custom Domain.