dbt Cloud v0.1.30 published on Thursday, Mar 20, 2025 by Pulumi
dbtcloud.getStarburstCredential
Explore with Pulumi AI
Starburst/Trino credential data source
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as dbtcloud from "@pulumi/dbtcloud";
const example = dbtcloud.getStarburstCredential({
    projectId: 123,
    credentialId: 456,
});
import pulumi
import pulumi_dbtcloud as dbtcloud
example = dbtcloud.get_starburst_credential(project_id=123,
    credential_id=456)
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.LookupStarburstCredential(ctx, &dbtcloud.LookupStarburstCredentialArgs{
			ProjectId:    123,
			CredentialId: 456,
		}, 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 example = DbtCloud.GetStarburstCredential.Invoke(new()
    {
        ProjectId = 123,
        CredentialId = 456,
    });
});
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.GetStarburstCredentialArgs;
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 example = DbtcloudFunctions.getStarburstCredential(GetStarburstCredentialArgs.builder()
            .projectId(123)
            .credentialId(456)
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: dbtcloud:getStarburstCredential
      arguments:
        projectId: 123
        credentialId: 456
Using getStarburstCredential
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 getStarburstCredential(args: GetStarburstCredentialArgs, opts?: InvokeOptions): Promise<GetStarburstCredentialResult>
function getStarburstCredentialOutput(args: GetStarburstCredentialOutputArgs, opts?: InvokeOptions): Output<GetStarburstCredentialResult>def get_starburst_credential(credential_id: Optional[int] = None,
                             project_id: Optional[int] = None,
                             opts: Optional[InvokeOptions] = None) -> GetStarburstCredentialResult
def get_starburst_credential_output(credential_id: Optional[pulumi.Input[int]] = None,
                             project_id: Optional[pulumi.Input[int]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetStarburstCredentialResult]func LookupStarburstCredential(ctx *Context, args *LookupStarburstCredentialArgs, opts ...InvokeOption) (*LookupStarburstCredentialResult, error)
func LookupStarburstCredentialOutput(ctx *Context, args *LookupStarburstCredentialOutputArgs, opts ...InvokeOption) LookupStarburstCredentialResultOutput> Note: This function is named LookupStarburstCredential in the Go SDK.
public static class GetStarburstCredential 
{
    public static Task<GetStarburstCredentialResult> InvokeAsync(GetStarburstCredentialArgs args, InvokeOptions? opts = null)
    public static Output<GetStarburstCredentialResult> Invoke(GetStarburstCredentialInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetStarburstCredentialResult> getStarburstCredential(GetStarburstCredentialArgs args, InvokeOptions options)
public static Output<GetStarburstCredentialResult> getStarburstCredential(GetStarburstCredentialArgs args, InvokeOptions options)
fn::invoke:
  function: dbtcloud:index/getStarburstCredential:getStarburstCredential
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CredentialId int
- Credential ID
- ProjectId int
- Project ID
- CredentialId int
- Credential ID
- ProjectId int
- Project ID
- credentialId Integer
- Credential ID
- projectId Integer
- Project ID
- credentialId number
- Credential ID
- projectId number
- Project ID
- credential_id int
- Credential ID
- project_id int
- Project ID
- credentialId Number
- Credential ID
- projectId Number
- Project ID
getStarburstCredential Result
The following output properties are available:
- CredentialId int
- Credential ID
- Database string
- The catalog to connect to
- Id string
- The ID of this resource. Contains the project ID and the credential ID.
- ProjectId int
- Project ID
- Schema string
- The schema where to create models
- CredentialId int
- Credential ID
- Database string
- The catalog to connect to
- Id string
- The ID of this resource. Contains the project ID and the credential ID.
- ProjectId int
- Project ID
- Schema string
- The schema where to create models
- credentialId Integer
- Credential ID
- database String
- The catalog to connect to
- id String
- The ID of this resource. Contains the project ID and the credential ID.
- projectId Integer
- Project ID
- schema String
- The schema where to create models
- credentialId number
- Credential ID
- database string
- The catalog to connect to
- id string
- The ID of this resource. Contains the project ID and the credential ID.
- projectId number
- Project ID
- schema string
- The schema where to create models
- credential_id int
- Credential ID
- database str
- The catalog to connect to
- id str
- The ID of this resource. Contains the project ID and the credential ID.
- project_id int
- Project ID
- schema str
- The schema where to create models
- credentialId Number
- Credential ID
- database String
- The catalog to connect to
- id String
- The ID of this resource. Contains the project ID and the credential ID.
- projectId Number
- Project ID
- schema String
- The schema where to create models
Package Details
- Repository
- dbtcloud pulumi/pulumi-dbtcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the dbtcloudTerraform Provider.
