UserArgs

data class UserArgs(val email: Output<String>? = null, val endUserId: Output<String>? = null, val password: Output<String>? = null, val phone: Output<String>? = null, val status: Output<String>? = null) : ConvertibleToJava<UserArgs>

Provides a Elastic Desktop Service (ECD) User resource. For information about Elastic Desktop Service (ECD) User and how to use it, see What is User.

NOTE: Available since v1.142.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = new alicloud.eds.User("default", {
endUserId: "terraform_example123",
email: "tf.example@abc.com",
phone: "18888888888",
password: "Example_123",
});
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.eds.User("default",
end_user_id="terraform_example123",
email="tf.example@abc.com",
phone="18888888888",
password="Example_123")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = new AliCloud.Eds.User("default", new()
{
EndUserId = "terraform_example123",
Email = "tf.example@abc.com",
Phone = "18888888888",
Password = "Example_123",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eds"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := eds.NewUser(ctx, "default", &eds.UserArgs{
EndUserId: pulumi.String("terraform_example123"),
Email: pulumi.String("tf.example@abc.com"),
Phone: pulumi.String("18888888888"),
Password: pulumi.String("Example_123"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.eds.User;
import com.pulumi.alicloud.eds.UserArgs;
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 default_ = new User("default", UserArgs.builder()
.endUserId("terraform_example123")
.email("tf.example@abc.com")
.phone("18888888888")
.password("Example_123")
.build());
}
}
resources:
default:
type: alicloud:eds:User
properties:
endUserId: terraform_example123
email: tf.example@abc.com
phone: '18888888888'
password: Example_123

Import

ECD User can be imported using the id, e.g.

$ pulumi import alicloud:eds/user:User example <end_user_id>

Constructors

Link copied to clipboard
constructor(email: Output<String>? = null, endUserId: Output<String>? = null, password: Output<String>? = null, phone: Output<String>? = null, status: Output<String>? = null)

Properties

Link copied to clipboard
val email: Output<String>? = null

The email of the user email.

Link copied to clipboard
val endUserId: Output<String>? = null

The Username. The custom setting is composed of lowercase letters, numbers and underscores, and the length is 3~24 characters.

Link copied to clipboard
val password: Output<String>? = null

The password of the user password.

Link copied to clipboard
val phone: Output<String>? = null

The phone of the mobile phone number.

Link copied to clipboard
val status: Output<String>? = null

The status of the resource. Valid values: Unlocked, Locked.

Functions

Link copied to clipboard
open override fun toJava(): UserArgs