1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. maxcompute
  5. RoleUserAttachment
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.maxcompute.RoleUserAttachment

Explore with Pulumi AI

Provides a Max Compute Role User Attachment resource.

Resources associated with a user and a project-level role.

For information about Max Compute Role User Attachment and how to use it, see What is Role User Attachment.

NOTE: Available since v1.242.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const aliyunUser = config.get("aliyunUser") || "ALIYUN$openapiautomation@test.aliyunid.com";
const ramUser = config.get("ramUser") || "RAM$openapiautomation@test.aliyunid.com:tf-example";
const ramRole = config.get("ramRole") || "RAM$openapiautomation@test.aliyunid.com:role/terraform-no-ak-assumerole-no-deleting";
const roleName = config.get("roleName") || "role_project_admin";
const projectName = config.get("projectName") || "default_project_669886c";
const _default = new alicloud.maxcompute.RoleUserAttachment("default", {
    roleName: roleName,
    user: ramRole,
    projectName: projectName,
});
Copy
import pulumi
import pulumi_alicloud as alicloud

config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "terraform-example"
aliyun_user = config.get("aliyunUser")
if aliyun_user is None:
    aliyun_user = "ALIYUN$openapiautomation@test.aliyunid.com"
ram_user = config.get("ramUser")
if ram_user is None:
    ram_user = "RAM$openapiautomation@test.aliyunid.com:tf-example"
ram_role = config.get("ramRole")
if ram_role is None:
    ram_role = "RAM$openapiautomation@test.aliyunid.com:role/terraform-no-ak-assumerole-no-deleting"
role_name = config.get("roleName")
if role_name is None:
    role_name = "role_project_admin"
project_name = config.get("projectName")
if project_name is None:
    project_name = "default_project_669886c"
