1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. eds
  5. User
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.eds.User

Explore with Pulumi AI

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",
});
Copy
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")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
resources:
  default:
    type: alicloud:eds:User
    properties:
      endUserId: terraform_example123
      email: tf.example@abc.com
      phone: '18888888888'
      password: Example_123
Copy

Create User Resource

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

Constructor syntax

new User(name: string, args: UserArgs, opts?: CustomResourceOptions);
@overload
def User(resource_name: str,
         args: UserArgs,
         opts: Optional[ResourceOptions] = None)

@overload
def User(resource_name: str,
         opts: Optional[ResourceOptions] = None,
         email: Optional[str] = None,
         end_user_id: Optional[str] = None,
         password: Optional[str] = None,
         phone: Optional[str] = None,
         status: Optional[str] = None)
func NewUser(ctx *Context, name string, args UserArgs, opts ...ResourceOption) (*User, error)
public User(string name, UserArgs args, CustomResourceOptions? opts = null)
public User(String name, UserArgs args)
public User(String name, UserArgs args, CustomResourceOptions options)
type: alicloud:eds:User
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. UserArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. UserArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. UserArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. UserArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. UserArgs
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 exampleuserResourceResourceFromEdsuser = new AliCloud.Eds.User("exampleuserResourceResourceFromEdsuser", new()
{
    Email = "string",
    EndUserId = "string",
    Password = "string",
    Phone = "string",
    Status = "string",
});
Copy
example, err := eds.NewUser(ctx, "exampleuserResourceResourceFromEdsuser", &eds.UserArgs{
	Email:     pulumi.String("string"),
	EndUserId: pulumi.String("string"),
	Password:  pulumi.String("string"),
	Phone:     pulumi.String("string"),
	Status:    pulumi.String("string"),
})
Copy
var exampleuserResourceResourceFromEdsuser = new com.pulumi.alicloud.eds.User("exampleuserResourceResourceFromEdsuser", com.pulumi.alicloud.eds.UserArgs.builder()
    .email("string")
    .endUserId("string")
    .password("string")
    .phone("string")
    .status("string")
    .build());
Copy
exampleuser_resource_resource_from_edsuser = alicloud.eds.User("exampleuserResourceResourceFromEdsuser",
    email="string",
    end_user_id="string",
    password="string",
    phone="string",
    status="string")
Copy
const exampleuserResourceResourceFromEdsuser = new alicloud.eds.User("exampleuserResourceResourceFromEdsuser", {
    email: "string",
    endUserId: "string",
    password: "string",
    phone: "string",
    status: "string",
});
Copy
type: alicloud:eds:User
properties:
    email: string
    endUserId: string
    password: string
    phone: string
    status: string
Copy

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

Email
This property is required.
Changes to this property will trigger replacement.
string
The email of the user email.
EndUserId
This property is required.
Changes to this property will trigger replacement.
string
The Username. The custom setting is composed of lowercase letters, numbers and underscores, and the length is 3~24 characters.
Password Changes to this property will trigger replacement. string
The password of the user password.
Phone Changes to this property will trigger replacement. string
The phone of the mobile phone number.
Status string
The status of the resource. Valid values: Unlocked, Locked.
Email
This property is required.
Changes to this property will trigger replacement.
string
The email of the user email.
EndUserId
This property is required.
Changes to this property will trigger replacement.
string
The Username. The custom setting is composed of lowercase letters, numbers and underscores, and the length is 3~24 characters.
Password Changes to this property will trigger replacement. string
The password of the user password.
Phone Changes to this property will trigger replacement. string
The phone of the mobile phone number.
Status string
The status of the resource. Valid values: Unlocked, Locked.
email
This property is required.
Changes to this property will trigger replacement.
String
The email of the user email.
endUserId
This property is required.
Changes to this property will trigger replacement.
String
The Username. The custom setting is composed of lowercase letters, numbers and underscores, and the length is 3~24 characters.
password Changes to this property will trigger replacement. String
The password of the user password.
phone Changes to this property will trigger replacement. String
The phone of the mobile phone number.
status String
The status of the resource. Valid values: Unlocked, Locked.
email
This property is required.
Changes to this property will trigger replacement.
string
The email of the user email.
endUserId
This property is required.
Changes to this property will trigger replacement.
string
The Username. The custom setting is composed of lowercase letters, numbers and underscores, and the length is 3~24 characters.
password Changes to this property will trigger replacement. string
The password of the user password.
phone Changes to this property will trigger replacement. string
The phone of the mobile phone number.
status string
The status of the resource. Valid values: Unlocked, Locked.
email
This property is required.
Changes to this property will trigger replacement.
str
The email of the user email.
end_user_id
This property is required.
Changes to this property will trigger replacement.
str
The Username. The custom setting is composed of lowercase letters, numbers and underscores, and the length is 3~24 characters.
password Changes to this property will trigger replacement. str
The password of the user password.
phone Changes to this property will trigger replacement. str
The phone of the mobile phone number.
status str
The status of the resource. Valid values: Unlocked, Locked.
email
This property is required.
Changes to this property will trigger replacement.
String
The email of the user email.
endUserId
This property is required.
Changes to this property will trigger replacement.
String
The Username. The custom setting is composed of lowercase letters, numbers and underscores, and the length is 3~24 characters.
password Changes to this property will trigger replacement. String
The password of the user password.
phone Changes to this property will trigger replacement. String
The phone of the mobile phone number.
status String
The status of the resource. Valid values: Unlocked, Locked.

