Skip to content

azurermCdnFrontdoorRouteDisableLinkToDefaultDomain

Manages the Link To Default Domain property of a Front Door (standard/premium) Route.

!>IMPORTANT: This resource has been deprecated and should not be used for new deployments. The azurermCdnFrontdoorRouteDisableLinkToDefaultDomain resource will be removed from the 4.0 AzureRM provider. Please use the linkToDefaultDomain field in the azurermCdnFrontdoorRoute resource to control this value.

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.cdnFrontdoorRouteDisableLinkToDefaultDomain.CdnFrontdoorRouteDisableLinkToDefaultDomain(
  this,
  "example",
  {
    cdn_frontdoor_custom_domain_ids: [
      "${azurerm_cdn_frontdoor_custom_domain.contoso.id}",
      "${azurerm_cdn_frontdoor_custom_domain.fabrikam.id}",
    ],
    cdn_frontdoor_route_id: "${azurerm_cdn_frontdoor_route.example.id}",
  }
);

Arguments Reference

The following arguments are supported:

  • cdnFrontdoorRouteId - (Required) The resource ID of the Front Door Route where the Link To Default Domain property should be disabled. Changing this forces a new Front Door Route Disable Link To Default Domain to be created.

  • cdnFrontdoorCustomDomainIds - (Required) The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.

Attributes Reference

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

  • id - The ID of the Front Door Route Disable Link To Default Domain.

Timeouts

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

  • create - (Defaults to 30 minutes) Used when creating the Front Door Route Disable Link To Default Domain.
  • read - (Defaults to 5 minutes) Used when retrieving the Front Door Route Disable Link To Default Domain.
  • delete - (Defaults to 30 minutes) Used when deleting the Front Door Route Disable Link To Default Domain.
  • update - (Defaults to 30 minutes) Used when updating the Cdn Frontdoor Route Disable Link To Default Domain.

Import

FrontDoor Route Disable Link To Default Domain can be imported using the resourceId, e.g.

terraform import azurerm_cdn_frontdoor_route_disable_link_to_default_domain.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Cdn/profiles/profile1/afdEndpoints/endpoint1/routes/route1/disableLinkToDefaultDomain/disableLinkToDefaultDomain1