tencentcloud.EmrUserManager
Explore with Pulumi AI
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:
- Instance
Id string - Cluster string ID.
- Password string
- PassWord.
- User
Group string - User group membership.
- User
Name string - Username.
- Emr
User stringManager Id - ID of the resource.
- Instance
Id string - Cluster string ID.
- Password string
- PassWord.
- User
Group string - User group membership.
- User
Name string - Username.
- Emr
User stringManager Id - ID of the resource.
- instance
Id String - Cluster string ID.
- password String
- PassWord.
- user
Group String - User group membership.
- user
Name String - Username.
- emr
User StringManager Id - ID of the resource.
- instance
Id string - Cluster string ID.
- password string
- PassWord.
- user
Group string - User group membership.
- user
Name string - Username.
- emr
User stringManager Id - 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_ strmanager_ id - ID of the resource.
- instance
Id String - Cluster string ID.
- password String
- PassWord.
- user
Group String - User group membership.
- user
Name String - Username.
- emr
User StringManager Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the EmrUserManager resource produces the following output properties:
- Create
Time string - Create time.
- Download
Keytab stringUrl - Download keytab url.
- Id string
- The provider-assigned unique ID for this managed resource.
- Support
Download boolKeytab - If support download keytab.
- User
Type string - User type.
- Create
Time string - Create time.
- Download
Keytab stringUrl - Download keytab url.
- Id string
- The provider-assigned unique ID for this managed resource.
- Support
Download boolKeytab - If support download keytab.
- User
Type string - User type.
- create
Time String - Create time.
- download
Keytab StringUrl - Download keytab url.
- id String
- The provider-assigned unique ID for this managed resource.
- support
Download BooleanKeytab - If support download keytab.
- user
Type String - User type.
- create
Time string - Create time.
- download
Keytab stringUrl - Download keytab url.
- id string
- The provider-assigned unique ID for this managed resource.
- support
Download booleanKeytab - If support download keytab.
- user
Type string - User type.
- create_
time str - Create time.
- download_
keytab_ strurl - Download keytab url.
- id str
- The provider-assigned unique ID for this managed resource.
- support_
download_ boolkeytab - If support download keytab.
- user_
type str - User type.
- create
Time String - Create time.
- download
Keytab StringUrl - Download keytab url.
- id String
- The provider-assigned unique ID for this managed resource.
- support
Download BooleanKeytab - If support download keytab.
- user
Type 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.
- Create
Time string - Create time.
- Download
Keytab stringUrl - Download keytab url.
- Emr
User stringManager Id - ID of the resource.
- Instance
Id string - Cluster string ID.
- Password string
- PassWord.
- Support
Download boolKeytab - If support download keytab.
- User
Group string - User group membership.
- User
Name string - Username.
- User
Type string - User type.
- Create
Time string - Create time.
- Download
Keytab stringUrl - Download keytab url.
- Emr
User stringManager Id - ID of the resource.
- Instance
Id string - Cluster string ID.
- Password string
- PassWord.
- Support
Download boolKeytab - If support download keytab.
- User
Group string - User group membership.
- User
Name string - Username.
- User
Type string - User type.
- create
Time String - Create time.
- download
Keytab StringUrl - Download keytab url.
- emr
User StringManager Id - ID of the resource.
- instance
Id String - Cluster string ID.
- password String
- PassWord.
- support
Download BooleanKeytab - If support download keytab.
- user
Group String - User group membership.
- user
Name String - Username.
- user
Type String - User type.
- create
Time string - Create time.
- download
Keytab stringUrl - Download keytab url.
- emr
User stringManager Id - ID of the resource.
- instance
Id string - Cluster string ID.
- password string
- PassWord.
- support
Download booleanKeytab - If support download keytab.
- user
Group string - User group membership.
- user
Name string - Username.
- user
Type string - User type.
- create_
time str - Create time.
- download_
keytab_ strurl - Download keytab url.
- emr_
user_ strmanager_ id - ID of the resource.
- instance_
id str - Cluster string ID.
- password str
- PassWord.
- support_
download_ boolkeytab - If support download keytab.
- user_
group str - User group membership.
- user_
name str - Username.
- user_
type str - User type.
- create
Time String - Create time.
- download
Keytab StringUrl - Download keytab url.
- emr
User StringManager Id - ID of the resource.
- instance
Id String - Cluster string ID.
- password String
- PassWord.
- support
Download BooleanKeytab - If support download keytab.
- user
Group String - User group membership.
- user
Name String - Username.
- user
Type 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.