google_dataproc_jobs resource
Use the google_dataproc_jobs InSpec audit resource to to test a Google Cloud Job resource.
Examples
describe google_dataproc_jobs(project_id: 'value_project_id', region: 'value_region') do
it { should exist }
its('driver_output_resource_uris') { should include 'value_driveroutputresourceuri' }
its('driver_control_files_uris') { should include 'value_drivercontrolfilesuri' }
its('job_uuids') { should include 'value_jobuuid' }
end
Properties
Properties that can be accessed from the google_dataproc_jobs resource:
See google_dataproc_job for more detailed information.
references: an array ofgoogle_dataproc_jobreferenceplacements: an array ofgoogle_dataproc_jobplacementhadoop_jobs: an array ofgoogle_dataproc_jobhadoop_jobspark_jobs: an array ofgoogle_dataproc_jobspark_jobpyspark_jobs: an array ofgoogle_dataproc_jobpyspark_jobhive_jobs: an array ofgoogle_dataproc_jobhive_jobpig_jobs: an array ofgoogle_dataproc_jobpig_jobspark_r_jobs: an array ofgoogle_dataproc_jobspark_r_jobspark_sql_jobs: an array ofgoogle_dataproc_jobspark_sql_jobpresto_jobs: an array ofgoogle_dataproc_jobpresto_jobtrino_jobs: an array ofgoogle_dataproc_jobtrino_jobflink_jobs: an array ofgoogle_dataproc_jobflink_jobstatuses: an array ofgoogle_dataproc_jobstatusstatus_histories: an array ofgoogle_dataproc_jobstatus_historyyarn_applications: an array ofgoogle_dataproc_jobyarn_applicationsdriver_output_resource_uris: an array ofgoogle_dataproc_jobdriver_output_resource_uridriver_control_files_uris: an array ofgoogle_dataproc_jobdriver_control_files_urilabels: an array ofgoogle_dataproc_joblabelsschedulings: an array ofgoogle_dataproc_jobschedulingjob_uuids: an array ofgoogle_dataproc_jobjob_uuiddones: an array ofgoogle_dataproc_jobdonedriver_scheduling_configs: an array ofgoogle_dataproc_jobdriver_scheduling_config
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
Ensure the Cloud Dataproc API is enabled for the current project.