Skip to main content

google_dlp_jobs resource

Use the google_dlp_jobs InSpec audit resource to to test a Google Cloud Job resource.

Examples


describe google_dlp_jobs(parent: "projects/#{'chef-gcp-inspec'}/locations/#{'us-east-2'}") do
  it { should exist }
  its('names') { should include 'i-inspec-gcp-dlp' }
  its('types') { should include 'INSPECT_JOB' }
  its('states') { should include 'ACTIVE' }
end

Properties

Properties that can be accessed from the google_dlp_jobs resource:

See google_dlp_job for more detailed information.

  • names: an array of google_dlp_job name
  • types: an array of google_dlp_job type
  • states: an array of google_dlp_job state
  • create_times: an array of google_dlp_job create_time
  • start_times: an array of google_dlp_job start_time
  • end_times: an array of google_dlp_job end_time
  • job_trigger_names: an array of google_dlp_job job_trigger_name
  • errors: an array of google_dlp_job errors
  • act_dets: an array of google_dlp_job act_det
  • risk_details: an array of google_dlp_job risk_details
  • inspect_details: an array of google_dlp_job inspect_details
  • parents: an array of google_dlp_job parent

Filter criteria

This resource supports all of the above properties as filter criteria, which can be used with where as a block or a method.

GCP permissions

Thank you for your feedback!

×