dbtcloud.BigQueryCredential
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as dbtcloud from "@pulumi/dbtcloud";
const myCredential = new dbtcloud.BigQueryCredential("my_credential", {
projectId: dbtProject.id,
dataset: "my_bq_dataset",
numThreads: 16,
});
import pulumi
import pulumi_dbtcloud as dbtcloud
my_credential = dbtcloud.BigQueryCredential("my_credential",
project_id=dbt_project["id"],
dataset="my_bq_dataset",
num_threads=16)
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.NewBigQueryCredential(ctx, "my_credential", &dbtcloud.BigQueryCredentialArgs{
ProjectId: pulumi.Any(dbtProject.Id),
Dataset: pulumi.String("my_bq_dataset"),
NumThreads: pulumi.Int(16),
})
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 myCredential = new DbtCloud.BigQueryCredential("my_credential", new()
{
ProjectId = dbtProject.Id,
Dataset = "my_bq_dataset",
NumThreads = 16,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.dbtcloud.BigQueryCredential;
import com.pulumi.dbtcloud.BigQueryCredentialArgs;
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) {
var myCredential = new BigQueryCredential("myCredential", BigQueryCredentialArgs.builder()
.projectId(dbtProject.id())
.dataset("my_bq_dataset")
.numThreads(16)
.build());
}
}
resources:
myCredential:
type: dbtcloud:BigQueryCredential
name: my_credential
properties:
projectId: ${dbtProject.id}
dataset: my_bq_dataset
numThreads: 16
Create BigQueryCredential Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BigQueryCredential(name: string, args: BigQueryCredentialArgs, opts?: CustomResourceOptions);
@overload
def BigQueryCredential(resource_name: str,
args: BigQueryCredentialArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BigQueryCredential(resource_name: str,
opts: Optional[ResourceOptions] = None,
dataset: Optional[str] = None,
num_threads: Optional[int] = None,
project_id: Optional[int] = None,
is_active: Optional[bool] = None)
func NewBigQueryCredential(ctx *Context, name string, args BigQueryCredentialArgs, opts ...ResourceOption) (*BigQueryCredential, error)
public BigQueryCredential(string name, BigQueryCredentialArgs args, CustomResourceOptions? opts = null)
public BigQueryCredential(String name, BigQueryCredentialArgs args)
public BigQueryCredential(String name, BigQueryCredentialArgs args, CustomResourceOptions options)
type: dbtcloud:BigQueryCredential
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 BigQueryCredentialArgs
- 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 BigQueryCredentialArgs
- 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 BigQueryCredentialArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BigQueryCredentialArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BigQueryCredentialArgs
- 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 bigQueryCredentialResource = new DbtCloud.BigQueryCredential("bigQueryCredentialResource", new()
{
Dataset = "string",
NumThreads = 0,
ProjectId = 0,
IsActive = false,
});
example, err := dbtcloud.NewBigQueryCredential(ctx, "bigQueryCredentialResource", &dbtcloud.BigQueryCredentialArgs{
Dataset: pulumi.String("string"),
NumThreads: pulumi.Int(0),
ProjectId: pulumi.Int(0),
IsActive: pulumi.Bool(false),
})
var bigQueryCredentialResource = new BigQueryCredential("bigQueryCredentialResource", BigQueryCredentialArgs.builder()
.dataset("string")
.numThreads(0)
.projectId(0)
.isActive(false)
.build());
big_query_credential_resource = dbtcloud.BigQueryCredential("bigQueryCredentialResource",
dataset="string",
num_threads=0,
project_id=0,
is_active=False)
const bigQueryCredentialResource = new dbtcloud.BigQueryCredential("bigQueryCredentialResource", {
dataset: "string",
numThreads: 0,
projectId: 0,
isActive: false,
});
type: dbtcloud:BigQueryCredential
properties:
dataset: string
isActive: false
numThreads: 0
projectId: 0
BigQueryCredential Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The BigQueryCredential resource accepts the following input properties:
- Dataset string
- Default dataset name
- Num
Threads int - Number of threads to use
- Project
Id int - Project ID to create the BigQuery credential in
- Is
Active bool - Whether the BigQuery credential is active
- Dataset string
- Default dataset name
- Num
Threads int - Number of threads to use
- Project
Id int - Project ID to create the BigQuery credential in
- Is
Active bool - Whether the BigQuery credential is active
- dataset String
- Default dataset name
- num
Threads Integer - Number of threads to use
- project
Id Integer - Project ID to create the BigQuery credential in
- is
Active Boolean - Whether the BigQuery credential is active
- dataset string
- Default dataset name
- num
Threads number - Number of threads to use
- project
Id number - Project ID to create the BigQuery credential in
- is
Active boolean - Whether the BigQuery credential is active
- dataset str
- Default dataset name
- num_
threads int - Number of threads to use
- project_
id int - Project ID to create the BigQuery credential in
- is_
active bool - Whether the BigQuery credential is active
- dataset String
- Default dataset name
- num
Threads Number - Number of threads to use
- project
Id Number - Project ID to create the BigQuery credential in
- is
Active Boolean - Whether the BigQuery credential is active
Outputs
All input properties are implicitly available as output properties. Additionally, the BigQueryCredential resource produces the following output properties:
- Credential
Id int - The system BigQuery credential ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Credential
Id int - The system BigQuery credential ID
- Id string
- The provider-assigned unique ID for this managed resource.
- credential
Id Integer - The system BigQuery credential ID
- id String
- The provider-assigned unique ID for this managed resource.
- credential
Id number - The system BigQuery credential ID
- id string
- The provider-assigned unique ID for this managed resource.
- credential_
id int - The system BigQuery credential ID
- id str
- The provider-assigned unique ID for this managed resource.
- credential
Id Number - The system BigQuery credential ID
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing BigQueryCredential Resource
Get an existing BigQueryCredential 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?: BigQueryCredentialState, opts?: CustomResourceOptions): BigQueryCredential
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
credential_id: Optional[int] = None,
dataset: Optional[str] = None,
is_active: Optional[bool] = None,
num_threads: Optional[int] = None,
project_id: Optional[int] = None) -> BigQueryCredential
func GetBigQueryCredential(ctx *Context, name string, id IDInput, state *BigQueryCredentialState, opts ...ResourceOption) (*BigQueryCredential, error)
public static BigQueryCredential Get(string name, Input<string> id, BigQueryCredentialState? state, CustomResourceOptions? opts = null)
public static BigQueryCredential get(String name, Output<String> id, BigQueryCredentialState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Credential
Id int - The system BigQuery credential ID
- Dataset string
- Default dataset name
- Is
Active bool - Whether the BigQuery credential is active
- Num
Threads int - Number of threads to use
- Project
Id int - Project ID to create the BigQuery credential in
- Credential
Id int - The system BigQuery credential ID
- Dataset string
- Default dataset name
- Is
Active bool - Whether the BigQuery credential is active
- Num
Threads int - Number of threads to use
- Project
Id int - Project ID to create the BigQuery credential in
- credential
Id Integer - The system BigQuery credential ID
- dataset String
- Default dataset name
- is
Active Boolean - Whether the BigQuery credential is active
- num
Threads Integer - Number of threads to use
- project
Id Integer - Project ID to create the BigQuery credential in
- credential
Id number - The system BigQuery credential ID
- dataset string
- Default dataset name
- is
Active boolean - Whether the BigQuery credential is active
- num
Threads number - Number of threads to use
- project
Id number - Project ID to create the BigQuery credential in
- credential_
id int - The system BigQuery credential ID
- dataset str
- Default dataset name
- is_
active bool - Whether the BigQuery credential is active
- num_
threads int - Number of threads to use
- project_
id int - Project ID to create the BigQuery credential in
- credential
Id Number - The system BigQuery credential ID
- dataset String
- Default dataset name
- is
Active Boolean - Whether the BigQuery credential is active
- num
Threads Number - Number of threads to use
- project
Id Number - Project ID to create the BigQuery credential in
Import
using import blocks (requires Terraform >= 1.5)
import {
to = dbtcloud_bigquery_credential.my_credential
id = “project_id:credential_id”
}
import {
to = dbtcloud_bigquery_credential.my_credential
id = “12345:5678”
}
using the older import command
$ pulumi import dbtcloud:index/bigQueryCredential:BigQueryCredential my_credential "project_id:credential_id"
$ pulumi import dbtcloud:index/bigQueryCredential:BigQueryCredential my_credential 12345:5678
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.