Ресурс google_iam_custom_roles
Синтаксис
Используется для проверки ресурса Google CustomRole.
Примеры
describe google_iam_custom_roles(project: 'chef-gcp-inspec') do
its('names') { should include "projects/project-id/roles/role-id" }
end
Свойства
Свойства, доступные из ресурса:
Для получения дополнительной информации см. ресурс google_iam_custom_role.
names- массив
google_iam_custom_roleимен titles- массив
google_iam_custom_roleназваний descriptions- массив
google_iam_custom_roleописаний included_permissions- массив
google_iam_custom_roleвключённых разрешений stages- массив
google_iam_custom_roleстадий deleteds- массив
google_iam_custom_roleзначений "удалено"
Критерии фильтрации
Этот ресурс поддерживает все вышеперечисленные свойства в качестве критериев фильтрации, которые могут быть использованы с where в качестве блока или метода.
Разрешения GCP
Убедитесь, что для текущего проекта включён API «Управление идентификацией и доступом (IAM)» по адресу https://console.cloud.google.com/apis/library/iam.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_iam_custom_roles/