published on Thursday, Apr 2, 2026 by Volcengine
published on Thursday, Apr 2, 2026 by Volcengine
User group management is supported in E-MapReduce (EMR) clusters, allowing you to create, edit, and delete user groups.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
const eMRClusterUserGroupDemo = new volcenginecc.emr.ClusterUserGroup("EMRClusterUserGroupDemo", {
clusterId: "emr-xxxxxxxxxx",
userGroupName: "ccapi-tf-users-2",
description: "EMRClusterUserGroupDemo",
members: [
"emrclusteruserdemo1",
"emrclusteruserdemo3",
],
});
import pulumi
import pulumi_volcenginecc as volcenginecc
e_mr_cluster_user_group_demo = volcenginecc.emr.ClusterUserGroup("EMRClusterUserGroupDemo",
cluster_id="emr-xxxxxxxxxx",
user_group_name="ccapi-tf-users-2",
description="EMRClusterUserGroupDemo",
members=[
"emrclusteruserdemo1",
"emrclusteruserdemo3",
])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/emr"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := emr.NewClusterUserGroup(ctx, "EMRClusterUserGroupDemo", &emr.ClusterUserGroupArgs{
ClusterId: pulumi.String("emr-xxxxxxxxxx"),
UserGroupName: pulumi.String("ccapi-tf-users-2"),
Description: pulumi.String("EMRClusterUserGroupDemo"),
Members: pulumi.StringArray{
pulumi.String("emrclusteruserdemo1"),
pulumi.String("emrclusteruserdemo3"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
return await Deployment.RunAsync(() =>
{
var eMRClusterUserGroupDemo = new Volcenginecc.Emr.ClusterUserGroup("EMRClusterUserGroupDemo", new()
{
ClusterId = "emr-xxxxxxxxxx",
UserGroupName = "ccapi-tf-users-2",
Description = "EMRClusterUserGroupDemo",
Members = new[]
{
"emrclusteruserdemo1",
"emrclusteruserdemo3",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.volcengine.volcenginecc.emr.ClusterUserGroup;
import com.volcengine.volcenginecc.emr.ClusterUserGroupArgs;
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 eMRClusterUserGroupDemo = new ClusterUserGroup("eMRClusterUserGroupDemo", ClusterUserGroupArgs.builder()
.clusterId("emr-xxxxxxxxxx")
.userGroupName("ccapi-tf-users-2")
.description("EMRClusterUserGroupDemo")
.members(
"emrclusteruserdemo1",
"emrclusteruserdemo3")
.build());
}
}
resources:
eMRClusterUserGroupDemo:
type: volcenginecc:emr:ClusterUserGroup
name: EMRClusterUserGroupDemo
properties:
clusterId: emr-xxxxxxxxxx
userGroupName: ccapi-tf-users-2
description: EMRClusterUserGroupDemo
members:
- emrclusteruserdemo1
- emrclusteruserdemo3
Create ClusterUserGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ClusterUserGroup(name: string, args: ClusterUserGroupArgs, opts?: CustomResourceOptions);@overload
def ClusterUserGroup(resource_name: str,
args: ClusterUserGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ClusterUserGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
user_group_name: Optional[str] = None,
description: Optional[str] = None,
members: Optional[Sequence[str]] = None)func NewClusterUserGroup(ctx *Context, name string, args ClusterUserGroupArgs, opts ...ResourceOption) (*ClusterUserGroup, error)public ClusterUserGroup(string name, ClusterUserGroupArgs args, CustomResourceOptions? opts = null)
public ClusterUserGroup(String name, ClusterUserGroupArgs args)
public ClusterUserGroup(String name, ClusterUserGroupArgs args, CustomResourceOptions options)
type: volcenginecc:emr:ClusterUserGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ClusterUserGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ClusterUserGroupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ClusterUserGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterUserGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClusterUserGroupArgs
- 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 clusterUserGroupResource = new Volcenginecc.Emr.ClusterUserGroup("clusterUserGroupResource", new()
{
ClusterId = "string",
UserGroupName = "string",
Description = "string",
Members = new[]
{
"string",
},
});
example, err := emr.NewClusterUserGroup(ctx, "clusterUserGroupResource", &emr.ClusterUserGroupArgs{
ClusterId: pulumi.String("string"),
UserGroupName: pulumi.String("string"),
Description: pulumi.String("string"),
Members: pulumi.StringArray{
pulumi.String("string"),
},
})
var clusterUserGroupResource = new ClusterUserGroup("clusterUserGroupResource", ClusterUserGroupArgs.builder()
.clusterId("string")
.userGroupName("string")
.description("string")
.members("string")
.build());
cluster_user_group_resource = volcenginecc.emr.ClusterUserGroup("clusterUserGroupResource",
cluster_id="string",
user_group_name="string",
description="string",
members=["string"])
const clusterUserGroupResource = new volcenginecc.emr.ClusterUserGroup("clusterUserGroupResource", {
clusterId: "string",
userGroupName: "string",
description: "string",
members: ["string"],
});
type: volcenginecc:emr:ClusterUserGroup
properties:
clusterId: string
description: string
members:
- string
userGroupName: string
ClusterUserGroup 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 ClusterUserGroup resource accepts the following input properties:
- Cluster
Id string - Cluster ID.
- User
Group stringName - User group name.
- Description string
- User group description.
- Members List<string>
- Operations on special users, such as admin, are not supported.
- Cluster
Id string - Cluster ID.
- User
Group stringName - User group name.
- Description string
- User group description.
- Members []string
- Operations on special users, such as admin, are not supported.
- cluster
Id String - Cluster ID.
- user
Group StringName - User group name.
- description String
- User group description.
- members List<String>
- Operations on special users, such as admin, are not supported.
- cluster
Id string - Cluster ID.
- user
Group stringName - User group name.
- description string
- User group description.
- members string[]
- Operations on special users, such as admin, are not supported.
- cluster_
id str - Cluster ID.
- user_
group_ strname - User group name.
- description str
- User group description.
- members Sequence[str]
- Operations on special users, such as admin, are not supported.
- cluster
Id String - Cluster ID.
- user
Group StringName - User group name.
- description String
- User group description.
- members List<String>
- Operations on special users, such as admin, are not supported.
Outputs
All input properties are implicitly available as output properties. Additionally, the ClusterUserGroup 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 ClusterUserGroup Resource
Get an existing ClusterUserGroup 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?: ClusterUserGroupState, opts?: CustomResourceOptions): ClusterUserGroup@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
description: Optional[str] = None,
members: Optional[Sequence[str]] = None,
user_group_name: Optional[str] = None) -> ClusterUserGroupfunc GetClusterUserGroup(ctx *Context, name string, id IDInput, state *ClusterUserGroupState, opts ...ResourceOption) (*ClusterUserGroup, error)public static ClusterUserGroup Get(string name, Input<string> id, ClusterUserGroupState? state, CustomResourceOptions? opts = null)public static ClusterUserGroup get(String name, Output<String> id, ClusterUserGroupState state, CustomResourceOptions options)resources: _: type: volcenginecc:emr:ClusterUserGroup get: id: ${id}- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Cluster
Id string - Cluster ID.
- Description string
- User group description.
- Members List<string>
- Operations on special users, such as admin, are not supported.
- User
Group stringName - User group name.
- Cluster
Id string - Cluster ID.
- Description string
- User group description.
- Members []string
- Operations on special users, such as admin, are not supported.
- User
Group stringName - User group name.
- cluster
Id String - Cluster ID.
- description String
- User group description.
- members List<String>
- Operations on special users, such as admin, are not supported.
- user
Group StringName - User group name.
- cluster
Id string - Cluster ID.
- description string
- User group description.
- members string[]
- Operations on special users, such as admin, are not supported.
- user
Group stringName - User group name.
- cluster_
id str - Cluster ID.
- description str
- User group description.
- members Sequence[str]
- Operations on special users, such as admin, are not supported.
- user_
group_ strname - User group name.
- cluster
Id String - Cluster ID.
- description String
- User group description.
- members List<String>
- Operations on special users, such as admin, are not supported.
- user
Group StringName - User group name.
Import
$ pulumi import volcenginecc:emr/clusterUserGroup:ClusterUserGroup example "cluster_id|user_group_name"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Thursday, Apr 2, 2026 by Volcengine
