google_compute_licenses resource
Use the google_compute_licenses InSpec audit resource to to test a Google Cloud License resource.
Examples
describe google_compute_licenses(project: 'chef-gcp-inspec', region: ' value_region') do
it { should exist }
end
Properties
Properties that can be accessed from the google_compute_licenses resource:
See google_compute_license for more detailed information.
kinds: an array ofgoogle_compute_licensekindnames: an array ofgoogle_compute_licensenamecharges_use_fees: an array ofgoogle_compute_licensecharges_use_feeids: an array ofgoogle_compute_licenseidlicense_codes: an array ofgoogle_compute_licenselicense_codecreation_timestamps: an array ofgoogle_compute_licensecreation_timestampdescriptions: an array ofgoogle_compute_licensedescriptiontransferables: an array ofgoogle_compute_licensetransferableself_links: an array ofgoogle_compute_licenseself_linkresource_requirements: an array ofgoogle_compute_licenseresource_requirements
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.