Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.dataform/v1beta1.CompilationResult
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a new CompilationResult in a given project and location. Auto-naming is currently not supported for this resource. Note - this resource’s API doesn’t support deletion. When deleted, the resource will persist on Google Cloud even though it will be deleted from Pulumi state.
Create CompilationResult Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CompilationResult(name: string, args: CompilationResultArgs, opts?: CustomResourceOptions);
@overload
def CompilationResult(resource_name: str,
args: CompilationResultArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CompilationResult(resource_name: str,
opts: Optional[ResourceOptions] = None,
repository_id: Optional[str] = None,
code_compilation_config: Optional[CodeCompilationConfigArgs] = None,
git_commitish: Optional[str] = None,
location: Optional[str] = None,
project: Optional[str] = None,
release_config: Optional[str] = None,
workspace: Optional[str] = None)
func NewCompilationResult(ctx *Context, name string, args CompilationResultArgs, opts ...ResourceOption) (*CompilationResult, error)
public CompilationResult(string name, CompilationResultArgs args, CustomResourceOptions? opts = null)
public CompilationResult(String name, CompilationResultArgs args)
public CompilationResult(String name, CompilationResultArgs args, CustomResourceOptions options)
type: google-native:dataform/v1beta1:CompilationResult
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 CompilationResultArgs
- 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 CompilationResultArgs
- 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 CompilationResultArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CompilationResultArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CompilationResultArgs
- 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 compilationResultResource = new GoogleNative.Dataform.V1Beta1.CompilationResult("compilationResultResource", new()
{
RepositoryId = "string",
CodeCompilationConfig = new GoogleNative.Dataform.V1Beta1.Inputs.CodeCompilationConfigArgs
{
AssertionSchema = "string",
DatabaseSuffix = "string",
DefaultDatabase = "string",
DefaultLocation = "string",
DefaultSchema = "string",
SchemaSuffix = "string",
TablePrefix = "string",
Vars =
{
{ "string", "string" },
},
},
GitCommitish = "string",
Location = "string",
Project = "string",
ReleaseConfig = "string",
Workspace = "string",
});
example, err := dataform.NewCompilationResult(ctx, "compilationResultResource", &dataform.CompilationResultArgs{
RepositoryId: pulumi.String("string"),
CodeCompilationConfig: &dataform.CodeCompilationConfigArgs{
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"),
},
},
GitCommitish: pulumi.String("string"),
Location: pulumi.String("string"),
Project: pulumi.String("string"),
ReleaseConfig: pulumi.String("string"),
Workspace: pulumi.String("string"),
})
var compilationResultResource = new CompilationResult("compilationResultResource", CompilationResultArgs.builder()
.repositoryId("string")
.codeCompilationConfig(CodeCompilationConfigArgs.builder()
.assertionSchema("string")
.databaseSuffix("string")
.defaultDatabase("string")
.defaultLocation("string")
.defaultSchema("string")
.schemaSuffix("string")
.tablePrefix("string")
.vars(Map.of("string", "string"))
.build())
.gitCommitish("string")
.location("string")
.project("string")
.releaseConfig("string")
.workspace("string")
.build());
compilation_result_resource = google_native.dataform.v1beta1.CompilationResult("compilationResultResource",
repository_id="string",
code_compilation_config=google_native.dataform.v1beta1.CodeCompilationConfigArgs(
assertion_schema="string",
database_suffix="string",
default_database="string",
default_location="string",
default_schema="string",
schema_suffix="string",
table_prefix="string",
vars={
"string": "string",
},
),
git_commitish="string",
location="string",
project="string",
release_config="string",
workspace="string")
const compilationResultResource = new google_native.dataform.v1beta1.CompilationResult("compilationResultResource", {
repositoryId: "string",
codeCompilationConfig: {
assertionSchema: "string",
databaseSuffix: "string",
defaultDatabase: "string",
defaultLocation: "string",
defaultSchema: "string",
schemaSuffix: "string",
tablePrefix: "string",
vars: {
string: "string",
},
},
gitCommitish: "string",
location: "string",
project: "string",
releaseConfig: "string",
workspace: "string",
});
type: google-native:dataform/v1beta1:CompilationResult
properties:
codeCompilationConfig:
assertionSchema: string
databaseSuffix: string
defaultDatabase: string
defaultLocation: string
defaultSchema: string
schemaSuffix: string
tablePrefix: string
vars:
string: string
gitCommitish: string
location: string
project: string
releaseConfig: string
repositoryId: string
workspace: string
CompilationResult 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 CompilationResult resource accepts the following input properties:
- Repository
Id string - Code
Compilation Pulumi.Config Google Native. Dataform. V1Beta1. Inputs. Code Compilation Config - Immutable. If set, fields of
code_compilation_config
override the default compilation settings that are specified in dataform.json. - Git
Commitish string - Immutable. Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository. Examples: - a commit SHA:
12ade345
- a tag:tag1
- a branch name:branch1
- Location string
- Project string
- Release
Config string - Immutable. The name of the release config to compile. The release config's 'current_compilation_result' field will be updated to this compilation result. Must be in the format
projects/*/locations/*/repositories/*/releaseConfigs/*
. - Workspace string
- Immutable. The name of the workspace to compile. Must be in the format
projects/*/locations/*/repositories/*/workspaces/*
.
- Repository
Id string - Code
Compilation CodeConfig Compilation Config Args - Immutable. If set, fields of
code_compilation_config
override the default compilation settings that are specified in dataform.json. - Git
Commitish string - Immutable. Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository. Examples: - a commit SHA:
12ade345
- a tag:tag1
- a branch name:branch1
- Location string
- Project string
- Release
Config string - Immutable. The name of the release config to compile. The release config's 'current_compilation_result' field will be updated to this compilation result. Must be in the format
projects/*/locations/*/repositories/*/releaseConfigs/*
. - Workspace string
- Immutable. The name of the workspace to compile. Must be in the format
projects/*/locations/*/repositories/*/workspaces/*
.
- repository
Id String - code
Compilation CodeConfig Compilation Config - Immutable. If set, fields of
code_compilation_config
override the default compilation settings that are specified in dataform.json. - git
Commitish String - Immutable. Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository. Examples: - a commit SHA:
12ade345
- a tag:tag1
- a branch name:branch1
- location String
- project String
- release
Config String - Immutable. The name of the release config to compile. The release config's 'current_compilation_result' field will be updated to this compilation result. Must be in the format
projects/*/locations/*/repositories/*/releaseConfigs/*
. - workspace String
- Immutable. The name of the workspace to compile. Must be in the format
projects/*/locations/*/repositories/*/workspaces/*
.
- repository
Id string - code
Compilation CodeConfig Compilation Config - Immutable. If set, fields of
code_compilation_config
override the default compilation settings that are specified in dataform.json. - git
Commitish string - Immutable. Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository. Examples: - a commit SHA:
12ade345
- a tag:tag1
- a branch name:branch1
- location string
- project string
- release
Config string - Immutable. The name of the release config to compile. The release config's 'current_compilation_result' field will be updated to this compilation result. Must be in the format
projects/*/locations/*/repositories/*/releaseConfigs/*
. - workspace string
- Immutable. The name of the workspace to compile. Must be in the format
projects/*/locations/*/repositories/*/workspaces/*
.
- repository_
id str - code_
compilation_ Codeconfig Compilation Config Args - Immutable. If set, fields of
code_compilation_config
override the default compilation settings that are specified in dataform.json. - git_
commitish str - Immutable. Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository. Examples: - a commit SHA:
12ade345
- a tag:tag1
- a branch name:branch1
- location str
- project str
- release_
config str - Immutable. The name of the release config to compile. The release config's 'current_compilation_result' field will be updated to this compilation result. Must be in the format
projects/*/locations/*/repositories/*/releaseConfigs/*
. - workspace str
- Immutable. The name of the workspace to compile. Must be in the format
projects/*/locations/*/repositories/*/workspaces/*
.
- repository
Id String - code
Compilation Property MapConfig - Immutable. If set, fields of
code_compilation_config
override the default compilation settings that are specified in dataform.json. - git
Commitish String - Immutable. Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository. Examples: - a commit SHA:
12ade345
- a tag:tag1
- a branch name:branch1
- location String
- project String
- release
Config String - Immutable. The name of the release config to compile. The release config's 'current_compilation_result' field will be updated to this compilation result. Must be in the format
projects/*/locations/*/repositories/*/releaseConfigs/*
. - workspace String
- Immutable. The name of the workspace to compile. Must be in the format
projects/*/locations/*/repositories/*/workspaces/*
.
Outputs
All input properties are implicitly available as output properties. Additionally, the CompilationResult resource produces the following output properties:
- Compilation
Errors List<Pulumi.Google Native. Dataform. V1Beta1. Outputs. Compilation Error Response> - Errors encountered during project compilation.
- Dataform
Core stringVersion - The version of
@dataform/core
that was used for compilation. - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The compilation result's name.
- Resolved
Git stringCommit Sha - The fully resolved Git commit SHA of the code that was compiled. Not set for compilation results whose source is a workspace.
- Compilation
Errors []CompilationError Response - Errors encountered during project compilation.
- Dataform
Core stringVersion - The version of
@dataform/core
that was used for compilation. - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The compilation result's name.
- Resolved
Git stringCommit Sha - The fully resolved Git commit SHA of the code that was compiled. Not set for compilation results whose source is a workspace.
- compilation
Errors List<CompilationError Response> - Errors encountered during project compilation.
- dataform
Core StringVersion - The version of
@dataform/core
that was used for compilation. - id String
- The provider-assigned unique ID for this managed resource.
- name String
- The compilation result's name.
- resolved
Git StringCommit Sha - The fully resolved Git commit SHA of the code that was compiled. Not set for compilation results whose source is a workspace.
- compilation
Errors CompilationError Response[] - Errors encountered during project compilation.
- dataform
Core stringVersion - The version of
@dataform/core
that was used for compilation. - id string
- The provider-assigned unique ID for this managed resource.
- name string
- The compilation result's name.
- resolved
Git stringCommit Sha - The fully resolved Git commit SHA of the code that was compiled. Not set for compilation results whose source is a workspace.
- compilation_
errors Sequence[CompilationError Response] - Errors encountered during project compilation.
- dataform_
core_ strversion - The version of
@dataform/core
that was used for compilation. - id str
- The provider-assigned unique ID for this managed resource.
- name str
- The compilation result's name.
- resolved_
git_ strcommit_ sha - The fully resolved Git commit SHA of the code that was compiled. Not set for compilation results whose source is a workspace.
- compilation
Errors List<Property Map> - Errors encountered during project compilation.
- dataform
Core StringVersion - The version of
@dataform/core
that was used for compilation. - id String
- The provider-assigned unique ID for this managed resource.
- name String
- The compilation result's name.
- resolved
Git StringCommit Sha - The fully resolved Git commit SHA of the code that was compiled. Not set for compilation results whose source is a workspace.
Supporting Types
CodeCompilationConfig, CodeCompilationConfigArgs
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
CodeCompilationConfigResponse, CodeCompilationConfigResponseArgs
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
CompilationErrorResponse, CompilationErrorResponseArgs
- Action
Target Pulumi.Google Native. Dataform. V1Beta1. Inputs. Target Response - The identifier of the action where this error occurred, if available.
- Message string
- The error's top level message.
- Path string
- The path of the file where this error occurred, if available, relative to the project root.
- Stack string
- The error's full stack trace.
- Action
Target TargetResponse - The identifier of the action where this error occurred, if available.
- Message string
- The error's top level message.
- Path string
- The path of the file where this error occurred, if available, relative to the project root.
- Stack string
- The error's full stack trace.
- action
Target TargetResponse - The identifier of the action where this error occurred, if available.
- message String
- The error's top level message.
- path String
- The path of the file where this error occurred, if available, relative to the project root.
- stack String
- The error's full stack trace.
- action
Target TargetResponse - The identifier of the action where this error occurred, if available.
- message string
- The error's top level message.
- path string
- The path of the file where this error occurred, if available, relative to the project root.
- stack string
- The error's full stack trace.
- action_
target TargetResponse - The identifier of the action where this error occurred, if available.
- message str
- The error's top level message.
- path str
- The path of the file where this error occurred, if available, relative to the project root.
- stack str
- The error's full stack trace.
- action
Target Property Map - The identifier of the action where this error occurred, if available.
- message String
- The error's top level message.
- path String
- The path of the file where this error occurred, if available, relative to the project root.
- stack String
- The error's full stack trace.
TargetResponse, TargetResponseArgs
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.