google_cloudfunctions_cloud_functions resource
Use the google_cloudfunctions_cloud_functions InSpec audit resource to to test a Google Cloud CloudFunction resource.
Examples
describe google_cloudfunctions_cloud_functions(project: 'chef-gcp-inspec', location: 'europe-west1') do
its('descriptions') { should include 'A description of the function' }
its('entry_points') { should include 'hello' }
end
Properties
Properties that can be accessed from the google_cloudfunctions_cloud_functions resource:
See google_cloudfunctions_cloud_function for more detailed information.
names: an array ofgoogle_cloudfunctions_cloud_functionnamedescriptions: an array ofgoogle_cloudfunctions_cloud_functiondescriptionstatuses: an array ofgoogle_cloudfunctions_cloud_functionstatusentry_points: an array ofgoogle_cloudfunctions_cloud_functionentry_pointruntimes: an array ofgoogle_cloudfunctions_cloud_functionruntimetimeouts: an array ofgoogle_cloudfunctions_cloud_functiontimeoutavailable_memory_mbs: an array ofgoogle_cloudfunctions_cloud_functionavailable_memory_mbservice_account_emails: an array ofgoogle_cloudfunctions_cloud_functionservice_account_emailupdate_times: an array ofgoogle_cloudfunctions_cloud_functionupdate_timeversion_ids: an array ofgoogle_cloudfunctions_cloud_functionversion_idlabels: an array ofgoogle_cloudfunctions_cloud_functionlabelsenvironment_variables: an array ofgoogle_cloudfunctions_cloud_functionenvironment_variablessource_archive_urls: an array ofgoogle_cloudfunctions_cloud_functionsource_archive_urlsource_upload_urls: an array ofgoogle_cloudfunctions_cloud_functionsource_upload_urlsource_repositories: an array ofgoogle_cloudfunctions_cloud_functionsource_repositoryhttps_triggers: an array ofgoogle_cloudfunctions_cloud_functionhttps_triggerevent_triggers: an array ofgoogle_cloudfunctions_cloud_functionevent_triggerlocations: an array ofgoogle_cloudfunctions_cloud_functionlocation
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 Functions API is enabled for the current project.