Google Data loss prevention Job Trigger

This page shows how to write Terraform for Data loss prevention Job Trigger and write them securely.

google_data_loss_prevention_job_trigger (Terraform)

The Job Trigger in Data loss prevention can be configured in Terraform with the resource name google_data_loss_prevention_job_trigger. The following sections describe 2 examples of how to use the resource and its parameters.

Example Usage from GitHub

resource "google_data_loss_prevention_job_trigger" "fail" {
    parent = "projects/my-project-name"
    description = "Description"
    display_name = "Displayname"

    triggers {
resource "google_data_loss_prevention_job_trigger" "basic" {
    parent = "projects/probable-bebop-315904"
    description = "tfhybridtfDesc"
    display_name = "tfhybridName"

    inspect_job {


  • description optional - string
    • A description of the job trigger.

  • display_name optional - string
    • User set display name of the job trigger.

  • id optionalcomputed - string
  • last_run_time requiredcomputed - string
    • The timestamp of the last time this trigger executed.

  • name requiredcomputed - string
    • The resource name of the job trigger. Set by the server.

  • parent required - string
    • The parent of the trigger, either in the format 'projects/{{project}}' or 'projects/{{project}}/locations/{{location}}'

  • status optional - string
    • Whether the trigger is currently active. Default value: "HEALTHY" Possible values: ["PAUSED", "HEALTHY", "CANCELLED"]

Explanation in Terraform Registry

A job trigger configuration. To get more information about JobTrigger, see:

Frequently asked questions

What is Google Data loss prevention Job Trigger?

Google Data loss prevention Job Trigger is a resource for Data loss prevention of Google Cloud Platform. Settings can be wrote in Terraform.

Where can I find the example code for the Google Data loss prevention Job Trigger?

For Terraform, the anaik91/tfe and hemantgadiya/tfhybridjob source code examples are useful. See the Terraform Example section for further details.


Scan your IaC problem in 3 minutes for free

You can keep your IaC security for free. No credit card required.