1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. dataform
  5. RepositoryReleaseConfig
Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi

gcp.dataform.RepositoryReleaseConfig

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi

    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=gcp.secretmanager.SecretReplicationArgs(
            auto=gcp.secretmanager.SecretReplicationAutoArgs(),
        ))
    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=gcp.dataform.RepositoryGitRemoteSettingsArgs(
            url=git_repository.url,
            default_branch="main",
            authentication_token_secret_version=secret_version.id,
        ),
        workspace_compilation_overrides=gcp.dataform.RepositoryWorkspaceCompilationOverridesArgs(
            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=gcp.dataform.RepositoryReleaseConfigCodeCompilationConfigArgs(
            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/v7/go/gcp/dataform"
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/secretmanager"
    	"github.com/pulumi/pulumi-gcp/sdk/v7/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
    		}
    		_, 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=gcp.dataform.RepositoryReleaseConfigCodeCompilationConfigArgs(
            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

    The RepositoryReleaseConfig resource accepts the following input properties:

    GitCommitish string
    Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository.


    CodeCompilationConfig RepositoryReleaseConfigCodeCompilationConfig
    Optional. If set, fields of codeCompilationConfig override the default compilation settings that are specified in dataform.json. Structure is documented below.
    CronSchedule 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
    TimeZone 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.
    GitCommitish string
    Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository.


    CodeCompilationConfig RepositoryReleaseConfigCodeCompilationConfigArgs
    Optional. If set, fields of codeCompilationConfig override the default compilation settings that are specified in dataform.json. Structure is documented below.
    CronSchedule 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
    TimeZone 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.
    gitCommitish String
    Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository.


    codeCompilationConfig RepositoryReleaseConfigCodeCompilationConfig
    Optional. If set, fields of codeCompilationConfig override the default compilation settings that are specified in dataform.json. Structure is documented below.
    cronSchedule 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
    timeZone 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.
    gitCommitish string
    Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository.


    codeCompilationConfig RepositoryReleaseConfigCodeCompilationConfig
    Optional. If set, fields of codeCompilationConfig override the default compilation settings that are specified in dataform.json. Structure is documented below.
    cronSchedule 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
    timeZone 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_config RepositoryReleaseConfigCodeCompilationConfigArgs
    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.
    gitCommitish String
    Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository.


    codeCompilationConfig Property Map
    Optional. If set, fields of codeCompilationConfig override the default compilation settings that are specified in dataform.json. Structure is documented below.
    cronSchedule 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
    timeZone 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.
    RecentScheduledReleaseRecords List<RepositoryReleaseConfigRecentScheduledReleaseRecord>
    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.
    RecentScheduledReleaseRecords []RepositoryReleaseConfigRecentScheduledReleaseRecord
    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.
    recentScheduledReleaseRecords List<RepositoryReleaseConfigRecentScheduledReleaseRecord>
    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.
    recentScheduledReleaseRecords RepositoryReleaseConfigRecentScheduledReleaseRecord[]
    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_release_records Sequence[RepositoryReleaseConfigRecentScheduledReleaseRecord]
    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.
    recentScheduledReleaseRecords List<Property Map>
    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.
    The following state arguments are supported:
    CodeCompilationConfig RepositoryReleaseConfigCodeCompilationConfig
    Optional. If set, fields of codeCompilationConfig override the default compilation settings that are specified in dataform.json. Structure is documented below.
    CronSchedule string
    Optional. Optional schedule (in cron format) for automatic creation of compilation results.
    GitCommitish 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.
    RecentScheduledReleaseRecords List<RepositoryReleaseConfigRecentScheduledReleaseRecord>
    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
    TimeZone 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.
    CodeCompilationConfig RepositoryReleaseConfigCodeCompilationConfigArgs
    Optional. If set, fields of codeCompilationConfig override the default compilation settings that are specified in dataform.json. Structure is documented below.
    CronSchedule string
    Optional. Optional schedule (in cron format) for automatic creation of compilation results.
    GitCommitish 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.
    RecentScheduledReleaseRecords []RepositoryReleaseConfigRecentScheduledReleaseRecordArgs
    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
    TimeZone 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.
    codeCompilationConfig RepositoryReleaseConfigCodeCompilationConfig
    Optional. If set, fields of codeCompilationConfig override the default compilation settings that are specified in dataform.json. Structure is documented below.
    cronSchedule String
    Optional. Optional schedule (in cron format) for automatic creation of compilation results.
    gitCommitish 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.
    recentScheduledReleaseRecords List<RepositoryReleaseConfigRecentScheduledReleaseRecord>
    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
    timeZone 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.
    codeCompilationConfig RepositoryReleaseConfigCodeCompilationConfig
    Optional. If set, fields of codeCompilationConfig override the default compilation settings that are specified in dataform.json. Structure is documented below.
    cronSchedule string
    Optional. Optional schedule (in cron format) for automatic creation of compilation results.
    gitCommitish 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.
    recentScheduledReleaseRecords RepositoryReleaseConfigRecentScheduledReleaseRecord[]
    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
    timeZone 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_config RepositoryReleaseConfigCodeCompilationConfigArgs
    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_release_records Sequence[RepositoryReleaseConfigRecentScheduledReleaseRecordArgs]
    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.
    codeCompilationConfig Property Map
    Optional. If set, fields of codeCompilationConfig override the default compilation settings that are specified in dataform.json. Structure is documented below.
    cronSchedule String
    Optional. Optional schedule (in cron format) for automatic creation of compilation results.
    gitCommitish 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.
    recentScheduledReleaseRecords List<Property Map>
    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
    timeZone 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

    AssertionSchema string
    Optional. The default schema (BigQuery dataset ID) for assertions.
    DatabaseSuffix string
    Optional. The suffix that should be appended to all database (Google Cloud project ID) names.
    DefaultDatabase string
    Optional. The default database (Google Cloud project ID).
    DefaultLocation 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.
    DefaultSchema string
    Optional. The default schema (BigQuery dataset ID).
    SchemaSuffix string
    Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names.
    TablePrefix 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" }.
    AssertionSchema string
    Optional. The default schema (BigQuery dataset ID) for assertions.
    DatabaseSuffix string
    Optional. The suffix that should be appended to all database (Google Cloud project ID) names.
    DefaultDatabase string
    Optional. The default database (Google Cloud project ID).
    DefaultLocation 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.
    DefaultSchema string
    Optional. The default schema (BigQuery dataset ID).
    SchemaSuffix string
    Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names.
    TablePrefix 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" }.
    assertionSchema String
    Optional. The default schema (BigQuery dataset ID) for assertions.
    databaseSuffix String
    Optional. The suffix that should be appended to all database (Google Cloud project ID) names.
    defaultDatabase String
    Optional. The default database (Google Cloud project ID).
    defaultLocation 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.
    defaultSchema String
    Optional. The default schema (BigQuery dataset ID).
    schemaSuffix String
    Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names.
    tablePrefix 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" }.
    assertionSchema string
    Optional. The default schema (BigQuery dataset ID) for assertions.
    databaseSuffix string
    Optional. The suffix that should be appended to all database (Google Cloud project ID) names.
    defaultDatabase string
    Optional. The default database (Google Cloud project ID).
    defaultLocation 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.
    defaultSchema string
    Optional. The default schema (BigQuery dataset ID).
    schemaSuffix string
    Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names.
    tablePrefix 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" }.
    assertionSchema String
    Optional. The default schema (BigQuery dataset ID) for assertions.
    databaseSuffix String
    Optional. The suffix that should be appended to all database (Google Cloud project ID) names.
    defaultDatabase String
    Optional. The default database (Google Cloud project ID).
    defaultLocation 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.
    defaultSchema String
    Optional. The default schema (BigQuery dataset ID).
    schemaSuffix String
    Optional. The suffix that should be appended to all schema (BigQuery dataset ID) names.
    tablePrefix 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

    CompilationResult string
    (Output) The name of the created compilation result, if one was successfully created. Must be in the format projects//locations//repositories//compilationResults/.
    ErrorStatuses List<RepositoryReleaseConfigRecentScheduledReleaseRecordErrorStatus>
    (Output) The error status encountered upon this attempt to create the compilation result, if the attempt was unsuccessful. Structure is documented below.
    ReleaseTime string
    (Output) The timestamp of this release attempt.
    CompilationResult string
    (Output) The name of the created compilation result, if one was successfully created. Must be in the format projects//locations//repositories//compilationResults/.
    ErrorStatuses []RepositoryReleaseConfigRecentScheduledReleaseRecordErrorStatus
    (Output) The error status encountered upon this attempt to create the compilation result, if the attempt was unsuccessful. Structure is documented below.
    ReleaseTime string
    (Output) The timestamp of this release attempt.
    compilationResult String
    (Output) The name of the created compilation result, if one was successfully created. Must be in the format projects//locations//repositories//compilationResults/.
    errorStatuses List<RepositoryReleaseConfigRecentScheduledReleaseRecordErrorStatus>
    (Output) The error status encountered upon this attempt to create the compilation result, if the attempt was unsuccessful. Structure is documented below.
    releaseTime String
    (Output) The timestamp of this release attempt.
    compilationResult string
    (Output) The name of the created compilation result, if one was successfully created. Must be in the format projects//locations//repositories//compilationResults/.
    errorStatuses RepositoryReleaseConfigRecentScheduledReleaseRecordErrorStatus[]
    (Output) The error status encountered upon this attempt to create the compilation result, if the attempt was unsuccessful. Structure is documented below.
    releaseTime 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[RepositoryReleaseConfigRecentScheduledReleaseRecordErrorStatus]
    (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.
    compilationResult String
    (Output) The name of the created compilation result, if one was successfully created. Must be in the format projects//locations//repositories//compilationResults/.
    errorStatuses 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.
    releaseTime String
    (Output) The timestamp of this release attempt.

    RepositoryReleaseConfigRecentScheduledReleaseRecordErrorStatus, RepositoryReleaseConfigRecentScheduledReleaseRecordErrorStatusArgs

    Code int
    (Output) The status code, which should be an enum value of google.rpc.Code.
    Message string
    (Output) A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
    Code int
    (Output) The status code, which should be an enum value of google.rpc.Code.
    Message string
    (Output) A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
    code Integer
    (Output) The status code, which should be an enum value of google.rpc.Code.
    message String
    (Output) A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
    code number
    (Output) The status code, which should be an enum value of google.rpc.Code.
    message string
    (Output) A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
    code int
    (Output) The status code, which should be an enum value of google.rpc.Code.
    message str
    (Output) A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
    code Number
    (Output) The status code, which should be an enum value of google.rpc.Code.
    message String
    (Output) A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.

    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.
    gcp logo
    Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi