1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. eds
  5. Command
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

alicloud.eds.Command

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

    Provides a ECD Command resource.

    For information about ECD Command and how to use it, see What is Command.

    NOTE: Available since v1.146.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    import * as random from "@pulumi/random";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const defaultRandomInteger = new random.RandomInteger("defaultRandomInteger", {
        min: 10000,
        max: 99999,
    });
    const defaultSimpleOfficeSite = new alicloud.eds.SimpleOfficeSite("defaultSimpleOfficeSite", {
        cidrBlock: "172.16.0.0/12",
        enableAdminAccess: true,
        desktopAccessType: "Internet",
        officeSiteName: pulumi.interpolate`${name}-${defaultRandomInteger.result}`,
    });
    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?.[0]?.id),
        desktopName: name,
    });
    const defaultCommand = new alicloud.eds.Command("defaultCommand", {
        commandContent: "ipconfig",
        commandType: "RunPowerShellScript",
        desktopId: defaultDesktop.id,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    import pulumi_random as random
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default_random_integer = random.RandomInteger("defaultRandomInteger",
        min=10000,
        max=99999)
    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=default_random_integer.result.apply(lambda result: f"{name}-{result}"))
    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[0].id,
        desktop_name=name)
    default_command = alicloud.eds.Command("defaultCommand",
        command_content="ipconfig",
        command_type="RunPowerShellScript",
        desktop_id=default_desktop.id)
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eds"
    	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
    	"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
    		}
    		defaultRandomInteger, err := random.NewRandomInteger(ctx, "defaultRandomInteger", &random.RandomIntegerArgs{
    			Min: pulumi.Int(10000),
    			Max: pulumi.Int(99999),
    		})
    		if err != nil {
    			return err
    		}
    		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: defaultRandomInteger.Result.ApplyT(func(result int) (string, error) {
    				return fmt.Sprintf("%v-%v", name, result), nil
    			}).(pulumi.StringOutput),
    		})
    		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
    		}
    		defaultDesktop, err := eds.NewDesktop(ctx, "defaultDesktop", &eds.DesktopArgs{
    			OfficeSiteId:  defaultSimpleOfficeSite.ID(),
    			PolicyGroupId: defaultEcdPolicyGroup.ID(),
    			BundleId:      pulumi.String(defaultBundles.Bundles[0].Id),
    			DesktopName:   pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = eds.NewCommand(ctx, "defaultCommand", &eds.CommandArgs{
    			CommandContent: pulumi.String("ipconfig"),
    			CommandType:    pulumi.String("RunPowerShellScript"),
    			DesktopId:      defaultDesktop.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    using Random = Pulumi.Random;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var defaultRandomInteger = new Random.RandomInteger("defaultRandomInteger", new()
        {
            Min = 10000,
            Max = 99999,
        });
    
        var defaultSimpleOfficeSite = new AliCloud.Eds.SimpleOfficeSite("defaultSimpleOfficeSite", new()
        {
            CidrBlock = "172.16.0.0/12",
            EnableAdminAccess = true,
            DesktopAccessType = "Internet",
            OfficeSiteName = defaultRandomInteger.Result.Apply(result => $"{name}-{result}"),
        });
    
        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[0]?.Id),
            DesktopName = name,
        });
    
        var defaultCommand = new AliCloud.Eds.Command("defaultCommand", new()
        {
            CommandContent = "ipconfig",
            CommandType = "RunPowerShellScript",
            DesktopId = defaultDesktop.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.random.RandomInteger;
    import com.pulumi.random.RandomIntegerArgs;
    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 com.pulumi.alicloud.eds.Command;
    import com.pulumi.alicloud.eds.CommandArgs;
    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 defaultRandomInteger = new RandomInteger("defaultRandomInteger", RandomIntegerArgs.builder()        
                .min(10000)
                .max(99999)
                .build());
    
            var defaultSimpleOfficeSite = new SimpleOfficeSite("defaultSimpleOfficeSite", SimpleOfficeSiteArgs.builder()        
                .cidrBlock("172.16.0.0/12")
                .enableAdminAccess(true)
                .desktopAccessType("Internet")
                .officeSiteName(defaultRandomInteger.result().applyValue(result -> String.format("%s-%s", name,result)))
                .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()[0].id()))
                .desktopName(name)
                .build());
    
            var defaultCommand = new Command("defaultCommand", CommandArgs.builder()        
                .commandContent("ipconfig")
                .commandType("RunPowerShellScript")
                .desktopId(defaultDesktop.id())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      defaultRandomInteger:
        type: random:RandomInteger
        properties:
          min: 10000
          max: 99999
      defaultSimpleOfficeSite:
        type: alicloud:eds:SimpleOfficeSite
        properties:
          cidrBlock: 172.16.0.0/12
          enableAdminAccess: true
          desktopAccessType: Internet
          officeSiteName: ${name}-${defaultRandomInteger.result}
      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[0].id}
          desktopName: ${name}
      defaultCommand:
        type: alicloud:eds:Command
        properties:
          commandContent: ipconfig
          commandType: RunPowerShellScript
          desktopId: ${defaultDesktop.id}
    variables:
      defaultBundles:
        fn::invoke:
          Function: alicloud:eds:getBundles
          Arguments:
            bundleType: SYSTEM
    

    Create Command Resource

    new Command(name: string, args: CommandArgs, opts?: CustomResourceOptions);
    @overload
    def Command(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                command_content: Optional[str] = None,
                command_type: Optional[str] = None,
                content_encoding: Optional[str] = None,
                desktop_id: Optional[str] = None,
                timeout: Optional[str] = None)
    @overload
    def Command(resource_name: str,
                args: CommandArgs,
                opts: Optional[ResourceOptions] = None)
    func NewCommand(ctx *Context, name string, args CommandArgs, opts ...ResourceOption) (*Command, error)
    public Command(string name, CommandArgs args, CustomResourceOptions? opts = null)
    public Command(String name, CommandArgs args)
    public Command(String name, CommandArgs args, CustomResourceOptions options)
    
    type: alicloud:eds:Command
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args CommandArgs
    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 CommandArgs
    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 CommandArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CommandArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CommandArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    CommandContent string
    The Contents of the Script to Base64 Encoded Transmission.
    CommandType string
    The Script Type. Valid values: RunBatScript, RunPowerShellScript.
    DesktopId string
    The desktop id of the Desktop.
    ContentEncoding string
    That Returns the Data Encoding Method. Valid values: Base64, PlainText.
    Timeout string
    The timeout period for script execution the unit is seconds. Default to: 60.
    CommandContent string
    The Contents of the Script to Base64 Encoded Transmission.
    CommandType string
    The Script Type. Valid values: RunBatScript, RunPowerShellScript.
    DesktopId string
    The desktop id of the Desktop.
    ContentEncoding string
    That Returns the Data Encoding Method. Valid values: Base64, PlainText.
    Timeout string
    The timeout period for script execution the unit is seconds. Default to: 60.
    commandContent String
    The Contents of the Script to Base64 Encoded Transmission.
    commandType String
    The Script Type. Valid values: RunBatScript, RunPowerShellScript.
    desktopId String
    The desktop id of the Desktop.
    contentEncoding String
    That Returns the Data Encoding Method. Valid values: Base64, PlainText.
    timeout String
    The timeout period for script execution the unit is seconds. Default to: 60.
    commandContent string
    The Contents of the Script to Base64 Encoded Transmission.
    commandType string
    The Script Type. Valid values: RunBatScript, RunPowerShellScript.
    desktopId string
    The desktop id of the Desktop.
    contentEncoding string
    That Returns the Data Encoding Method. Valid values: Base64, PlainText.
    timeout string
    The timeout period for script execution the unit is seconds. Default to: 60.
    command_content str
    The Contents of the Script to Base64 Encoded Transmission.
    command_type str
    The Script Type. Valid values: RunBatScript, RunPowerShellScript.
    desktop_id str
    The desktop id of the Desktop.
    content_encoding str
    That Returns the Data Encoding Method. Valid values: Base64, PlainText.
    timeout str
    The timeout period for script execution the unit is seconds. Default to: 60.
    commandContent String
    The Contents of the Script to Base64 Encoded Transmission.
    commandType String
    The Script Type. Valid values: RunBatScript, RunPowerShellScript.
    desktopId String
    The desktop id of the Desktop.
    contentEncoding String
    That Returns the Data Encoding Method. Valid values: Base64, PlainText.
    timeout String
    The timeout period for script execution the unit is seconds. Default to: 60.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Script Is Executed in the Overall Implementation of the State. Valid values: Pending, Failed, PartialFailed, Running, Stopped, Stopping, Finished, Success.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Script Is Executed in the Overall Implementation of the State. Valid values: Pending, Failed, PartialFailed, Running, Stopped, Stopping, Finished, Success.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Script Is Executed in the Overall Implementation of the State. Valid values: Pending, Failed, PartialFailed, Running, Stopped, Stopping, Finished, Success.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Script Is Executed in the Overall Implementation of the State. Valid values: Pending, Failed, PartialFailed, Running, Stopped, Stopping, Finished, Success.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Script Is Executed in the Overall Implementation of the State. Valid values: Pending, Failed, PartialFailed, Running, Stopped, Stopping, Finished, Success.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Script Is Executed in the Overall Implementation of the State. Valid values: Pending, Failed, PartialFailed, Running, Stopped, Stopping, Finished, Success.

    Look up Existing Command Resource

    Get an existing Command 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?: CommandState, opts?: CustomResourceOptions): Command
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            command_content: Optional[str] = None,
            command_type: Optional[str] = None,
            content_encoding: Optional[str] = None,
            desktop_id: Optional[str] = None,
            status: Optional[str] = None,
            timeout: Optional[str] = None) -> Command
    func GetCommand(ctx *Context, name string, id IDInput, state *CommandState, opts ...ResourceOption) (*Command, error)
    public static Command Get(string name, Input<string> id, CommandState? state, CustomResourceOptions? opts = null)
    public static Command get(String name, Output<String> id, CommandState 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.
    The following state arguments are supported:
    CommandContent string
    The Contents of the Script to Base64 Encoded Transmission.
    CommandType string
    The Script Type. Valid values: RunBatScript, RunPowerShellScript.
    ContentEncoding string
    That Returns the Data Encoding Method. Valid values: Base64, PlainText.
    DesktopId string
    The desktop id of the Desktop.
    Status string
    Script Is Executed in the Overall Implementation of the State. Valid values: Pending, Failed, PartialFailed, Running, Stopped, Stopping, Finished, Success.
    Timeout string
    The timeout period for script execution the unit is seconds. Default to: 60.
    CommandContent string
    The Contents of the Script to Base64 Encoded Transmission.
    CommandType string
    The Script Type. Valid values: RunBatScript, RunPowerShellScript.
    ContentEncoding string
    That Returns the Data Encoding Method. Valid values: Base64, PlainText.
    DesktopId string
    The desktop id of the Desktop.
    Status string
    Script Is Executed in the Overall Implementation of the State. Valid values: Pending, Failed, PartialFailed, Running, Stopped, Stopping, Finished, Success.
    Timeout string
    The timeout period for script execution the unit is seconds. Default to: 60.
    commandContent String
    The Contents of the Script to Base64 Encoded Transmission.
    commandType String
    The Script Type. Valid values: RunBatScript, RunPowerShellScript.
    contentEncoding String
    That Returns the Data Encoding Method. Valid values: Base64, PlainText.
    desktopId String
    The desktop id of the Desktop.
    status String
    Script Is Executed in the Overall Implementation of the State. Valid values: Pending, Failed, PartialFailed, Running, Stopped, Stopping, Finished, Success.
    timeout String
    The timeout period for script execution the unit is seconds. Default to: 60.
    commandContent string
    The Contents of the Script to Base64 Encoded Transmission.
    commandType string
    The Script Type. Valid values: RunBatScript, RunPowerShellScript.
    contentEncoding string
    That Returns the Data Encoding Method. Valid values: Base64, PlainText.
    desktopId string
    The desktop id of the Desktop.
    status string
    Script Is Executed in the Overall Implementation of the State. Valid values: Pending, Failed, PartialFailed, Running, Stopped, Stopping, Finished, Success.
    timeout string
    The timeout period for script execution the unit is seconds. Default to: 60.
    command_content str
    The Contents of the Script to Base64 Encoded Transmission.
    command_type str
    The Script Type. Valid values: RunBatScript, RunPowerShellScript.
    content_encoding str
    That Returns the Data Encoding Method. Valid values: Base64, PlainText.
    desktop_id str
    The desktop id of the Desktop.
    status str
    Script Is Executed in the Overall Implementation of the State. Valid values: Pending, Failed, PartialFailed, Running, Stopped, Stopping, Finished, Success.
    timeout str
    The timeout period for script execution the unit is seconds. Default to: 60.
    commandContent String
    The Contents of the Script to Base64 Encoded Transmission.
    commandType String
    The Script Type. Valid values: RunBatScript, RunPowerShellScript.
    contentEncoding String
    That Returns the Data Encoding Method. Valid values: Base64, PlainText.
    desktopId String
    The desktop id of the Desktop.
    status String
    Script Is Executed in the Overall Implementation of the State. Valid values: Pending, Failed, PartialFailed, Running, Stopped, Stopping, Finished, Success.
    timeout String
    The timeout period for script execution the unit is seconds. Default to: 60.

    Import

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

    $ pulumi import alicloud:eds/command:Command 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.
    alicloud logo
    Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi