Alibaba Cloud

v3.28.0 published on Tuesday, Aug 16, 2022 by Pulumi

getDesktopTypes

This data source provides the Ecd Desktop Types of the current Alibaba Cloud user.

NOTE: Available in v1.170.0+.

Example Usage

Basic Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var ids = Output.Create(AliCloud.Eds.GetDesktopTypes.InvokeAsync(new AliCloud.Eds.GetDesktopTypesArgs
        {
            InstanceTypeFamily = "eds.hf",
        }));
        this.EcdDesktopTypeId1 = ids.Apply(ids => ids.Types?[0]?.Id);
    }

    [Output("ecdDesktopTypeId1")]
    public Output<string> EcdDesktopTypeId1 { get; set; }
}
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 {
		ids, err := eds.GetDesktopTypes(ctx, &eds.GetDesktopTypesArgs{
			InstanceTypeFamily: pulumi.StringRef("eds.hf"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("ecdDesktopTypeId1", ids.Types[0].Id)
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.eds.EdsFunctions;
import com.pulumi.alicloud.eds.inputs.GetDesktopTypesArgs;
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 ids = EdsFunctions.getDesktopTypes(GetDesktopTypesArgs.builder()
            .instanceTypeFamily("eds.hf")
            .build());

        ctx.export("ecdDesktopTypeId1", ids.applyValue(getDesktopTypesResult -> getDesktopTypesResult.types()[0].id()));
    }
}
import pulumi
import pulumi_alicloud as alicloud

ids = alicloud.eds.get_desktop_types(instance_type_family="eds.hf")
pulumi.export("ecdDesktopTypeId1", ids.types[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const ids = alicloud.eds.getDesktopTypes({
    instanceTypeFamily: "eds.hf",
});
export const ecdDesktopTypeId1 = ids.then(ids => ids.types?[0]?.id);
variables:
  ids:
    Fn::Invoke:
      Function: alicloud:eds:getDesktopTypes
      Arguments:
        instanceTypeFamily: eds.hf
outputs:
  ecdDesktopTypeId1: ${ids.types[0].id}

Using getDesktopTypes

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getDesktopTypes(args: GetDesktopTypesArgs, opts?: InvokeOptions): Promise<GetDesktopTypesResult>
function getDesktopTypesOutput(args: GetDesktopTypesOutputArgs, opts?: InvokeOptions): Output<GetDesktopTypesResult>
def get_desktop_types(cpu_count: Optional[int] = None,
                      gpu_count: Optional[float] = None,
                      ids: Optional[Sequence[str]] = None,
                      instance_type_family: Optional[str] = None,
                      memory_size: Optional[int] = None,
                      output_file: Optional[str] = None,
                      status: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetDesktopTypesResult
def get_desktop_types_output(cpu_count: Optional[pulumi.Input[int]] = None,
                      gpu_count: Optional[pulumi.Input[float]] = None,
                      ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                      instance_type_family: Optional[pulumi.Input[str]] = None,
                      memory_size: Optional[pulumi.Input[int]] = None,
                      output_file: Optional[pulumi.Input[str]] = None,
                      status: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetDesktopTypesResult]
func GetDesktopTypes(ctx *Context, args *GetDesktopTypesArgs, opts ...InvokeOption) (*GetDesktopTypesResult, error)
func GetDesktopTypesOutput(ctx *Context, args *GetDesktopTypesOutputArgs, opts ...InvokeOption) GetDesktopTypesResultOutput

> Note: This function is named GetDesktopTypes in the Go SDK.

public static class GetDesktopTypes 
{
    public static Task<GetDesktopTypesResult> InvokeAsync(GetDesktopTypesArgs args, InvokeOptions? opts = null)
    public static Output<GetDesktopTypesResult> Invoke(GetDesktopTypesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDesktopTypesResult> getDesktopTypes(GetDesktopTypesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: alicloud:eds/getDesktopTypes:getDesktopTypes
  arguments:
    # arguments dictionary

The following arguments are supported:

CpuCount int

The CPU cores.

GpuCount double

The GPU cores.

Ids List<string>

A list of Desktop Type IDs.

InstanceTypeFamily string

The Specification family.

MemorySize int

The Memory size. Unit: MiB.

OutputFile string
Status string

The status of the resource.

CpuCount int

The CPU cores.

GpuCount float64

The GPU cores.

Ids []string

A list of Desktop Type IDs.

InstanceTypeFamily string

The Specification family.

MemorySize int

The Memory size. Unit: MiB.

OutputFile string
Status string

The status of the resource.

cpuCount Integer

The CPU cores.

gpuCount Double

The GPU cores.

ids List<String>

A list of Desktop Type IDs.

instanceTypeFamily String

The Specification family.

memorySize Integer

The Memory size. Unit: MiB.

outputFile String
status String

The status of the resource.

cpuCount number

The CPU cores.

gpuCount number

The GPU cores.

ids string[]

A list of Desktop Type IDs.

instanceTypeFamily string

The Specification family.

memorySize number

The Memory size. Unit: MiB.

outputFile string
status string

The status of the resource.

cpu_count int

The CPU cores.

gpu_count float

The GPU cores.

ids Sequence[str]

A list of Desktop Type IDs.

instance_type_family str

The Specification family.

memory_size int

The Memory size. Unit: MiB.

output_file str
status str

The status of the resource.

cpuCount Number

The CPU cores.

gpuCount Number

The GPU cores.

ids List<String>

A list of Desktop Type IDs.

instanceTypeFamily String

The Specification family.

memorySize Number

The Memory size. Unit: MiB.

outputFile String
status String

The status of the resource.

getDesktopTypes Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>
Types List<Pulumi.AliCloud.Eds.Outputs.GetDesktopTypesType>
CpuCount int
GpuCount double
InstanceTypeFamily string
MemorySize int
OutputFile string
Status string
Id string

The provider-assigned unique ID for this managed resource.

Ids []string
Types []GetDesktopTypesType
CpuCount int
GpuCount float64
InstanceTypeFamily string
MemorySize int
OutputFile string
Status string
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
types List<GetDesktopTypesType>
cpuCount Integer
gpuCount Double
instanceTypeFamily String
memorySize Integer
outputFile String
status String
id string

The provider-assigned unique ID for this managed resource.

ids string[]
types GetDesktopTypesType[]
cpuCount number
gpuCount number
instanceTypeFamily string
memorySize number
outputFile string
status string
id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]
types Sequence[GetDesktopTypesType]
cpu_count int
gpu_count float
instance_type_family str
memory_size int
output_file str
status str
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
types List<Property Map>
cpuCount Number
gpuCount Number
instanceTypeFamily String
memorySize Number
outputFile String
status String

Supporting Types

GetDesktopTypesType

CpuCount string

The CPU cores.

DataDiskSize string

The size of the data disk. Unit: GiB.

DesktopTypeId string

Specification ID.

GpuCount double

The GPU cores.

GpuSpec string

The GPU video memory.

Id string

The ID of the Desktop Type.

InstanceTypeFamily string

The Specification family.

MemorySize string

The Memory size. Unit: MiB.

Status string

The status of the resource.

SystemDiskSize string

The size of the system disk. Unit: GiB.

CpuCount string

The CPU cores.

DataDiskSize string

The size of the data disk. Unit: GiB.

DesktopTypeId string

Specification ID.

GpuCount float64

The GPU cores.

GpuSpec string

The GPU video memory.

Id string

The ID of the Desktop Type.

InstanceTypeFamily string

The Specification family.

MemorySize string

The Memory size. Unit: MiB.

Status string

The status of the resource.

SystemDiskSize string

The size of the system disk. Unit: GiB.

cpuCount String

The CPU cores.

dataDiskSize String

The size of the data disk. Unit: GiB.

desktopTypeId String

Specification ID.

gpuCount Double

The GPU cores.

gpuSpec String

The GPU video memory.

id String

The ID of the Desktop Type.

instanceTypeFamily String

The Specification family.

memorySize String

The Memory size. Unit: MiB.

status String

The status of the resource.

systemDiskSize String

The size of the system disk. Unit: GiB.

cpuCount string

The CPU cores.

dataDiskSize string

The size of the data disk. Unit: GiB.

desktopTypeId string

Specification ID.

gpuCount number

The GPU cores.

gpuSpec string

The GPU video memory.

id string

The ID of the Desktop Type.

instanceTypeFamily string

The Specification family.

memorySize string

The Memory size. Unit: MiB.

status string

The status of the resource.

systemDiskSize string

The size of the system disk. Unit: GiB.

cpu_count str

The CPU cores.

data_disk_size str

The size of the data disk. Unit: GiB.

desktop_type_id str

Specification ID.

gpu_count float

The GPU cores.

gpu_spec str

The GPU video memory.

id str

The ID of the Desktop Type.

instance_type_family str

The Specification family.

memory_size str

The Memory size. Unit: MiB.

status str

The status of the resource.

system_disk_size str

The size of the system disk. Unit: GiB.

cpuCount String

The CPU cores.

dataDiskSize String

The size of the data disk. Unit: GiB.

desktopTypeId String

Specification ID.

gpuCount Number

The GPU cores.

gpuSpec String

The GPU video memory.

id String

The ID of the Desktop Type.

instanceTypeFamily String

The Specification family.

memorySize String

The Memory size. Unit: MiB.

status String

The status of the resource.

systemDiskSize String

The size of the system disk. Unit: GiB.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.