Ресурс google_pubsub_subscription_iam_policy
Синтаксис
Используется google_pubsub_subscription_iam_policy, чтобы проверить ресурс Google Subscription Iam Policy.
Примеры
describe google_pubsub_subscription_iam_policy(project: "project", name: "name") do
it { should exist }
end
google_pubsub_subscription_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_subscription_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 https://console.cloud.google.com/apis/library/pubsub.googleapis.com/.
© 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_subscription_iam_policy/