Skip to main content

google_orgpolicy_project_policies resource

Use the google_orgpolicy_project_policies InSpec audit resource to to test a Google Cloud ProjectPolicy resource.

Examples

  describe google_orgpolicy_project_policies(parent: 'value_parent') do
    it { should exist }
    its('names'){ should include value_name}
  end

Properties

Properties that can be accessed from the google_orgpolicy_project_policies resource:

See google_orgpolicy_project_policy for more detailed information.

  • dry_run_specs: an array of google_orgpolicy_project_policy dry_run_spec
  • specs: an array of google_orgpolicy_project_policy spec
  • names: an array of google_orgpolicy_project_policy name
  • alternates: an array of google_orgpolicy_project_policy alternate

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 None is enabled for the current project.

Thank you for your feedback!

×