published on Thursday, Mar 26, 2026 by Volcengine
published on Thursday, Mar 26, 2026 by Volcengine
E-MapReduce(EMR)集群中支持对用户进行组管理,允许您创建、编辑和删除用户组。
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 - 集群ID。
- User
Group stringName - 用户组名称。
- Description string
- 用户组描述。
- Members List<string>
- 用户组成员。不支持操作特殊用户,如admin等。
- Cluster
Id string - 集群ID。
- User
Group stringName - 用户组名称。
- Description string
- 用户组描述。
- Members []string
- 用户组成员。不支持操作特殊用户,如admin等。
- cluster
Id String - 集群ID。
- user
Group StringName - 用户组名称。
- description String
- 用户组描述。
- members List<String>
- 用户组成员。不支持操作特殊用户,如admin等。
- cluster
Id string - 集群ID。
- user
Group stringName - 用户组名称。
- description string
- 用户组描述。
- members string[]
- 用户组成员。不支持操作特殊用户,如admin等。
- cluster_
id str - 集群ID。
- user_
group_ strname - 用户组名称。
- description str
- 用户组描述。
- members Sequence[str]
- 用户组成员。不支持操作特殊用户,如admin等。
- cluster
Id String - 集群ID。
- user
Group StringName - 用户组名称。
- description String
- 用户组描述。
- members List<String>
- 用户组成员。不支持操作特殊用户,如admin等。
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 - 集群ID。
- Description string
- 用户组描述。
- Members List<string>
- 用户组成员。不支持操作特殊用户,如admin等。
- User
Group stringName - 用户组名称。
- Cluster
Id string - 集群ID。
- Description string
- 用户组描述。
- Members []string
- 用户组成员。不支持操作特殊用户,如admin等。
- User
Group stringName - 用户组名称。
- cluster
Id String - 集群ID。
- description String
- 用户组描述。
- members List<String>
- 用户组成员。不支持操作特殊用户,如admin等。
- user
Group StringName - 用户组名称。
- cluster
Id string - 集群ID。
- description string
- 用户组描述。
- members string[]
- 用户组成员。不支持操作特殊用户,如admin等。
- user
Group stringName - 用户组名称。
- cluster_
id str - 集群ID。
- description str
- 用户组描述。
- members Sequence[str]
- 用户组成员。不支持操作特殊用户,如admin等。
- user_
group_ strname - 用户组名称。
- cluster
Id String - 集群ID。
- description String
- 用户组描述。
- members List<String>
- 用户组成员。不支持操作特殊用户,如admin等。
- user
Group StringName - 用户组名称。
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, Mar 26, 2026 by Volcengine
