Class DataplexTaskExecutionSpec.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • serviceAccount

        @Stability(Stable)
        public DataplexTaskExecutionSpec.Builder serviceAccount​(String serviceAccount)
        Parameters:
        serviceAccount - Service account to use to execute a task. This parameter is required. If not provided, the default Compute service account for the project is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataplex_task#service_account DataplexTask#service_account}
        Returns:
        this
      • args

        @Stability(Stable)
        public DataplexTaskExecutionSpec.Builder args​(Map<String,​String> args)
        Parameters:
        args - The arguments to pass to the task. The args can use placeholders of the format ${placeholder} as part of key/value string. These will be interpolated before passing the args to the driver. Currently supported placeholders: - ${taskId} - ${job_time} To pass positional args, set the key as TASK_ARGS. The value should be a comma-separated string of all the positional arguments. To use a delimiter other than comma, refer to https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of other keys being present in the args, then TASK_ARGS will be passed as the last argument. An object containing a list of 'key': value pairs. Example: { 'name': 'wrench', 'mass': '1.3kg', 'count': '3' }. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataplex_task#args DataplexTask#args}
        Returns:
        this
      • kmsKey

        @Stability(Stable)
        public DataplexTaskExecutionSpec.Builder kmsKey​(String kmsKey)
        Parameters:
        kmsKey - The Cloud KMS key to use for encryption, of the form: projects/{project_number}/locations/{locationId}/keyRings/{key-ring-name}/cryptoKeys/{key-name}. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataplex_task#kms_key DataplexTask#kms_key}
        Returns:
        this
      • maxJobExecutionLifetime

        @Stability(Stable)
        public DataplexTaskExecutionSpec.Builder maxJobExecutionLifetime​(String maxJobExecutionLifetime)
        Parameters:
        maxJobExecutionLifetime - The maximum duration after which the job execution is expired. A duration in seconds with up to nine fractional digits, ending with 's'. Example: '3.5s'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataplex_task#max_job_execution_lifetime DataplexTask#max_job_execution_lifetime}
        Returns:
        this
      • project

        @Stability(Stable)
        public DataplexTaskExecutionSpec.Builder project​(String project)
        Parameters:
        project - The project in which jobs are run. By default, the project containing the Lake is used. If a project is provided, the ExecutionSpec.service_account must belong to this project. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/dataplex_task#project DataplexTask#project}
        Returns:
        this