google_logging_organization_log_sinks resource
Use the google_logging_organization_log_sinks InSpec audit resource to to test a Google Cloud OrganizationLogSink resource.
Examples
describe google_logging_organization_log_sinks(organization: '190694428152') do
its('names') { should include 'inspec-gcp-org-sink' }
end
Properties
Properties that can be accessed from the google_logging_organization_log_sinks resource:
See google_logging_organization_log_sink for more detailed information.
organizations: an array ofgoogle_logging_organization_log_sinkorganizationnames: an array ofgoogle_logging_organization_log_sinknamefilters: an array ofgoogle_logging_organization_log_sinkfilterdestinations: an array ofgoogle_logging_organization_log_sinkdestinationwriter_identities: an array ofgoogle_logging_organization_log_sinkwriter_identityinclude_children: an array ofgoogle_logging_organization_log_sinkinclude_children
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 Stackdriver Logging API is enabled for the current project.