1. Packages
  2. Azure Classic
  3. API Docs
  4. cdn
  5. FrontdoorRouteDisableLinkToDefaultDomain

We recommend using Azure Native.

Azure Classic v5.72.0 published on Monday, Apr 15, 2024 by Pulumi

azure.cdn.FrontdoorRouteDisableLinkToDefaultDomain

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.72.0 published on Monday, Apr 15, 2024 by Pulumi

    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

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.cdn.FrontdoorRouteDisableLinkToDefaultDomain("example", {
        cdnFrontdoorRouteId: exampleAzurermCdnFrontdoorRoute.id,
        cdnFrontdoorCustomDomainIds: [
            contoso.id,
            fabrikam.id,
        ],
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.cdn.FrontdoorRouteDisableLinkToDefaultDomain("example",
        cdn_frontdoor_route_id=example_azurerm_cdn_frontdoor_route["id"],
        cdn_frontdoor_custom_domain_ids=[
            contoso["id"],
            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(exampleAzurermCdnFrontdoorRoute.Id),
    			CdnFrontdoorCustomDomainIds: pulumi.StringArray{
    				contoso.Id,
    				fabrikam.Id,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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 = exampleAzurermCdnFrontdoorRoute.Id,
            CdnFrontdoorCustomDomainIds = new[]
            {
                contoso.Id,
                fabrikam.Id,
            },
        });
    
    });
    
    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(exampleAzurermCdnFrontdoorRoute.id())
                .cdnFrontdoorCustomDomainIds(            
                    contoso.id(),
                    fabrikam.id())
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:cdn:FrontdoorRouteDisableLinkToDefaultDomain
        properties:
          cdnFrontdoorRouteId: ${exampleAzurermCdnFrontdoorRoute.id}
          cdnFrontdoorCustomDomainIds:
            - ${contoso.id}
            - ${fabrikam.id}
    

    Create FrontdoorRouteDisableLinkToDefaultDomain Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new FrontdoorRouteDisableLinkToDefaultDomain(name: string, args: FrontdoorRouteDisableLinkToDefaultDomainArgs, opts?: CustomResourceOptions);
    @overload
    def FrontdoorRouteDisableLinkToDefaultDomain(resource_name: str,
                                                 args: FrontdoorRouteDisableLinkToDefaultDomainArgs,
                                                 opts: Optional[ResourceOptions] = None)
    
    @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)
    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.
    
    

    Parameters

    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.

    Example

    The following reference example uses placeholder values for all input properties.

    var frontdoorRouteDisableLinkToDefaultDomainResource = new Azure.Cdn.FrontdoorRouteDisableLinkToDefaultDomain("frontdoorRouteDisableLinkToDefaultDomainResource");
    
    example, err := cdn.NewFrontdoorRouteDisableLinkToDefaultDomain(ctx, "frontdoorRouteDisableLinkToDefaultDomainResource", nil)
    
    var frontdoorRouteDisableLinkToDefaultDomainResource = new FrontdoorRouteDisableLinkToDefaultDomain("frontdoorRouteDisableLinkToDefaultDomainResource");
    
    frontdoor_route_disable_link_to_default_domain_resource = azure.cdn.FrontdoorRouteDisableLinkToDefaultDomain("frontdoorRouteDisableLinkToDefaultDomainResource")
    
    const frontdoorRouteDisableLinkToDefaultDomainResource = new azure.cdn.FrontdoorRouteDisableLinkToDefaultDomain("frontdoorRouteDisableLinkToDefaultDomainResource", {});
    
    type: azure:cdn:FrontdoorRouteDisableLinkToDefaultDomain
    properties: {}
    

    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:

    CdnFrontdoorCustomDomainIds List<string>
    The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.

    Deprecated: 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

    CdnFrontdoorRouteId string
    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.

    Deprecated: 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

    CdnFrontdoorCustomDomainIds []string
    The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.

    Deprecated: 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

    CdnFrontdoorRouteId string
    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.

    Deprecated: 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

    cdnFrontdoorCustomDomainIds List<String>
    The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.

    Deprecated: 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

    cdnFrontdoorRouteId String
    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.

    Deprecated: 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

    cdnFrontdoorCustomDomainIds string[]
    The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.

    Deprecated: 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

    cdnFrontdoorRouteId string
    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.

    Deprecated: 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_custom_domain_ids Sequence[str]
    The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.

    Deprecated: 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_route_id str
    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.

    Deprecated: 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

    cdnFrontdoorCustomDomainIds List<String>
    The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.

    Deprecated: 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

    cdnFrontdoorRouteId String
    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.

    Deprecated: 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.
    The following state arguments are supported:
    CdnFrontdoorCustomDomainIds List<string>
    The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.

    Deprecated: 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

    CdnFrontdoorRouteId string
    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.

    Deprecated: 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

    CdnFrontdoorCustomDomainIds []string
    The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.

    Deprecated: 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

    CdnFrontdoorRouteId string
    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.

    Deprecated: 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

    cdnFrontdoorCustomDomainIds List<String>
    The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.

    Deprecated: 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

    cdnFrontdoorRouteId String
    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.

    Deprecated: 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

    cdnFrontdoorCustomDomainIds string[]
    The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.

    Deprecated: 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

    cdnFrontdoorRouteId string
    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.

    Deprecated: 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_custom_domain_ids Sequence[str]
    The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.

    Deprecated: 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_route_id str
    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.

    Deprecated: 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

    cdnFrontdoorCustomDomainIds List<String>
    The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.

    Deprecated: 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

    cdnFrontdoorRouteId String
    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.

    Deprecated: 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
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.72.0 published on Monday, Apr 15, 2024 by Pulumi