alicloud.eds.Desktop
Explore with Pulumi AI
Provides a ECD Desktop resource.
For information about ECD Desktop and how to use it, see What is Desktop
NOTE: Available since v1.144.0.
Example Usage
Basic Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var defaultSimpleOfficeSite = new AliCloud.Eds.SimpleOfficeSite("defaultSimpleOfficeSite", new()
{
CidrBlock = "172.16.0.0/12",
EnableAdminAccess = true,
DesktopAccessType = "Internet",
OfficeSiteName = name,
});
var defaultEcdPolicyGroup = new AliCloud.Eds.EcdPolicyGroup("defaultEcdPolicyGroup", new()
{
PolicyGroupName = name,
Clipboard = "read",
LocalDrive = "read",
UsbRedirect = "off",
Watermark = "off",
AuthorizeAccessPolicyRules = new[]
{
new AliCloud.Eds.Inputs.EcdPolicyGroupAuthorizeAccessPolicyRuleArgs
{
Description = name,
CidrIp = "1.2.3.45/24",
},
},
AuthorizeSecurityPolicyRules = new[]
{
new AliCloud.Eds.Inputs.EcdPolicyGroupAuthorizeSecurityPolicyRuleArgs
{
Type = "inflow",
Policy = "accept",
Description = name,
PortRange = "80/80",
IpProtocol = "TCP",
Priority = "1",
CidrIp = "1.2.3.4/24",
},
},
});
var defaultBundles = AliCloud.Eds.GetBundles.Invoke(new()
{
BundleType = "SYSTEM",
});
var defaultDesktop = new AliCloud.Eds.Desktop("defaultDesktop", new()
{
OfficeSiteId = defaultSimpleOfficeSite.Id,
PolicyGroupId = defaultEcdPolicyGroup.Id,
BundleId = defaultBundles.Apply(getBundlesResult => getBundlesResult.Bundles[1]?.Id),
DesktopName = name,
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eds"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
defaultSimpleOfficeSite, err := eds.NewSimpleOfficeSite(ctx, "defaultSimpleOfficeSite", &eds.SimpleOfficeSiteArgs{
CidrBlock: pulumi.String("172.16.0.0/12"),
EnableAdminAccess: pulumi.Bool(true),
DesktopAccessType: pulumi.String("Internet"),
OfficeSiteName: pulumi.String(name),
})
if err != nil {
return err
}
defaultEcdPolicyGroup, err := eds.NewEcdPolicyGroup(ctx, "defaultEcdPolicyGroup", &eds.EcdPolicyGroupArgs{
PolicyGroupName: pulumi.String(name),
Clipboard: pulumi.String("read"),
LocalDrive: pulumi.String("read"),
UsbRedirect: pulumi.String("off"),
Watermark: pulumi.String("off"),
AuthorizeAccessPolicyRules: eds.EcdPolicyGroupAuthorizeAccessPolicyRuleArray{
&eds.EcdPolicyGroupAuthorizeAccessPolicyRuleArgs{
Description: pulumi.String(name),
CidrIp: pulumi.String("1.2.3.45/24"),
},
},
AuthorizeSecurityPolicyRules: eds.EcdPolicyGroupAuthorizeSecurityPolicyRuleArray{
&eds.EcdPolicyGroupAuthorizeSecurityPolicyRuleArgs{
Type: pulumi.String("inflow"),
Policy: pulumi.String("accept"),
Description: pulumi.String(name),
PortRange: pulumi.String("80/80"),
IpProtocol: pulumi.String("TCP"),
Priority: pulumi.String("1"),
CidrIp: pulumi.String("1.2.3.4/24"),
},
},
})
if err != nil {
return err
}
defaultBundles, err := eds.GetBundles(ctx, &eds.GetBundlesArgs{
BundleType: pulumi.StringRef("SYSTEM"),
}, nil)
if err != nil {
return err
}
_, err = eds.NewDesktop(ctx, "defaultDesktop", &eds.DesktopArgs{
OfficeSiteId: defaultSimpleOfficeSite.ID(),
PolicyGroupId: defaultEcdPolicyGroup.ID(),
BundleId: *pulumi.String(defaultBundles.Bundles[1].Id),
DesktopName: pulumi.String(name),
})
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.SimpleOfficeSite;
import com.pulumi.alicloud.eds.SimpleOfficeSiteArgs;
import com.pulumi.alicloud.eds.EcdPolicyGroup;
import com.pulumi.alicloud.eds.EcdPolicyGroupArgs;
import com.pulumi.alicloud.eds.inputs.EcdPolicyGroupAuthorizeAccessPolicyRuleArgs;
import com.pulumi.alicloud.eds.inputs.EcdPolicyGroupAuthorizeSecurityPolicyRuleArgs;
import com.pulumi.alicloud.eds.EdsFunctions;
import com.pulumi.alicloud.eds.inputs.GetBundlesArgs;
import com.pulumi.alicloud.eds.Desktop;
import com.pulumi.alicloud.eds.DesktopArgs;
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 config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
var defaultSimpleOfficeSite = new SimpleOfficeSite("defaultSimpleOfficeSite", SimpleOfficeSiteArgs.builder()
.cidrBlock("172.16.0.0/12")
.enableAdminAccess(true)
.desktopAccessType("Internet")
.officeSiteName(name)
.build());
var defaultEcdPolicyGroup = new EcdPolicyGroup("defaultEcdPolicyGroup", EcdPolicyGroupArgs.builder()
.policyGroupName(name)
.clipboard("read")
.localDrive("read")
.usbRedirect("off")
.watermark("off")
.authorizeAccessPolicyRules(EcdPolicyGroupAuthorizeAccessPolicyRuleArgs.builder()
.description(name)
.cidrIp("1.2.3.45/24")
.build())
.authorizeSecurityPolicyRules(EcdPolicyGroupAuthorizeSecurityPolicyRuleArgs.builder()
.type("inflow")
.policy("accept")
.description(name)
.portRange("80/80")
.ipProtocol("TCP")
.priority("1")
.cidrIp("1.2.3.4/24")
.build())
.build());
final var defaultBundles = EdsFunctions.getBundles(GetBundlesArgs.builder()
.bundleType("SYSTEM")
.build());
var defaultDesktop = new Desktop("defaultDesktop", DesktopArgs.builder()
.officeSiteId(defaultSimpleOfficeSite.id())
.policyGroupId(defaultEcdPolicyGroup.id())
.bundleId(defaultBundles.applyValue(getBundlesResult -> getBundlesResult.bundles()[1].id()))
.desktopName(name)
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default_simple_office_site = alicloud.eds.SimpleOfficeSite("defaultSimpleOfficeSite",
cidr_block="172.16.0.0/12",
enable_admin_access=True,
desktop_access_type="Internet",
office_site_name=name)
default_ecd_policy_group = alicloud.eds.EcdPolicyGroup("defaultEcdPolicyGroup",
policy_group_name=name,
clipboard="read",
local_drive="read",
usb_redirect="off",
watermark="off",
authorize_access_policy_rules=[alicloud.eds.EcdPolicyGroupAuthorizeAccessPolicyRuleArgs(
description=name,
cidr_ip="1.2.3.45/24",
)],
authorize_security_policy_rules=[alicloud.eds.EcdPolicyGroupAuthorizeSecurityPolicyRuleArgs(
type="inflow",
policy="accept",
description=name,
port_range="80/80",
ip_protocol="TCP",
priority="1",
cidr_ip="1.2.3.4/24",
)])
default_bundles = alicloud.eds.get_bundles(bundle_type="SYSTEM")
default_desktop = alicloud.eds.Desktop("defaultDesktop",
office_site_id=default_simple_office_site.id,
policy_group_id=default_ecd_policy_group.id,
bundle_id=default_bundles.bundles[1].id,
desktop_name=name)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const defaultSimpleOfficeSite = new alicloud.eds.SimpleOfficeSite("defaultSimpleOfficeSite", {
cidrBlock: "172.16.0.0/12",
enableAdminAccess: true,
desktopAccessType: "Internet",
officeSiteName: name,
});
const defaultEcdPolicyGroup = new alicloud.eds.EcdPolicyGroup("defaultEcdPolicyGroup", {
policyGroupName: name,
clipboard: "read",
localDrive: "read",
usbRedirect: "off",
watermark: "off",
authorizeAccessPolicyRules: [{
description: name,
cidrIp: "1.2.3.45/24",
}],
authorizeSecurityPolicyRules: [{
type: "inflow",
policy: "accept",
description: name,
portRange: "80/80",
ipProtocol: "TCP",
priority: "1",
cidrIp: "1.2.3.4/24",
}],
});
const defaultBundles = alicloud.eds.getBundles({
bundleType: "SYSTEM",
});
const defaultDesktop = new alicloud.eds.Desktop("defaultDesktop", {
officeSiteId: defaultSimpleOfficeSite.id,
policyGroupId: defaultEcdPolicyGroup.id,
bundleId: defaultBundles.then(defaultBundles => defaultBundles.bundles?.[1]?.id),
desktopName: name,
});
configuration:
name:
type: string
default: terraform-example
resources:
defaultSimpleOfficeSite:
type: alicloud:eds:SimpleOfficeSite
properties:
cidrBlock: 172.16.0.0/12
enableAdminAccess: true
desktopAccessType: Internet
officeSiteName: ${name}
defaultEcdPolicyGroup:
type: alicloud:eds:EcdPolicyGroup
properties:
policyGroupName: ${name}
clipboard: read
localDrive: read
usbRedirect: off
watermark: off
authorizeAccessPolicyRules:
- description: ${name}
cidrIp: 1.2.3.45/24
authorizeSecurityPolicyRules:
- type: inflow
policy: accept
description: ${name}
portRange: 80/80
ipProtocol: TCP
priority: '1'
cidrIp: 1.2.3.4/24
defaultDesktop:
type: alicloud:eds:Desktop
properties:
officeSiteId: ${defaultSimpleOfficeSite.id}
policyGroupId: ${defaultEcdPolicyGroup.id}
bundleId: ${defaultBundles.bundles[1].id}
desktopName: ${name}
variables:
defaultBundles:
fn::invoke:
Function: alicloud:eds:getBundles
Arguments:
bundleType: SYSTEM
Create Desktop Resource
new Desktop(name: string, args: DesktopArgs, opts?: CustomResourceOptions);
@overload
def Desktop(resource_name: str,
opts: Optional[ResourceOptions] = None,
amount: Optional[int] = None,
auto_pay: Optional[bool] = None,
auto_renew: Optional[bool] = None,
bundle_id: Optional[str] = None,
desktop_name: Optional[str] = None,
desktop_type: Optional[str] = None,
end_user_ids: Optional[Sequence[str]] = None,
host_name: Optional[str] = None,
office_site_id: Optional[str] = None,
payment_type: Optional[str] = None,
period: Optional[int] = None,
period_unit: Optional[str] = None,
policy_group_id: Optional[str] = None,
root_disk_size_gib: Optional[int] = None,
status: Optional[str] = None,
stopped_mode: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None,
user_assign_mode: Optional[str] = None,
user_disk_size_gib: Optional[int] = None)
@overload
def Desktop(resource_name: str,
args: DesktopArgs,
opts: Optional[ResourceOptions] = None)
func NewDesktop(ctx *Context, name string, args DesktopArgs, opts ...ResourceOption) (*Desktop, error)
public Desktop(string name, DesktopArgs args, CustomResourceOptions? opts = null)
public Desktop(String name, DesktopArgs args)
public Desktop(String name, DesktopArgs args, CustomResourceOptions options)
type: alicloud:eds:Desktop
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DesktopArgs
- 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 DesktopArgs
- 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 DesktopArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DesktopArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DesktopArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Desktop Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Desktop resource accepts the following input properties:
- Bundle
Id string The bundle id of the Desktop.
- Office
Site stringId The ID of the Simple Office Site.
- Policy
Group stringId The policy group id of the Desktop.
- Amount int
The amount of the Desktop.
- Auto
Pay bool The auto-pay of the Desktop whether to pay automatically. values:
true
,false
.- Auto
Renew bool The auto-renewal of the Desktop whether to renew automatically. It takes effect only when the parameter ChargeType is set to PrePaid. values:
true
,false
.- Desktop
Name string The desktop name of the Desktop.
- Desktop
Type string The desktop type of the Desktop.
- End
User List<string>Ids The desktop end user id of the Desktop.
- Host
Name string The hostname of the Desktop.
- Payment
Type string The payment type of the Desktop. Valid values:
PayAsYouGo
,Subscription
. Default toPayAsYouGo
.- Period int
The period of the Desktop.
- Period
Unit string The period unit of the Desktop.
- Root
Disk intSize Gib The root disk size gib of the Desktop.
- Status string
The status of the Desktop. Valid values:
Deleted
,Expired
,Pending
,Running
,Starting
,Stopped
,Stopping
.- Stopped
Mode string The stopped mode of the Desktop.
- Dictionary<string, object>
A mapping of tags to assign to the resource.
- User
Assign stringMode The user assign mode of the Desktop. Valid values:
ALL
,PER_USER
. Default toALL
.- User
Disk intSize Gib The user disk size gib of the Desktop.
- Bundle
Id string The bundle id of the Desktop.
- Office
Site stringId The ID of the Simple Office Site.
- Policy
Group stringId The policy group id of the Desktop.
- Amount int
The amount of the Desktop.
- Auto
Pay bool The auto-pay of the Desktop whether to pay automatically. values:
true
,false
.- Auto
Renew bool The auto-renewal of the Desktop whether to renew automatically. It takes effect only when the parameter ChargeType is set to PrePaid. values:
true
,false
.- Desktop
Name string The desktop name of the Desktop.
- Desktop
Type string The desktop type of the Desktop.
- End
User []stringIds The desktop end user id of the Desktop.
- Host
Name string The hostname of the Desktop.
- Payment
Type string The payment type of the Desktop. Valid values:
PayAsYouGo
,Subscription
. Default toPayAsYouGo
.- Period int
The period of the Desktop.
- Period
Unit string The period unit of the Desktop.
- Root
Disk intSize Gib The root disk size gib of the Desktop.
- Status string
The status of the Desktop. Valid values:
Deleted
,Expired
,Pending
,Running
,Starting
,Stopped
,Stopping
.- Stopped
Mode string The stopped mode of the Desktop.
- map[string]interface{}
A mapping of tags to assign to the resource.
- User
Assign stringMode The user assign mode of the Desktop. Valid values:
ALL
,PER_USER
. Default toALL
.- User
Disk intSize Gib The user disk size gib of the Desktop.
- bundle
Id String The bundle id of the Desktop.
- office
Site StringId The ID of the Simple Office Site.
- policy
Group StringId The policy group id of the Desktop.
- amount Integer
The amount of the Desktop.
- auto
Pay Boolean The auto-pay of the Desktop whether to pay automatically. values:
true
,false
.- auto
Renew Boolean The auto-renewal of the Desktop whether to renew automatically. It takes effect only when the parameter ChargeType is set to PrePaid. values:
true
,false
.- desktop
Name String The desktop name of the Desktop.
- desktop
Type String The desktop type of the Desktop.
- end
User List<String>Ids The desktop end user id of the Desktop.
- host
Name String The hostname of the Desktop.
- payment
Type String The payment type of the Desktop. Valid values:
PayAsYouGo
,Subscription
. Default toPayAsYouGo
.- period Integer
The period of the Desktop.
- period
Unit String The period unit of the Desktop.
- root
Disk IntegerSize Gib The root disk size gib of the Desktop.
- status String
The status of the Desktop. Valid values:
Deleted
,Expired
,Pending
,Running
,Starting
,Stopped
,Stopping
.- stopped
Mode String The stopped mode of the Desktop.
- Map<String,Object>
A mapping of tags to assign to the resource.
- user
Assign StringMode The user assign mode of the Desktop. Valid values:
ALL
,PER_USER
. Default toALL
.- user
Disk IntegerSize Gib The user disk size gib of the Desktop.
- bundle
Id string The bundle id of the Desktop.
- office
Site stringId The ID of the Simple Office Site.
- policy
Group stringId The policy group id of the Desktop.
- amount number
The amount of the Desktop.
- auto
Pay boolean The auto-pay of the Desktop whether to pay automatically. values:
true
,false
.- auto
Renew boolean The auto-renewal of the Desktop whether to renew automatically. It takes effect only when the parameter ChargeType is set to PrePaid. values:
true
,false
.- desktop
Name string The desktop name of the Desktop.
- desktop
Type string The desktop type of the Desktop.
- end
User string[]Ids The desktop end user id of the Desktop.
- host
Name string The hostname of the Desktop.
- payment
Type string The payment type of the Desktop. Valid values:
PayAsYouGo
,Subscription
. Default toPayAsYouGo
.- period number
The period of the Desktop.
- period
Unit string The period unit of the Desktop.
- root
Disk numberSize Gib The root disk size gib of the Desktop.
- status string
The status of the Desktop. Valid values:
Deleted
,Expired
,Pending
,Running
,Starting
,Stopped
,Stopping
.- stopped
Mode string The stopped mode of the Desktop.
- {[key: string]: any}
A mapping of tags to assign to the resource.
- user
Assign stringMode The user assign mode of the Desktop. Valid values:
ALL
,PER_USER
. Default toALL
.- user
Disk numberSize Gib The user disk size gib of the Desktop.
- bundle_
id str The bundle id of the Desktop.
- office_
site_ strid The ID of the Simple Office Site.
- policy_
group_ strid The policy group id of the Desktop.
- amount int
The amount of the Desktop.
- auto_
pay bool The auto-pay of the Desktop whether to pay automatically. values:
true
,false
.- auto_
renew bool The auto-renewal of the Desktop whether to renew automatically. It takes effect only when the parameter ChargeType is set to PrePaid. values:
true
,false
.- desktop_
name str The desktop name of the Desktop.
- desktop_
type str The desktop type of the Desktop.
- end_
user_ Sequence[str]ids The desktop end user id of the Desktop.
- host_
name str The hostname of the Desktop.
- payment_
type str The payment type of the Desktop. Valid values:
PayAsYouGo
,Subscription
. Default toPayAsYouGo
.- period int
The period of the Desktop.
- period_
unit str The period unit of the Desktop.
- root_
disk_ intsize_ gib The root disk size gib of the Desktop.
- status str
The status of the Desktop. Valid values:
Deleted
,Expired
,Pending
,Running
,Starting
,Stopped
,Stopping
.- stopped_
mode str The stopped mode of the Desktop.
- Mapping[str, Any]
A mapping of tags to assign to the resource.
- user_
assign_ strmode The user assign mode of the Desktop. Valid values:
ALL
,PER_USER
. Default toALL
.- user_
disk_ intsize_ gib The user disk size gib of the Desktop.
- bundle
Id String The bundle id of the Desktop.
- office
Site StringId The ID of the Simple Office Site.
- policy
Group StringId The policy group id of the Desktop.
- amount Number
The amount of the Desktop.
- auto
Pay Boolean The auto-pay of the Desktop whether to pay automatically. values:
true
,false
.- auto
Renew Boolean The auto-renewal of the Desktop whether to renew automatically. It takes effect only when the parameter ChargeType is set to PrePaid. values:
true
,false
.- desktop
Name String The desktop name of the Desktop.
- desktop
Type String The desktop type of the Desktop.
- end
User List<String>Ids The desktop end user id of the Desktop.
- host
Name String The hostname of the Desktop.
- payment
Type String The payment type of the Desktop. Valid values:
PayAsYouGo
,Subscription
. Default toPayAsYouGo
.- period Number
The period of the Desktop.
- period
Unit String The period unit of the Desktop.
- root
Disk NumberSize Gib The root disk size gib of the Desktop.
- status String
The status of the Desktop. Valid values:
Deleted
,Expired
,Pending
,Running
,Starting
,Stopped
,Stopping
.- stopped
Mode String The stopped mode of the Desktop.
- Map<Any>
A mapping of tags to assign to the resource.
- user
Assign StringMode The user assign mode of the Desktop. Valid values:
ALL
,PER_USER
. Default toALL
.- user
Disk NumberSize Gib The user disk size gib of the Desktop.
Outputs
All input properties are implicitly available as output properties. Additionally, the Desktop 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 Desktop Resource
Get an existing Desktop 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?: DesktopState, opts?: CustomResourceOptions): Desktop
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
amount: Optional[int] = None,
auto_pay: Optional[bool] = None,
auto_renew: Optional[bool] = None,
bundle_id: Optional[str] = None,
desktop_name: Optional[str] = None,
desktop_type: Optional[str] = None,
end_user_ids: Optional[Sequence[str]] = None,
host_name: Optional[str] = None,
office_site_id: Optional[str] = None,
payment_type: Optional[str] = None,
period: Optional[int] = None,
period_unit: Optional[str] = None,
policy_group_id: Optional[str] = None,
root_disk_size_gib: Optional[int] = None,
status: Optional[str] = None,
stopped_mode: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None,
user_assign_mode: Optional[str] = None,
user_disk_size_gib: Optional[int] = None) -> Desktop
func GetDesktop(ctx *Context, name string, id IDInput, state *DesktopState, opts ...ResourceOption) (*Desktop, error)
public static Desktop Get(string name, Input<string> id, DesktopState? state, CustomResourceOptions? opts = null)
public static Desktop get(String name, Output<String> id, DesktopState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Amount int
The amount of the Desktop.
- Auto
Pay bool The auto-pay of the Desktop whether to pay automatically. values:
true
,false
.- Auto
Renew bool The auto-renewal of the Desktop whether to renew automatically. It takes effect only when the parameter ChargeType is set to PrePaid. values:
true
,false
.- Bundle
Id string The bundle id of the Desktop.
- Desktop
Name string The desktop name of the Desktop.
- Desktop
Type string The desktop type of the Desktop.
- End
User List<string>Ids The desktop end user id of the Desktop.
- Host
Name string The hostname of the Desktop.
- Office
Site stringId The ID of the Simple Office Site.
- Payment
Type string The payment type of the Desktop. Valid values:
PayAsYouGo
,Subscription
. Default toPayAsYouGo
.- Period int
The period of the Desktop.
- Period
Unit string The period unit of the Desktop.
- Policy
Group stringId The policy group id of the Desktop.
- Root
Disk intSize Gib The root disk size gib of the Desktop.
- Status string
The status of the Desktop. Valid values:
Deleted
,Expired
,Pending
,Running
,Starting
,Stopped
,Stopping
.- Stopped
Mode string The stopped mode of the Desktop.
- Dictionary<string, object>
A mapping of tags to assign to the resource.
- User
Assign stringMode The user assign mode of the Desktop. Valid values:
ALL
,PER_USER
. Default toALL
.- User
Disk intSize Gib The user disk size gib of the Desktop.
- Amount int
The amount of the Desktop.
- Auto
Pay bool The auto-pay of the Desktop whether to pay automatically. values:
true
,false
.- Auto
Renew bool The auto-renewal of the Desktop whether to renew automatically. It takes effect only when the parameter ChargeType is set to PrePaid. values:
true
,false
.- Bundle
Id string The bundle id of the Desktop.
- Desktop
Name string The desktop name of the Desktop.
- Desktop
Type string The desktop type of the Desktop.
- End
User []stringIds The desktop end user id of the Desktop.
- Host
Name string The hostname of the Desktop.
- Office
Site stringId The ID of the Simple Office Site.
- Payment
Type string The payment type of the Desktop. Valid values:
PayAsYouGo
,Subscription
. Default toPayAsYouGo
.- Period int
The period of the Desktop.
- Period
Unit string The period unit of the Desktop.
- Policy
Group stringId The policy group id of the Desktop.
- Root
Disk intSize Gib The root disk size gib of the Desktop.
- Status string
The status of the Desktop. Valid values:
Deleted
,Expired
,Pending
,Running
,Starting
,Stopped
,Stopping
.- Stopped
Mode string The stopped mode of the Desktop.
- map[string]interface{}
A mapping of tags to assign to the resource.
- User
Assign stringMode The user assign mode of the Desktop. Valid values:
ALL
,PER_USER
. Default toALL
.- User
Disk intSize Gib The user disk size gib of the Desktop.
- amount Integer
The amount of the Desktop.
- auto
Pay Boolean The auto-pay of the Desktop whether to pay automatically. values:
true
,false
.- auto
Renew Boolean The auto-renewal of the Desktop whether to renew automatically. It takes effect only when the parameter ChargeType is set to PrePaid. values:
true
,false
.- bundle
Id String The bundle id of the Desktop.
- desktop
Name String The desktop name of the Desktop.
- desktop
Type String The desktop type of the Desktop.
- end
User List<String>Ids The desktop end user id of the Desktop.
- host
Name String The hostname of the Desktop.
- office
Site StringId The ID of the Simple Office Site.
- payment
Type String The payment type of the Desktop. Valid values:
PayAsYouGo
,Subscription
. Default toPayAsYouGo
.- period Integer
The period of the Desktop.
- period
Unit String The period unit of the Desktop.
- policy
Group StringId The policy group id of the Desktop.
- root
Disk IntegerSize Gib The root disk size gib of the Desktop.
- status String
The status of the Desktop. Valid values:
Deleted
,Expired
,Pending
,Running
,Starting
,Stopped
,Stopping
.- stopped
Mode String The stopped mode of the Desktop.
- Map<String,Object>
A mapping of tags to assign to the resource.
- user
Assign StringMode The user assign mode of the Desktop. Valid values:
ALL
,PER_USER
. Default toALL
.- user
Disk IntegerSize Gib The user disk size gib of the Desktop.
- amount number
The amount of the Desktop.
- auto
Pay boolean The auto-pay of the Desktop whether to pay automatically. values:
true
,false
.- auto
Renew boolean The auto-renewal of the Desktop whether to renew automatically. It takes effect only when the parameter ChargeType is set to PrePaid. values:
true
,false
.- bundle
Id string The bundle id of the Desktop.
- desktop
Name string The desktop name of the Desktop.
- desktop
Type string The desktop type of the Desktop.
- end
User string[]Ids The desktop end user id of the Desktop.
- host
Name string The hostname of the Desktop.
- office
Site stringId The ID of the Simple Office Site.
- payment
Type string The payment type of the Desktop. Valid values:
PayAsYouGo
,Subscription
. Default toPayAsYouGo
.- period number
The period of the Desktop.
- period
Unit string The period unit of the Desktop.
- policy
Group stringId The policy group id of the Desktop.
- root
Disk numberSize Gib The root disk size gib of the Desktop.
- status string
The status of the Desktop. Valid values:
Deleted
,Expired
,Pending
,Running
,Starting
,Stopped
,Stopping
.- stopped
Mode string The stopped mode of the Desktop.
- {[key: string]: any}
A mapping of tags to assign to the resource.
- user
Assign stringMode The user assign mode of the Desktop. Valid values:
ALL
,PER_USER
. Default toALL
.- user
Disk numberSize Gib The user disk size gib of the Desktop.
- amount int
The amount of the Desktop.
- auto_
pay bool The auto-pay of the Desktop whether to pay automatically. values:
true
,false
.- auto_
renew bool The auto-renewal of the Desktop whether to renew automatically. It takes effect only when the parameter ChargeType is set to PrePaid. values:
true
,false
.- bundle_
id str The bundle id of the Desktop.
- desktop_
name str The desktop name of the Desktop.
- desktop_
type str The desktop type of the Desktop.
- end_
user_ Sequence[str]ids The desktop end user id of the Desktop.
- host_
name str The hostname of the Desktop.
- office_
site_ strid The ID of the Simple Office Site.
- payment_
type str The payment type of the Desktop. Valid values:
PayAsYouGo
,Subscription
. Default toPayAsYouGo
.- period int
The period of the Desktop.
- period_
unit str The period unit of the Desktop.
- policy_
group_ strid The policy group id of the Desktop.
- root_
disk_ intsize_ gib The root disk size gib of the Desktop.
- status str
The status of the Desktop. Valid values:
Deleted
,Expired
,Pending
,Running
,Starting
,Stopped
,Stopping
.- stopped_
mode str The stopped mode of the Desktop.
- Mapping[str, Any]
A mapping of tags to assign to the resource.
- user_
assign_ strmode The user assign mode of the Desktop. Valid values:
ALL
,PER_USER
. Default toALL
.- user_
disk_ intsize_ gib The user disk size gib of the Desktop.
- amount Number
The amount of the Desktop.
- auto
Pay Boolean The auto-pay of the Desktop whether to pay automatically. values:
true
,false
.- auto
Renew Boolean The auto-renewal of the Desktop whether to renew automatically. It takes effect only when the parameter ChargeType is set to PrePaid. values:
true
,false
.- bundle
Id String The bundle id of the Desktop.
- desktop
Name String The desktop name of the Desktop.
- desktop
Type String The desktop type of the Desktop.
- end
User List<String>Ids The desktop end user id of the Desktop.
- host
Name String The hostname of the Desktop.
- office
Site StringId The ID of the Simple Office Site.
- payment
Type String The payment type of the Desktop. Valid values:
PayAsYouGo
,Subscription
. Default toPayAsYouGo
.- period Number
The period of the Desktop.
- period
Unit String The period unit of the Desktop.
- policy
Group StringId The policy group id of the Desktop.
- root
Disk NumberSize Gib The root disk size gib of the Desktop.
- status String
The status of the Desktop. Valid values:
Deleted
,Expired
,Pending
,Running
,Starting
,Stopped
,Stopping
.- stopped
Mode String The stopped mode of the Desktop.
- Map<Any>
A mapping of tags to assign to the resource.
- user
Assign StringMode The user assign mode of the Desktop. Valid values:
ALL
,PER_USER
. Default toALL
.- user
Disk NumberSize Gib The user disk size gib of the Desktop.
Import
ECD Desktop can be imported using the id, e.g.
$ pulumi import alicloud:eds/desktop:Desktop example <id>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.