Ресурс google_resourcemanager_organization_policy
Синтаксис
Используется для проверки ограничений политики организации. Дополнительную информацию можно найти здесь Ограничения политики организации
Примеры
describe google_resourcemanager_organization_policy(organization_name: "organizations/123456789", constraint: "constraints/compute.disableSerialPortAccess") do
it { should exist }
its('constraint') { should eq 'constraints/compute.disableSerialPortAccess' }
its('boolean_policy.enforced') { should be true }
end
Свойства
Свойства, доступные для ресурса google_resourcemanager_organization_policy:
version- Версия политики.
constraint- Имя ограничения, настраиваемого политикой.
update_time- Отметка времени последнего обновления политики.
list_policy- Список разрешенных или запрещенных значений
allowed_values- Список разрешенных значений
denied_values- Список запрещенных значений
boolean_policy- Используется для указания поведения булевой политики
enforced- Если true, то политика применяется. Если false, то любая конфигурация приемлема.
Разрешения GCP
Убедитесь, что для текущего проекта включен API Cloud Resource Manager .
© 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_resourcemanager_organization_policy/