dbtcloud.DatabricksSemanticLayerCredential
Explore with Pulumi AI
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.
Dbt Cloud. Inputs. Databricks Semantic Layer Credential Configuration - Semantic Layer credential configuration details.
- Credential
Pulumi.
Dbt Cloud. Inputs. Databricks Semantic Layer Credential Credential - Databricks credential details, but used in the context of the Semantic Layer.
- Configuration
Databricks
Semantic Layer Credential Configuration Args - Semantic Layer credential configuration details.
- Credential
Databricks
Semantic Layer Credential Credential Args - Databricks credential details, but used in the context of the Semantic Layer.
- configuration
Databricks
Semantic Layer Credential Configuration - Semantic Layer credential configuration details.
- credential
Databricks
Semantic Layer Credential Credential - Databricks credential details, but used in the context of the Semantic Layer.
- configuration
Databricks
Semantic Layer Credential Configuration - Semantic Layer credential configuration details.
- credential
Databricks
Semantic Layer Credential Credential - Databricks credential details, but used in the context of the Semantic Layer.
- configuration
Databricks
Semantic Layer Credential Configuration Args - Semantic Layer credential configuration details.
- credential
Databricks
Semantic Layer Credential Credential Args - 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.
- Configuration
Pulumi.
Dbt Cloud. Inputs. Databricks Semantic Layer Credential Configuration - Semantic Layer credential configuration details.
- Credential
Pulumi.
Dbt Cloud. Inputs. Databricks Semantic Layer Credential Credential - Databricks credential details, but used in the context of the Semantic Layer.
- Configuration
Databricks
Semantic Layer Credential Configuration Args - Semantic Layer credential configuration details.
- Credential
Databricks
Semantic Layer Credential Credential Args - Databricks credential details, but used in the context of the Semantic Layer.
- configuration
Databricks
Semantic Layer Credential Configuration - Semantic Layer credential configuration details.
- credential
Databricks
Semantic Layer Credential Credential - Databricks credential details, but used in the context of the Semantic Layer.
- configuration
Databricks
Semantic Layer Credential Configuration - Semantic Layer credential configuration details.
- credential
Databricks
Semantic Layer Credential Credential - Databricks credential details, but used in the context of the Semantic Layer.
- configuration
Databricks
Semantic Layer Credential Configuration Args - Semantic Layer credential configuration details.
- credential
Databricks
Semantic Layer Credential Credential Args - 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
- Adapter
Version string - The adapter version
- Name string
- The name of the configuration
- Project
Id int - The ID of the project
- Adapter
Version string - The adapter version
- Name string
- The name of the configuration
- Project
Id int - The ID of the project
- adapter
Version String - The adapter version
- name String
- The name of the configuration
- project
Id Integer - The ID of the project
- adapter
Version string - The adapter version
- name string
- The name of the configuration
- project
Id 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
- adapter
Version String - The adapter version
- name String
- The name of the configuration
- project
Id Number - The ID of the project
DatabricksSemanticLayerCredentialCredential, DatabricksSemanticLayerCredentialCredentialArgs
- Project
Id int - Project ID to create the Databricks credential in
- Token string
- Token for Databricks user
- Adapter
Type 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)
- Credential
Id 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.
- Semantic
Layer boolCredential - 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 string - Target name
- Project
Id int - Project ID to create the Databricks credential in
- Token string
- Token for Databricks user
- Adapter
Type 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)
- Credential
Id 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.
- Semantic
Layer boolCredential - 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 string - Target name
- project
Id Integer - Project ID to create the Databricks credential in
- token String
- Token for Databricks user
- adapter
Type 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)
- credential
Id 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.
- semantic
Layer BooleanCredential - 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 String - Target name
- project
Id number - Project ID to create the Databricks credential in
- token string
- Token for Databricks user
- adapter
Type 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)
- credential
Id 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.
- semantic
Layer booleanCredential - 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 string - Target name
- 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_ boolcredential - 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
- project
Id Number - Project ID to create the Databricks credential in
- token String
- Token for Databricks user
- adapter
Type 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)
- credential
Id 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.
- semantic
Layer BooleanCredential - 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 String - Target name
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.