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_license
kindnames
: an array ofgoogle_compute_license
namecharges_use_fees
: an array ofgoogle_compute_license
charges_use_feeids
: an array ofgoogle_compute_license
idlicense_codes
: an array ofgoogle_compute_license
license_codecreation_timestamps
: an array ofgoogle_compute_license
creation_timestampdescriptions
: an array ofgoogle_compute_license
descriptiontransferables
: an array ofgoogle_compute_license
transferableself_links
: an array ofgoogle_compute_license
self_linkresource_requirements
: an array ofgoogle_compute_license
resource_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.