gcp.dataform.RepositoryWorkflowConfig
Explore with Pulumi AI
Example Usage
Dataform Repository Workflow Config
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const gitRepository = new gcp.sourcerepo.Repository("git_repository", {name: "my/repository"});
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 repository = new gcp.dataform.Repository("repository", {
name: "dataform_repository",
region: "us-central1",
gitRemoteSettings: {
url: gitRepository.url,
defaultBranch: "main",
authenticationTokenSecretVersion: secretVersion.id,
},
workspaceCompilationOverrides: {
defaultDatabase: "database",
schemaSuffix: "_suffix",
tablePrefix: "prefix_",
},
});
const releaseConfig = new gcp.dataform.RepositoryReleaseConfig("release_config", {
project: repository.project,
region: repository.region,
repository: repository.name,
name: "my_release",
gitCommitish: "main",
cronSchedule: "0 7 * * *",
timeZone: "America/New_York",
codeCompilationConfig: {
defaultDatabase: "gcp-example-project",
defaultSchema: "example-dataset",
defaultLocation: "us-central1",
assertionSchema: "example-assertion-dataset",
databaseSuffix: "",
schemaSuffix: "",
tablePrefix: "",
vars: {
var1: "value",
},
},
});
const dataformSa = new gcp.serviceaccount.Account("dataform_sa", {
accountId: "dataform-sa",
displayName: "Dataform Service Account",
});
const workflow = new gcp.dataform.RepositoryWorkflowConfig("workflow", {
project: repository.project,
region: repository.region,
repository: repository.name,
name: "my_workflow",
releaseConfig: releaseConfig.id,
invocationConfig: {
includedTargets: [
{
database: "gcp-example-project",
schema: "example-dataset",
name: "target_1",
},
{
database: "gcp-example-project",
schema: "example-dataset",
name: "target_2",
},
],
includedTags: ["tag_1"],
transitiveDependenciesIncluded: true,
transitiveDependentsIncluded: true,
fullyRefreshIncrementalTablesEnabled: false,
serviceAccount: dataformSa.email,
},
cronSchedule: "0 7 * * *",
timeZone: "America/New_York",
});
import pulumi
import pulumi_gcp as gcp
git_repository = gcp.sourcerepo.Repository("git_repository", name="my/repository")
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")
repository = gcp.dataform.Repository("repository",
name="dataform_repository",
region="us-central1",
git_remote_settings={
"url": git_repository.url,
"default_branch": "main",
"authentication_token_secret_version": secret_version.id,
},
workspace_compilation_overrides={
"default_database": "database",
"schema_suffix": "_suffix",
"table_prefix": "prefix_",
})
release_config = gcp.dataform.RepositoryReleaseConfig("release_config",
project=repository.project,
region=repository.region,
repository=repository.name,
name="my_release",
git_commitish="main",
cron_schedule="0 7 * * *",
time_zone="America/New_York",
code_compilation_config={
"default_database": "gcp-example-project",
"default_schema": "example-dataset",
"default_location": "us-central1",
"assertion_schema": "example-assertion-dataset",
"database_suffix": "",
"schema_suffix": "",
"table_prefix": "",
"vars": {
"var1": "value",
},
})
dataform_sa = gcp.serviceaccount.Account("dataform_sa",
account_id="dataform-sa",
display_name="Dataform Service Account")
workflow = gcp.dataform.RepositoryWorkflowConfig("workflow",
project=repository.project,
region=repository.region,
repository=repository.name,
name="my_workflow",
release_config=release_config.id,
invocation_config={
"included_targets": [
{
"database": "gcp-example-project",
"schema": "example-dataset",
"name": "target_1",
},
{
"database": "gcp-example-project",
"schema": "example-dataset",
"name": "target_2",
},
],
"included_tags": ["tag_1"],
"transitive_dependencies_included": True,
"transitive_dependents_included": True,
"fully_refresh_incremental_tables_enabled": False,
"service_account": dataform_sa.email,
},
cron_schedule="0 7 * * *",
time_zone="America/New_York")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/dataform"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/secretmanager"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/serviceaccount"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/sourcerepo"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
gitRepository, err := sourcerepo.NewRepository(ctx, "git_repository", &sourcerepo.RepositoryArgs{
Name: pulumi.String("my/repository"),
})
if err != nil {
return err
}
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
}
repository, err := dataform.NewRepository(ctx, "repository", &dataform.RepositoryArgs{
Name: pulumi.String("dataform_repository"),
Region: pulumi.String("us-central1"),
GitRemoteSettings: &dataform.RepositoryGitRemoteSettingsArgs{
Url: gitRepository.Url,
DefaultBranch: pulumi.String("main"),
AuthenticationTokenSecretVersion: secretVersion.ID(),
},
WorkspaceCompilationOverrides: &dataform.RepositoryWorkspaceCompilationOverridesArgs{
DefaultDatabase: pulumi.String("database"),
SchemaSuffix: pulumi.String("_suffix"),
TablePrefix: pulumi.String("prefix_"),
},
})
if err != nil {
return err
}
releaseConfig, err := dataform.NewRepositoryReleaseConfig(ctx, "release_config", &dataform.RepositoryReleaseConfigArgs{
Project: repository.Project,
Region: repository.Region,
Repository: repository.Name,
Name: pulumi.String("my_release"),
GitCommitish: pulumi.String("main"),
CronSchedule: pulumi.String("0 7 * * *"),
TimeZone: pulumi.String("America/New_York"),
CodeCompilationConfig: &dataform.RepositoryReleaseConfigCodeCompilationConfigArgs{
DefaultDatabase: pulumi.String("gcp-example-project"),
DefaultSchema: pulumi.String("example-dataset"),
DefaultLocation: pulumi.String("us-central1"),
AssertionSchema: pulumi.String("example-assertion-dataset"),
DatabaseSuffix: pulumi.String(""),
SchemaSuffix: pulumi.String(""),
TablePrefix: pulumi.String(""),
Vars: pulumi.StringMap{
"var1": pulumi.String("value"),
},
},
})
if err != nil {
return err
}
dataformSa, err := serviceaccount.NewAccount(ctx, "dataform_sa", &serviceaccount.AccountArgs{
AccountId: pulumi.String("dataform-sa"),
DisplayName: pulumi.String("Dataform Service Account"),
})
if err != nil {
return err
}
_, err = dataform.NewRepositoryWorkflowConfig(ctx, "workflow", &dataform.RepositoryWorkflowConfigArgs{
Project: repository.Project,
Region: repository.Region,
Repository: repository.Name,
Name: pulumi.String("my_workflow"),
ReleaseConfig: releaseConfig.ID(),
InvocationConfig: &dataform.RepositoryWorkflowConfigInvocationConfigArgs{
IncludedTargets: dataform.RepositoryWorkflowConfigInvocationConfigIncludedTargetArray{
&dataform.RepositoryWorkflowConfigInvocationConfigIncludedTargetArgs{
Database: pulumi.String("gcp-example-project"),
Schema: pulumi.String("example-dataset"),
Name: pulumi.String("target_1"),
},
&dataform.RepositoryWorkflowConfigInvocationConfigIncludedTargetArgs{
Database: pulumi.String("gcp-example-project"),
Schema: pulumi.String("example-dataset"),
Name: pulumi.String("target_2"),
},
},
IncludedTags: pulumi.StringArray{
pulumi.String("tag_1"),
},
TransitiveDependenciesIncluded: pulumi.Bool(true),
TransitiveDependentsIncluded: pulumi.Bool(true),
FullyRefreshIncrementalTablesEnabled: pulumi.Bool(false),
ServiceAccount: dataformSa.Email,
},
CronSchedule: pulumi.String("0 7 * * *"),
TimeZone: pulumi.String("America/New_York"),
})
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 gitRepository = new Gcp.SourceRepo.Repository("git_repository", new()
{
Name = "my/repository",
});
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 repository = new Gcp.Dataform.Repository("repository", new()
{
Name = "dataform_repository",
Region = "us-central1",
GitRemoteSettings = new Gcp.Dataform.Inputs.RepositoryGitRemoteSettingsArgs
{
Url = gitRepository.Url,
DefaultBranch = "main",
AuthenticationTokenSecretVersion = secretVersion.Id,
},
WorkspaceCompilationOverrides = new Gcp.Dataform.Inputs.RepositoryWorkspaceCompilationOverridesArgs
{
DefaultDatabase = "database",
SchemaSuffix = "_suffix",
TablePrefix = "prefix_",
},
});
var releaseConfig = new Gcp.Dataform.RepositoryReleaseConfig("release_config", new()
{
Project = repository.Project,
Region = repository.Region,
Repository = repository.Name,
Name = "my_release",
GitCommitish = "main",
CronSchedule = "0 7 * * *",
TimeZone = "America/New_York",
CodeCompilationConfig = new Gcp.Dataform.Inputs.RepositoryReleaseConfigCodeCompilationConfigArgs
{
DefaultDatabase = "gcp-example-project",
DefaultSchema = "example-dataset",
DefaultLocation = "us-central1",
AssertionSchema = "example-assertion-dataset",
DatabaseSuffix = "",
SchemaSuffix = "",
TablePrefix = "",
Vars =
{
{ "var1", "value" },
},
},
});
var dataformSa = new Gcp.ServiceAccount.Account("dataform_sa", new()
{
AccountId = "dataform-sa",
DisplayName = "Dataform Service Account",
});
var workflow = new Gcp.Dataform.RepositoryWorkflowConfig("workflow", new()
{
Project = repository.Project,
Region = repository.Region,
Repository = repository.Name,
Name = "my_workflow",
ReleaseConfig = releaseConfig.Id,
InvocationConfig = new Gcp.Dataform.Inputs.RepositoryWorkflowConfigInvocationConfigArgs
{
IncludedTargets = new[]
{
new Gcp.Dataform.Inputs.RepositoryWorkflowConfigInvocationConfigIncludedTargetArgs
{
Database = "gcp-example-project",
Schema = "example-dataset",
Name = "target_1",
},
new Gcp.Dataform.Inputs.RepositoryWorkflowConfigInvocationConfigIncludedTargetArgs
{
Database = "gcp-example-project",
Schema = "example-dataset",
Name = "target_2",
},
},
IncludedTags = new[]
{
"tag_1",
},
TransitiveDependenciesIncluded = true,
TransitiveDependentsIncluded = true,
FullyRefreshIncrementalTablesEnabled = false,
ServiceAccount = dataformSa.Email,
},
CronSchedule = "0 7 * * *",
TimeZone = "America/New_York",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.sourcerepo.Repository;
import com.pulumi.gcp.sourcerepo.RepositoryArgs;
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.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.gcp.dataform.RepositoryReleaseConfig;
import com.pulumi.gcp.dataform.RepositoryReleaseConfigArgs;
import com.pulumi.gcp.dataform.inputs.RepositoryReleaseConfigCodeCompilationConfigArgs;
import com.pulumi.gcp.serviceaccount.Account;
import com.pulumi.gcp.serviceaccount.AccountArgs;
import com.pulumi.gcp.dataform.RepositoryWorkflowConfig;
import com.pulumi.gcp.dataform.RepositoryWorkflowConfigArgs;
import com.pulumi.gcp.dataform.inputs.RepositoryWorkflowConfigInvocationConfigArgs;
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 gitRepository = new Repository("gitRepository", RepositoryArgs.builder()
.name("my/repository")
.build());
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 repository = new Repository("repository", RepositoryArgs.builder()
.name("dataform_repository")
.region("us-central1")
.gitRemoteSettings(RepositoryGitRemoteSettingsArgs.builder()
.url(gitRepository.url())
.defaultBranch("main")
.authenticationTokenSecretVersion(secretVersion.id())
.build())
.workspaceCompilationOverrides(RepositoryWorkspaceCompilationOverridesArgs.builder()
.defaultDatabase("database")
.schemaSuffix("_suffix")
.tablePrefix("prefix_")
.build())
.build());
var releaseConfig = new RepositoryReleaseConfig("releaseConfig", RepositoryReleaseConfigArgs.builder()
.project(repository.project())
.region(repository.region())
.repository(repository.name())
.name("my_release")
.gitCommitish("main")
.cronSchedule("0 7 * * *")
.timeZone("America/New_York")
.codeCompilationConfig(RepositoryReleaseConfigCodeCompilationConfigArgs.builder()
.defaultDatabase("gcp-example-project")
.defaultSchema("example-dataset")
.defaultLocation("us-central1")
.assertionSchema("example-assertion-dataset")
.databaseSuffix("")
.schemaSuffix("")
.tablePrefix("")
.vars(Map.of("var1", "value"))
.build())
.build());
var dataformSa = new Account("dataformSa", AccountArgs.builder()
.accountId("dataform-sa")
.displayName("Dataform Service Account")
.build());
var workflow = new RepositoryWorkflowConfig("workflow", RepositoryWorkflowConfigArgs.builder()
.project(repository.project())
.region(repository.region())
.repository(repository.name())
.name("my_workflow")
.releaseConfig(releaseConfig.id())
.invocationConfig(RepositoryWorkflowConfigInvocationConfigArgs.builder()
.includedTargets(
RepositoryWorkflowConfigInvocationConfigIncludedTargetArgs.builder()
.database("gcp-example-project")
.schema("example-dataset")
.name("target_1")
.build(),
RepositoryWorkflowConfigInvocationConfigIncludedTargetArgs.builder()
.database("gcp-example-project")
.schema("example-dataset")
.name("target_2")
.build())
.includedTags("tag_1")
.transitiveDependenciesIncluded(true)
.transitiveDependentsIncluded(true)
.fullyRefreshIncrementalTablesEnabled(false)
.serviceAccount(dataformSa.email())
.build())
.cronSchedule("0 7 * * *")
.timeZone("America/New_York")
.build());
}
}
resources:
gitRepository:
type: gcp:sourcerepo:Repository
name: git_repository
properties:
name: my/repository
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
repository:
type: gcp:dataform:Repository
properties:
name: dataform_repository
region: us-central1
gitRemoteSettings:
url: ${gitRepository.url}
defaultBranch: main
authenticationTokenSecretVersion: ${secretVersion.id}
workspaceCompilationOverrides:
defaultDatabase: database
schemaSuffix: _suffix
tablePrefix: prefix_
releaseConfig:
type: gcp:dataform:RepositoryReleaseConfig
name: release_config
properties:
project: ${repository.project}
region: ${repository.region}
repository: ${repository.name}
name: my_release
gitCommitish: main
cronSchedule: 0 7 * * *
timeZone: America/New_York
codeCompilationConfig:
defaultDatabase: gcp-example-project
defaultSchema: example-dataset
defaultLocation: us-central1
assertionSchema: example-assertion-dataset
databaseSuffix:
schemaSuffix:
tablePrefix:
vars:
var1: value
dataformSa:
type: gcp:serviceaccount:Account
name: dataform_sa
properties:
accountId: dataform-sa
displayName: Dataform Service Account
workflow:
type: gcp:dataform:RepositoryWorkflowConfig
properties:
project: ${repository.project}
region: ${repository.region}
repository: ${repository.name}
name: my_workflow
releaseConfig: ${releaseConfig.id}
invocationConfig:
includedTargets:
- database: gcp-example-project
schema: example-dataset
name: target_1
- database: gcp-example-project
schema: example-dataset
name: target_2
includedTags:
- tag_1
transitiveDependenciesIncluded: true
transitiveDependentsIncluded: true
fullyRefreshIncrementalTablesEnabled: false
serviceAccount: ${dataformSa.email}
cronSchedule: 0 7 * * *
timeZone: America/New_York
Create RepositoryWorkflowConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RepositoryWorkflowConfig(name: string, args: RepositoryWorkflowConfigArgs, opts?: CustomResourceOptions);
@overload
def RepositoryWorkflowConfig(resource_name: str,
args: RepositoryWorkflowConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RepositoryWorkflowConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
release_config: Optional[str] = None,
cron_schedule: Optional[str] = None,
invocation_config: Optional[RepositoryWorkflowConfigInvocationConfigArgs] = None,
name: Optional[str] = None,
project: Optional[str] = None,
region: Optional[str] = None,
repository: Optional[str] = None,
time_zone: Optional[str] = None)
func NewRepositoryWorkflowConfig(ctx *Context, name string, args RepositoryWorkflowConfigArgs, opts ...ResourceOption) (*RepositoryWorkflowConfig, error)
public RepositoryWorkflowConfig(string name, RepositoryWorkflowConfigArgs args, CustomResourceOptions? opts = null)
public RepositoryWorkflowConfig(String name, RepositoryWorkflowConfigArgs args)
public RepositoryWorkflowConfig(String name, RepositoryWorkflowConfigArgs args, CustomResourceOptions options)
type: gcp:dataform:RepositoryWorkflowConfig
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 RepositoryWorkflowConfigArgs
- 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 RepositoryWorkflowConfigArgs
- 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 RepositoryWorkflowConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RepositoryWorkflowConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RepositoryWorkflowConfigArgs
- 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 repositoryWorkflowConfigResource = new Gcp.Dataform.RepositoryWorkflowConfig("repositoryWorkflowConfigResource", new()
{
ReleaseConfig = "string",
CronSchedule = "string",
InvocationConfig = new Gcp.Dataform.Inputs.RepositoryWorkflowConfigInvocationConfigArgs
{
FullyRefreshIncrementalTablesEnabled = false,
IncludedTags = new[]
{
"string",
},
IncludedTargets = new[]
{
new Gcp.Dataform.Inputs.RepositoryWorkflowConfigInvocationConfigIncludedTargetArgs
{
Database = "string",
Name = "string",
Schema = "string",
},
},
ServiceAccount = "string",
TransitiveDependenciesIncluded = false,
TransitiveDependentsIncluded = false,
},
Name = "string",
Project = "string",
Region = "string",
Repository = "string",
TimeZone = "string",
});
example, err := dataform.NewRepositoryWorkflowConfig(ctx, "repositoryWorkflowConfigResource", &dataform.RepositoryWorkflowConfigArgs{
ReleaseConfig: pulumi.String("string"),
CronSchedule: pulumi.String("string"),
InvocationConfig: &dataform.RepositoryWorkflowConfigInvocationConfigArgs{
FullyRefreshIncrementalTablesEnabled: pulumi.Bool(false),
IncludedTags: pulumi.StringArray{
pulumi.String("string"),
},
IncludedTargets: dataform.RepositoryWorkflowConfigInvocationConfigIncludedTargetArray{
&dataform.RepositoryWorkflowConfigInvocationConfigIncludedTargetArgs{
Database: pulumi.String("string"),
Name: pulumi.String("string"),
Schema: pulumi.String("string"),
},
},
ServiceAccount: pulumi.String("string"),
TransitiveDependenciesIncluded: pulumi.Bool(false),
TransitiveDependentsIncluded: pulumi.Bool(false),
},
Name: pulumi.String("string"),
Project: pulumi.String("string"),
Region: pulumi.String("string"),
Repository: pulumi.String("string"),
TimeZone: pulumi.String("string"),
})
var repositoryWorkflowConfigResource = new RepositoryWorkflowConfig("repositoryWorkflowConfigResource", RepositoryWorkflowConfigArgs.builder()
.releaseConfig("string")
.cronSchedule("string")
.invocationConfig(RepositoryWorkflowConfigInvocationConfigArgs.builder()
.fullyRefreshIncrementalTablesEnabled(false)
.includedTags("string")
.includedTargets(RepositoryWorkflowConfigInvocationConfigIncludedTargetArgs.builder()
.database("string")
.name("string")
.schema("string")
.build())
.serviceAccount("string")
.transitiveDependenciesIncluded(false)
.transitiveDependentsIncluded(false)
.build())
.name("string")
.project("string")
.region("string")
.repository("string")
.timeZone("string")
.build());
repository_workflow_config_resource = gcp.dataform.RepositoryWorkflowConfig("repositoryWorkflowConfigResource",
release_config="string",
cron_schedule="string",
invocation_config={
"fullyRefreshIncrementalTablesEnabled": False,
"includedTags": ["string"],
"includedTargets": [{
"database": "string",
"name": "string",
"schema": "string",
}],
"serviceAccount": "string",
"transitiveDependenciesIncluded": False,
"transitiveDependentsIncluded": False,
},
name="string",
project="string",
region="string",
repository="string",
time_zone="string")
const repositoryWorkflowConfigResource = new gcp.dataform.RepositoryWorkflowConfig("repositoryWorkflowConfigResource", {
releaseConfig: "string",
cronSchedule: "string",
invocationConfig: {
fullyRefreshIncrementalTablesEnabled: false,
includedTags: ["string"],
includedTargets: [{
database: "string",
name: "string",
schema: "string",
}],
serviceAccount: "string",
transitiveDependenciesIncluded: false,
transitiveDependentsIncluded: false,
},
name: "string",
project: "string",
region: "string",
repository: "string",
timeZone: "string",
});
type: gcp:dataform:RepositoryWorkflowConfig
properties:
cronSchedule: string
invocationConfig:
fullyRefreshIncrementalTablesEnabled: false
includedTags:
- string
includedTargets:
- database: string
name: string
schema: string
serviceAccount: string
transitiveDependenciesIncluded: false
transitiveDependentsIncluded: false
name: string
project: string
region: string
releaseConfig: string
repository: string
timeZone: string
RepositoryWorkflowConfig 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 RepositoryWorkflowConfig resource accepts the following input properties:
- Release
Config string - The name of the release config whose releaseCompilationResult should be executed. Must be in the format projects//locations//repositories//releaseConfigs/.
- Cron
Schedule string - Optional. Optional schedule (in cron format) for automatic creation of compilation results.
- Invocation
Config RepositoryWorkflow Config Invocation Config - Optional. If left unset, a default InvocationConfig will be used. Structure is documented below.
- Name string
- The workflow's name.
- 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
- Repository string
- A reference to the Dataform repository
- Time
Zone string - Optional. Specifies the time zone to be used when interpreting cronSchedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If left unspecified, the default is UTC.
- Release
Config string - The name of the release config whose releaseCompilationResult should be executed. Must be in the format projects//locations//repositories//releaseConfigs/.
- Cron
Schedule string - Optional. Optional schedule (in cron format) for automatic creation of compilation results.
- Invocation
Config RepositoryWorkflow Config Invocation Config Args - Optional. If left unset, a default InvocationConfig will be used. Structure is documented below.
- Name string
- The workflow's name.
- 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
- Repository string
- A reference to the Dataform repository
- Time
Zone string - Optional. Specifies the time zone to be used when interpreting cronSchedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If left unspecified, the default is UTC.
- release
Config String - The name of the release config whose releaseCompilationResult should be executed. Must be in the format projects//locations//repositories//releaseConfigs/.
- cron
Schedule String - Optional. Optional schedule (in cron format) for automatic creation of compilation results.
- invocation
Config RepositoryWorkflow Config Invocation Config - Optional. If left unset, a default InvocationConfig will be used. Structure is documented below.
- name String
- The workflow's name.
- 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
- repository String
- A reference to the Dataform repository
- time
Zone String - Optional. Specifies the time zone to be used when interpreting cronSchedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If left unspecified, the default is UTC.
- release
Config string - The name of the release config whose releaseCompilationResult should be executed. Must be in the format projects//locations//repositories//releaseConfigs/.
- cron
Schedule string - Optional. Optional schedule (in cron format) for automatic creation of compilation results.
- invocation
Config RepositoryWorkflow Config Invocation Config - Optional. If left unset, a default InvocationConfig will be used. Structure is documented below.
- name string
- The workflow's name.
- 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
- repository string
- A reference to the Dataform repository
- time
Zone string - Optional. Specifies the time zone to be used when interpreting cronSchedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If left unspecified, the default is UTC.
- release_
config str - The name of the release config whose releaseCompilationResult should be executed. Must be in the format projects//locations//repositories//releaseConfigs/.
- cron_
schedule str - Optional. Optional schedule (in cron format) for automatic creation of compilation results.
- invocation_
config RepositoryWorkflow Config Invocation Config Args - Optional. If left unset, a default InvocationConfig will be used. Structure is documented below.
- name str
- The workflow's name.
- 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
- repository str
- A reference to the Dataform repository
- time_
zone str - Optional. Specifies the time zone to be used when interpreting cronSchedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If left unspecified, the default is UTC.
- release
Config String - The name of the release config whose releaseCompilationResult should be executed. Must be in the format projects//locations//repositories//releaseConfigs/.
- cron
Schedule String - Optional. Optional schedule (in cron format) for automatic creation of compilation results.
- invocation
Config Property Map - Optional. If left unset, a default InvocationConfig will be used. Structure is documented below.
- name String
- The workflow's name.
- 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
- repository String
- A reference to the Dataform repository
- time
Zone String - Optional. Specifies the time zone to be used when interpreting cronSchedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If left unspecified, the default is UTC.
Outputs
All input properties are implicitly available as output properties. Additionally, the RepositoryWorkflowConfig resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Recent
Scheduled List<RepositoryExecution Records Workflow Config Recent Scheduled Execution Record> - Records of the 10 most recent scheduled execution attempts, ordered in in descending order of executionTime. Updated whenever automatic creation of a workflow invocation is triggered by cronSchedule. Structure is documented below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Recent
Scheduled []RepositoryExecution Records Workflow Config Recent Scheduled Execution Record - Records of the 10 most recent scheduled execution attempts, ordered in in descending order of executionTime. Updated whenever automatic creation of a workflow invocation is triggered by cronSchedule. Structure is documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- recent
Scheduled List<RepositoryExecution Records Workflow Config Recent Scheduled Execution Record> - Records of the 10 most recent scheduled execution attempts, ordered in in descending order of executionTime. Updated whenever automatic creation of a workflow invocation is triggered by cronSchedule. Structure is documented below.
- id string
- The provider-assigned unique ID for this managed resource.
- recent
Scheduled RepositoryExecution Records Workflow Config Recent Scheduled Execution Record[] - Records of the 10 most recent scheduled execution attempts, ordered in in descending order of executionTime. Updated whenever automatic creation of a workflow invocation is triggered by cronSchedule. Structure is documented below.
- id str
- The provider-assigned unique ID for this managed resource.
- recent_
scheduled_ Sequence[Repositoryexecution_ records Workflow Config Recent Scheduled Execution Record] - Records of the 10 most recent scheduled execution attempts, ordered in in descending order of executionTime. Updated whenever automatic creation of a workflow invocation is triggered by cronSchedule. Structure is documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- recent
Scheduled List<Property Map>Execution Records - Records of the 10 most recent scheduled execution attempts, ordered in in descending order of executionTime. Updated whenever automatic creation of a workflow invocation is triggered by cronSchedule. Structure is documented below.
Look up Existing RepositoryWorkflowConfig Resource
Get an existing RepositoryWorkflowConfig 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?: RepositoryWorkflowConfigState, opts?: CustomResourceOptions): RepositoryWorkflowConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cron_schedule: Optional[str] = None,
invocation_config: Optional[RepositoryWorkflowConfigInvocationConfigArgs] = None,
name: Optional[str] = None,
project: Optional[str] = None,
recent_scheduled_execution_records: Optional[Sequence[RepositoryWorkflowConfigRecentScheduledExecutionRecordArgs]] = None,
region: Optional[str] = None,
release_config: Optional[str] = None,
repository: Optional[str] = None,
time_zone: Optional[str] = None) -> RepositoryWorkflowConfig
func GetRepositoryWorkflowConfig(ctx *Context, name string, id IDInput, state *RepositoryWorkflowConfigState, opts ...ResourceOption) (*RepositoryWorkflowConfig, error)
public static RepositoryWorkflowConfig Get(string name, Input<string> id, RepositoryWorkflowConfigState? state, CustomResourceOptions? opts = null)
public static RepositoryWorkflowConfig get(String name, Output<String> id, RepositoryWorkflowConfigState 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.
- Cron
Schedule string - Optional. Optional schedule (in cron format) for automatic creation of compilation results.
- Invocation
Config RepositoryWorkflow Config Invocation Config - Optional. If left unset, a default InvocationConfig will be used. Structure is documented below.
- Name string
- The workflow's name.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Recent
Scheduled List<RepositoryExecution Records Workflow Config Recent Scheduled Execution Record> - Records of the 10 most recent scheduled execution attempts, ordered in in descending order of executionTime. Updated whenever automatic creation of a workflow invocation is triggered by cronSchedule. Structure is documented below.
- Region string
- A reference to the region
- Release
Config string - The name of the release config whose releaseCompilationResult should be executed. Must be in the format projects//locations//repositories//releaseConfigs/.
- Repository string
- A reference to the Dataform repository
- Time
Zone string - Optional. Specifies the time zone to be used when interpreting cronSchedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If left unspecified, the default is UTC.
- Cron
Schedule string - Optional. Optional schedule (in cron format) for automatic creation of compilation results.
- Invocation
Config RepositoryWorkflow Config Invocation Config Args - Optional. If left unset, a default InvocationConfig will be used. Structure is documented below.
- Name string
- The workflow's name.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Recent
Scheduled []RepositoryExecution Records Workflow Config Recent Scheduled Execution Record Args - Records of the 10 most recent scheduled execution attempts, ordered in in descending order of executionTime. Updated whenever automatic creation of a workflow invocation is triggered by cronSchedule. Structure is documented below.
- Region string
- A reference to the region
- Release
Config string - The name of the release config whose releaseCompilationResult should be executed. Must be in the format projects//locations//repositories//releaseConfigs/.
- Repository string
- A reference to the Dataform repository
- Time
Zone string - Optional. Specifies the time zone to be used when interpreting cronSchedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If left unspecified, the default is UTC.
- cron
Schedule String - Optional. Optional schedule (in cron format) for automatic creation of compilation results.
- invocation
Config RepositoryWorkflow Config Invocation Config - Optional. If left unset, a default InvocationConfig will be used. Structure is documented below.
- name String
- The workflow's name.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- recent
Scheduled List<RepositoryExecution Records Workflow Config Recent Scheduled Execution Record> - Records of the 10 most recent scheduled execution attempts, ordered in in descending order of executionTime. Updated whenever automatic creation of a workflow invocation is triggered by cronSchedule. Structure is documented below.
- region String
- A reference to the region
- release
Config String - The name of the release config whose releaseCompilationResult should be executed. Must be in the format projects//locations//repositories//releaseConfigs/.
- repository String
- A reference to the Dataform repository
- time
Zone String - Optional. Specifies the time zone to be used when interpreting cronSchedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If left unspecified, the default is UTC.
- cron
Schedule string - Optional. Optional schedule (in cron format) for automatic creation of compilation results.
- invocation
Config RepositoryWorkflow Config Invocation Config - Optional. If left unset, a default InvocationConfig will be used. Structure is documented below.
- name string
- The workflow's name.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- recent
Scheduled RepositoryExecution Records Workflow Config Recent Scheduled Execution Record[] - Records of the 10 most recent scheduled execution attempts, ordered in in descending order of executionTime. Updated whenever automatic creation of a workflow invocation is triggered by cronSchedule. Structure is documented below.
- region string
- A reference to the region
- release
Config string - The name of the release config whose releaseCompilationResult should be executed. Must be in the format projects//locations//repositories//releaseConfigs/.
- repository string
- A reference to the Dataform repository
- time
Zone string - Optional. Specifies the time zone to be used when interpreting cronSchedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If left unspecified, the default is UTC.
- cron_
schedule str - Optional. Optional schedule (in cron format) for automatic creation of compilation results.
- invocation_
config RepositoryWorkflow Config Invocation Config Args - Optional. If left unset, a default InvocationConfig will be used. Structure is documented below.
- name str
- The workflow's name.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- recent_
scheduled_ Sequence[Repositoryexecution_ records Workflow Config Recent Scheduled Execution Record Args] - Records of the 10 most recent scheduled execution attempts, ordered in in descending order of executionTime. Updated whenever automatic creation of a workflow invocation is triggered by cronSchedule. Structure is documented below.
- region str
- A reference to the region
- release_
config str - The name of the release config whose releaseCompilationResult should be executed. Must be in the format projects//locations//repositories//releaseConfigs/.
- repository str
- A reference to the Dataform repository
- time_
zone str - Optional. Specifies the time zone to be used when interpreting cronSchedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If left unspecified, the default is UTC.
- cron
Schedule String - Optional. Optional schedule (in cron format) for automatic creation of compilation results.
- invocation
Config Property Map - Optional. If left unset, a default InvocationConfig will be used. Structure is documented below.
- name String
- The workflow's name.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- recent
Scheduled List<Property Map>Execution Records - Records of the 10 most recent scheduled execution attempts, ordered in in descending order of executionTime. Updated whenever automatic creation of a workflow invocation is triggered by cronSchedule. Structure is documented below.
- region String
- A reference to the region
- release
Config String - The name of the release config whose releaseCompilationResult should be executed. Must be in the format projects//locations//repositories//releaseConfigs/.
- repository String
- A reference to the Dataform repository
- time
Zone String - Optional. Specifies the time zone to be used when interpreting cronSchedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If left unspecified, the default is UTC.
Supporting Types
RepositoryWorkflowConfigInvocationConfig, RepositoryWorkflowConfigInvocationConfigArgs
- Fully
Refresh boolIncremental Tables Enabled - Optional. When set to true, any incremental tables will be fully refreshed.
- List<string>
- Optional. The set of tags to include.
- Included
Targets List<RepositoryWorkflow Config Invocation Config Included Target> - Optional. The set of action identifiers to include. Structure is documented below.
- Service
Account string - Optional. The service account to run workflow invocations under.
- Transitive
Dependencies boolIncluded - Optional. When set to true, transitive dependencies of included actions will be executed.
- Transitive
Dependents boolIncluded - Optional. When set to true, transitive dependents of included actions will be executed.
- Fully
Refresh boolIncremental Tables Enabled - Optional. When set to true, any incremental tables will be fully refreshed.
- []string
- Optional. The set of tags to include.
- Included
Targets []RepositoryWorkflow Config Invocation Config Included Target - Optional. The set of action identifiers to include. Structure is documented below.
- Service
Account string - Optional. The service account to run workflow invocations under.
- Transitive
Dependencies boolIncluded - Optional. When set to true, transitive dependencies of included actions will be executed.
- Transitive
Dependents boolIncluded - Optional. When set to true, transitive dependents of included actions will be executed.
- fully
Refresh BooleanIncremental Tables Enabled - Optional. When set to true, any incremental tables will be fully refreshed.
- List<String>
- Optional. The set of tags to include.
- included
Targets List<RepositoryWorkflow Config Invocation Config Included Target> - Optional. The set of action identifiers to include. Structure is documented below.
- service
Account String - Optional. The service account to run workflow invocations under.
- transitive
Dependencies BooleanIncluded - Optional. When set to true, transitive dependencies of included actions will be executed.
- transitive
Dependents BooleanIncluded - Optional. When set to true, transitive dependents of included actions will be executed.
- fully
Refresh booleanIncremental Tables Enabled - Optional. When set to true, any incremental tables will be fully refreshed.
- string[]
- Optional. The set of tags to include.
- included
Targets RepositoryWorkflow Config Invocation Config Included Target[] - Optional. The set of action identifiers to include. Structure is documented below.
- service
Account string - Optional. The service account to run workflow invocations under.
- transitive
Dependencies booleanIncluded - Optional. When set to true, transitive dependencies of included actions will be executed.
- transitive
Dependents booleanIncluded - Optional. When set to true, transitive dependents of included actions will be executed.
- fully_
refresh_ boolincremental_ tables_ enabled - Optional. When set to true, any incremental tables will be fully refreshed.
- Sequence[str]
- Optional. The set of tags to include.
- included_
targets Sequence[RepositoryWorkflow Config Invocation Config Included Target] - Optional. The set of action identifiers to include. Structure is documented below.
- service_
account str - Optional. The service account to run workflow invocations under.
- transitive_
dependencies_ boolincluded - Optional. When set to true, transitive dependencies of included actions will be executed.
- transitive_
dependents_ boolincluded - Optional. When set to true, transitive dependents of included actions will be executed.
- fully
Refresh BooleanIncremental Tables Enabled - Optional. When set to true, any incremental tables will be fully refreshed.
- List<String>
- Optional. The set of tags to include.
- included
Targets List<Property Map> - Optional. The set of action identifiers to include. Structure is documented below.
- service
Account String - Optional. The service account to run workflow invocations under.
- transitive
Dependencies BooleanIncluded - Optional. When set to true, transitive dependencies of included actions will be executed.
- transitive
Dependents BooleanIncluded - Optional. When set to true, transitive dependents of included actions will be executed.
RepositoryWorkflowConfigInvocationConfigIncludedTarget, RepositoryWorkflowConfigInvocationConfigIncludedTargetArgs
RepositoryWorkflowConfigRecentScheduledExecutionRecord, RepositoryWorkflowConfigRecentScheduledExecutionRecordArgs
- Error
Statuses List<RepositoryWorkflow Config Recent Scheduled Execution Record Error Status> - (Output) The error status encountered upon this attempt to create the workflow invocation, if the attempt was unsuccessful. Structure is documented below.
- Execution
Time string - (Output) The timestamp of this workflow attempt.
- Workflow
Invocation string - (Output) The name of the created workflow invocation, if one was successfully created. In the format projects//locations//repositories//workflowInvocations/.
- Error
Statuses []RepositoryWorkflow Config Recent Scheduled Execution Record Error Status - (Output) The error status encountered upon this attempt to create the workflow invocation, if the attempt was unsuccessful. Structure is documented below.
- Execution
Time string - (Output) The timestamp of this workflow attempt.
- Workflow
Invocation string - (Output) The name of the created workflow invocation, if one was successfully created. In the format projects//locations//repositories//workflowInvocations/.
- error
Statuses List<RepositoryWorkflow Config Recent Scheduled Execution Record Error Status> - (Output) The error status encountered upon this attempt to create the workflow invocation, if the attempt was unsuccessful. Structure is documented below.
- execution
Time String - (Output) The timestamp of this workflow attempt.
- workflow
Invocation String - (Output) The name of the created workflow invocation, if one was successfully created. In the format projects//locations//repositories//workflowInvocations/.
- error
Statuses RepositoryWorkflow Config Recent Scheduled Execution Record Error Status[] - (Output) The error status encountered upon this attempt to create the workflow invocation, if the attempt was unsuccessful. Structure is documented below.
- execution
Time string - (Output) The timestamp of this workflow attempt.
- workflow
Invocation string - (Output) The name of the created workflow invocation, if one was successfully created. In the format projects//locations//repositories//workflowInvocations/.
- error_
statuses Sequence[RepositoryWorkflow Config Recent Scheduled Execution Record Error Status] - (Output) The error status encountered upon this attempt to create the workflow invocation, if the attempt was unsuccessful. Structure is documented below.
- execution_
time str - (Output) The timestamp of this workflow attempt.
- workflow_
invocation str - (Output) The name of the created workflow invocation, if one was successfully created. In the format projects//locations//repositories//workflowInvocations/.
- error
Statuses List<Property Map> - (Output) The error status encountered upon this attempt to create the workflow invocation, if the attempt was unsuccessful. Structure is documented below.
- execution
Time String - (Output) The timestamp of this workflow attempt.
- workflow
Invocation String - (Output) The name of the created workflow invocation, if one was successfully created. In the format projects//locations//repositories//workflowInvocations/.
RepositoryWorkflowConfigRecentScheduledExecutionRecordErrorStatus, RepositoryWorkflowConfigRecentScheduledExecutionRecordErrorStatusArgs
Import
RepositoryWorkflowConfig can be imported using any of these accepted formats:
projects/{{project}}/locations/{{region}}/repositories/{{repository}}/workflowConfigs/{{name}}
{{project}}/{{region}}/{{repository}}/{{name}}
{{region}}/{{repository}}/{{name}}
{{repository}}/{{name}}
When using the pulumi import
command, RepositoryWorkflowConfig can be imported using one of the formats above. For example:
$ pulumi import gcp:dataform/repositoryWorkflowConfig:RepositoryWorkflowConfig default projects/{{project}}/locations/{{region}}/repositories/{{repository}}/workflowConfigs/{{name}}
$ pulumi import gcp:dataform/repositoryWorkflowConfig:RepositoryWorkflowConfig default {{project}}/{{region}}/{{repository}}/{{name}}
$ pulumi import gcp:dataform/repositoryWorkflowConfig:RepositoryWorkflowConfig default {{region}}/{{repository}}/{{name}}
$ pulumi import gcp:dataform/repositoryWorkflowConfig:RepositoryWorkflowConfig default {{repository}}/{{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.