gcp.dataform.RepositoryReleaseConfig
Explore with Pulumi AI
Example Usage
Dataform Repository Release 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 release = new gcp.dataform.RepositoryReleaseConfig("release", {
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",
},
},
});
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 = gcp.dataform.RepositoryReleaseConfig("release",
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",
},
})
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/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: &secretmanager.SecretReplicationAutoArgs{},
},
})
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
}
_, err = dataform.NewRepositoryReleaseConfig(ctx, "release", &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
}
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 release = new Gcp.Dataform.RepositoryReleaseConfig("release", 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" },
},
},
});
});
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 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 release = new RepositoryReleaseConfig("release", 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());
}
}
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_
release:
type: gcp:dataform:RepositoryReleaseConfig
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
Create RepositoryReleaseConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RepositoryReleaseConfig(name: string, args: RepositoryReleaseConfigArgs, opts?: CustomResourceOptions);
@overload
def RepositoryReleaseConfig(resource_name: str,
args: RepositoryReleaseConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RepositoryReleaseConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
git_commitish: Optional[str] = None,
code_compilation_config: Optional[RepositoryReleaseConfigCodeCompilationConfigArgs] = None,
cron_schedule: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
region: Optional[str] = None,
repository: Optional[str] = None,
time_zone: Optional[str] = None)
func NewRepositoryReleaseConfig(ctx *Context, name string, args RepositoryReleaseConfigArgs, opts ...ResourceOption) (*RepositoryReleaseConfig, error)
public RepositoryReleaseConfig(string name, RepositoryReleaseConfigArgs args, CustomResourceOptions? opts = null)
public RepositoryReleaseConfig(String name, RepositoryReleaseConfigArgs args)
public RepositoryReleaseConfig(String name, RepositoryReleaseConfigArgs args, CustomResourceOptions options)
type: gcp:dataform:RepositoryReleaseConfig
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 RepositoryReleaseConfigArgs
- 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 RepositoryReleaseConfigArgs
- 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 RepositoryReleaseConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RepositoryReleaseConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RepositoryReleaseConfigArgs
- 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 repositoryReleaseConfigResource = new Gcp.Dataform.RepositoryReleaseConfig("repositoryReleaseConfigResource", new()
{
GitCommitish = "string",
CodeCompilationConfig = new Gcp.Dataform.Inputs.RepositoryReleaseConfigCodeCompilationConfigArgs
{
AssertionSchema = "string",
DatabaseSuffix = "string",
DefaultDatabase = "string",
DefaultLocation = "string",
DefaultSchema = "string",
SchemaSuffix = "string",
TablePrefix = "string",
Vars =
{
{ "string", "string" },
},
},
CronSchedule = "string",
Name = "string",
Project = "string",
Region = "string",
Repository = "string",
TimeZone = "string",
});
example, err := dataform.NewRepositoryReleaseConfig(ctx, "repositoryReleaseConfigResource", &dataform.RepositoryReleaseConfigArgs{
GitCommitish: pulumi.String("string"),
CodeCompilationConfig: &dataform.RepositoryReleaseConfigCodeCompilationConfigArgs{
AssertionSchema: pulumi.String("string"),
DatabaseSuffix: pulumi.String("string"),
DefaultDatabase: pulumi.String("string"),
DefaultLocation: pulumi.String("string"),
DefaultSchema: pulumi.String("string"),
SchemaSuffix: pulumi.String("string"),
TablePrefix: pulumi.String("string"),
Vars: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
CronSchedule: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
Region: pulumi.String("string"),
Repository: pulumi.String("string"),
TimeZone: pulumi.String("string"),
})
var repositoryReleaseConfigResource = new RepositoryReleaseConfig("repositoryReleaseConfigResource", RepositoryReleaseConfigArgs.builder()
.gitCommitish("string")
.codeCompilationConfig(RepositoryReleaseConfigCodeCompilationConfigArgs.builder()
.assertionSchema("string")
.databaseSuffix("string")
.defaultDatabase("string")
.defaultLocation("string")
.defaultSchema("string")
.schemaSuffix("string")
.tablePrefix("string")
.vars(Map.of("string", "string"))
.build())
.cronSchedule("string")
.name("string")
.project("string")
.region("string")
.repository("string")
.timeZone("string")
.build());
repository_release_config_resource = gcp.dataform.RepositoryReleaseConfig("repositoryReleaseConfigResource",
git_commitish="string",
code_compilation_config={
"assertion_schema": "string",
"database_suffix": "string",
"default_database": "string",
"default_location": "string",
"default_schema": "string",
"schema_suffix": "string",
"table_prefix": "string",
"vars": {
"string": "string",
},
},
cron_schedule="string",
name="string",
project="string",
region="string",
repository="string",
time_zone="string")
const repositoryReleaseConfigResource = new gcp.dataform.RepositoryReleaseConfig("repositoryReleaseConfigResource", {
gitCommitish: "string",
codeCompilationConfig: {
assertionSchema: "string",
databaseSuffix: "string",
defaultDatabase: "string",
defaultLocation: "string",
defaultSchema: "string",
schemaSuffix: "string",
tablePrefix: "string",
vars: {
string: "string",
},
},
cronSchedule: "string",
name: "string",
project: "string",
region: "string",
repository: "string",
timeZone: "string",
});
type: gcp:dataform:RepositoryReleaseConfig
properties:
codeCompilationConfig:
assertionSchema: string
databaseSuffix: string
defaultDatabase: string
defaultLocation: string
defaultSchema: string
schemaSuffix: string
tablePrefix: string
vars:
string: string
cronSchedule: string
gitCommitish: string
name: string
project: string
region: string
repository: string
timeZone: string
RepositoryReleaseConfig Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The RepositoryReleaseConfig resource accepts the following input properties:
- Git
Commitish string - Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository.
- Code
Compilation RepositoryConfig Release Config Code Compilation Config - Optional. If set, fields of codeCompilationConfig override the default compilation settings that are specified in dataform.json. Structure is documented below.
- Cron
Schedule string - Optional. Optional schedule (in cron format) for automatic creation of compilation results.
- Name string
- The release'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.
- Git
Commitish string - Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository.
- Code
Compilation RepositoryConfig Release Config Code Compilation Config Args - Optional. If set, fields of codeCompilationConfig override the default compilation settings that are specified in dataform.json. Structure is documented below.
- Cron
Schedule string - Optional. Optional schedule (in cron format) for automatic creation of compilation results.
- Name string
- The release'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.
- git
Commitish String - Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository.
- code
Compilation RepositoryConfig Release Config Code Compilation Config - Optional. If set, fields of codeCompilationConfig override the default compilation settings that are specified in dataform.json. Structure is documented below.
- cron
Schedule String - Optional. Optional schedule (in cron format) for automatic creation of compilation results.
- name String
- The release'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.
- git
Commitish string - Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository.
- code
Compilation RepositoryConfig Release Config Code Compilation Config - Optional. If set, fields of codeCompilationConfig override the default compilation settings that are specified in dataform.json. Structure is documented below.
- cron
Schedule string - Optional. Optional schedule (in cron format) for automatic creation of compilation results.
- name string
- The release'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.
- git_
commitish str - Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository.
- code_
compilation_ Repositoryconfig Release Config Code Compilation Config Args - Optional. If set, fields of codeCompilationConfig override the default compilation settings that are specified in dataform.json. Structure is documented below.
- cron_
schedule str - Optional. Optional schedule (in cron format) for automatic creation of compilation results.
- name str
- The release'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.
- git
Commitish String - Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository.
- code
Compilation Property MapConfig - Optional. If set, fields of codeCompilationConfig override the default compilation settings that are specified in dataform.json. Structure is documented below.
- cron
Schedule String - Optional. Optional schedule (in cron format) for automatic creation of compilation results.
- name String
- The release'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 RepositoryReleaseConfig resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Recent
Scheduled List<RepositoryRelease Records Release Config Recent Scheduled Release Record> - Records of the 10 most recent scheduled release attempts, ordered in in descending order of releaseTime. Updated whenever automatic creation of a compilation result is triggered by cronSchedule. Structure is documented below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Recent
Scheduled []RepositoryRelease Records Release Config Recent Scheduled Release Record - Records of the 10 most recent scheduled release attempts, ordered in in descending order of releaseTime. Updated whenever automatic creation of a compilation result is triggered by cronSchedule. Structure is documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- recent
Scheduled List<RepositoryRelease Records Release Config Recent Scheduled Release Record> - Records of the 10 most recent scheduled release attempts, ordered in in descending order of releaseTime. Updated whenever automatic creation of a compilation result is triggered by cronSchedule. Structure is documented below.
- id string
- The provider-assigned unique ID for this managed resource.
- recent
Scheduled RepositoryRelease Records Release Config Recent Scheduled Release Record[] - Records of the 10 most recent scheduled release attempts, ordered in in descending order of releaseTime. Updated whenever automatic creation of a compilation result is triggered by cronSchedule. Structure is documented below.
- id str
- The provider-assigned unique ID for this managed resource.
- recent_
scheduled_ Sequence[Repositoryrelease_ records Release Config Recent Scheduled Release Record] - Records of the 10 most recent scheduled release attempts, ordered in in descending order of releaseTime. Updated whenever automatic creation of a compilation result is triggered by cronSchedule. Structure is documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- recent
Scheduled List<Property Map>Release Records - Records of the 10 most recent scheduled release attempts, ordered in in descending order of releaseTime. Updated whenever automatic creation of a compilation result is triggered by cronSchedule. Structure is documented below.
Look up Existing RepositoryReleaseConfig Resource
Get an existing RepositoryReleaseConfig 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?: RepositoryReleaseConfigState, opts?: CustomResourceOptions): RepositoryReleaseConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
code_compilation_config: Optional[RepositoryReleaseConfigCodeCompilationConfigArgs] = None,
cron_schedule: Optional[str] = None,
git_commitish: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
recent_scheduled_release_records: Optional[Sequence[RepositoryReleaseConfigRecentScheduledReleaseRecordArgs]] = None,
region: Optional[str] = None,
repository: Optional[str] = None,
time_zone: Optional[str] = None) -> RepositoryReleaseConfig
func GetRepositoryReleaseConfig(ctx *Context, name string, id IDInput, state *RepositoryReleaseConfigState, opts ...ResourceOption) (*RepositoryReleaseConfig, error)
public static RepositoryReleaseConfig Get(string name, Input<string> id, RepositoryReleaseConfigState? state, CustomResourceOptions? opts = null)
public static RepositoryReleaseConfig get(String name, Output<String> id, RepositoryReleaseConfigState 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.
- Code
Compilation RepositoryConfig Release Config Code Compilation Config - Optional. If set, fields of codeCompilationConfig override the default compilation settings that are specified in dataform.json. Structure is documented below.
- Cron
Schedule string - Optional. Optional schedule (in cron format) for automatic creation of compilation results.
- Git
Commitish string - Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository.
- Name string
- The release'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<RepositoryRelease Records Release Config Recent Scheduled Release Record> - Records of the 10 most recent scheduled release attempts, ordered in in descending order of releaseTime. Updated whenever automatic creation of a compilation result is triggered by cronSchedule. Structure is documented below.
- 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.
- Code
Compilation RepositoryConfig Release Config Code Compilation Config Args - Optional. If set, fields of codeCompilationConfig override the default compilation settings that are specified in dataform.json. Structure is documented below.
- Cron
Schedule string - Optional. Optional schedule (in cron format) for automatic creation of compilation results.
- Git
Commitish string - Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository.
- Name string
- The release'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 []RepositoryRelease Records Release Config Recent Scheduled Release Record Args - Records of the 10 most recent scheduled release attempts, ordered in in descending order of releaseTime. Updated whenever automatic creation of a compilation result is triggered by cronSchedule. Structure is documented below.
- 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.
- code
Compilation RepositoryConfig Release Config Code Compilation Config - Optional. If set, fields of codeCompilationConfig override the default compilation settings that are specified in dataform.json. Structure is documented below.
- cron
Schedule String - Optional. Optional schedule (in cron format) for automatic creation of compilation results.
- git
Commitish String - Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository.
- name String
- The release'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<RepositoryRelease Records Release Config Recent Scheduled Release Record> - Records of the 10 most recent scheduled release attempts, ordered in in descending order of releaseTime. Updated whenever automatic creation of a compilation result is triggered by cronSchedule. Structure is documented below.
- 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.
- code
Compilation RepositoryConfig Release Config Code Compilation Config - Optional. If set, fields of codeCompilationConfig override the default compilation settings that are specified in dataform.json. Structure is documented below.
- cron
Schedule string - Optional. Optional schedule (in cron format) for automatic creation of compilation results.
- git
Commitish string - Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository.
- name string
- The release'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 RepositoryRelease Records Release Config Recent Scheduled Release Record[] - Records of the 10 most recent scheduled release attempts, ordered in in descending order of releaseTime. Updated whenever automatic creation of a compilation result is triggered by cronSchedule. Structure is documented below.
- 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.
- code_
compilation_ Repositoryconfig Release Config Code Compilation Config Args - Optional. If set, fields of codeCompilationConfig override the default compilation settings that are specified in dataform.json. Structure is documented below.
- cron_
schedule str - Optional. Optional schedule (in cron format) for automatic creation of compilation results.
- git_
commitish str - Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository.
- name str
- The release'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[Repositoryrelease_ records Release Config Recent Scheduled Release Record Args] - Records of the 10 most recent scheduled release attempts, ordered in in descending order of releaseTime. Updated whenever automatic creation of a compilation result is triggered by cronSchedule. Structure is documented below.
- 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.
- code
Compilation Property MapConfig - Optional. If set, fields of codeCompilationConfig override the default compilation settings that are specified in dataform.json. Structure is documented below.
- cron
Schedule String - Optional. Optional schedule (in cron format) for automatic creation of compilation results.
- git
Commitish String - Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository.
- name String
- The release'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>Release Records - Records of the 10 most recent scheduled release attempts, ordered in in descending order of releaseTime. Updated whenever automatic creation of a compilation result is triggered by cronSchedule. Structure is documented below.
- 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.
Supporting Types
RepositoryReleaseConfigCodeCompilationConfig, RepositoryReleaseConfigCodeCompilationConfigArgs
- Assertion
Schema string - Optional. The default schema (BigQuery dataset ID) for assertions.
- Database
Suffix string - Optional. The suffix that should be appended to all database (Google Cloud project ID) names.
- Default
Database string - Optional. The default database (Google Cloud project ID).
- Default
Location string - Optional. The default BigQuery location to use. Defaults to "US". See the BigQuery docs for a full list of locations: https://cloud.google.com/bigquery/docs/locations.
- Default
Schema string - Optional. The default schema (BigQuery dataset ID).
- Schema
Suffix string - Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names.
- Table
Prefix string - Optional. The prefix that should be prepended to all table names.
- Vars Dictionary<string, string>
- Optional. User-defined variables that are made available to project code during compilation. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
- Assertion
Schema string - Optional. The default schema (BigQuery dataset ID) for assertions.
- Database
Suffix string - Optional. The suffix that should be appended to all database (Google Cloud project ID) names.
- Default
Database string - Optional. The default database (Google Cloud project ID).
- Default
Location string - Optional. The default BigQuery location to use. Defaults to "US". See the BigQuery docs for a full list of locations: https://cloud.google.com/bigquery/docs/locations.
- Default
Schema string - Optional. The default schema (BigQuery dataset ID).
- Schema
Suffix string - Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names.
- Table
Prefix string - Optional. The prefix that should be prepended to all table names.
- Vars map[string]string
- Optional. User-defined variables that are made available to project code during compilation. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
- assertion
Schema String - Optional. The default schema (BigQuery dataset ID) for assertions.
- database
Suffix String - Optional. The suffix that should be appended to all database (Google Cloud project ID) names.
- default
Database String - Optional. The default database (Google Cloud project ID).
- default
Location String - Optional. The default BigQuery location to use. Defaults to "US". See the BigQuery docs for a full list of locations: https://cloud.google.com/bigquery/docs/locations.
- default
Schema String - Optional. The default schema (BigQuery dataset ID).
- schema
Suffix String - Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names.
- table
Prefix String - Optional. The prefix that should be prepended to all table names.
- vars Map<String,String>
- Optional. User-defined variables that are made available to project code during compilation. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
- assertion
Schema string - Optional. The default schema (BigQuery dataset ID) for assertions.
- database
Suffix string - Optional. The suffix that should be appended to all database (Google Cloud project ID) names.
- default
Database string - Optional. The default database (Google Cloud project ID).
- default
Location string - Optional. The default BigQuery location to use. Defaults to "US". See the BigQuery docs for a full list of locations: https://cloud.google.com/bigquery/docs/locations.
- default
Schema string - Optional. The default schema (BigQuery dataset ID).
- schema
Suffix string - Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names.
- table
Prefix string - Optional. The prefix that should be prepended to all table names.
- vars {[key: string]: string}
- Optional. User-defined variables that are made available to project code during compilation. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
- assertion_
schema str - Optional. The default schema (BigQuery dataset ID) for assertions.
- database_
suffix str - Optional. The suffix that should be appended to all database (Google Cloud project ID) names.
- default_
database str - Optional. The default database (Google Cloud project ID).
- default_
location str - Optional. The default BigQuery location to use. Defaults to "US". See the BigQuery docs for a full list of locations: https://cloud.google.com/bigquery/docs/locations.
- default_
schema str - Optional. The default schema (BigQuery dataset ID).
- schema_
suffix str - Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names.
- table_
prefix str - Optional. The prefix that should be prepended to all table names.
- vars Mapping[str, str]
- Optional. User-defined variables that are made available to project code during compilation. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
- assertion
Schema String - Optional. The default schema (BigQuery dataset ID) for assertions.
- database
Suffix String - Optional. The suffix that should be appended to all database (Google Cloud project ID) names.
- default
Database String - Optional. The default database (Google Cloud project ID).
- default
Location String - Optional. The default BigQuery location to use. Defaults to "US". See the BigQuery docs for a full list of locations: https://cloud.google.com/bigquery/docs/locations.
- default
Schema String - Optional. The default schema (BigQuery dataset ID).
- schema
Suffix String - Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names.
- table
Prefix String - Optional. The prefix that should be prepended to all table names.
- vars Map<String>
- Optional. User-defined variables that are made available to project code during compilation. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
RepositoryReleaseConfigRecentScheduledReleaseRecord, RepositoryReleaseConfigRecentScheduledReleaseRecordArgs
- Compilation
Result string - (Output) The name of the created compilation result, if one was successfully created. Must be in the format projects//locations//repositories//compilationResults/.
- Error
Statuses List<RepositoryRelease Config Recent Scheduled Release Record Error Status> - (Output) The error status encountered upon this attempt to create the compilation result, if the attempt was unsuccessful. Structure is documented below.
- Release
Time string - (Output) The timestamp of this release attempt.
- Compilation
Result string - (Output) The name of the created compilation result, if one was successfully created. Must be in the format projects//locations//repositories//compilationResults/.
- Error
Statuses []RepositoryRelease Config Recent Scheduled Release Record Error Status - (Output) The error status encountered upon this attempt to create the compilation result, if the attempt was unsuccessful. Structure is documented below.
- Release
Time string - (Output) The timestamp of this release attempt.
- compilation
Result String - (Output) The name of the created compilation result, if one was successfully created. Must be in the format projects//locations//repositories//compilationResults/.
- error
Statuses List<RepositoryRelease Config Recent Scheduled Release Record Error Status> - (Output) The error status encountered upon this attempt to create the compilation result, if the attempt was unsuccessful. Structure is documented below.
- release
Time String - (Output) The timestamp of this release attempt.
- compilation
Result string - (Output) The name of the created compilation result, if one was successfully created. Must be in the format projects//locations//repositories//compilationResults/.
- error
Statuses RepositoryRelease Config Recent Scheduled Release Record Error Status[] - (Output) The error status encountered upon this attempt to create the compilation result, if the attempt was unsuccessful. Structure is documented below.
- release
Time string - (Output) The timestamp of this release attempt.
- compilation_
result str - (Output) The name of the created compilation result, if one was successfully created. Must be in the format projects//locations//repositories//compilationResults/.
- error_
statuses Sequence[RepositoryRelease Config Recent Scheduled Release Record Error Status] - (Output) The error status encountered upon this attempt to create the compilation result, if the attempt was unsuccessful. Structure is documented below.
- release_
time str - (Output) The timestamp of this release attempt.
- compilation
Result String - (Output) The name of the created compilation result, if one was successfully created. Must be in the format projects//locations//repositories//compilationResults/.
- error
Statuses List<Property Map> - (Output) The error status encountered upon this attempt to create the compilation result, if the attempt was unsuccessful. Structure is documented below.
- release
Time String - (Output) The timestamp of this release attempt.
RepositoryReleaseConfigRecentScheduledReleaseRecordErrorStatus, RepositoryReleaseConfigRecentScheduledReleaseRecordErrorStatusArgs
Import
RepositoryReleaseConfig can be imported using any of these accepted formats:
projects/{{project}}/locations/{{region}}/repositories/{{repository}}/releaseConfigs/{{name}}
{{project}}/{{region}}/{{repository}}/{{name}}
{{region}}/{{repository}}/{{name}}
{{repository}}/{{name}}
When using the pulumi import
command, RepositoryReleaseConfig can be imported using one of the formats above. For example:
$ pulumi import gcp:dataform/repositoryReleaseConfig:RepositoryReleaseConfig default projects/{{project}}/locations/{{region}}/repositories/{{repository}}/releaseConfigs/{{name}}
$ pulumi import gcp:dataform/repositoryReleaseConfig:RepositoryReleaseConfig default {{project}}/{{region}}/{{repository}}/{{name}}
$ pulumi import gcp:dataform/repositoryReleaseConfig:RepositoryReleaseConfig default {{region}}/{{repository}}/{{name}}
$ pulumi import gcp:dataform/repositoryReleaseConfig:RepositoryReleaseConfig 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.