default = alicloud.maxcompute.RoleUserAttachment("default",
    role_name=role_name,
    user=ram_role,
    project_name=project_name)
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/maxcompute"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "terraform-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		aliyunUser := "ALIYUN$openapiautomation@test.aliyunid.com"
		if param := cfg.Get("aliyunUser"); param != "" {
			aliyunUser = param
		}
		ramUser := "RAM$openapiautomation@test.aliyunid.com:tf-example"
		if param := cfg.Get("ramUser"); param != "" {
			ramUser = param
		}
		ramRole := "RAM$openapiautomation@test.aliyunid.com:role/terraform-no-ak-assumerole-no-deleting"
		if param := cfg.Get("ramRole"); param != "" {
			ramRole = param
		}
		roleName := "role_project_admin"
		if param := cfg.Get("roleName"); param != "" {
			roleName = param
		}
		projectName := "default_project_669886c"
		if param := cfg.Get("projectName"); param != "" {
			projectName = param
		}
		_, err := maxcompute.NewRoleUserAttachment(ctx, "default", &maxcompute.RoleUserAttachmentArgs{
			RoleName:    pulumi.String(roleName),
			User:        pulumi.String(ramRole),
			ProjectName: pulumi.String(projectName),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var name = config.Get("name") ?? "terraform-example";
    var aliyunUser = config.Get("aliyunUser") ?? "ALIYUN$openapiautomation@test.aliyunid.com";
    var ramUser = config.Get("ramUser") ?? "RAM$openapiautomation@test.aliyunid.com:tf-example";
    var ramRole = config.Get("ramRole") ?? "RAM$openapiautomation@test.aliyunid.com:role/terraform-no-ak-assumerole-no-deleting";
    var roleName = config.Get("roleName") ?? "role_project_admin";
    var projectName = config.Get("projectName") ?? "default_project_669886c";
    var @default = new AliCloud.MaxCompute.RoleUserAttachment("default", new()
    {
        RoleName = roleName,
        User = ramRole,
        ProjectName = projectName,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.maxcompute.RoleUserAttachment;
import com.pulumi.alicloud.maxcompute.RoleUserAttachmentArgs;
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) {
        final var config = ctx.config();
        final var name = config.get("name").orElse("terraform-example");
        final var aliyunUser = config.get("aliyunUser").orElse("ALIYUN$openapiautomation@test.aliyunid.com");
        final var ramUser = config.get("ramUser").orElse("RAM$openapiautomation@test.aliyunid.com:tf-example");
        final var ramRole = config.get("ramRole").orElse("RAM$openapiautomation@test.aliyunid.com:role/terraform-no-ak-assumerole-no-deleting");
        final var roleName = config.get("roleName").orElse("role_project_admin");
        final var projectName = config.get("projectName").orElse("default_project_669886c");
        var default_ = new RoleUserAttachment("default", RoleUserAttachmentArgs.builder()
            .roleName(roleName)
            .user(ramRole)
            .projectName(projectName)
            .build());

    }
}
Copy
configuration:
  name:
    type: string
    default: terraform-example
  aliyunUser:
    type: string
    default: ALIYUN$openapiautomation@test.aliyunid.com
  ramUser:
    type: string
    default: RAM$openapiautomation@test.aliyunid.com:tf-example
  ramRole:
    type: string
    default: RAM$openapiautomation@test.aliyunid.com:role/terraform-no-ak-assumerole-no-deleting
  roleName:
    type: string
    default: role_project_admin
  projectName:
    type: string
    default: default_project_669886c
resources:
  default:
    type: alicloud:maxcompute:RoleUserAttachment
    properties:
      roleName: ${roleName}
      user: ${ramRole}
      projectName: ${projectName}
Copy

Create RoleUserAttachment Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new RoleUserAttachment(name: string, args: RoleUserAttachmentArgs, opts?: CustomResourceOptions);
@overload
def RoleUserAttachment(resource_name: str,
                       args: RoleUserAttachmentArgs,
                       opts: Optional[ResourceOptions] = None)

@overload
def RoleUserAttachment(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       project_name: Optional[str] = None,
                       role_name: Optional[str] = None,
                       user: Optional[str] = None)
func NewRoleUserAttachment(ctx *Context, name string, args RoleUserAttachmentArgs, opts ...ResourceOption) (*RoleUserAttachment, error)
public RoleUserAttachment(string name, RoleUserAttachmentArgs args, CustomResourceOptions? opts = null)
public RoleUserAttachment(String name, RoleUserAttachmentArgs args)
public RoleUserAttachment(String name, RoleUserAttachmentArgs args, CustomResourceOptions options)
type: alicloud:maxcompute:RoleUserAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. RoleUserAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. RoleUserAttachmentArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. RoleUserAttachmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. RoleUserAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. RoleUserAttachmentArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var roleUserAttachmentResource = new AliCloud.MaxCompute.RoleUserAttachment("roleUserAttachmentResource", new()
{
    ProjectName = "string",
    RoleName = "string",
    User = "string",
});
Copy
example, err := maxcompute.NewRoleUserAttachment(ctx, "roleUserAttachmentResource", &maxcompute.RoleUserAttachmentArgs{
	ProjectName: pulumi.String("string"),
	RoleName:    pulumi.String("string"),
	User:        pulumi.String("string"),
})
Copy
var roleUserAttachmentResource = new RoleUserAttachment("roleUserAttachmentResource", RoleUserAttachmentArgs.builder()
    .projectName("string")
    .roleName("string")
    .user("string")
    .build());
Copy
role_user_attachment_resource = alicloud.maxcompute.RoleUserAttachment("roleUserAttachmentResource",
    project_name="string",
    role_name="string",
    user="string")
Copy
const roleUserAttachmentResource = new alicloud.maxcompute.RoleUserAttachment("roleUserAttachmentResource", {
    projectName: "string",
    roleName: "string",
    user: "string",
});
Copy
type: alicloud:maxcompute:RoleUserAttachment
properties:
    projectName: string
    roleName: string
    user: string
Copy

RoleUserAttachment Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The RoleUserAttachment resource accepts the following input properties:

ProjectName
This property is required.
Changes to this property will trigger replacement.
string
Project Name
RoleName
This property is required.
Changes to this property will trigger replacement.
string

Role Name, Valid Values: super_administrator, admin, Custom Role

NOTE: -- super_administrator: the built-in management role of MaxCompute. The Super Administrator of the project has the permission to operate all resources in the project and the management permission. Project owners or users with the Super_Administrator role can assign the Super_Administrator role to other users. -- admin: the built-in management role of MaxCompute, which has the permission to operate all resources in the project and some basic management permissions. Project owners can assign the Admin role to other users. -- Custom role: a role that is not built-in to MaxCompute and needs to be customized. You can refer to the role (starting with role_) definition in DataWorks.

User Changes to this property will trigger replacement. string

Supported input: Alibaba Cloud account, RAM user, and RAM role

NOTE: -- Alibaba Cloud account: the account registered on the Alibaba Cloud official website. - RAM User: a user created by an Alibaba Cloud account to assist the Alibaba Cloud account to complete data processing. -- RAM role: a RAM role, like a RAM user, is a type of RAM identity. A RAM role is a virtual user that does not have a specific identity authentication key and needs to be played by a trusted entity user for normal use.

ProjectName
This property is required.
Changes to this property will trigger replacement.
string
Project Name
RoleName
This property is required.
Changes to this property will trigger replacement.
string

Role Name, Valid Values: super_administrator, admin, Custom Role

NOTE: -- super_administrator: the built-in management role of MaxCompute. The Super Administrator of the project has the permission to operate all resources in the project and the management permission. Project owners or users with the Super_Administrator role can assign the Super_Administrator role to other users. -- admin: the built-in management role of MaxCompute, which has the permission to operate all resources in the project and some basic management permissions. Project owners can assign the Admin role to other users. -- Custom role: a role that is not built-in to MaxCompute and needs to be customized. You can refer to the role (starting with role_) definition in DataWorks.

User Changes to this property will trigger replacement. string

Supported input: Alibaba Cloud account, RAM user, and RAM role

NOTE: -- Alibaba Cloud account: the account registered on the Alibaba Cloud official website. - RAM User: a user created by an Alibaba Cloud account to assist the Alibaba Cloud account to complete data processing. -- RAM role: a RAM role, like a RAM user, is a type of RAM identity. A RAM role is a virtual user that does not have a specific identity authentication key and needs to be played by a trusted entity user for normal use.

projectName
This property is required.
Changes to this property will trigger replacement.
String
Project Name
roleName
This property is required.
Changes to this property will trigger replacement.
String

Role Name, Valid Values: super_administrator, admin, Custom Role

NOTE: -- super_administrator: the built-in management role of MaxCompute. The Super Administrator of the project has the permission to operate all resources in the project and the management permission. Project owners or users with the Super_Administrator role can assign the Super_Administrator role to other users. -- admin: the built-in management role of MaxCompute, which has the permission to operate all resources in the project and some basic management permissions. Project owners can assign the Admin role to other users. -- Custom role: a role that is not built-in to MaxCompute and needs to be customized. You can refer to the role (starting with role_) definition in DataWorks.

user Changes to this property will trigger replacement. String

Supported input: Alibaba Cloud account, RAM user, and RAM role

NOTE: -- Alibaba Cloud account: the account registered on the Alibaba Cloud official website. - RAM User: a user created by an Alibaba Cloud account to assist the Alibaba Cloud account to complete data processing. -- RAM role: a RAM role, like a RAM user, is a type of RAM identity. A RAM role is a virtual user that does not have a specific identity authentication key and needs to be played by a trusted entity user for normal use.

projectName
This property is required.
Changes to this property will trigger replacement.
string
Project Name
roleName
This property is required.
Changes to this property will trigger replacement.
string

Role Name, Valid Values: super_administrator, admin, Custom Role

NOTE: -- super_administrator: the built-in management role of MaxCompute. The Super Administrator of the project has the permission to operate all resources in the project and the management permission. Project owners or users with the Super_Administrator role can assign the Super_Administrator role to other users. -- admin: the built-in management role of MaxCompute, which has the permission to operate all resources in the project and some basic management permissions. Project owners can assign the Admin role to other users. -- Custom role: a role that is not built-in to MaxCompute and needs to be customized. You can refer to the role (starting with role_) definition in DataWorks.

user Changes to this property will trigger replacement. string

Supported input: Alibaba Cloud account, RAM user, and RAM role

NOTE: -- Alibaba Cloud account: the account registered on the Alibaba Cloud official website. - RAM User: a user created by an Alibaba Cloud account to assist the Alibaba Cloud account to complete data processing. -- RAM role: a RAM role, like a RAM user, is a type of RAM identity. A RAM role is a virtual user that does not have a specific identity authentication key and needs to be played by a trusted entity user for normal use.

project_name
This property is required.
Changes to this property will trigger replacement.
str
Project Name
role_name
This property is required.
Changes to this property will trigger replacement.
str

Role Name, Valid Values: super_administrator, admin, Custom Role

NOTE: -- super_administrator: the built-in management role of MaxCompute. The Super Administrator of the project has the permission to operate all resources in the project and the management permission. Project owners or users with the Super_Administrator role can assign the Super_Administrator role to other users. -- admin: the built-in management role of MaxCompute, which has the permission to operate all resources in the project and some basic management permissions. Project owners can assign the Admin role to other users. -- Custom role: a role that is not built-in to MaxCompute and needs to be customized. You can refer to the role (starting with role_) definition in DataWorks.

user Changes to this property will trigger replacement. str

Supported input: Alibaba Cloud account, RAM user, and RAM role

NOTE: -- Alibaba Cloud account: the account registered on the Alibaba Cloud official website. - RAM User: a user created by an Alibaba Cloud account to assist the Alibaba Cloud account to complete data processing. -- RAM role: a RAM role, like a RAM user, is a type of RAM identity. A RAM role is a virtual user that does not have a specific identity authentication key and needs to be played by a trusted entity user for normal use.

projectName
This property is required.
Changes to this property will trigger replacement.
String
Project Name
roleName
This property is required.
Changes to this property will trigger replacement.
String

Role Name, Valid Values: super_administrator, admin, Custom Role

NOTE: -- super_administrator: the built-in management role of MaxCompute. The Super Administrator of the project has the permission to operate all resources in the project and the management permission. Project owners or users with the Super_Administrator role can assign the Super_Administrator role to other users. -- admin: the built-in management role of MaxCompute, which has the permission to operate all resources in the project and some basic management permissions. Project owners can assign the Admin role to other users. -- Custom role: a role that is not built-in to MaxCompute and needs to be customized. You can refer to the role (starting with role_) definition in DataWorks.

user Changes to this property will trigger replacement. String

Supported input: Alibaba Cloud account, RAM user, and RAM role

NOTE: -- Alibaba Cloud account: the account registered on the Alibaba Cloud official website. - RAM User: a user created by an Alibaba Cloud account to assist the Alibaba Cloud account to complete data processing. -- RAM role: a RAM role, like a RAM user, is a type of RAM identity. A RAM role is a virtual user that does not have a specific identity authentication key and needs to be played by a trusted entity user for normal use.

Outputs

All input properties are implicitly available as output properties. Additionally, the RoleUserAttachment resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing RoleUserAttachment Resource

Get an existing RoleUserAttachment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: RoleUserAttachmentState, opts?: CustomResourceOptions): RoleUserAttachment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        project_name: Optional[str] = None,
        role_name: Optional[str] = None,
        user: Optional[str] = None) -> RoleUserAttachment
