Viewing docs for dbt Cloud v1.6.1
published on Thursday, Feb 26, 2026 by Pulumi
published on Thursday, Feb 26, 2026 by Pulumi
Viewing docs for dbt Cloud v1.6.1
published on Thursday, Feb 26, 2026 by Pulumi
published on Thursday, Feb 26, 2026 by Pulumi
Apache Spark credential data source
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as dbtcloud from "@pulumi/dbtcloud";
const mySparkCred = dbtcloud.getSparkCredential({
projectId: dbtProject.id,
credentialId: 12345,
});
import pulumi
import pulumi_dbtcloud as dbtcloud
my_spark_cred = dbtcloud.get_spark_credential(project_id=dbt_project["id"],
credential_id=12345)
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.LookupSparkCredential(ctx, &dbtcloud.LookupSparkCredentialArgs{
ProjectId: dbtProject.Id,
CredentialId: 12345,
}, nil)
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 mySparkCred = DbtCloud.GetSparkCredential.Invoke(new()
{
ProjectId = dbtProject.Id,
CredentialId = 12345,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.dbtcloud.DbtcloudFunctions;
import com.pulumi.dbtcloud.inputs.GetSparkCredentialArgs;
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) {
final var mySparkCred = DbtcloudFunctions.getSparkCredential(GetSparkCredentialArgs.builder()
.projectId(dbtProject.id())
.credentialId(12345)
.build());
}
}
variables:
mySparkCred:
fn::invoke:
function: dbtcloud:getSparkCredential
arguments:
projectId: ${dbtProject.id}
credentialId: 12345
Using getSparkCredential
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSparkCredential(args: GetSparkCredentialArgs, opts?: InvokeOptions): Promise<GetSparkCredentialResult>
function getSparkCredentialOutput(args: GetSparkCredentialOutputArgs, opts?: InvokeOptions): Output<GetSparkCredentialResult>def get_spark_credential(credential_id: Optional[int] = None,
project_id: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetSparkCredentialResult
def get_spark_credential_output(credential_id: Optional[pulumi.Input[int]] = None,
project_id: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSparkCredentialResult]func LookupSparkCredential(ctx *Context, args *LookupSparkCredentialArgs, opts ...InvokeOption) (*LookupSparkCredentialResult, error)
func LookupSparkCredentialOutput(ctx *Context, args *LookupSparkCredentialOutputArgs, opts ...InvokeOption) LookupSparkCredentialResultOutput> Note: This function is named LookupSparkCredential in the Go SDK.
public static class GetSparkCredential
{
public static Task<GetSparkCredentialResult> InvokeAsync(GetSparkCredentialArgs args, InvokeOptions? opts = null)
public static Output<GetSparkCredentialResult> Invoke(GetSparkCredentialInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSparkCredentialResult> getSparkCredential(GetSparkCredentialArgs args, InvokeOptions options)
public static Output<GetSparkCredentialResult> getSparkCredential(GetSparkCredentialArgs args, InvokeOptions options)
fn::invoke:
function: dbtcloud:index/getSparkCredential:getSparkCredential
arguments:
# arguments dictionaryThe following arguments are supported:
- Credential
Id int - Credential ID
- Project
Id int - Project ID
- Credential
Id int - Credential ID
- Project
Id int - Project ID
- credential
Id Integer - Credential ID
- project
Id Integer - Project ID
- credential
Id number - Credential ID
- project
Id number - Project ID
- credential_
id int - Credential ID
- project_
id int - Project ID
- credential
Id Number - Credential ID
- project
Id Number - Project ID
getSparkCredential Result
The following output properties are available:
- Credential
Id int - Credential ID
- Id string
- The ID of this resource. Contains the project ID and the credential ID.
- Num
Threads int - The number of threads to use
- Project
Id int - Project ID
- Schema string
- The schema where to create models
- Target
Name string - Target name
- Credential
Id int - Credential ID
- Id string
- The ID of this resource. Contains the project ID and the credential ID.
- Num
Threads int - The number of threads to use
- Project
Id int - Project ID
- Schema string
- The schema where to create models
- Target
Name string - Target name
- credential
Id Integer - Credential ID
- id String
- The ID of this resource. Contains the project ID and the credential ID.
- num
Threads Integer - The number of threads to use
- project
Id Integer - Project ID
- schema String
- The schema where to create models
- target
Name String - Target name
- credential
Id number - Credential ID
- id string
- The ID of this resource. Contains the project ID and the credential ID.
- num
Threads number - The number of threads to use
- project
Id number - Project ID
- schema string
- The schema where to create models
- target
Name string - Target name
- credential_
id int - Credential ID
- id str
- The ID of this resource. Contains the project ID and the credential ID.
- num_
threads int - The number of threads to use
- project_
id int - Project ID
- schema str
- The schema where to create models
- target_
name str - Target name
- credential
Id Number - Credential ID
- id String
- The ID of this resource. Contains the project ID and the credential ID.
- num
Threads Number - The number of threads to use
- project
Id Number - Project ID
- schema String
- The schema where to create models
- target
Name String - Target name
Package Details
- Repository
- dbtcloud pulumi/pulumi-dbtcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dbtcloudTerraform Provider.
Viewing docs for dbt Cloud v1.6.1
published on Thursday, Feb 26, 2026 by Pulumi
published on Thursday, Feb 26, 2026 by Pulumi
