1. Packages
  2. dbt Cloud Provider
  3. API Docs
  4. DatabricksSemanticLayerCredential
dbt Cloud v1.0.2 published on Tuesday, Jun 24, 2025 by Pulumi

dbtcloud.DatabricksSemanticLayerCredential

Explore with Pulumi AI

dbtcloud logo
dbt Cloud v1.0.2 published on Tuesday, Jun 24, 2025 by Pulumi

    Databricks credential resource. This resource is composed of a Databricks credential and a Semantic Layer configuration. It is used to create a Databricks credential for the Semantic Layer.

    Example Usage

    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    resources:
      slCredDatabricksExample:
        type: dbtcloud:DatabricksSemanticLayerCredential
        name: sl_cred_databricks_example
        properties:
          configuration:
            project_id: ${projectId}
            name: Databricks SL Credential
            adapter_version: databricks_v0
          credential:
            project_id: ${projectId}
            catalog: ${catalog}
            token: ${token}
            semantic_layer_credential: true
    

    Create DatabricksSemanticLayerCredential Resource

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

    Constructor syntax

    new DatabricksSemanticLayerCredential(name: string, args: DatabricksSemanticLayerCredentialArgs, opts?: CustomResourceOptions);
    @overload
    def DatabricksSemanticLayerCredential(resource_name: str,
                                          args: DatabricksSemanticLayerCredentialArgs,
                                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def DatabricksSemanticLayerCredential(resource_name: str,
                                          opts: Optional[ResourceOptions] = None,
                                          configuration: Optional[DatabricksSemanticLayerCredentialConfigurationArgs] = None,
                                          credential: Optional[DatabricksSemanticLayerCredentialCredentialArgs] = None)
    func NewDatabricksSemanticLayerCredential(ctx *Context, name string, args DatabricksSemanticLayerCredentialArgs, opts ...ResourceOption) (*DatabricksSemanticLayerCredential, error)
    public DatabricksSemanticLayerCredential(string name, DatabricksSemanticLayerCredentialArgs args, CustomResourceOptions? opts = null)
    public DatabricksSemanticLayerCredential(String name, DatabricksSemanticLayerCredentialArgs args)
    public DatabricksSemanticLayerCredential(String name, DatabricksSemanticLayerCredentialArgs args, CustomResourceOptions options)
    
    type: dbtcloud:DatabricksSemanticLayerCredential
    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 DatabricksSemanticLayerCredentialArgs
    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 DatabricksSemanticLayerCredentialArgs
    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 DatabricksSemanticLayerCredentialArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DatabricksSemanticLayerCredentialArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DatabricksSemanticLayerCredentialArgs
    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 databricksSemanticLayerCredentialResource = new DbtCloud.DatabricksSemanticLayerCredential("databricksSemanticLayerCredentialResource", new()
    {
        Configuration = new DbtCloud.Inputs.DatabricksSemanticLayerCredentialConfigurationArgs
        {
            AdapterVersion = "string",
            Name = "string",
            ProjectId = 0,
        },
        Credential = new DbtCloud.Inputs.DatabricksSemanticLayerCredentialCredentialArgs
        {
            ProjectId = 0,
            Token = "string",
            AdapterType = "string",
            Catalog = "string",
            CredentialId = 0,
            Id = "string",
            Schema = "string",
            SemanticLayerCredential = false,
        },
    });
    
    example, err := dbtcloud.NewDatabricksSemanticLayerCredential(ctx, "databricksSemanticLayerCredentialResource", &dbtcloud.DatabricksSemanticLayerCredentialArgs{
    	Configuration: &dbtcloud.DatabricksSemanticLayerCredentialConfigurationArgs{
    		AdapterVersion: pulumi.String("string"),
    		Name:           pulumi.String("string"),
    		ProjectId:      pulumi.Int(0),
    	},
    	Credential: &dbtcloud.DatabricksSemanticLayerCredentialCredentialArgs{
    		ProjectId:               pulumi.Int(0),
    		Token:                   pulumi.String("string"),
    		AdapterType:             pulumi.String("string"),
    		Catalog:                 pulumi.String("string"),
    		CredentialId:            pulumi.Int(0),
    		Id:                      pulumi.String("string"),
    		Schema:                  pulumi.String("string"),
    		SemanticLayerCredential: pulumi.Bool(false),
    	},
    })
    
    var databricksSemanticLayerCredentialResource = new DatabricksSemanticLayerCredential("databricksSemanticLayerCredentialResource", DatabricksSemanticLayerCredentialArgs.builder()
        .configuration(DatabricksSemanticLayerCredentialConfigurationArgs.builder()
            .adapterVersion("string")
            .name("string")
            .projectId(0)
            .build())
        .credential(DatabricksSemanticLayerCredentialCredentialArgs.builder()
            .projectId(0)
            .token("string")
            .adapterType("string")
            .catalog("string")
            .credentialId(0)
            .id("string")
            .schema("string")
            .semanticLayerCredential(false)
            .build())
        .build());
    
    databricks_semantic_layer_credential_resource = dbtcloud.DatabricksSemanticLayerCredential("databricksSemanticLayerCredentialResource",
        configuration={
            "adapter_version": "string",
            "name": "string",
            "project_id": 0,
        },
        credential={
            "project_id": 0,
            "token": "string",
            "adapter_type": "string",
            "catalog": "string",
            "credential_id": 0,
            "id": "string",
            "schema": "string",
            "semantic_layer_credential": False,
        })
    
    const databricksSemanticLayerCredentialResource = new dbtcloud.DatabricksSemanticLayerCredential("databricksSemanticLayerCredentialResource", {
        configuration: {
            adapterVersion: "string",
            name: "string",
            projectId: 0,
        },
        credential: {
            projectId: 0,
            token: "string",
            adapterType: "string",
            catalog: "string",
            credentialId: 0,
            id: "string",
            schema: "string",
            semanticLayerCredential: false,
        },
    });
    
    type: dbtcloud:DatabricksSemanticLayerCredential
    properties:
        configuration:
            adapterVersion: string
            name: string
            projectId: 0
        credential:
            adapterType: string
            catalog: string
            credentialId: 0
            id: string
            projectId: 0
            schema: string
            semanticLayerCredential: false
            token: string
    

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

    Configuration Pulumi.DbtCloud.Inputs.DatabricksSemanticLayerCredentialConfiguration
    Semantic Layer credential configuration details.
    Credential Pulumi.DbtCloud.Inputs.DatabricksSemanticLayerCredentialCredential
    Databricks credential details, but used in the context of the Semantic Layer.
    Configuration DatabricksSemanticLayerCredentialConfigurationArgs
    Semantic Layer credential configuration details.
    Credential DatabricksSemanticLayerCredentialCredentialArgs
    Databricks credential details, but used in the context of the Semantic Layer.
    configuration DatabricksSemanticLayerCredentialConfiguration
    Semantic Layer credential configuration details.
    credential DatabricksSemanticLayerCredentialCredential
    Databricks credential details, but used in the context of the Semantic Layer.
    configuration DatabricksSemanticLayerCredentialConfiguration
    Semantic Layer credential configuration details.
    credential DatabricksSemanticLayerCredentialCredential
    Databricks credential details, but used in the context of the Semantic Layer.
    configuration DatabricksSemanticLayerCredentialConfigurationArgs
    Semantic Layer credential configuration details.
    credential DatabricksSemanticLayerCredentialCredentialArgs
    Databricks credential details, but used in the context of the Semantic Layer.
    configuration Property Map
    Semantic Layer credential configuration details.
    credential Property Map
    Databricks credential details, but used in the context of the Semantic Layer.

    Outputs

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

    Get an existing DatabricksSemanticLayerCredential 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?: DatabricksSemanticLayerCredentialState, opts?: CustomResourceOptions): DatabricksSemanticLayerCredential
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            configuration: Optional[DatabricksSemanticLayerCredentialConfigurationArgs] = None,
            credential: Optional[DatabricksSemanticLayerCredentialCredentialArgs] = None) -> DatabricksSemanticLayerCredential
    func GetDatabricksSemanticLayerCredential(ctx *Context, name string, id IDInput, state *DatabricksSemanticLayerCredentialState, opts ...ResourceOption) (*DatabricksSemanticLayerCredential, error)
    public static DatabricksSemanticLayerCredential Get(string name, Input<string> id, DatabricksSemanticLayerCredentialState? state, CustomResourceOptions? opts = null)
    public static DatabricksSemanticLayerCredential get(String name, Output<String> id, DatabricksSemanticLayerCredentialState state, CustomResourceOptions options)
    resources:  _:    type: dbtcloud:DatabricksSemanticLayerCredential    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:
    Configuration Pulumi.DbtCloud.Inputs.DatabricksSemanticLayerCredentialConfiguration
    Semantic Layer credential configuration details.
    Credential Pulumi.DbtCloud.Inputs.DatabricksSemanticLayerCredentialCredential
    Databricks credential details, but used in the context of the Semantic Layer.
    Configuration DatabricksSemanticLayerCredentialConfigurationArgs
    Semantic Layer credential configuration details.
    Credential DatabricksSemanticLayerCredentialCredentialArgs
    Databricks credential details, but used in the context of the Semantic Layer.
    configuration DatabricksSemanticLayerCredentialConfiguration
    Semantic Layer credential configuration details.
    credential DatabricksSemanticLayerCredentialCredential
    Databricks credential details, but used in the context of the Semantic Layer.
    configuration DatabricksSemanticLayerCredentialConfiguration
    Semantic Layer credential configuration details.
    credential DatabricksSemanticLayerCredentialCredential
    Databricks credential details, but used in the context of the Semantic Layer.
    configuration DatabricksSemanticLayerCredentialConfigurationArgs
    Semantic Layer credential configuration details.
    credential DatabricksSemanticLayerCredentialCredentialArgs
    Databricks credential details, but used in the context of the Semantic Layer.
    configuration Property Map
    Semantic Layer credential configuration details.
    credential Property Map
    Databricks credential details, but used in the context of the Semantic Layer.

    Supporting Types

    DatabricksSemanticLayerCredentialConfiguration, DatabricksSemanticLayerCredentialConfigurationArgs

    AdapterVersion string
    The adapter version
    Name string
    The name of the configuration
    ProjectId int
    The ID of the project
    AdapterVersion string
    The adapter version
    Name string
    The name of the configuration
    ProjectId int
    The ID of the project
    adapterVersion String
    The adapter version
    name String
    The name of the configuration
    projectId Integer
    The ID of the project
    adapterVersion string
    The adapter version
    name string
    The name of the configuration
    projectId number
    The ID of the project
    adapter_version str
    The adapter version
    name str
    The name of the configuration
    project_id int
    The ID of the project
    adapterVersion String
    The adapter version
    name String
    The name of the configuration
    projectId Number
    The ID of the project

    DatabricksSemanticLayerCredentialCredential, DatabricksSemanticLayerCredentialCredentialArgs

    ProjectId int
    Project ID to create the Databricks credential in
    Token string
    Token for Databricks user
    AdapterType string
    The type of the adapter (databricks or spark). Optional only when semanticlayercredential is set to true; otherwise, this field is required.
    Catalog string
    The catalog where to create models (only for the databricks adapter)
    CredentialId int
    The system Databricks credential ID
    Id string
    The ID of this resource. Contains the project ID and the credential ID.
    Schema string
    The schema where to create models. Optional only when semanticlayercredential is set to true; otherwise, this field is required.
    SemanticLayerCredential bool
    This field indicates that the credential is used as part of the Semantic Layer configuration. It is used to create a Databricks credential for the Semantic Layer.
    TargetName string
    Target name

    Deprecated: This field is deprecated at the environment level (it was never possible to set it in the UI) and will be removed in a future release. Please remove it and set the target name at the job level or leverage environment variables.

    ProjectId int
    Project ID to create the Databricks credential in
    Token string
    Token for Databricks user
    AdapterType string
    The type of the adapter (databricks or spark). Optional only when semanticlayercredential is set to true; otherwise, this field is required.
    Catalog string
    The catalog where to create models (only for the databricks adapter)
    CredentialId int
    The system Databricks credential ID
    Id string
    The ID of this resource. Contains the project ID and the credential ID.
    Schema string
    The schema where to create models. Optional only when semanticlayercredential is set to true; otherwise, this field is required.
    SemanticLayerCredential bool
    This field indicates that the credential is used as part of the Semantic Layer configuration. It is used to create a Databricks credential for the Semantic Layer.
    TargetName string
    Target name

    Deprecated: This field is deprecated at the environment level (it was never possible to set it in the UI) and will be removed in a future release. Please remove it and set the target name at the job level or leverage environment variables.

    projectId Integer
    Project ID to create the Databricks credential in
    token String
    Token for Databricks user
    adapterType String
    The type of the adapter (databricks or spark). Optional only when semanticlayercredential is set to true; otherwise, this field is required.
    catalog String
    The catalog where to create models (only for the databricks adapter)
    credentialId Integer
    The system Databricks credential ID
    id String
    The ID of this resource. Contains the project ID and the credential ID.
    schema String
    The schema where to create models. Optional only when semanticlayercredential is set to true; otherwise, this field is required.
    semanticLayerCredential Boolean
    This field indicates that the credential is used as part of the Semantic Layer configuration. It is used to create a Databricks credential for the Semantic Layer.
    targetName String
    Target name

    Deprecated: This field is deprecated at the environment level (it was never possible to set it in the UI) and will be removed in a future release. Please remove it and set the target name at the job level or leverage environment variables.

    projectId number
    Project ID to create the Databricks credential in
    token string
    Token for Databricks user
    adapterType string
    The type of the adapter (databricks or spark). Optional only when semanticlayercredential is set to true; otherwise, this field is required.
    catalog string
    The catalog where to create models (only for the databricks adapter)
    credentialId number
    The system Databricks credential ID
    id string
    The ID of this resource. Contains the project ID and the credential ID.
    schema string
    The schema where to create models. Optional only when semanticlayercredential is set to true; otherwise, this field is required.
    semanticLayerCredential boolean
    This field indicates that the credential is used as part of the Semantic Layer configuration. It is used to create a Databricks credential for the Semantic Layer.
    targetName string
    Target name

    Deprecated: This field is deprecated at the environment level (it was never possible to set it in the UI) and will be removed in a future release. Please remove it and set the target name at the job level or leverage environment variables.

    project_id int
    Project ID to create the Databricks credential in
    token str
    Token for Databricks user
    adapter_type str
    The type of the adapter (databricks or spark). Optional only when semanticlayercredential is set to true; otherwise, this field is required.
    catalog str
    The catalog where to create models (only for the databricks adapter)
    credential_id int
    The system Databricks credential ID
    id str
    The ID of this resource. Contains the project ID and the credential ID.
    schema str
    The schema where to create models. Optional only when semanticlayercredential is set to true; otherwise, this field is required.
    semantic_layer_credential bool
    This field indicates that the credential is used as part of the Semantic Layer configuration. It is used to create a Databricks credential for the Semantic Layer.
    target_name str
    Target name

    Deprecated: This field is deprecated at the environment level (it was never possible to set it in the UI) and will be removed in a future release. Please remove it and set the target name at the job level or leverage environment variables.

    projectId Number
    Project ID to create the Databricks credential in
    token String
    Token for Databricks user
    adapterType String
    The type of the adapter (databricks or spark). Optional only when semanticlayercredential is set to true; otherwise, this field is required.
    catalog String
    The catalog where to create models (only for the databricks adapter)
    credentialId Number
    The system Databricks credential ID
    id String
    The ID of this resource. Contains the project ID and the credential ID.
    schema String
    The schema where to create models. Optional only when semanticlayercredential is set to true; otherwise, this field is required.
    semanticLayerCredential Boolean
    This field indicates that the credential is used as part of the Semantic Layer configuration. It is used to create a Databricks credential for the Semantic Layer.
    targetName String
    Target name

    Deprecated: This field is deprecated at the environment level (it was never possible to set it in the UI) and will be removed in a future release. Please remove it and set the target name at the job level or leverage environment variables.

    Import

    using import blocks (requires Terraform >= 1.5)

    import {

    to = dbtcloud_databricks_semantic_layer_credential.example

    id = “credential_id”

    }

    import {

    to = dbtcloud_databricks_semantic_layer_credential.example

    id = “12345”

    }

    using the older import command

    $ pulumi import dbtcloud:index/databricksSemanticLayerCredential:DatabricksSemanticLayerCredential example "credential_id"
    
    $ pulumi import dbtcloud:index/databricksSemanticLayerCredential:DatabricksSemanticLayerCredential example 12345
    

    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.2 published on Tuesday, Jun 24, 2025 by Pulumi