func GetRoleUserAttachment(ctx *Context, name string, id IDInput, state *RoleUserAttachmentState, opts ...ResourceOption) (*RoleUserAttachment, error)
public static RoleUserAttachment Get(string name, Input<string> id, RoleUserAttachmentState? state, CustomResourceOptions? opts = null)
public static RoleUserAttachment get(String name, Output<String> id, RoleUserAttachmentState state, CustomResourceOptions options)
resources:  _:    type: alicloud:maxcompute:RoleUserAttachment    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ProjectName Changes to this property will trigger replacement. string
Project Name
RoleName Changes to this property will trigger replacement. string

Role Name, Valid Values: super_administrator, admin, Custom Role

NOTE: -- super_administrator: the built-in management role of MaxCompute. The Super Administrator of the project has the permission to operate all resources in the project and the management permission. Project owners or users with the Super_Administrator role can assign the Super_Administrator role to other users. -- admin: the built-in management role of MaxCompute, which has the permission to operate all resources in the project and some basic management permissions. Project owners can assign the Admin role to other users. -- Custom role: a role that is not built-in to MaxCompute and needs to be customized. You can refer to the role (starting with role_) definition in DataWorks.

User Changes to this property will trigger replacement. string

Supported input: Alibaba Cloud account, RAM user, and RAM role

