1. Packages
  2. dbt Cloud Provider
  3. API Docs
  4. SemanticLayerConfiguration
dbt Cloud v1.0.0 published on Wednesday, Jun 11, 2025 by Pulumi

dbtcloud.SemanticLayerConfiguration

Explore with Pulumi AI

dbtcloud logo
dbt Cloud v1.0.0 published on Wednesday, Jun 11, 2025 by Pulumi

    The resource allows basic configuration of the Semantic Layer for a specific project. For the feature to be completely functional, a Semantic Layer Credential is also required. See the documentationh ttps://docs.getdbt.com/docs/use-dbt-semantic-layer/dbt-sl for more information on the Semantic Layer.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as dbtcloud from "@pulumi/dbtcloud";
    
    const example = new dbtcloud.SemanticLayerConfiguration("example", {
        projectId: projectId,
        environmentId: environmentId,
    });
    
    import pulumi
    import pulumi_dbtcloud as dbtcloud
    
    example = dbtcloud.SemanticLayerConfiguration("example",
        project_id=project_id,
        environment_id=environment_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-dbtcloud/sdk/go/dbtcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := dbtcloud.NewSemanticLayerConfiguration(ctx, "example", &dbtcloud.SemanticLayerConfigurationArgs{
    			ProjectId:     pulumi.Any(projectId),
    			EnvironmentId: pulumi.Any(environmentId),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using DbtCloud = Pulumi.DbtCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new DbtCloud.SemanticLayerConfiguration("example", new()
        {
            ProjectId = projectId,
            EnvironmentId = environmentId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.dbtcloud.SemanticLayerConfiguration;
    import com.pulumi.dbtcloud.SemanticLayerConfigurationArgs;
    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 SemanticLayerConfiguration("example", SemanticLayerConfigurationArgs.builder()
                .projectId(projectId)
                .environmentId(environmentId)
                .build());
    
        }
    }
    
    resources:
      example:
        type: dbtcloud:SemanticLayerConfiguration
        properties:
          projectId: ${projectId}
          environmentId: ${environmentId}
    

    Create SemanticLayerConfiguration Resource

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

    Constructor syntax

    new SemanticLayerConfiguration(name: string, args: SemanticLayerConfigurationArgs, opts?: CustomResourceOptions);
    @overload
    def SemanticLayerConfiguration(resource_name: str,
                                   args: SemanticLayerConfigurationArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def SemanticLayerConfiguration(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   environment_id: Optional[int] = None,
                                   project_id: Optional[int] = None)
    func NewSemanticLayerConfiguration(ctx *Context, name string, args SemanticLayerConfigurationArgs, opts ...ResourceOption) (*SemanticLayerConfiguration, error)
    public SemanticLayerConfiguration(string name, SemanticLayerConfigurationArgs args, CustomResourceOptions? opts = null)
    public SemanticLayerConfiguration(String name, SemanticLayerConfigurationArgs args)
    public SemanticLayerConfiguration(String name, SemanticLayerConfigurationArgs args, CustomResourceOptions options)
    
    type: dbtcloud:SemanticLayerConfiguration
    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 SemanticLayerConfigurationArgs
    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 SemanticLayerConfigurationArgs
    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 SemanticLayerConfigurationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SemanticLayerConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SemanticLayerConfigurationArgs
    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 semanticLayerConfigurationResource = new DbtCloud.SemanticLayerConfiguration("semanticLayerConfigurationResource", new()
    {
        EnvironmentId = 0,
        ProjectId = 0,
    });
    
    example, err := dbtcloud.NewSemanticLayerConfiguration(ctx, "semanticLayerConfigurationResource", &dbtcloud.SemanticLayerConfigurationArgs{
    	EnvironmentId: pulumi.Int(0),
    	ProjectId:     pulumi.Int(0),
    })
    
    var semanticLayerConfigurationResource = new SemanticLayerConfiguration("semanticLayerConfigurationResource", SemanticLayerConfigurationArgs.builder()
        .environmentId(0)
        .projectId(0)
        .build());
    
    semantic_layer_configuration_resource = dbtcloud.SemanticLayerConfiguration("semanticLayerConfigurationResource",
        environment_id=0,
        project_id=0)
    
    const semanticLayerConfigurationResource = new dbtcloud.SemanticLayerConfiguration("semanticLayerConfigurationResource", {
        environmentId: 0,
        projectId: 0,
    });
    
    type: dbtcloud:SemanticLayerConfiguration
    properties:
        environmentId: 0
        projectId: 0
    

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

    EnvironmentId int
    The ID of the environment
    ProjectId int
    The ID of the project
    EnvironmentId int
    The ID of the environment
    ProjectId int
    The ID of the project
    environmentId Integer
    The ID of the environment
    projectId Integer
    The ID of the project
    environmentId number
    The ID of the environment
    projectId number
    The ID of the project
    environment_id int
    The ID of the environment
    project_id int
    The ID of the project
    environmentId Number
    The ID of the environment
    projectId Number
    The ID of the project

    Outputs

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

    Get an existing SemanticLayerConfiguration 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?: SemanticLayerConfigurationState, opts?: CustomResourceOptions): SemanticLayerConfiguration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            environment_id: Optional[int] = None,
            project_id: Optional[int] = None) -> SemanticLayerConfiguration
    func GetSemanticLayerConfiguration(ctx *Context, name string, id IDInput, state *SemanticLayerConfigurationState, opts ...ResourceOption) (*SemanticLayerConfiguration, error)
    public static SemanticLayerConfiguration Get(string name, Input<string> id, SemanticLayerConfigurationState? state, CustomResourceOptions? opts = null)
    public static SemanticLayerConfiguration get(String name, Output<String> id, SemanticLayerConfigurationState state, CustomResourceOptions options)
    resources:  _:    type: dbtcloud:SemanticLayerConfiguration    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:
    EnvironmentId int
    The ID of the environment
    ProjectId int
    The ID of the project
    EnvironmentId int
    The ID of the environment
    ProjectId int
    The ID of the project
    environmentId Integer
    The ID of the environment
    projectId Integer
    The ID of the project
    environmentId number
    The ID of the environment
    projectId number
    The ID of the project
    environment_id int
    The ID of the environment
    project_id int
    The ID of the project
    environmentId Number
    The ID of the environment
    projectId Number
    The ID of the project

    Import

    using import blocks (requires Terraform >= 1.5)

    import {

    to = dbtcloud_semantic_layer_configuration.example

    id = “project_id:id”

    }

    import {

    to = dbtcloud_semantic_layer_configuration.example

    id = “12345:5678”

    }

    using the older import command

    $ pulumi import dbtcloud:index/semanticLayerConfiguration:SemanticLayerConfiguration example "project_id:id"
    
    $ pulumi import dbtcloud:index/semanticLayerConfiguration:SemanticLayerConfiguration example 12345:5678
    

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

    Package Details

    Repository
    dbtcloud pulumi/pulumi-dbtcloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dbtcloud Terraform Provider.
    dbtcloud logo
    dbt Cloud v1.0.0 published on Wednesday, Jun 11, 2025 by Pulumi