Outputs

All input properties are implicitly available as output properties. Additionally, the User 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 User Resource

Get an existing User 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?: UserState, opts?: CustomResourceOptions): User
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        email: Optional[str] = None,
        end_user_id: Optional[str] = None,
        password: Optional[str] = None,
        phone: Optional[str] = None,
        status: Optional[str] = None) -> User
func GetUser(ctx *Context, name string, id IDInput, state *UserState, opts ...ResourceOption) (*User, error)
public static User Get(string name, Input<string> id, UserState? state, CustomResourceOptions? opts = null)
public static User get(String name, Output<String> id, UserState state, CustomResourceOptions options)
resources:  _:    type: alicloud:eds:User    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Email Changes to this property will trigger replacement. string
The email of the user email.
EndUserId Changes to this property will trigger replacement. string
The Username. The custom setting is composed of lowercase letters, numbers and underscores, and the length is 3~24 characters.
Password Changes to this property will trigger replacement. string
The password of the user password.
Phone Changes to this property will trigger replacement. string
The phone of the mobile phone number.
Status string
The status of the resource. Valid values: Unlocked, Locked.
Email Changes to this property will trigger replacement. string
The email of the user email.
EndUserId Changes to this property will trigger replacement. string
The Username. The custom setting is composed of lowercase letters, numbers and underscores, and the length is 3~24 characters.
Password Changes to this property will trigger replacement. string
The password of the user password.
Phone Changes to this property will trigger replacement. string
The phone of the mobile phone number.
Status string
The status of the resource. Valid values: Unlocked, Locked.
email Changes to this property will trigger replacement. String
The email of the user email.
endUserId Changes to this property will trigger replacement. String
The Username. The custom setting is composed of lowercase letters, numbers and underscores, and the length is 3~24 characters.
password Changes to this property will trigger replacement. String
The password of the user password.
phone Changes to this property will trigger replacement. String
The phone of the mobile phone number.
status String
The status of the resource. Valid values: Unlocked, Locked.
email Changes to this property will trigger replacement. string
The email of the user email.
endUserId Changes to this property will trigger replacement. string
The Username. The custom setting is composed of lowercase letters, numbers and underscores, and the length is 3~24 characters.
password Changes to this property will trigger replacement. string
The password of the user password.
phone Changes to this property will trigger replacement. string
The phone of the mobile phone number.
status string
The status of the resource. Valid values: Unlocked, Locked.
email Changes to this property will trigger replacement. str
The email of the user email.
end_user_id Changes to this property will trigger replacement. str
The Username. The custom setting is composed of lowercase letters, numbers and underscores, and the length is 3~24 characters.
password Changes to this property will trigger replacement. str
The password of the user password.
phone Changes to this property will trigger replacement. str
The phone of the mobile phone number.
status str
The status of the resource. Valid values: Unlocked, Locked.
email Changes to this property will trigger replacement. String
The email of the user email.
endUserId Changes to this property will trigger replacement. String
The Username. The custom setting is composed of lowercase letters, numbers and underscores, and the length is 3~24 characters.
password Changes to this property will trigger replacement. String
The password of the user password.
phone Changes to this property will trigger replacement. String
The phone of the mobile phone number.
status String
The status of the resource. Valid values: Unlocked, Locked.

Import

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

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

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

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.