NOTE: -- Alibaba Cloud account: the account registered on the Alibaba Cloud official website. - RAM User: a user created by an Alibaba Cloud account to assist the Alibaba Cloud account to complete data processing. -- RAM role: a RAM role, like a RAM user, is a type of RAM identity. A RAM role is a virtual user that does not have a specific identity authentication key and needs to be played by a trusted entity user for normal use.

ProjectName Changes to this property will trigger replacement. string
Project Name
RoleName Changes to this property will trigger replacement. string

Role Name, Valid Values: super_administrator, admin, Custom Role

NOTE: -- super_administrator: the built-in management role of MaxCompute. The Super Administrator of the project has the permission to operate all resources in the project and the management permission. Project owners or users with the Super_Administrator role can assign the Super_Administrator role to other users. -- admin: the built-in management role of MaxCompute, which has the permission to operate all resources in the project and some basic management permissions. Project owners can assign the Admin role to other users. -- Custom role: a role that is not built-in to MaxCompute and needs to be customized. You can refer to the role (starting with role_) definition in DataWorks.

User Changes to this property will trigger replacement. string

Supported input: Alibaba Cloud account, RAM user, and RAM role

NOTE: -- Alibaba Cloud account: the account registered on the Alibaba Cloud official website. - RAM User: a user created by an Alibaba Cloud account to assist the Alibaba Cloud account to complete data processing. -- RAM role: a RAM role, like a RAM user, is a type of RAM identity. A RAM role is a virtual user that does not have a specific identity authentication key and needs to be played by a trusted entity user for normal use.

