1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. EmrUserManager
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.EmrUserManager

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a emr user

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const myEmr = tencentcloud.getEmr({
        displayStrategy: "clusterList",
    });
    const userManager = new tencentcloud.EmrUserManager("userManager", {
        instanceId: myEmr.then(myEmr => myEmr.clusters?.[0]?.clusterId),
        userName: "tf-test",
        userGroup: "group1",
        password: "tf@123456",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    my_emr = tencentcloud.get_emr(display_strategy="clusterList")
    user_manager = tencentcloud.EmrUserManager("userManager",
        instance_id=my_emr.clusters[0].cluster_id,
        user_name="tf-test",
        user_group="group1",
        password="tf@123456")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		myEmr, err := tencentcloud.GetEmr(ctx, &tencentcloud.GetEmrArgs{
    			DisplayStrategy: "clusterList",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewEmrUserManager(ctx, "userManager", &tencentcloud.EmrUserManagerArgs{
    			InstanceId: pulumi.String(myEmr.Clusters[0].ClusterId),
    			UserName:   pulumi.String("tf-test"),
    			UserGroup:  pulumi.String("group1"),
    			Password:   pulumi.String("tf@123456"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var myEmr = Tencentcloud.GetEmr.Invoke(new()
        {
            DisplayStrategy = "clusterList",
        });
    
        var userManager = new Tencentcloud.EmrUserManager("userManager", new()
        {
            InstanceId = myEmr.Apply(getEmrResult => getEmrResult.Clusters[0]?.ClusterId),
            UserName = "tf-test",
            UserGroup = "group1",
            Password = "tf@123456",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetEmrArgs;
    import com.pulumi.tencentcloud.EmrUserManager;
    import com.pulumi.tencentcloud.EmrUserManagerArgs;
    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 myEmr = TencentcloudFunctions.getEmr(GetEmrArgs.builder()
                .displayStrategy("clusterList")
                .build());
    
            var userManager = new EmrUserManager("userManager", EmrUserManagerArgs.builder()
                .instanceId(myEmr.applyValue(getEmrResult -> getEmrResult.clusters()[0].clusterId()))
                .userName("tf-test")
                .userGroup("group1")
                .password("tf@123456")
                .build());
    
        }
    }
    
    resources:
      userManager:
        type: tencentcloud:EmrUserManager
        properties:
          instanceId: ${myEmr.clusters[0].clusterId}
          userName: tf-test
          userGroup: group1
          password: tf@123456
    variables:
      myEmr:
        fn::invoke:
          function: tencentcloud:getEmr
          arguments:
            displayStrategy: clusterList
    

    Create EmrUserManager Resource

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

    Constructor syntax

    new EmrUserManager(name: string, args: EmrUserManagerArgs, opts?: CustomResourceOptions);
    @overload
    def EmrUserManager(resource_name: str,
                       args: EmrUserManagerArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def EmrUserManager(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       instance_id: Optional[str] = None,
                       password: Optional[str] = None,
                       user_group: Optional[str] = None,
                       user_name: Optional[str] = None,
                       emr_user_manager_id: Optional[str] = None)
    func NewEmrUserManager(ctx *Context, name string, args EmrUserManagerArgs, opts ...ResourceOption) (*EmrUserManager, error)
    public EmrUserManager(string name, EmrUserManagerArgs args, CustomResourceOptions? opts = null)
    public EmrUserManager(String name, EmrUserManagerArgs args)
    public EmrUserManager(String name, EmrUserManagerArgs args, CustomResourceOptions options)
    
    type: tencentcloud:EmrUserManager
    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 EmrUserManagerArgs
    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 EmrUserManagerArgs
    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 EmrUserManagerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EmrUserManagerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EmrUserManagerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    EmrUserManager 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 EmrUserManager resource accepts the following input properties:

    InstanceId string
    Cluster string ID.
    Password string
    PassWord.
    UserGroup string
    User group membership.
    UserName string
    Username.
    EmrUserManagerId string
    ID of the resource.
    InstanceId string
    Cluster string ID.
    Password string
    PassWord.
    UserGroup string
    User group membership.
    UserName string
    Username.
    EmrUserManagerId string
    ID of the resource.
    instanceId String
    Cluster string ID.
    password String
    PassWord.
    userGroup String
    User group membership.
    userName String
    Username.
    emrUserManagerId String
    ID of the resource.
    instanceId string
    Cluster string ID.
    password string
    PassWord.
    userGroup string
    User group membership.
    userName string
    Username.
    emrUserManagerId string
    ID of the resource.
    instance_id str
    Cluster string ID.
    password str
    PassWord.
    user_group str
    User group membership.
    user_name str
    Username.
    emr_user_manager_id str
    ID of the resource.
    instanceId String
    Cluster string ID.
    password String
    PassWord.
    userGroup String
    User group membership.
    userName String
    Username.
    emrUserManagerId String
    ID of the resource.

    Outputs

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

    CreateTime string
    Create time.
    DownloadKeytabUrl string
    Download keytab url.
    Id string
    The provider-assigned unique ID for this managed resource.
    SupportDownloadKeytab bool
    If support download keytab.
    UserType string
    User type.
    CreateTime string
    Create time.
    DownloadKeytabUrl string
    Download keytab url.
    Id string
    The provider-assigned unique ID for this managed resource.
    SupportDownloadKeytab bool
    If support download keytab.
    UserType string
    User type.
    createTime String
    Create time.
    downloadKeytabUrl String
    Download keytab url.
    id String
    The provider-assigned unique ID for this managed resource.
    supportDownloadKeytab Boolean
    If support download keytab.
    userType String
    User type.
    createTime string
    Create time.
    downloadKeytabUrl string
    Download keytab url.
    id string
    The provider-assigned unique ID for this managed resource.
    supportDownloadKeytab boolean
    If support download keytab.
    userType string
    User type.
    create_time str
    Create time.
    download_keytab_url str
    Download keytab url.
    id str
    The provider-assigned unique ID for this managed resource.
    support_download_keytab bool
    If support download keytab.
    user_type str
    User type.
    createTime String
    Create time.
    downloadKeytabUrl String
    Download keytab url.
    id String
    The provider-assigned unique ID for this managed resource.
    supportDownloadKeytab Boolean
    If support download keytab.
    userType String
    User type.

    Look up Existing EmrUserManager Resource

    Get an existing EmrUserManager 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?: EmrUserManagerState, opts?: CustomResourceOptions): EmrUserManager
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            download_keytab_url: Optional[str] = None,
            emr_user_manager_id: Optional[str] = None,
            instance_id: Optional[str] = None,
            password: Optional[str] = None,
            support_download_keytab: Optional[bool] = None,
            user_group: Optional[str] = None,
            user_name: Optional[str] = None,
            user_type: Optional[str] = None) -> EmrUserManager
    func GetEmrUserManager(ctx *Context, name string, id IDInput, state *EmrUserManagerState, opts ...ResourceOption) (*EmrUserManager, error)
    public static EmrUserManager Get(string name, Input<string> id, EmrUserManagerState? state, CustomResourceOptions? opts = null)
    public static EmrUserManager get(String name, Output<String> id, EmrUserManagerState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:EmrUserManager    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.
    The following state arguments are supported:
    CreateTime string
    Create time.
    DownloadKeytabUrl string
    Download keytab url.
    EmrUserManagerId string
    ID of the resource.
    InstanceId string
    Cluster string ID.
    Password string
    PassWord.
    SupportDownloadKeytab bool
    If support download keytab.
    UserGroup string
    User group membership.
    UserName string
    Username.
    UserType string
    User type.
    CreateTime string
    Create time.
    DownloadKeytabUrl string
    Download keytab url.
    EmrUserManagerId string
    ID of the resource.
    InstanceId string
    Cluster string ID.
    Password string
    PassWord.
    SupportDownloadKeytab bool
    If support download keytab.
    UserGroup string
    User group membership.
    UserName string
    Username.
    UserType string
    User type.
    createTime String
    Create time.
    downloadKeytabUrl String
    Download keytab url.
    emrUserManagerId String
    ID of the resource.
    instanceId String
    Cluster string ID.
    password String
    PassWord.
    supportDownloadKeytab Boolean
    If support download keytab.
    userGroup String
    User group membership.
    userName String
    Username.
    userType String
    User type.
    createTime string
    Create time.
    downloadKeytabUrl string
    Download keytab url.
    emrUserManagerId string
    ID of the resource.
    instanceId string
    Cluster string ID.
    password string
    PassWord.
    supportDownloadKeytab boolean
    If support download keytab.
    userGroup string
    User group membership.
    userName string
    Username.
    userType string
    User type.
    create_time str
    Create time.
    download_keytab_url str
    Download keytab url.
    emr_user_manager_id str
    ID of the resource.
    instance_id str
    Cluster string ID.
    password str
    PassWord.
    support_download_keytab bool
    If support download keytab.
    user_group str
    User group membership.
    user_name str
    Username.
    user_type str
    User type.
    createTime String
    Create time.
    downloadKeytabUrl String
    Download keytab url.
    emrUserManagerId String
    ID of the resource.
    instanceId String
    Cluster string ID.
    password String
    PassWord.
    supportDownloadKeytab Boolean
    If support download keytab.
    userGroup String
    User group membership.
    userName String
    Username.
    userType String
    User type.

    Import

    emr user_manager can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/emrUserManager:EmrUserManager user_manager instanceId#userName
    

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

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack