google_dataproc_autoscaling_policies resource
Use the google_dataproc_autoscaling_policies InSpec audit resource to to test a Google Cloud ProjectRegionAutoscalingPolicy resource.
Examples
describe google_dataproc_autoscaling_policies(parent: 'value_parent') do
it { should exist }
its('ids') { should include 'value_id' }
its('names') { should include 'value_name' }
end
Properties
Properties that can be accessed from the google_dataproc_autoscaling_policies resource:
See google_dataproc_autoscaling_policy for more detailed information.
ids: an array ofgoogle_dataproc_autoscaling_policyidnames: an array ofgoogle_dataproc_autoscaling_policynamebasic_algorithms: an array ofgoogle_dataproc_autoscaling_policybasic_algorithmworker_configs: an array ofgoogle_dataproc_autoscaling_policyworker_configsecondary_worker_configs: an array ofgoogle_dataproc_autoscaling_policysecondary_worker_configlabels: an array ofgoogle_dataproc_autoscaling_policylabels
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.