projectName Changes to this property will trigger replacement. String
Project Name
roleName Changes to this property will trigger replacement. String

Role Name, Valid Values: super_administrator, admin, Custom Role

NOTE: -- super_administrator: the built-in management role of MaxCompute. The Super Administrator of the project has the permission to operate all resources in the project and the management permission. Project owners or users with the Super_Administrator role can assign the Super_Administrator role to other users. -- admin: the built-in management role of MaxCompute, which has the permission to operate all resources in the project and some basic management permissions. Project owners can assign the Admin role to other users. -- Custom role: a role that is not built-in to MaxCompute and needs to be customized. You can refer to the role (starting with role_) definition in DataWorks.

user Changes to this property will trigger replacement. String

Supported input: Alibaba Cloud account, RAM user, and RAM role

NOTE: -- Alibaba Cloud account: the account registered on the Alibaba Cloud official website. - RAM User: a user created by an Alibaba Cloud account to assist the Alibaba Cloud account to complete data processing. -- RAM role: a RAM role, like a RAM user, is a type of RAM identity. A RAM role is a virtual user that does not have a specific identity authentication key and needs to be played by a trusted entity user for normal use.

projectName Changes to this property will trigger replacement. string
Project Name
roleName Changes to this property will trigger replacement. string

Role Name, Valid Values: super_administrator, admin, Custom Role

