We recommend using Azure Native.
azure.cdn.FrontdoorRouteDisableLinkToDefaultDomain
Explore with Pulumi AI
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 azure.cdn.FrontdoorRouteDisableLinkToDefaultDomain
resource will be removed from the 4.0 AzureRM provider. Please use the link_to_default_domain
field in the azure.cdn.FrontdoorRoute
resource to control this value.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Cdn.FrontdoorRouteDisableLinkToDefaultDomain("example", new()
{
CdnFrontdoorRouteId = azurerm_cdn_frontdoor_route.Example.Id,
CdnFrontdoorCustomDomainIds = new[]
{
azurerm_cdn_frontdoor_custom_domain.Contoso.Id,
azurerm_cdn_frontdoor_custom_domain.Fabrikam.Id,
},
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/cdn"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cdn.NewFrontdoorRouteDisableLinkToDefaultDomain(ctx, "example", &cdn.FrontdoorRouteDisableLinkToDefaultDomainArgs{
CdnFrontdoorRouteId: pulumi.Any(azurerm_cdn_frontdoor_route.Example.Id),
CdnFrontdoorCustomDomainIds: pulumi.StringArray{
azurerm_cdn_frontdoor_custom_domain.Contoso.Id,
azurerm_cdn_frontdoor_custom_domain.Fabrikam.Id,
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.cdn.FrontdoorRouteDisableLinkToDefaultDomain;
import com.pulumi.azure.cdn.FrontdoorRouteDisableLinkToDefaultDomainArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new FrontdoorRouteDisableLinkToDefaultDomain("example", FrontdoorRouteDisableLinkToDefaultDomainArgs.builder()
.cdnFrontdoorRouteId(azurerm_cdn_frontdoor_route.example().id())
.cdnFrontdoorCustomDomainIds(
azurerm_cdn_frontdoor_custom_domain.contoso().id(),
azurerm_cdn_frontdoor_custom_domain.fabrikam().id())
.build());
}
}
import pulumi
import pulumi_azure as azure
example = azure.cdn.FrontdoorRouteDisableLinkToDefaultDomain("example",
cdn_frontdoor_route_id=azurerm_cdn_frontdoor_route["example"]["id"],
cdn_frontdoor_custom_domain_ids=[
azurerm_cdn_frontdoor_custom_domain["contoso"]["id"],
azurerm_cdn_frontdoor_custom_domain["fabrikam"]["id"],
])
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.cdn.FrontdoorRouteDisableLinkToDefaultDomain("example", {
cdnFrontdoorRouteId: azurerm_cdn_frontdoor_route.example.id,
cdnFrontdoorCustomDomainIds: [
azurerm_cdn_frontdoor_custom_domain.contoso.id,
azurerm_cdn_frontdoor_custom_domain.fabrikam.id,
],
});
resources:
example:
type: azure:cdn:FrontdoorRouteDisableLinkToDefaultDomain
properties:
cdnFrontdoorRouteId: ${azurerm_cdn_frontdoor_route.example.id}
cdnFrontdoorCustomDomainIds:
- ${azurerm_cdn_frontdoor_custom_domain.contoso.id}
- ${azurerm_cdn_frontdoor_custom_domain.fabrikam.id}
Create FrontdoorRouteDisableLinkToDefaultDomain Resource
new FrontdoorRouteDisableLinkToDefaultDomain(name: string, args: FrontdoorRouteDisableLinkToDefaultDomainArgs, opts?: CustomResourceOptions);
@overload
def FrontdoorRouteDisableLinkToDefaultDomain(resource_name: str,
opts: Optional[ResourceOptions] = None,
cdn_frontdoor_custom_domain_ids: Optional[Sequence[str]] = None,
cdn_frontdoor_route_id: Optional[str] = None)
@overload
def FrontdoorRouteDisableLinkToDefaultDomain(resource_name: str,
args: FrontdoorRouteDisableLinkToDefaultDomainArgs,
opts: Optional[ResourceOptions] = None)
func NewFrontdoorRouteDisableLinkToDefaultDomain(ctx *Context, name string, args FrontdoorRouteDisableLinkToDefaultDomainArgs, opts ...ResourceOption) (*FrontdoorRouteDisableLinkToDefaultDomain, error)
public FrontdoorRouteDisableLinkToDefaultDomain(string name, FrontdoorRouteDisableLinkToDefaultDomainArgs args, CustomResourceOptions? opts = null)
public FrontdoorRouteDisableLinkToDefaultDomain(String name, FrontdoorRouteDisableLinkToDefaultDomainArgs args)
public FrontdoorRouteDisableLinkToDefaultDomain(String name, FrontdoorRouteDisableLinkToDefaultDomainArgs args, CustomResourceOptions options)
type: azure:cdn:FrontdoorRouteDisableLinkToDefaultDomain
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FrontdoorRouteDisableLinkToDefaultDomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args FrontdoorRouteDisableLinkToDefaultDomainArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FrontdoorRouteDisableLinkToDefaultDomainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FrontdoorRouteDisableLinkToDefaultDomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FrontdoorRouteDisableLinkToDefaultDomainArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
FrontdoorRouteDisableLinkToDefaultDomain Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The FrontdoorRouteDisableLinkToDefaultDomain resource accepts the following input properties:
- Cdn
Frontdoor List<string>Custom Domain Ids The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.
the 'cdn_frontdoor_route_disable_link_to_default_domain' resource has been deprecated and will be removed from the 4.0 AzureRM provider. Please use the 'link_to_default_domain' field in the 'cdn_frontdoor_route' resource to control this value
- Cdn
Frontdoor stringRoute Id 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.the 'cdn_frontdoor_route_disable_link_to_default_domain' resource has been deprecated and will be removed from the 4.0 AzureRM provider. Please use the 'link_to_default_domain' field in the 'cdn_frontdoor_route' resource to control this value
- Cdn
Frontdoor []stringCustom Domain Ids The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.
the 'cdn_frontdoor_route_disable_link_to_default_domain' resource has been deprecated and will be removed from the 4.0 AzureRM provider. Please use the 'link_to_default_domain' field in the 'cdn_frontdoor_route' resource to control this value
- Cdn
Frontdoor stringRoute Id 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.the 'cdn_frontdoor_route_disable_link_to_default_domain' resource has been deprecated and will be removed from the 4.0 AzureRM provider. Please use the 'link_to_default_domain' field in the 'cdn_frontdoor_route' resource to control this value
- cdn
Frontdoor List<String>Custom Domain Ids The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.
the 'cdn_frontdoor_route_disable_link_to_default_domain' resource has been deprecated and will be removed from the 4.0 AzureRM provider. Please use the 'link_to_default_domain' field in the 'cdn_frontdoor_route' resource to control this value
- cdn
Frontdoor StringRoute Id 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.the 'cdn_frontdoor_route_disable_link_to_default_domain' resource has been deprecated and will be removed from the 4.0 AzureRM provider. Please use the 'link_to_default_domain' field in the 'cdn_frontdoor_route' resource to control this value
- cdn
Frontdoor string[]Custom Domain Ids The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.
the 'cdn_frontdoor_route_disable_link_to_default_domain' resource has been deprecated and will be removed from the 4.0 AzureRM provider. Please use the 'link_to_default_domain' field in the 'cdn_frontdoor_route' resource to control this value
- cdn
Frontdoor stringRoute Id 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.the 'cdn_frontdoor_route_disable_link_to_default_domain' resource has been deprecated and will be removed from the 4.0 AzureRM provider. Please use the 'link_to_default_domain' field in the 'cdn_frontdoor_route' resource to control this value
- cdn_
frontdoor_ Sequence[str]custom_ domain_ ids The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.
the 'cdn_frontdoor_route_disable_link_to_default_domain' resource has been deprecated and will be removed from the 4.0 AzureRM provider. Please use the 'link_to_default_domain' field in the 'cdn_frontdoor_route' resource to control this value
- cdn_
frontdoor_ strroute_ id 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.the 'cdn_frontdoor_route_disable_link_to_default_domain' resource has been deprecated and will be removed from the 4.0 AzureRM provider. Please use the 'link_to_default_domain' field in the 'cdn_frontdoor_route' resource to control this value
- cdn
Frontdoor List<String>Custom Domain Ids The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.
the 'cdn_frontdoor_route_disable_link_to_default_domain' resource has been deprecated and will be removed from the 4.0 AzureRM provider. Please use the 'link_to_default_domain' field in the 'cdn_frontdoor_route' resource to control this value
- cdn
Frontdoor StringRoute Id 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.the 'cdn_frontdoor_route_disable_link_to_default_domain' resource has been deprecated and will be removed from the 4.0 AzureRM provider. Please use the 'link_to_default_domain' field in the 'cdn_frontdoor_route' resource to control this value
Outputs
All input properties are implicitly available as output properties. Additionally, the FrontdoorRouteDisableLinkToDefaultDomain resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing FrontdoorRouteDisableLinkToDefaultDomain Resource
Get an existing FrontdoorRouteDisableLinkToDefaultDomain resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FrontdoorRouteDisableLinkToDefaultDomainState, opts?: CustomResourceOptions): FrontdoorRouteDisableLinkToDefaultDomain
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cdn_frontdoor_custom_domain_ids: Optional[Sequence[str]] = None,
cdn_frontdoor_route_id: Optional[str] = None) -> FrontdoorRouteDisableLinkToDefaultDomain
func GetFrontdoorRouteDisableLinkToDefaultDomain(ctx *Context, name string, id IDInput, state *FrontdoorRouteDisableLinkToDefaultDomainState, opts ...ResourceOption) (*FrontdoorRouteDisableLinkToDefaultDomain, error)
public static FrontdoorRouteDisableLinkToDefaultDomain Get(string name, Input<string> id, FrontdoorRouteDisableLinkToDefaultDomainState? state, CustomResourceOptions? opts = null)
public static FrontdoorRouteDisableLinkToDefaultDomain get(String name, Output<String> id, FrontdoorRouteDisableLinkToDefaultDomainState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cdn
Frontdoor List<string>Custom Domain Ids The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.
the 'cdn_frontdoor_route_disable_link_to_default_domain' resource has been deprecated and will be removed from the 4.0 AzureRM provider. Please use the 'link_to_default_domain' field in the 'cdn_frontdoor_route' resource to control this value
- Cdn
Frontdoor stringRoute Id 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.the 'cdn_frontdoor_route_disable_link_to_default_domain' resource has been deprecated and will be removed from the 4.0 AzureRM provider. Please use the 'link_to_default_domain' field in the 'cdn_frontdoor_route' resource to control this value
- Cdn
Frontdoor []stringCustom Domain Ids The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.
the 'cdn_frontdoor_route_disable_link_to_default_domain' resource has been deprecated and will be removed from the 4.0 AzureRM provider. Please use the 'link_to_default_domain' field in the 'cdn_frontdoor_route' resource to control this value
- Cdn
Frontdoor stringRoute Id 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.the 'cdn_frontdoor_route_disable_link_to_default_domain' resource has been deprecated and will be removed from the 4.0 AzureRM provider. Please use the 'link_to_default_domain' field in the 'cdn_frontdoor_route' resource to control this value
- cdn
Frontdoor List<String>Custom Domain Ids The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.
the 'cdn_frontdoor_route_disable_link_to_default_domain' resource has been deprecated and will be removed from the 4.0 AzureRM provider. Please use the 'link_to_default_domain' field in the 'cdn_frontdoor_route' resource to control this value
- cdn
Frontdoor StringRoute Id 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.the 'cdn_frontdoor_route_disable_link_to_default_domain' resource has been deprecated and will be removed from the 4.0 AzureRM provider. Please use the 'link_to_default_domain' field in the 'cdn_frontdoor_route' resource to control this value
- cdn
Frontdoor string[]Custom Domain Ids The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.
the 'cdn_frontdoor_route_disable_link_to_default_domain' resource has been deprecated and will be removed from the 4.0 AzureRM provider. Please use the 'link_to_default_domain' field in the 'cdn_frontdoor_route' resource to control this value
- cdn
Frontdoor stringRoute Id 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.the 'cdn_frontdoor_route_disable_link_to_default_domain' resource has been deprecated and will be removed from the 4.0 AzureRM provider. Please use the 'link_to_default_domain' field in the 'cdn_frontdoor_route' resource to control this value
- cdn_
frontdoor_ Sequence[str]custom_ domain_ ids The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.
the 'cdn_frontdoor_route_disable_link_to_default_domain' resource has been deprecated and will be removed from the 4.0 AzureRM provider. Please use the 'link_to_default_domain' field in the 'cdn_frontdoor_route' resource to control this value
- cdn_
frontdoor_ strroute_ id 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.the 'cdn_frontdoor_route_disable_link_to_default_domain' resource has been deprecated and will be removed from the 4.0 AzureRM provider. Please use the 'link_to_default_domain' field in the 'cdn_frontdoor_route' resource to control this value
- cdn
Frontdoor List<String>Custom Domain Ids The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.
the 'cdn_frontdoor_route_disable_link_to_default_domain' resource has been deprecated and will be removed from the 4.0 AzureRM provider. Please use the 'link_to_default_domain' field in the 'cdn_frontdoor_route' resource to control this value
- cdn
Frontdoor StringRoute Id 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.the 'cdn_frontdoor_route_disable_link_to_default_domain' resource has been deprecated and will be removed from the 4.0 AzureRM provider. Please use the 'link_to_default_domain' field in the 'cdn_frontdoor_route' resource to control this value
Import
FrontDoor Route Disable Link To Default Domain can be imported using the resource id
, e.g.
$ pulumi import azure:cdn/frontdoorRouteDisableLinkToDefaultDomain:FrontdoorRouteDisableLinkToDefaultDomain example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Cdn/profiles/profile1/afdEndpoints/endpoint1/routes/route1/disableLinkToDefaultDomain/disableLinkToDefaultDomain1
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.