Class DataprocWorkflowTemplate.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.dataproc_workflow_template.DataprocWorkflowTemplate.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataprocWorkflowTemplate>
- Enclosing class:
- DataprocWorkflowTemplate
@Stability(Stable) public static final class DataprocWorkflowTemplate.Builder extends Object implements software.amazon.jsii.Builder<DataprocWorkflowTemplate>
A fluent builder forDataprocWorkflowTemplate.
-
-
Method Summary
-
-
-
Method Detail
-
create
@Stability(Stable) public static DataprocWorkflowTemplate.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope- The scope in which to define this construct. This parameter is required.id- The scoped construct ID. This parameter is required.- Returns:
- a new instance of
DataprocWorkflowTemplate.Builder.
-
connection
@Stability(Experimental) public DataprocWorkflowTemplate.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public DataprocWorkflowTemplate.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public DataprocWorkflowTemplate.Builder count(Number count)
- Parameters:
count- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public DataprocWorkflowTemplate.Builder count(com.hashicorp.cdktf.TerraformCount count)
- Parameters:
count- This parameter is required.- Returns:
this
-
dependsOn
@Stability(Experimental) public DataprocWorkflowTemplate.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
- Parameters:
dependsOn- This parameter is required.- Returns:
this
-
forEach
@Stability(Experimental) public DataprocWorkflowTemplate.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
- Parameters:
forEach- This parameter is required.- Returns:
this
-
lifecycle
@Stability(Experimental) public DataprocWorkflowTemplate.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
- Parameters:
lifecycle- This parameter is required.- Returns:
this
-
provider
@Stability(Experimental) public DataprocWorkflowTemplate.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
- Parameters:
provider- This parameter is required.- Returns:
this
-
provisioners
@Stability(Experimental) public DataprocWorkflowTemplate.Builder provisioners(List<? extends Object> provisioners)
- Parameters:
provisioners- This parameter is required.- Returns:
this
-
jobs
@Stability(Stable) public DataprocWorkflowTemplate.Builder jobs(com.hashicorp.cdktf.IResolvable jobs)
jobs block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#jobs DataprocWorkflowTemplate#jobs}
- Parameters:
jobs- jobs block. This parameter is required.- Returns:
this
-
jobs
@Stability(Stable) public DataprocWorkflowTemplate.Builder jobs(List<? extends DataprocWorkflowTemplateJobs> jobs)
jobs block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#jobs DataprocWorkflowTemplate#jobs}
- Parameters:
jobs- jobs block. This parameter is required.- Returns:
this
-
location
@Stability(Stable) public DataprocWorkflowTemplate.Builder location(String location)
The location for the resource.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#location DataprocWorkflowTemplate#location}
- Parameters:
location- The location for the resource. This parameter is required.- Returns:
this
-
name
@Stability(Stable) public DataprocWorkflowTemplate.Builder name(String name)
Output only.The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names. * For `projects.regions.workflowTemplates`, the resource name of the template has the following format: `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}` * For `projects.locations.workflowTemplates`, the resource name of the template has the following format: `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}` Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#name DataprocWorkflowTemplate#name}
- Parameters:
name- Output only. This parameter is required.- Returns:
this
-
placement
@Stability(Stable) public DataprocWorkflowTemplate.Builder placement(DataprocWorkflowTemplatePlacement placement)
placement block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#placement DataprocWorkflowTemplate#placement}
- Parameters:
placement- placement block. This parameter is required.- Returns:
this
-
dagTimeout
@Stability(Stable) public DataprocWorkflowTemplate.Builder dagTimeout(String dagTimeout)
Optional.Timeout duration for the DAG of jobs, expressed in seconds (see [JSON representation of duration](https://developers.google.com/protocol-buffers/docs/proto3#json)). The timeout duration must be from 10 minutes ("600s") to 24 hours ("86400s"). The timer begins when the first job is submitted. If the workflow is running at the end of the timeout period, any remaining jobs are cancelled, the workflow is ended, and if the workflow was running on a [managed cluster](/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster), the cluster is deleted. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#dag_timeout DataprocWorkflowTemplate#dag_timeout}
- Parameters:
dagTimeout- Optional. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public DataprocWorkflowTemplate.Builder id(String id)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#id DataprocWorkflowTemplate#id}.Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#id DataprocWorkflowTemplate#id}. This parameter is required.- Returns:
this
-
labels
@Stability(Stable) public DataprocWorkflowTemplate.Builder labels(Map<String,String> labels)
Optional.The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance. Label **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a template. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field `effective_labels` for all of the labels present on the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#labels DataprocWorkflowTemplate#labels}
- Parameters:
labels- Optional. This parameter is required.- Returns:
this
-
parameters
@Stability(Stable) public DataprocWorkflowTemplate.Builder parameters(com.hashicorp.cdktf.IResolvable parameters)
parameters block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#parameters DataprocWorkflowTemplate#parameters}
- Parameters:
parameters- parameters block. This parameter is required.- Returns:
this
-
parameters
@Stability(Stable) public DataprocWorkflowTemplate.Builder parameters(List<? extends DataprocWorkflowTemplateParameters> parameters)
parameters block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#parameters DataprocWorkflowTemplate#parameters}
- Parameters:
parameters- parameters block. This parameter is required.- Returns:
this
-
project
@Stability(Stable) public DataprocWorkflowTemplate.Builder project(String project)
The project for the resource.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#project DataprocWorkflowTemplate#project}
- Parameters:
project- The project for the resource. This parameter is required.- Returns:
this
-
timeouts
@Stability(Stable) public DataprocWorkflowTemplate.Builder timeouts(DataprocWorkflowTemplateTimeouts timeouts)
timeouts block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#timeouts DataprocWorkflowTemplate#timeouts}
- Parameters:
timeouts- timeouts block. This parameter is required.- Returns:
this
-
version
@Stability(Stable) public DataprocWorkflowTemplate.Builder version(Number version)
Output only. The current version of this workflow template.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataproc_workflow_template#version DataprocWorkflowTemplate#version}
- Parameters:
version- Output only. The current version of this workflow template. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public DataprocWorkflowTemplate build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataprocWorkflowTemplate>- Returns:
- a newly built instance of
DataprocWorkflowTemplate.
-
-