IAMCustomRole

Example Usage

This snippet creates a customized IAM organization role.

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.IAMCustomRole;
import com.pulumi.gcp.organizations.IAMCustomRoleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var my_custom_role = new IAMCustomRole("my-custom-role", IAMCustomRoleArgs.builder()
.description("A description")
.orgId("123456789")
.permissions(
"iam.roles.list",
"iam.roles.create",
"iam.roles.delete")
.roleId("myCustomRole")
.title("My Custom Role")
.build());
}
}

Import

Customized IAM organization role can be imported using their URI, e.g.

$ pulumi import gcp:organizations/iAMCustomRole:IAMCustomRole my-custom-role organizations/123456789/roles/myCustomRole

Properties

Link copied to clipboard
val deleted: Output<Boolean>

(Optional) The current deleted state of the role.

Link copied to clipboard
val description: Output<String>?

A human-readable description for the role.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the role in the format organizations/{{org_id}}/roles/{{role_id}}. Like id, this field can be used as a reference in other resources such as IAM role bindings.

Link copied to clipboard
val orgId: Output<String>

The numeric ID of the organization in which you want to create a custom role.

Link copied to clipboard
val permissions: Output<List<String>>

The names of the permissions this role grants when bound in an IAM policy. At least one permission must be specified.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val roleId: Output<String>

The role id to use for this role.

Link copied to clipboard
val stage: Output<String>?

The current launch stage of the role. Defaults to GA. List of possible stages is here.

Link copied to clipboard
val title: Output<String>

A human-readable title for the role.

Link copied to clipboard
val urn: Output<String>