NOTE: -- super_administrator: the built-in management role of MaxCompute. The Super Administrator of the project has the permission to operate all resources in the project and the management permission. Project owners or users with the Super_Administrator role can assign the Super_Administrator role to other users. -- admin: the built-in management role of MaxCompute, which has the permission to operate all resources in the project and some basic management permissions. Project owners can assign the Admin role to other users. -- Custom role: a role that is not built-in to MaxCompute and needs to be customized. You can refer to the role (starting with role_) definition in DataWorks.

user Changes to this property will trigger replacement. string

Supported input: Alibaba Cloud account, RAM user, and RAM role

NOTE: -- Alibaba Cloud account: the account registered on the Alibaba Cloud official website. - RAM User: a user created by an Alibaba Cloud account to assist the Alibaba Cloud account to complete data processing. -- RAM role: a RAM role, like a RAM user, is a type of RAM identity. A RAM role is a virtual user that does not have a specific identity authentication key and needs to be played by a trusted entity user for normal use.

project_name Changes to this property will trigger replacement. str
Project Name
role_name Changes to this property will trigger replacement. str

Role Name, Valid Values: super_administrator, admin, Custom Role

NOTE: -- super_administrator: the built-in management role of MaxCompute. The Super Administrator of the project has the permission to operate all resources in the project and the management permission. Project owners or users with the Super_Administrator role can assign the Super_Administrator role to other users. -- admin: the built-in management role of MaxCompute, which has the permission to operate all resources in the project and some basic management permissions. Project owners can assign the Admin role to other users. -- Custom role: a role that is not built-in to MaxCompute and needs to be customized. You can refer to the role (starting with role_) definition in DataWorks.

user Changes to this property will trigger replacement. str

Supported input: Alibaba Cloud account, RAM user, and RAM role

NOTE: -- Alibaba Cloud account: the account registered on the Alibaba Cloud official website. - RAM User: a user created by an Alibaba Cloud account to assist the Alibaba Cloud account to complete data processing. -- RAM role: a RAM role, like a RAM user, is a type of RAM identity. A RAM role is a virtual user that does not have a specific identity authentication key and needs to be played by a trusted entity user for normal use.

projectName Changes to this property will trigger replacement. String
Project Name
roleName Changes to this property will trigger replacement. String

Role Name, Valid Values: super_administrator, admin, Custom Role

NOTE: -- super_administrator: the built-in management role of MaxCompute. The Super Administrator of the project has the permission to operate all resources in the project and the management permission. Project owners or users with the Super_Administrator role can assign the Super_Administrator role to other users. -- admin: the built-in management role of MaxCompute, which has the permission to operate all resources in the project and some basic management permissions. Project owners can assign the Admin role to other users. -- Custom role: a role that is not built-in to MaxCompute and needs to be customized. You can refer to the role (starting with role_) definition in DataWorks.

user Changes to this property will trigger replacement. String

Supported input: Alibaba Cloud account, RAM user, and RAM role

NOTE: -- Alibaba Cloud account: the account registered on the Alibaba Cloud official website. - RAM User: a user created by an Alibaba Cloud account to assist the Alibaba Cloud account to complete data processing. -- RAM role: a RAM role, like a RAM user, is a type of RAM identity. A RAM role is a virtual user that does not have a specific identity authentication key and needs to be played by a trusted entity user for normal use.

Import

Max Compute Role User Attachment can be imported using the id, e.g.

$ pulumi import alicloud:maxcompute/roleUserAttachment:RoleUserAttachment example <project_name>-<role_name>-<user>
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.