Skip to content

Latest commit

 

History

History
41 lines (34 loc) · 1.94 KB

google_compute_resource_policies.md

File metadata and controls

41 lines (34 loc) · 1.94 KB
title platform
About the google_compute_resource_policies resource
gcp

Syntax

A google_compute_resource_policies is used to test a Google ResourcePolicy resource

Examples

  describe google_compute_resource_policies(project: 'chef-gcp-inspec', region: ' value_region') do
    it { should exist }
  end

Properties

Properties that can be accessed from the google_compute_resource_policies resource:

See google_compute_resource_policy.md for more detailed information

  • kinds: an array of google_compute_resource_policy kind
  • ids: an array of google_compute_resource_policy id
  • creation_timestamps: an array of google_compute_resource_policy creation_timestamp
  • self_links: an array of google_compute_resource_policy self_link
  • self_link_with_ids: an array of google_compute_resource_policy self_link_with_id
  • regions: an array of google_compute_resource_policy region
  • descriptions: an array of google_compute_resource_policy description
  • names: an array of google_compute_resource_policy name
  • vm_maintenance_policies: an array of google_compute_resource_policy vm_maintenance_policy
  • snapshot_schedule_policies: an array of google_compute_resource_policy snapshot_schedule_policy
  • group_placement_policies: an array of google_compute_resource_policy group_placement_policy
  • instance_schedule_policies: an array of google_compute_resource_policy instance_schedule_policy
  • statuses: an array of google_compute_resource_policy status
  • resource_statuses: an array of google_compute_resource_policy resource_status

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 Compute Engine API is enabled for the current project.