googleIamRole
Use this data source to get information about a Google IAM Role.
import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
const dataGoogleIamRoleRoleinfo =
new google.dataGoogleIamRole.DataGoogleIamRole(this, "roleinfo", {
name: "roles/compute.viewer",
});
new cdktf.TerraformOutput(this, "the_role_permissions", {
value: dataGoogleIamRoleRoleinfo.includedPermissions,
});
Argument Reference
The following arguments are supported:
name
(Required) - The name of the Role to lookup in the formroles/{roleName}
,organizations/{organizationId}/roles/{roleName}
orprojects/{projectId}/roles/{roleName}
Attributes Reference
The following attributes are exported:
title
- is a friendly title for the role, such as "Role Viewer"includedPermissions
- specifies the list of one or more permissions to include in the custom role, such as -iamRolesGet
stage
- indicates the stage of a role in the launch lifecycle, such asga
,beta
oralpha
.