1. Registry
  2. Packages
  3. Fastly Provider
  4. API Docs
  5. RoutingConfigDomainLink
Viewing docs for Fastly v12.8.1
published on Tuesday, Oct 13, 2026 by Pulumi
fastly logo
Viewing docs for Fastly v12.8.1
published on Tuesday, Oct 13, 2026 by Pulumi

    Routing config domain links are for managing versionless domains for routing configs. The link associates an existing fastly.RoutingConfig with an existing fastly.Domain, but doesn’t create or delete either resource.

    Example Usage

    Basic usage:

    import * as pulumi from "@pulumi/pulumi";
    import * as fastly from "@pulumi/fastly";
    
    const example = new fastly.RoutingConfigDomainLink("example", {
        domainId: exampleFastlyDomain.domainId,
        routingConfigId: exampleFastlyRoutingConfig.routingConfigId,
    });
    
    import pulumi
    import pulumi_fastly as fastly
    
    example = fastly.RoutingConfigDomainLink("example",
        domain_id=example_fastly_domain["domainId"],
        routing_config_id=example_fastly_routing_config["routingConfigId"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-fastly/sdk/v12/go/fastly"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := fastly.NewRoutingConfigDomainLink(ctx, "example", &fastly.RoutingConfigDomainLinkArgs{
    			DomainId:        pulumi.Any(exampleFastlyDomain.DomainId),
    			RoutingConfigId: pulumi.Any(exampleFastlyRoutingConfig.RoutingConfigId),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Fastly = Pulumi.Fastly;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Fastly.RoutingConfigDomainLink("example", new()
        {
            DomainId = exampleFastlyDomain.DomainId,
            RoutingConfigId = exampleFastlyRoutingConfig.RoutingConfigId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fastly.RoutingConfigDomainLink;
    import com.pulumi.fastly.RoutingConfigDomainLinkArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 RoutingConfigDomainLink("example", RoutingConfigDomainLinkArgs.builder()
                .domainId(exampleFastlyDomain.get("domainId"))
                .routingConfigId(exampleFastlyRoutingConfig.get("routingConfigId"))
                .build());
    
        }
    }
    
    resources:
      example:
        type: fastly:RoutingConfigDomainLink
        properties:
          domainId: ${exampleFastlyDomain.domainId}
          routingConfigId: ${exampleFastlyRoutingConfig.routingConfigId}
    
    terraform {
      required_providers {
        fastly = {
          source = "pulumi/fastly"
        }
      }
    }
    
    resource "fastly_routing_config_domain_link" "example" {
      lifecycle {
        create_before_destroy = true
      }
      domain_id         = exampleFastlyDomain.domainId
      routing_config_id = exampleFastlyRoutingConfig.routingConfigId
    }
    

    Create RoutingConfigDomainLink Resource

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

    Constructor syntax

    new RoutingConfigDomainLink(name: string, args: RoutingConfigDomainLinkArgs, opts?: CustomResourceOptions);
    @overload
    def RoutingConfigDomainLink(resource_name: str,
                                args: RoutingConfigDomainLinkArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def RoutingConfigDomainLink(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                domain_id: Optional[str] = None,
                                routing_config_id: Optional[str] = None)
    func NewRoutingConfigDomainLink(ctx *Context, name string, args RoutingConfigDomainLinkArgs, opts ...ResourceOption) (*RoutingConfigDomainLink, error)
    public RoutingConfigDomainLink(string name, RoutingConfigDomainLinkArgs args, CustomResourceOptions? opts = null)
    public RoutingConfigDomainLink(String name, RoutingConfigDomainLinkArgs args)
    public RoutingConfigDomainLink(String name, RoutingConfigDomainLinkArgs args, CustomResourceOptions options)
    
    type: fastly:RoutingConfigDomainLink
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "fastly_routing_config_domain_link" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args RoutingConfigDomainLinkArgs
    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 RoutingConfigDomainLinkArgs
    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 RoutingConfigDomainLinkArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RoutingConfigDomainLinkArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RoutingConfigDomainLinkArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

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

    var routingConfigDomainLinkResource = new Fastly.RoutingConfigDomainLink("routingConfigDomainLinkResource", new()
    {
        DomainId = "string",
        RoutingConfigId = "string",
    });
    
    example, err := fastly.NewRoutingConfigDomainLink(ctx, "routingConfigDomainLinkResource", &fastly.RoutingConfigDomainLinkArgs{
    	DomainId:        pulumi.String("string"),
    	RoutingConfigId: pulumi.String("string"),
    })
    
    resource "fastly_routing_config_domain_link" "routingConfigDomainLinkResource" {
      lifecycle {
        create_before_destroy = true
      }
      domain_id         = "string"
      routing_config_id = "string"
    }
    
    var routingConfigDomainLinkResource = new RoutingConfigDomainLink("routingConfigDomainLinkResource", RoutingConfigDomainLinkArgs.builder()
        .domainId("string")
        .routingConfigId("string")
        .build());
    
    routing_config_domain_link_resource = fastly.RoutingConfigDomainLink("routingConfigDomainLinkResource",
        domain_id="string",
        routing_config_id="string")
    
    const routingConfigDomainLinkResource = new fastly.RoutingConfigDomainLink("routingConfigDomainLinkResource", {
        domainId: "string",
        routingConfigId: "string",
    });
    
    type: fastly:RoutingConfigDomainLink
    properties:
        domainId: string
        routingConfigId: string
    

    RoutingConfigDomainLink Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The RoutingConfigDomainLink resource accepts the following input properties:

    DomainId string
    The Domain Identifier of the versionless domain being linked (UUID).
    RoutingConfigId string
    The routing config identifier to link to the domain.
    DomainId string
    The Domain Identifier of the versionless domain being linked (UUID).
    RoutingConfigId string
    The routing config identifier to link to the domain.
    domain_id string
    The Domain Identifier of the versionless domain being linked (UUID).
    routing_config_id string
    The routing config identifier to link to the domain.
    domainId String
    The Domain Identifier of the versionless domain being linked (UUID).
    routingConfigId String
    The routing config identifier to link to the domain.
    domainId string
    The Domain Identifier of the versionless domain being linked (UUID).
    routingConfigId string
    The routing config identifier to link to the domain.
    domain_id str
    The Domain Identifier of the versionless domain being linked (UUID).
    routing_config_id str
    The routing config identifier to link to the domain.
    domainId String
    The Domain Identifier of the versionless domain being linked (UUID).
    routingConfigId String
    The routing config identifier to link to the domain.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RoutingConfigDomainLink 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 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 RoutingConfigDomainLink Resource

    Get an existing RoutingConfigDomainLink 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?: RoutingConfigDomainLinkState, opts?: CustomResourceOptions): RoutingConfigDomainLink
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            domain_id: Optional[str] = None,
            routing_config_id: Optional[str] = None) -> RoutingConfigDomainLink
    func GetRoutingConfigDomainLink(ctx *Context, name string, id IDInput, state *RoutingConfigDomainLinkState, opts ...ResourceOption) (*RoutingConfigDomainLink, error)
    public static RoutingConfigDomainLink Get(string name, Input<string> id, RoutingConfigDomainLinkState? state, CustomResourceOptions? opts = null)
    public static RoutingConfigDomainLink get(String name, Output<String> id, RoutingConfigDomainLinkState state, CustomResourceOptions options)
    resources:  _:    type: fastly:RoutingConfigDomainLink    get:      id: ${id}
    import {
      to = fastly_routing_config_domain_link.example
      id = "${id}"
    }
    
    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:
    DomainId string
    The Domain Identifier of the versionless domain being linked (UUID).
    RoutingConfigId string
    The routing config identifier to link to the domain.
    DomainId string
    The Domain Identifier of the versionless domain being linked (UUID).
    RoutingConfigId string
    The routing config identifier to link to the domain.
    domain_id string
    The Domain Identifier of the versionless domain being linked (UUID).
    routing_config_id string
    The routing config identifier to link to the domain.
    domainId String
    The Domain Identifier of the versionless domain being linked (UUID).
    routingConfigId String
    The routing config identifier to link to the domain.
    domainId string
    The Domain Identifier of the versionless domain being linked (UUID).
    routingConfigId string
    The routing config identifier to link to the domain.
    domain_id str
    The Domain Identifier of the versionless domain being linked (UUID).
    routing_config_id str
    The routing config identifier to link to the domain.
    domainId String
    The Domain Identifier of the versionless domain being linked (UUID).
    routingConfigId String
    The routing config identifier to link to the domain.

    Import

    Routing config domain links can be imported using the domain ID, e.g.

    $ pulumi import fastly:index/routingConfigDomainLink:RoutingConfigDomainLink example <domain_id>
    

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

    Package Details

    Repository
    Fastly pulumi/pulumi-fastly
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the fastly Terraform Provider.
    fastly logo
    Viewing docs for Fastly v12.8.1
    published on Tuesday, Oct 13, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial