Ресурс google_pubsub_topic_iam_policy
Синтаксис
Для проверки ресурса политики доступа к Google Topic Iam используется google_pubsub_topic_iam_policy
Примеры
describe google_pubsub_topic_iam_policy(project: "project", name: "name") do
it { should exist }
end
google_pubsub_topic_iam_policy(project: "project", name: "name").bindings.each do |binding|
describe binding do
its('role') { should eq 'roles/editor'}
its('members') { should include 'user:testuser@example.com'}
end
end
Свойства
Свойства, к которым можно получить доступ из ресурса google_pubsub_topic_iam_policy:
iam_binding_roles- Список ролей, существующих в политике.
bindings- Связывает список членов с ролью.
role- Роль, назначенная членам. Например, roles/viewer, roles/editor или roles/owner.
members- Указывает идентификаторы, запрашивающие доступ к ресурсу Cloud Platform.
audit_configs- Указывает конфигурацию журналирования аудита облачных сервисов для этой политики.
service- Указывает службу, которая будет включена для журналирования аудита. Например,
storage.googleapis.com,cloudsql.googleapis.com.allServices— специальное значение, охватывающее все службы. audit_log_configs- Конфигурация журналирования каждого типа разрешений.
log_type- Тип журнала, который разрешает эта конфигурация. Например, ADMIN_READ, DATA_WRITE или DATA_READ
exempted_members- Указывает идентификаторы, которые не вызывают журналирования для этого типа разрешений.
Разрешения GCP
Убедитесь, что API Cloud Pub/Sub включен для текущего проекта.
© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/inspec/resources/google_pubsub_topic_iam_policy/