gcp.dataform.Repository
Explore with Pulumi AI
Example Usage
Dataform Repository
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const secret = new gcp.secretmanager.Secret("secret", {
secretId: "my-secret",
replication: {
auto: {},
},
});
const secretVersion = new gcp.secretmanager.SecretVersion("secret_version", {
secret: secret.id,
secretData: "secret-data",
});
const keyring = new gcp.kms.KeyRing("keyring", {
name: "example-key-ring",
location: "us-central1",
});
const exampleKey = new gcp.kms.CryptoKey("example_key", {
name: "example-crypto-key-name",
keyRing: keyring.id,
});
const cryptoKeyBinding = new gcp.kms.CryptoKeyIAMBinding("crypto_key_binding", {
cryptoKeyId: exampleKey.id,
role: "roles/cloudkms.cryptoKeyEncrypterDecrypter",
members: [`serviceAccount:service-${project.number}@gcp-sa-dataform.iam.gserviceaccount.com`],
});
const dataformRepository = new gcp.dataform.Repository("dataform_repository", {
name: "dataform_repository",
displayName: "dataform_repository",
npmrcEnvironmentVariablesSecretVersion: secretVersion.id,
kmsKeyName: exampleKey.id,
labels: {
label_foo1: "label-bar1",
},
gitRemoteSettings: {
url: "https://github.com/OWNER/REPOSITORY.git",
defaultBranch: "main",
authenticationTokenSecretVersion: secretVersion.id,
},
workspaceCompilationOverrides: {
defaultDatabase: "database",
schemaSuffix: "_suffix",
tablePrefix: "prefix_",
},
}, {
dependsOn: [cryptoKeyBinding],
});
import pulumi
import pulumi_gcp as gcp
secret = gcp.secretmanager.Secret("secret",
secret_id="my-secret",
replication={
"auto": {},
})
secret_version = gcp.secretmanager.SecretVersion("secret_version",
secret=secret.id,
secret_data="secret-data")
keyring = gcp.kms.KeyRing("keyring",
name="example-key-ring",
location="us-central1")
example_key = gcp.kms.CryptoKey("example_key",
name="example-crypto-key-name",
key_ring=keyring.id)
crypto_key_binding = gcp.kms.CryptoKeyIAMBinding("crypto_key_binding",
crypto_key_id=example_key.id,
role="roles/cloudkms.cryptoKeyEncrypterDecrypter",
members=[f"serviceAccount:service-{project['number']}@gcp-sa-dataform.iam.gserviceaccount.com"])
dataform_repository = gcp.dataform.Repository("dataform_repository",
name="dataform_repository",
display_name="dataform_repository",
npmrc_environment_variables_secret_version=secret_version.id,
kms_key_name=example_key.id,
labels={
"label_foo1": "label-bar1",
},
git_remote_settings={
"url": "https://github.com/OWNER/REPOSITORY.git",
"default_branch": "main",
"authentication_token_secret_version": secret_version.id,
},
workspace_compilation_overrides={
"default_database": "database",
"schema_suffix": "_suffix",
"table_prefix": "prefix_",
},
opts = pulumi.ResourceOptions(depends_on=[crypto_key_binding]))
package main
import (
"fmt"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/dataform"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/kms"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/secretmanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
secret, err := secretmanager.NewSecret(ctx, "secret", &secretmanager.SecretArgs{
SecretId: pulumi.String("my-secret"),
Replication: &secretmanager.SecretReplicationArgs{
Auto: nil,
},
})
if err != nil {
return err
}
secretVersion, err := secretmanager.NewSecretVersion(ctx, "secret_version", &secretmanager.SecretVersionArgs{
Secret: secret.ID(),
SecretData: pulumi.String("secret-data"),
})
if err != nil {
return err
}
keyring, err := kms.NewKeyRing(ctx, "keyring", &kms.KeyRingArgs{
Name: pulumi.String("example-key-ring"),
Location: pulumi.String("us-central1"),
})
if err != nil {
return err
}
exampleKey, err := kms.NewCryptoKey(ctx, "example_key", &kms.CryptoKeyArgs{
Name: pulumi.String("example-crypto-key-name"),
KeyRing: keyring.ID(),
})
if err != nil {
return err
}
cryptoKeyBinding, err := kms.NewCryptoKeyIAMBinding(ctx, "crypto_key_binding", &kms.CryptoKeyIAMBindingArgs{
CryptoKeyId: exampleKey.ID(),
Role: pulumi.String("roles/cloudkms.cryptoKeyEncrypterDecrypter"),
Members: pulumi.StringArray{
pulumi.Sprintf("serviceAccount:service-%v@gcp-sa-dataform.iam.gserviceaccount.com", project.Number),
},
})
if err != nil {
return err
}
_, err = dataform.NewRepository(ctx, "dataform_repository", &dataform.RepositoryArgs{
Name: pulumi.String("dataform_repository"),
DisplayName: pulumi.String("dataform_repository"),
NpmrcEnvironmentVariablesSecretVersion: secretVersion.ID(),
KmsKeyName: exampleKey.ID(),
Labels: pulumi.StringMap{
"label_foo1": pulumi.String("label-bar1"),
},
GitRemoteSettings: &dataform.RepositoryGitRemoteSettingsArgs{
Url: pulumi.String("https://github.com/OWNER/REPOSITORY.git"),
DefaultBranch: pulumi.String("main"),
AuthenticationTokenSecretVersion: secretVersion.ID(),
},
WorkspaceCompilationOverrides: &dataform.RepositoryWorkspaceCompilationOverridesArgs{
DefaultDatabase: pulumi.String("database"),
SchemaSuffix: pulumi.String("_suffix"),
TablePrefix: pulumi.String("prefix_"),
},
}, pulumi.DependsOn([]pulumi.Resource{
cryptoKeyBinding,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var secret = new Gcp.SecretManager.Secret("secret", new()
{
SecretId = "my-secret",
Replication = new Gcp.SecretManager.Inputs.SecretReplicationArgs
{
Auto = null,
},
});
var secretVersion = new Gcp.SecretManager.SecretVersion("secret_version", new()
{
Secret = secret.Id,
SecretData = "secret-data",
});
var keyring = new Gcp.Kms.KeyRing("keyring", new()
{
Name = "example-key-ring",
Location = "us-central1",
});
var exampleKey = new Gcp.Kms.CryptoKey("example_key", new()
{
Name = "example-crypto-key-name",
KeyRing = keyring.Id,
});
var cryptoKeyBinding = new Gcp.Kms.CryptoKeyIAMBinding("crypto_key_binding", new()
{
CryptoKeyId = exampleKey.Id,
Role = "roles/cloudkms.cryptoKeyEncrypterDecrypter",
Members = new[]
{
$"serviceAccount:service-{project.Number}@gcp-sa-dataform.iam.gserviceaccount.com",
},
});
var dataformRepository = new Gcp.Dataform.Repository("dataform_repository", new()
{
Name = "dataform_repository",
DisplayName = "dataform_repository",
NpmrcEnvironmentVariablesSecretVersion = secretVersion.Id,
KmsKeyName = exampleKey.Id,
Labels =
{
{ "label_foo1", "label-bar1" },
},
GitRemoteSettings = new Gcp.Dataform.Inputs.RepositoryGitRemoteSettingsArgs
{
Url = "https://github.com/OWNER/REPOSITORY.git",
DefaultBranch = "main",
AuthenticationTokenSecretVersion = secretVersion.Id,
},
WorkspaceCompilationOverrides = new Gcp.Dataform.Inputs.RepositoryWorkspaceCompilationOverridesArgs
{
DefaultDatabase = "database",
SchemaSuffix = "_suffix",
TablePrefix = "prefix_",
},
}, new CustomResourceOptions
{
DependsOn =
{
cryptoKeyBinding,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.secretmanager.Secret;
import com.pulumi.gcp.secretmanager.SecretArgs;
import com.pulumi.gcp.secretmanager.inputs.SecretReplicationArgs;
import com.pulumi.gcp.secretmanager.inputs.SecretReplicationAutoArgs;
import com.pulumi.gcp.secretmanager.SecretVersion;
import com.pulumi.gcp.secretmanager.SecretVersionArgs;
import com.pulumi.gcp.kms.KeyRing;
import com.pulumi.gcp.kms.KeyRingArgs;
import com.pulumi.gcp.kms.CryptoKey;
import com.pulumi.gcp.kms.CryptoKeyArgs;
import com.pulumi.gcp.kms.CryptoKeyIAMBinding;
import com.pulumi.gcp.kms.CryptoKeyIAMBindingArgs;
import com.pulumi.gcp.dataform.Repository;
import com.pulumi.gcp.dataform.RepositoryArgs;
import com.pulumi.gcp.dataform.inputs.RepositoryGitRemoteSettingsArgs;
import com.pulumi.gcp.dataform.inputs.RepositoryWorkspaceCompilationOverridesArgs;
import com.pulumi.resources.CustomResourceOptions;
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 secret = new Secret("secret", SecretArgs.builder()
.secretId("my-secret")
.replication(SecretReplicationArgs.builder()
.auto()
.build())
.build());
var secretVersion = new SecretVersion("secretVersion", SecretVersionArgs.builder()
.secret(secret.id())
.secretData("secret-data")
.build());
var keyring = new KeyRing("keyring", KeyRingArgs.builder()
.name("example-key-ring")
.location("us-central1")
.build());
var exampleKey = new CryptoKey("exampleKey", CryptoKeyArgs.builder()
.name("example-crypto-key-name")
.keyRing(keyring.id())
.build());
var cryptoKeyBinding = new CryptoKeyIAMBinding("cryptoKeyBinding", CryptoKeyIAMBindingArgs.builder()
.cryptoKeyId(exampleKey.id())
.role("roles/cloudkms.cryptoKeyEncrypterDecrypter")
.members(String.format("serviceAccount:service-%s@gcp-sa-dataform.iam.gserviceaccount.com", project.number()))
.build());
var dataformRepository = new Repository("dataformRepository", RepositoryArgs.builder()
.name("dataform_repository")
.displayName("dataform_repository")
.npmrcEnvironmentVariablesSecretVersion(secretVersion.id())
.kmsKeyName(exampleKey.id())
.labels(Map.of("label_foo1", "label-bar1"))
.gitRemoteSettings(RepositoryGitRemoteSettingsArgs.builder()
.url("https://github.com/OWNER/REPOSITORY.git")
.defaultBranch("main")
.authenticationTokenSecretVersion(secretVersion.id())
.build())
.workspaceCompilationOverrides(RepositoryWorkspaceCompilationOverridesArgs.builder()
.defaultDatabase("database")
.schemaSuffix("_suffix")
.tablePrefix("prefix_")
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(cryptoKeyBinding)
.build());
}
}
resources:
secret:
type: gcp:secretmanager:Secret
properties:
secretId: my-secret
replication:
auto: {}
secretVersion:
type: gcp:secretmanager:SecretVersion
name: secret_version
properties:
secret: ${secret.id}
secretData: secret-data
keyring:
type: gcp:kms:KeyRing
properties:
name: example-key-ring
location: us-central1
exampleKey:
type: gcp:kms:CryptoKey
name: example_key
properties:
name: example-crypto-key-name
keyRing: ${keyring.id}
cryptoKeyBinding:
type: gcp:kms:CryptoKeyIAMBinding
name: crypto_key_binding
properties:
cryptoKeyId: ${exampleKey.id}
role: roles/cloudkms.cryptoKeyEncrypterDecrypter
members:
- serviceAccount:service-${project.number}@gcp-sa-dataform.iam.gserviceaccount.com
dataformRepository:
type: gcp:dataform:Repository
name: dataform_repository
properties:
name: dataform_repository
displayName: dataform_repository
npmrcEnvironmentVariablesSecretVersion: ${secretVersion.id}
kmsKeyName: ${exampleKey.id}
labels:
label_foo1: label-bar1
gitRemoteSettings:
url: https://github.com/OWNER/REPOSITORY.git
defaultBranch: main
authenticationTokenSecretVersion: ${secretVersion.id}
workspaceCompilationOverrides:
defaultDatabase: database
schemaSuffix: _suffix
tablePrefix: prefix_
options:
dependson:
- ${cryptoKeyBinding}
Create Repository Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Repository(name: string, args?: RepositoryArgs, opts?: CustomResourceOptions);
@overload
def Repository(resource_name: str,
args: Optional[RepositoryArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Repository(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
git_remote_settings: Optional[RepositoryGitRemoteSettingsArgs] = None,
kms_key_name: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
npmrc_environment_variables_secret_version: Optional[str] = None,
project: Optional[str] = None,
region: Optional[str] = None,
service_account: Optional[str] = None,
workspace_compilation_overrides: Optional[RepositoryWorkspaceCompilationOverridesArgs] = None)
func NewRepository(ctx *Context, name string, args *RepositoryArgs, opts ...ResourceOption) (*Repository, error)
public Repository(string name, RepositoryArgs? args = null, CustomResourceOptions? opts = null)
public Repository(String name, RepositoryArgs args)
public Repository(String name, RepositoryArgs args, CustomResourceOptions options)
type: gcp:dataform:Repository
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 RepositoryArgs
- 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 RepositoryArgs
- 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 RepositoryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RepositoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RepositoryArgs
- 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 examplerepositoryResourceResourceFromDataformrepository = new Gcp.Dataform.Repository("examplerepositoryResourceResourceFromDataformrepository", new()
{
DisplayName = "string",
GitRemoteSettings = new Gcp.Dataform.Inputs.RepositoryGitRemoteSettingsArgs
{
DefaultBranch = "string",
Url = "string",
AuthenticationTokenSecretVersion = "string",
SshAuthenticationConfig = new Gcp.Dataform.Inputs.RepositoryGitRemoteSettingsSshAuthenticationConfigArgs
{
HostPublicKey = "string",
UserPrivateKeySecretVersion = "string",
},
TokenStatus = "string",
},
KmsKeyName = "string",
Labels =
{
{ "string", "string" },
},
Name = "string",
NpmrcEnvironmentVariablesSecretVersion = "string",
Project = "string",
Region = "string",
ServiceAccount = "string",
WorkspaceCompilationOverrides = new Gcp.Dataform.Inputs.RepositoryWorkspaceCompilationOverridesArgs
{
DefaultDatabase = "string",
SchemaSuffix = "string",
TablePrefix = "string",
},
});
example, err := dataform.NewRepository(ctx, "examplerepositoryResourceResourceFromDataformrepository", &dataform.RepositoryArgs{
DisplayName: pulumi.String("string"),
GitRemoteSettings: &dataform.RepositoryGitRemoteSettingsArgs{
DefaultBranch: pulumi.String("string"),
Url: pulumi.String("string"),
AuthenticationTokenSecretVersion: pulumi.String("string"),
SshAuthenticationConfig: &dataform.RepositoryGitRemoteSettingsSshAuthenticationConfigArgs{
HostPublicKey: pulumi.String("string"),
UserPrivateKeySecretVersion: pulumi.String("string"),
},
TokenStatus: pulumi.String("string"),
},
KmsKeyName: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
NpmrcEnvironmentVariablesSecretVersion: pulumi.String("string"),
Project: pulumi.String("string"),
Region: pulumi.String("string"),
ServiceAccount: pulumi.String("string"),
WorkspaceCompilationOverrides: &dataform.RepositoryWorkspaceCompilationOverridesArgs{
DefaultDatabase: pulumi.String("string"),
SchemaSuffix: pulumi.String("string"),
TablePrefix: pulumi.String("string"),
},
})
var examplerepositoryResourceResourceFromDataformrepository = new Repository("examplerepositoryResourceResourceFromDataformrepository", RepositoryArgs.builder()
.displayName("string")
.gitRemoteSettings(RepositoryGitRemoteSettingsArgs.builder()
.defaultBranch("string")
.url("string")
.authenticationTokenSecretVersion("string")
.sshAuthenticationConfig(RepositoryGitRemoteSettingsSshAuthenticationConfigArgs.builder()
.hostPublicKey("string")
.userPrivateKeySecretVersion("string")
.build())
.tokenStatus("string")
.build())
.kmsKeyName("string")
.labels(Map.of("string", "string"))
.name("string")
.npmrcEnvironmentVariablesSecretVersion("string")
.project("string")
.region("string")
.serviceAccount("string")
.workspaceCompilationOverrides(RepositoryWorkspaceCompilationOverridesArgs.builder()
.defaultDatabase("string")
.schemaSuffix("string")
.tablePrefix("string")
.build())
.build());
examplerepository_resource_resource_from_dataformrepository = gcp.dataform.Repository("examplerepositoryResourceResourceFromDataformrepository",
display_name="string",
git_remote_settings={
"defaultBranch": "string",
"url": "string",
"authenticationTokenSecretVersion": "string",
"sshAuthenticationConfig": {
"hostPublicKey": "string",
"userPrivateKeySecretVersion": "string",
},
"tokenStatus": "string",
},
kms_key_name="string",
labels={
"string": "string",
},
name="string",
npmrc_environment_variables_secret_version="string",
project="string",
region="string",
service_account="string",
workspace_compilation_overrides={
"defaultDatabase": "string",
"schemaSuffix": "string",
"tablePrefix": "string",
})
const examplerepositoryResourceResourceFromDataformrepository = new gcp.dataform.Repository("examplerepositoryResourceResourceFromDataformrepository", {
displayName: "string",
gitRemoteSettings: {
defaultBranch: "string",
url: "string",
authenticationTokenSecretVersion: "string",
sshAuthenticationConfig: {
hostPublicKey: "string",
userPrivateKeySecretVersion: "string",
},
tokenStatus: "string",
},
kmsKeyName: "string",
labels: {
string: "string",
},
name: "string",
npmrcEnvironmentVariablesSecretVersion: "string",
project: "string",
region: "string",
serviceAccount: "string",
workspaceCompilationOverrides: {
defaultDatabase: "string",
schemaSuffix: "string",
tablePrefix: "string",
},
});
type: gcp:dataform:Repository
properties:
displayName: string
gitRemoteSettings:
authenticationTokenSecretVersion: string
defaultBranch: string
sshAuthenticationConfig:
hostPublicKey: string
userPrivateKeySecretVersion: string
tokenStatus: string
url: string
kmsKeyName: string
labels:
string: string
name: string
npmrcEnvironmentVariablesSecretVersion: string
project: string
region: string
serviceAccount: string
workspaceCompilationOverrides:
defaultDatabase: string
schemaSuffix: string
tablePrefix: string
Repository 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 Repository resource accepts the following input properties:
- Display
Name string - Optional. The repository's user-friendly name.
- Git
Remote RepositorySettings Git Remote Settings - Optional. If set, configures this repository to be linked to a Git remote. Structure is documented below.
- Kms
Key stringName - Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources. It is not possible to add or update the encryption key after the repository is created. Example projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
- Labels Dictionary<string, string>
Optional. Repository user labels. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Name string
- The repository's name.
- Npmrc
Environment stringVariables Secret Version - Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects//secrets//versions/*. The file itself must be in a JSON format.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
- A reference to the region
- Service
Account string - The service account to run workflow invocations under.
- Workspace
Compilation RepositoryOverrides Workspace Compilation Overrides - If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. Structure is documented below.
- Display
Name string - Optional. The repository's user-friendly name.
- Git
Remote RepositorySettings Git Remote Settings Args - Optional. If set, configures this repository to be linked to a Git remote. Structure is documented below.
- Kms
Key stringName - Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources. It is not possible to add or update the encryption key after the repository is created. Example projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
- Labels map[string]string
Optional. Repository user labels. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Name string
- The repository's name.
- Npmrc
Environment stringVariables Secret Version - Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects//secrets//versions/*. The file itself must be in a JSON format.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
- A reference to the region
- Service
Account string - The service account to run workflow invocations under.
- Workspace
Compilation RepositoryOverrides Workspace Compilation Overrides Args - If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. Structure is documented below.
- display
Name String - Optional. The repository's user-friendly name.
- git
Remote RepositorySettings Git Remote Settings - Optional. If set, configures this repository to be linked to a Git remote. Structure is documented below.
- kms
Key StringName - Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources. It is not possible to add or update the encryption key after the repository is created. Example projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
- labels Map<String,String>
Optional. Repository user labels. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name String
- The repository's name.
- npmrc
Environment StringVariables Secret Version - Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects//secrets//versions/*. The file itself must be in a JSON format.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region String
- A reference to the region
- service
Account String - The service account to run workflow invocations under.
- workspace
Compilation RepositoryOverrides Workspace Compilation Overrides - If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. Structure is documented below.
- display
Name string - Optional. The repository's user-friendly name.
- git
Remote RepositorySettings Git Remote Settings - Optional. If set, configures this repository to be linked to a Git remote. Structure is documented below.
- kms
Key stringName - Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources. It is not possible to add or update the encryption key after the repository is created. Example projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
- labels {[key: string]: string}
Optional. Repository user labels. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name string
- The repository's name.
- npmrc
Environment stringVariables Secret Version - Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects//secrets//versions/*. The file itself must be in a JSON format.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region string
- A reference to the region
- service
Account string - The service account to run workflow invocations under.
- workspace
Compilation RepositoryOverrides Workspace Compilation Overrides - If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. Structure is documented below.
- display_
name str - Optional. The repository's user-friendly name.
- git_
remote_ Repositorysettings Git Remote Settings Args - Optional. If set, configures this repository to be linked to a Git remote. Structure is documented below.
- kms_
key_ strname - Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources. It is not possible to add or update the encryption key after the repository is created. Example projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
- labels Mapping[str, str]
Optional. Repository user labels. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name str
- The repository's name.
- npmrc_
environment_ strvariables_ secret_ version - Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects//secrets//versions/*. The file itself must be in a JSON format.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region str
- A reference to the region
- service_
account str - The service account to run workflow invocations under.
- workspace_
compilation_ Repositoryoverrides Workspace Compilation Overrides Args - If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. Structure is documented below.
- display
Name String - Optional. The repository's user-friendly name.
- git
Remote Property MapSettings - Optional. If set, configures this repository to be linked to a Git remote. Structure is documented below.
- kms
Key StringName - Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources. It is not possible to add or update the encryption key after the repository is created. Example projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
- labels Map<String>
Optional. Repository user labels. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name String
- The repository's name.
- npmrc
Environment StringVariables Secret Version - Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects//secrets//versions/*. The file itself must be in a JSON format.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region String
- A reference to the region
- service
Account String - The service account to run workflow invocations under.
- workspace
Compilation Property MapOverrides - If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. Structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Repository resource produces the following output properties:
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id string
- The provider-assigned unique ID for this managed resource.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id str
- The provider-assigned unique ID for this managed resource.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
Look up Existing Repository Resource
Get an existing Repository 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?: RepositoryState, opts?: CustomResourceOptions): Repository
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
effective_labels: Optional[Mapping[str, str]] = None,
git_remote_settings: Optional[RepositoryGitRemoteSettingsArgs] = None,
kms_key_name: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
npmrc_environment_variables_secret_version: Optional[str] = None,
project: Optional[str] = None,
pulumi_labels: Optional[Mapping[str, str]] = None,
region: Optional[str] = None,
service_account: Optional[str] = None,
workspace_compilation_overrides: Optional[RepositoryWorkspaceCompilationOverridesArgs] = None) -> Repository
func GetRepository(ctx *Context, name string, id IDInput, state *RepositoryState, opts ...ResourceOption) (*Repository, error)
public static Repository Get(string name, Input<string> id, RepositoryState? state, CustomResourceOptions? opts = null)
public static Repository get(String name, Output<String> id, RepositoryState 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.
- Display
Name string - Optional. The repository's user-friendly name.
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Git
Remote RepositorySettings Git Remote Settings - Optional. If set, configures this repository to be linked to a Git remote. Structure is documented below.
- Kms
Key stringName - Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources. It is not possible to add or update the encryption key after the repository is created. Example projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
- Labels Dictionary<string, string>
Optional. Repository user labels. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Name string
- The repository's name.
- Npmrc
Environment stringVariables Secret Version - Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects//secrets//versions/*. The file itself must be in a JSON format.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Region string
- A reference to the region
- Service
Account string - The service account to run workflow invocations under.
- Workspace
Compilation RepositoryOverrides Workspace Compilation Overrides - If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. Structure is documented below.
- Display
Name string - Optional. The repository's user-friendly name.
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Git
Remote RepositorySettings Git Remote Settings Args - Optional. If set, configures this repository to be linked to a Git remote. Structure is documented below.
- Kms
Key stringName - Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources. It is not possible to add or update the encryption key after the repository is created. Example projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
- Labels map[string]string
Optional. Repository user labels. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Name string
- The repository's name.
- Npmrc
Environment stringVariables Secret Version - Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects//secrets//versions/*. The file itself must be in a JSON format.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Region string
- A reference to the region
- Service
Account string - The service account to run workflow invocations under.
- Workspace
Compilation RepositoryOverrides Workspace Compilation Overrides Args - If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. Structure is documented below.
- display
Name String - Optional. The repository's user-friendly name.
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- git
Remote RepositorySettings Git Remote Settings - Optional. If set, configures this repository to be linked to a Git remote. Structure is documented below.
- kms
Key StringName - Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources. It is not possible to add or update the encryption key after the repository is created. Example projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
- labels Map<String,String>
Optional. Repository user labels. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name String
- The repository's name.
- npmrc
Environment StringVariables Secret Version - Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects//secrets//versions/*. The file itself must be in a JSON format.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- region String
- A reference to the region
- service
Account String - The service account to run workflow invocations under.
- workspace
Compilation RepositoryOverrides Workspace Compilation Overrides - If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. Structure is documented below.
- display
Name string - Optional. The repository's user-friendly name.
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- git
Remote RepositorySettings Git Remote Settings - Optional. If set, configures this repository to be linked to a Git remote. Structure is documented below.
- kms
Key stringName - Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources. It is not possible to add or update the encryption key after the repository is created. Example projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
- labels {[key: string]: string}
Optional. Repository user labels. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name string
- The repository's name.
- npmrc
Environment stringVariables Secret Version - Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects//secrets//versions/*. The file itself must be in a JSON format.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- region string
- A reference to the region
- service
Account string - The service account to run workflow invocations under.
- workspace
Compilation RepositoryOverrides Workspace Compilation Overrides - If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. Structure is documented below.
- display_
name str - Optional. The repository's user-friendly name.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- git_
remote_ Repositorysettings Git Remote Settings Args - Optional. If set, configures this repository to be linked to a Git remote. Structure is documented below.
- kms_
key_ strname - Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources. It is not possible to add or update the encryption key after the repository is created. Example projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
- labels Mapping[str, str]
Optional. Repository user labels. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name str
- The repository's name.
- npmrc_
environment_ strvariables_ secret_ version - Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects//secrets//versions/*. The file itself must be in a JSON format.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- region str
- A reference to the region
- service_
account str - The service account to run workflow invocations under.
- workspace_
compilation_ Repositoryoverrides Workspace Compilation Overrides Args - If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. Structure is documented below.
- display
Name String - Optional. The repository's user-friendly name.
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- git
Remote Property MapSettings - Optional. If set, configures this repository to be linked to a Git remote. Structure is documented below.
- kms
Key StringName - Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources. It is not possible to add or update the encryption key after the repository is created. Example projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
- labels Map<String>
Optional. Repository user labels. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name String
- The repository's name.
- npmrc
Environment StringVariables Secret Version - Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects//secrets//versions/*. The file itself must be in a JSON format.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- region String
- A reference to the region
- service
Account String - The service account to run workflow invocations under.
- workspace
Compilation Property MapOverrides - If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results. Structure is documented below.
Supporting Types
RepositoryGitRemoteSettings, RepositoryGitRemoteSettingsArgs
- Default
Branch string - The Git remote's default branch name.
- Url string
- The Git remote's URL.
- Authentication
Token stringSecret Version - The name of the Secret Manager secret version to use as an authentication token for Git operations. This secret is for assigning with HTTPS only(for SSH use
ssh_authentication_config
). Must be in the format projects//secrets//versions/*. - Ssh
Authentication RepositoryConfig Git Remote Settings Ssh Authentication Config - Authentication fields for remote uris using SSH protocol. Structure is documented below.
- Token
Status string - (Output) Indicates the status of the Git access token. https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories#TokenStatus
- Default
Branch string - The Git remote's default branch name.
- Url string
- The Git remote's URL.
- Authentication
Token stringSecret Version - The name of the Secret Manager secret version to use as an authentication token for Git operations. This secret is for assigning with HTTPS only(for SSH use
ssh_authentication_config
). Must be in the format projects//secrets//versions/*. - Ssh
Authentication RepositoryConfig Git Remote Settings Ssh Authentication Config - Authentication fields for remote uris using SSH protocol. Structure is documented below.
- Token
Status string - (Output) Indicates the status of the Git access token. https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories#TokenStatus
- default
Branch String - The Git remote's default branch name.
- url String
- The Git remote's URL.
- authentication
Token StringSecret Version - The name of the Secret Manager secret version to use as an authentication token for Git operations. This secret is for assigning with HTTPS only(for SSH use
ssh_authentication_config
). Must be in the format projects//secrets//versions/*. - ssh
Authentication RepositoryConfig Git Remote Settings Ssh Authentication Config - Authentication fields for remote uris using SSH protocol. Structure is documented below.
- token
Status String - (Output) Indicates the status of the Git access token. https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories#TokenStatus
- default
Branch string - The Git remote's default branch name.
- url string
- The Git remote's URL.
- authentication
Token stringSecret Version - The name of the Secret Manager secret version to use as an authentication token for Git operations. This secret is for assigning with HTTPS only(for SSH use
ssh_authentication_config
). Must be in the format projects//secrets//versions/*. - ssh
Authentication RepositoryConfig Git Remote Settings Ssh Authentication Config - Authentication fields for remote uris using SSH protocol. Structure is documented below.
- token
Status string - (Output) Indicates the status of the Git access token. https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories#TokenStatus
- default_
branch str - The Git remote's default branch name.
- url str
- The Git remote's URL.
- authentication_
token_ strsecret_ version - The name of the Secret Manager secret version to use as an authentication token for Git operations. This secret is for assigning with HTTPS only(for SSH use
ssh_authentication_config
). Must be in the format projects//secrets//versions/*. - ssh_
authentication_ Repositoryconfig Git Remote Settings Ssh Authentication Config - Authentication fields for remote uris using SSH protocol. Structure is documented below.
- token_
status str - (Output) Indicates the status of the Git access token. https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories#TokenStatus
- default
Branch String - The Git remote's default branch name.
- url String
- The Git remote's URL.
- authentication
Token StringSecret Version - The name of the Secret Manager secret version to use as an authentication token for Git operations. This secret is for assigning with HTTPS only(for SSH use
ssh_authentication_config
). Must be in the format projects//secrets//versions/*. - ssh
Authentication Property MapConfig - Authentication fields for remote uris using SSH protocol. Structure is documented below.
- token
Status String - (Output) Indicates the status of the Git access token. https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories#TokenStatus
RepositoryGitRemoteSettingsSshAuthenticationConfig, RepositoryGitRemoteSettingsSshAuthenticationConfigArgs
- Host
Public stringKey - Content of a public SSH key to verify an identity of a remote Git host.
- User
Private stringKey Secret Version - The name of the Secret Manager secret version to use as a ssh private key for Git operations. Must be in the format projects//secrets//versions/*.
- Host
Public stringKey - Content of a public SSH key to verify an identity of a remote Git host.
- User
Private stringKey Secret Version - The name of the Secret Manager secret version to use as a ssh private key for Git operations. Must be in the format projects//secrets//versions/*.
- host
Public StringKey - Content of a public SSH key to verify an identity of a remote Git host.
- user
Private StringKey Secret Version - The name of the Secret Manager secret version to use as a ssh private key for Git operations. Must be in the format projects//secrets//versions/*.
- host
Public stringKey - Content of a public SSH key to verify an identity of a remote Git host.
- user
Private stringKey Secret Version - The name of the Secret Manager secret version to use as a ssh private key for Git operations. Must be in the format projects//secrets//versions/*.
- host_
public_ strkey - Content of a public SSH key to verify an identity of a remote Git host.
- user_
private_ strkey_ secret_ version - The name of the Secret Manager secret version to use as a ssh private key for Git operations. Must be in the format projects//secrets//versions/*.
- host
Public StringKey - Content of a public SSH key to verify an identity of a remote Git host.
- user
Private StringKey Secret Version - The name of the Secret Manager secret version to use as a ssh private key for Git operations. Must be in the format projects//secrets//versions/*.
RepositoryWorkspaceCompilationOverrides, RepositoryWorkspaceCompilationOverridesArgs
- Default
Database string - The default database (Google Cloud project ID).
- Schema
Suffix string - The suffix that should be appended to all schema (BigQuery dataset ID) names.
- Table
Prefix string - The prefix that should be prepended to all table names.
- Default
Database string - The default database (Google Cloud project ID).
- Schema
Suffix string - The suffix that should be appended to all schema (BigQuery dataset ID) names.
- Table
Prefix string - The prefix that should be prepended to all table names.
- default
Database String - The default database (Google Cloud project ID).
- schema
Suffix String - The suffix that should be appended to all schema (BigQuery dataset ID) names.
- table
Prefix String - The prefix that should be prepended to all table names.
- default
Database string - The default database (Google Cloud project ID).
- schema
Suffix string - The suffix that should be appended to all schema (BigQuery dataset ID) names.
- table
Prefix string - The prefix that should be prepended to all table names.
- default_
database str - The default database (Google Cloud project ID).
- schema_
suffix str - The suffix that should be appended to all schema (BigQuery dataset ID) names.
- table_
prefix str - The prefix that should be prepended to all table names.
- default
Database String - The default database (Google Cloud project ID).
- schema
Suffix String - The suffix that should be appended to all schema (BigQuery dataset ID) names.
- table
Prefix String - The prefix that should be prepended to all table names.
Import
Repository can be imported using any of these accepted formats:
projects/{{project}}/locations/{{region}}/repositories/{{name}}
{{project}}/{{region}}/{{name}}
{{region}}/{{name}}
{{name}}
When using the pulumi import
command, Repository can be imported using one of the formats above. For example:
$ pulumi import gcp:dataform/repository:Repository default projects/{{project}}/locations/{{region}}/repositories/{{name}}
$ pulumi import gcp:dataform/repository:Repository default {{project}}/{{region}}/{{name}}
$ pulumi import gcp:dataform/repository:Repository default {{region}}/{{name}}
$ pulumi import gcp:dataform/repository:Repository default {{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.