get Desktop Types
This data source provides the Ecd Desktop Types of the current Alibaba Cloud user.
NOTE: Available in v1.170.0+.
Example Usage
Basic Usage
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);
Content copied to clipboard
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)
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var ids = AliCloud.Eds.GetDesktopTypes.Invoke(new()
{
InstanceTypeFamily = "eds.hf",
});
return new Dictionary<string, object?>
{
["ecdDesktopTypeId1"] = ids.Apply(getDesktopTypesResult => getDesktopTypesResult.Types[0]?.Id),
};
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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()));
}
}
Content copied to clipboard
variables:
ids:
fn::invoke:
function: alicloud:eds:getDesktopTypes
arguments:
instanceTypeFamily: eds.hf
outputs:
ecdDesktopTypeId1: ${ids.types[0].id}
Content copied to clipboard
Return
A collection of values returned by getDesktopTypes.
Parameters
argument
A collection of arguments for invoking getDesktopTypes.
suspend fun getDesktopTypes(cpuCount: Int? = null, gpuCount: Double? = null, ids: List<String>? = null, instanceTypeFamily: String? = null, memorySize: Int? = null, outputFile: String? = null, status: String? = null): GetDesktopTypesResult
Return
A collection of values returned by getDesktopTypes.
Parameters
cpu Count
The CPU cores.
gpu Count
The GPU cores.
ids
A list of Desktop Type IDs.
instance Type Family
The Specification family. Valid values: eds.graphics
, eds.hf
, eds.general
, ecd.graphics
, ecd.performance
, ecd.advanced
, ecd.basic
.
memory Size
The Memory size. Unit: MiB.
output File
File name where to save data source results (after running pulumi preview
).
status
The status of the resource. Valid values: SUFFICIENT
.
See also
suspend fun getDesktopTypes(argument: suspend GetDesktopTypesPlainArgsBuilder.() -> Unit): GetDesktopTypesResult
Return
A collection of values returned by getDesktopTypes.
Parameters
argument
Builder for com.pulumi.alicloud.eds.kotlin.inputs.GetDesktopTypesPlainArgs.