google_iam_organization_custom_roles resource
Use the google_iam_organization_custom_roles
InSpec audit resource to to test a Google Cloud OrganizationCustomRole resource.
Examples
describe google_iam_organization_custom_roles(org_id: '190694428152') do
its('names') { should include "organizations/123456/roles/role-id" }
end
Properties
Properties that can be accessed from the google_iam_organization_custom_roles
resource:
See google_iam_organization_custom_role for more detailed information.
names
: an array ofgoogle_iam_organization_custom_role
nametitles
: an array ofgoogle_iam_organization_custom_role
titledescriptions
: an array ofgoogle_iam_organization_custom_role
descriptionincluded_permissions
: an array ofgoogle_iam_organization_custom_role
included_permissionsstages
: an array ofgoogle_iam_organization_custom_role
stagedeleteds
: an array ofgoogle_iam_organization_custom_role
deleted
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 Identity and Access Management (IAM) API is enabled for the current project.