1. Packages
  2. Fastly Provider
  3. API Docs
  4. DomainV1ServiceLink
Fastly v11.1.0 published on Wednesday, Nov 5, 2025 by Pulumi

fastly.DomainV1ServiceLink

Get Started
fastly logo
Fastly v11.1.0 published on Wednesday, Nov 5, 2025 by Pulumi

    Domain service links are for managing versionless domains for services. The link associates an existing service with an existing domain, but doesn’t create or delete either resource.

    If you are managing your versionless domain with a service link, you may not also use a resource_fastly_domain_v1 block as well.

    Create DomainV1ServiceLink Resource

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

    Constructor syntax

    new DomainV1ServiceLink(name: string, args: DomainV1ServiceLinkArgs, opts?: CustomResourceOptions);
    @overload
    def DomainV1ServiceLink(resource_name: str,
                            args: DomainV1ServiceLinkArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def DomainV1ServiceLink(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            domain_id: Optional[str] = None,
                            service_id: Optional[str] = None)
    func NewDomainV1ServiceLink(ctx *Context, name string, args DomainV1ServiceLinkArgs, opts ...ResourceOption) (*DomainV1ServiceLink, error)
    public DomainV1ServiceLink(string name, DomainV1ServiceLinkArgs args, CustomResourceOptions? opts = null)
    public DomainV1ServiceLink(String name, DomainV1ServiceLinkArgs args)
    public DomainV1ServiceLink(String name, DomainV1ServiceLinkArgs args, CustomResourceOptions options)
    
    type: fastly:DomainV1ServiceLink
    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 DomainV1ServiceLinkArgs
    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 DomainV1ServiceLinkArgs
    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 DomainV1ServiceLinkArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DomainV1ServiceLinkArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DomainV1ServiceLinkArgs
    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 domainV1ServiceLinkResource = new Fastly.DomainV1ServiceLink("domainV1ServiceLinkResource", new()
    {
        DomainId = "string",
        ServiceId = "string",
    });
    
    example, err := fastly.NewDomainV1ServiceLink(ctx, "domainV1ServiceLinkResource", &fastly.DomainV1ServiceLinkArgs{
    	DomainId:  pulumi.String("string"),
    	ServiceId: pulumi.String("string"),
    })
    
    var domainV1ServiceLinkResource = new DomainV1ServiceLink("domainV1ServiceLinkResource", DomainV1ServiceLinkArgs.builder()
        .domainId("string")
        .serviceId("string")
        .build());
    
    domain_v1_service_link_resource = fastly.DomainV1ServiceLink("domainV1ServiceLinkResource",
        domain_id="string",
        service_id="string")
    
    const domainV1ServiceLinkResource = new fastly.DomainV1ServiceLink("domainV1ServiceLinkResource", {
        domainId: "string",
        serviceId: "string",
    });
    
    type: fastly:DomainV1ServiceLink
    properties:
        domainId: string
        serviceId: string
    

    DomainV1ServiceLink 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 DomainV1ServiceLink resource accepts the following input properties:

    DomainId string
    The Domain Identifier of the versionless domain being linked (UUID).
    ServiceId string
    The service_id associated with your domain
    DomainId string
    The Domain Identifier of the versionless domain being linked (UUID).
    ServiceId string
    The service_id associated with your domain
    domainId String
    The Domain Identifier of the versionless domain being linked (UUID).
    serviceId String
    The service_id associated with your domain
    domainId string
    The Domain Identifier of the versionless domain being linked (UUID).
    serviceId string
    The service_id associated with your domain
    domain_id str
    The Domain Identifier of the versionless domain being linked (UUID).
    service_id str
    The service_id associated with your domain
    domainId String
    The Domain Identifier of the versionless domain being linked (UUID).
    serviceId String
    The service_id associated with your domain

    Outputs

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

    Get an existing DomainV1ServiceLink 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?: DomainV1ServiceLinkState, opts?: CustomResourceOptions): DomainV1ServiceLink
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            domain_id: Optional[str] = None,
            service_id: Optional[str] = None) -> DomainV1ServiceLink
    func GetDomainV1ServiceLink(ctx *Context, name string, id IDInput, state *DomainV1ServiceLinkState, opts ...ResourceOption) (*DomainV1ServiceLink, error)
    public static DomainV1ServiceLink Get(string name, Input<string> id, DomainV1ServiceLinkState? state, CustomResourceOptions? opts = null)
    public static DomainV1ServiceLink get(String name, Output<String> id, DomainV1ServiceLinkState state, CustomResourceOptions options)
    resources:  _:    type: fastly:DomainV1ServiceLink    get:      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).
    ServiceId string
    The service_id associated with your domain
    DomainId string
    The Domain Identifier of the versionless domain being linked (UUID).
    ServiceId string
    The service_id associated with your domain
    domainId String
    The Domain Identifier of the versionless domain being linked (UUID).
    serviceId String
    The service_id associated with your domain
    domainId string
    The Domain Identifier of the versionless domain being linked (UUID).
    serviceId string
    The service_id associated with your domain
    domain_id str
    The Domain Identifier of the versionless domain being linked (UUID).
    service_id str
    The service_id associated with your domain
    domainId String
    The Domain Identifier of the versionless domain being linked (UUID).
    serviceId String
    The service_id associated with your domain

    Package Details

    Repository
    Fastly pulumi/pulumi-fastly
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the fastly Terraform Provider.
    fastly logo
    Fastly v11.1.0 published on Wednesday, Nov 5, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate