Viewing docs for dbt Cloud v1.7.0
published on Tuesday, Mar 31, 2026 by Pulumi
published on Tuesday, Mar 31, 2026 by Pulumi
Viewing docs for dbt Cloud v1.7.0
published on Tuesday, Mar 31, 2026 by Pulumi
published on Tuesday, Mar 31, 2026 by Pulumi
Athena credential data source
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as dbtcloud from "@pulumi/dbtcloud";
const example = dbtcloud.getAthenaCredential({
projectId: 123,
credentialId: 456,
});
import pulumi
import pulumi_dbtcloud as dbtcloud
example = dbtcloud.get_athena_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.LookupAthenaCredential(ctx, &dbtcloud.LookupAthenaCredentialArgs{
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.GetAthenaCredential.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.GetAthenaCredentialArgs;
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.getAthenaCredential(GetAthenaCredentialArgs.builder()
.projectId(123)
.credentialId(456)
.build());
}
}
variables:
example:
fn::invoke:
function: dbtcloud:getAthenaCredential
arguments:
projectId: 123
credentialId: 456
Using getAthenaCredential
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 getAthenaCredential(args: GetAthenaCredentialArgs, opts?: InvokeOptions): Promise<GetAthenaCredentialResult>
function getAthenaCredentialOutput(args: GetAthenaCredentialOutputArgs, opts?: InvokeOptions): Output<GetAthenaCredentialResult>def get_athena_credential(credential_id: Optional[int] = None,
project_id: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetAthenaCredentialResult
def get_athena_credential_output(credential_id: Optional[pulumi.Input[int]] = None,
project_id: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAthenaCredentialResult]func LookupAthenaCredential(ctx *Context, args *LookupAthenaCredentialArgs, opts ...InvokeOption) (*LookupAthenaCredentialResult, error)
func LookupAthenaCredentialOutput(ctx *Context, args *LookupAthenaCredentialOutputArgs, opts ...InvokeOption) LookupAthenaCredentialResultOutput> Note: This function is named LookupAthenaCredential in the Go SDK.
public static class GetAthenaCredential
{
public static Task<GetAthenaCredentialResult> InvokeAsync(GetAthenaCredentialArgs args, InvokeOptions? opts = null)
public static Output<GetAthenaCredentialResult> Invoke(GetAthenaCredentialInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAthenaCredentialResult> getAthenaCredential(GetAthenaCredentialArgs args, InvokeOptions options)
public static Output<GetAthenaCredentialResult> getAthenaCredential(GetAthenaCredentialArgs args, InvokeOptions options)
fn::invoke:
function: dbtcloud:index/getAthenaCredential:getAthenaCredential
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
getAthenaCredential 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.
- Project
Id int - Project ID
- Schema string
- The schema where to create models
- Credential
Id int - Credential ID
- Id string
- The ID of this resource. Contains the project ID and the credential ID.
- Project
Id int - Project ID
- Schema string
- The schema where to create models
- credential
Id Integer - Credential ID
- id String
- The ID of this resource. Contains the project ID and the credential ID.
- project
Id Integer - Project ID
- schema String
- The schema where to create models
- credential
Id number - Credential ID
- id string
- The ID of this resource. Contains the project ID and the credential ID.
- project
Id number - Project ID
- schema string
- The schema where to create models
- credential_
id int - Credential ID
- 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
- credential
Id Number - Credential ID
- id String
- The ID of this resource. Contains the project ID and the credential ID.
- project
Id 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.
Viewing docs for dbt Cloud v1.7.0
published on Tuesday, Mar 31, 2026 by Pulumi
published on Tuesday, Mar 31, 2026 by Pulumi
