Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.21.0 published on Tuesday, Jun 14, 2022 by Pulumi

Bundle

Provides a ECD Bundle resource.

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

NOTE: Available in v1.170.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var defaultImages = Output.Create(AliCloud.Eds.GetImages.InvokeAsync(new AliCloud.Eds.GetImagesArgs
        {
            ImageType = "SYSTEM",
            OsType = "Windows",
            DesktopInstanceType = "eds.hf.4c8g",
        }));
        var defaultDesktopTypes = Output.Create(AliCloud.Eds.GetDesktopTypes.InvokeAsync(new AliCloud.Eds.GetDesktopTypesArgs
        {
            InstanceTypeFamily = "eds.hf",
            CpuCount = 4,
            MemorySize = 8192,
        }));
        var defaultBundle = new AliCloud.Eds.Bundle("defaultBundle", new AliCloud.Eds.BundleArgs
        {
            Description = @var.Name,
            DesktopType = defaultDesktopTypes.Apply(defaultDesktopTypes => defaultDesktopTypes.Ids?[0]),
            BundleName = @var.Name,
            ImageId = defaultImages.Apply(defaultImages => defaultImages.Ids?[0]),
            UserDiskSizeGibs = 
            {
                70,
            },
            RootDiskSizeGib = 80,
            RootDiskPerformanceLevel = "PL1",
            UserDiskPerformanceLevel = "PL1",
        });
    }

}
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 {
		defaultImages, err := eds.GetImages(ctx, &eds.GetImagesArgs{
			ImageType:           pulumi.StringRef("SYSTEM"),
			OsType:              pulumi.StringRef("Windows"),
			DesktopInstanceType: pulumi.StringRef("eds.hf.4c8g"),
		}, nil)
		if err != nil {
			return err
		}
		defaultDesktopTypes, err := eds.GetDesktopTypes(ctx, &eds.GetDesktopTypesArgs{
			InstanceTypeFamily: pulumi.StringRef("eds.hf"),
			CpuCount:           pulumi.IntRef(4),
			MemorySize:         pulumi.IntRef(8192),
		}, nil)
		if err != nil {
			return err
		}
		_, err = eds.NewBundle(ctx, "defaultBundle", &eds.BundleArgs{
			Description: pulumi.Any(_var.Name),
			DesktopType: pulumi.String(defaultDesktopTypes.Ids[0]),
			BundleName:  pulumi.Any(_var.Name),
			ImageId:     pulumi.String(defaultImages.Ids[0]),
			UserDiskSizeGibs: pulumi.IntArray{
				pulumi.Int(70),
			},
			RootDiskSizeGib:          pulumi.Int(80),
			RootDiskPerformanceLevel: pulumi.String("PL1"),
			UserDiskPerformanceLevel: pulumi.String("PL1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

default_images = alicloud.eds.get_images(image_type="SYSTEM",
    os_type="Windows",
    desktop_instance_type="eds.hf.4c8g")
default_desktop_types = alicloud.eds.get_desktop_types(instance_type_family="eds.hf",
    cpu_count=4,
    memory_size=8192)
default_bundle = alicloud.eds.Bundle("defaultBundle",
    description=var["name"],
    desktop_type=default_desktop_types.ids[0],
    bundle_name=var["name"],
    image_id=default_images.ids[0],
    user_disk_size_gibs=[70],
    root_disk_size_gib=80,
    root_disk_performance_level="PL1",
    user_disk_performance_level="PL1")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const defaultImages = alicloud.eds.getImages({
    imageType: "SYSTEM",
    osType: "Windows",
    desktopInstanceType: "eds.hf.4c8g",
});
const defaultDesktopTypes = alicloud.eds.getDesktopTypes({
    instanceTypeFamily: "eds.hf",
    cpuCount: 4,
    memorySize: 8192,
});
const defaultBundle = new alicloud.eds.Bundle("defaultBundle", {
    description: _var.name,
    desktopType: defaultDesktopTypes.then(defaultDesktopTypes => defaultDesktopTypes.ids?[0]),
    bundleName: _var.name,
    imageId: defaultImages.then(defaultImages => defaultImages.ids?[0]),
    userDiskSizeGibs: [70],
    rootDiskSizeGib: 80,
    rootDiskPerformanceLevel: "PL1",
    userDiskPerformanceLevel: "PL1",
});

Coming soon!

Create a Bundle Resource

new Bundle(name: string, args: BundleArgs, opts?: CustomResourceOptions);
@overload
def Bundle(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           bundle_name: Optional[str] = None,
           description: Optional[str] = None,
           desktop_type: Optional[str] = None,
           image_id: Optional[str] = None,
           language: Optional[str] = None,
           root_disk_performance_level: Optional[str] = None,
           root_disk_size_gib: Optional[int] = None,
           user_disk_performance_level: Optional[str] = None,
           user_disk_size_gibs: Optional[Sequence[int]] = None)
@overload
def Bundle(resource_name: str,
           args: BundleArgs,
           opts: Optional[ResourceOptions] = None)
func NewBundle(ctx *Context, name string, args BundleArgs, opts ...ResourceOption) (*Bundle, error)
public Bundle(string name, BundleArgs args, CustomResourceOptions? opts = null)
public Bundle(String name, BundleArgs args)
public Bundle(String name, BundleArgs args, CustomResourceOptions options)
type: alicloud:eds:Bundle
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args BundleArgs
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 BundleArgs
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 BundleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args BundleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args BundleArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

DesktopType string

The desktop type. You can call alicloud.eds.getDesktopTypes to query desktop type.

ImageId string

The ID of the image.

RootDiskSizeGib int

The root disk size gib.

UserDiskSizeGibs List<int>

The size of the data disk. Currently, only one data disk can be set. Unit: GiB.

  • The size of the data disk that supports the setting corresponds to the specification. For more information, see Overview of Desktop Specifications.
  • The data disk size (user_disk_size_gib) set in the template must be greater than the data disk size (data_disk_size) in the mirror.
BundleName string

The name of the bundle.

Description string

The description of the bundle.

Language string

The language. Valid values: zh-CN, zh-HK, en-US, ja-JP.

RootDiskPerformanceLevel string

The root disk performance level. Valid values: PL0, PL1, PL2, PL3.

UserDiskPerformanceLevel string

The user disk performance level. Valid values: PL0, PL1, PL2, PL3.

DesktopType string

The desktop type. You can call alicloud.eds.getDesktopTypes to query desktop type.

ImageId string

The ID of the image.

RootDiskSizeGib int

The root disk size gib.

UserDiskSizeGibs []int

The size of the data disk. Currently, only one data disk can be set. Unit: GiB.

  • The size of the data disk that supports the setting corresponds to the specification. For more information, see Overview of Desktop Specifications.
  • The data disk size (user_disk_size_gib) set in the template must be greater than the data disk size (data_disk_size) in the mirror.
BundleName string

The name of the bundle.

Description string

The description of the bundle.

Language string

The language. Valid values: zh-CN, zh-HK, en-US, ja-JP.

RootDiskPerformanceLevel string

The root disk performance level. Valid values: PL0, PL1, PL2, PL3.

UserDiskPerformanceLevel string

The user disk performance level. Valid values: PL0, PL1, PL2, PL3.

desktopType String

The desktop type. You can call alicloud.eds.getDesktopTypes to query desktop type.

imageId String

The ID of the image.

rootDiskSizeGib Integer

The root disk size gib.

userDiskSizeGibs List<Integer>

The size of the data disk. Currently, only one data disk can be set. Unit: GiB.

  • The size of the data disk that supports the setting corresponds to the specification. For more information, see Overview of Desktop Specifications.
  • The data disk size (user_disk_size_gib) set in the template must be greater than the data disk size (data_disk_size) in the mirror.
bundleName String

The name of the bundle.

description String

The description of the bundle.

language String

The language. Valid values: zh-CN, zh-HK, en-US, ja-JP.

rootDiskPerformanceLevel String

The root disk performance level. Valid values: PL0, PL1, PL2, PL3.

userDiskPerformanceLevel String

The user disk performance level. Valid values: PL0, PL1, PL2, PL3.

desktopType string

The desktop type. You can call alicloud.eds.getDesktopTypes to query desktop type.

imageId string

The ID of the image.

rootDiskSizeGib number

The root disk size gib.

userDiskSizeGibs number[]

The size of the data disk. Currently, only one data disk can be set. Unit: GiB.

  • The size of the data disk that supports the setting corresponds to the specification. For more information, see Overview of Desktop Specifications.
  • The data disk size (user_disk_size_gib) set in the template must be greater than the data disk size (data_disk_size) in the mirror.
bundleName string

The name of the bundle.

description string

The description of the bundle.

language string

The language. Valid values: zh-CN, zh-HK, en-US, ja-JP.

rootDiskPerformanceLevel string

The root disk performance level. Valid values: PL0, PL1, PL2, PL3.

userDiskPerformanceLevel string

The user disk performance level. Valid values: PL0, PL1, PL2, PL3.

desktop_type str

The desktop type. You can call alicloud.eds.getDesktopTypes to query desktop type.

image_id str

The ID of the image.

root_disk_size_gib int

The root disk size gib.

user_disk_size_gibs Sequence[int]

The size of the data disk. Currently, only one data disk can be set. Unit: GiB.

  • The size of the data disk that supports the setting corresponds to the specification. For more information, see Overview of Desktop Specifications.
  • The data disk size (user_disk_size_gib) set in the template must be greater than the data disk size (data_disk_size) in the mirror.
bundle_name str

The name of the bundle.

description str

The description of the bundle.

language str

The language. Valid values: zh-CN, zh-HK, en-US, ja-JP.

root_disk_performance_level str

The root disk performance level. Valid values: PL0, PL1, PL2, PL3.

user_disk_performance_level str

The user disk performance level. Valid values: PL0, PL1, PL2, PL3.

desktopType String

The desktop type. You can call alicloud.eds.getDesktopTypes to query desktop type.

imageId String

The ID of the image.

rootDiskSizeGib Number

The root disk size gib.

userDiskSizeGibs List<Number>

The size of the data disk. Currently, only one data disk can be set. Unit: GiB.

  • The size of the data disk that supports the setting corresponds to the specification. For more information, see Overview of Desktop Specifications.
  • The data disk size (user_disk_size_gib) set in the template must be greater than the data disk size (data_disk_size) in the mirror.
bundleName String

The name of the bundle.

description String

The description of the bundle.

language String

The language. Valid values: zh-CN, zh-HK, en-US, ja-JP.

rootDiskPerformanceLevel String

The root disk performance level. Valid values: PL0, PL1, PL2, PL3.

userDiskPerformanceLevel String

The user disk performance level. Valid values: PL0, PL1, PL2, PL3.

Outputs

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

Get an existing Bundle 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?: BundleState, opts?: CustomResourceOptions): Bundle
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        bundle_name: Optional[str] = None,
        description: Optional[str] = None,
        desktop_type: Optional[str] = None,
        image_id: Optional[str] = None,
        language: Optional[str] = None,
        root_disk_performance_level: Optional[str] = None,
        root_disk_size_gib: Optional[int] = None,
        user_disk_performance_level: Optional[str] = None,
        user_disk_size_gibs: Optional[Sequence[int]] = None) -> Bundle
func GetBundle(ctx *Context, name string, id IDInput, state *BundleState, opts ...ResourceOption) (*Bundle, error)
public static Bundle Get(string name, Input<string> id, BundleState? state, CustomResourceOptions? opts = null)
public static Bundle get(String name, Output<String> id, BundleState 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:
BundleName string

The name of the bundle.

Description string

The description of the bundle.

DesktopType string

The desktop type. You can call alicloud.eds.getDesktopTypes to query desktop type.

ImageId string

The ID of the image.

Language string

The language. Valid values: zh-CN, zh-HK, en-US, ja-JP.

RootDiskPerformanceLevel string

The root disk performance level. Valid values: PL0, PL1, PL2, PL3.

RootDiskSizeGib int

The root disk size gib.

UserDiskPerformanceLevel string

The user disk performance level. Valid values: PL0, PL1, PL2, PL3.

UserDiskSizeGibs List<int>

The size of the data disk. Currently, only one data disk can be set. Unit: GiB.

  • The size of the data disk that supports the setting corresponds to the specification. For more information, see Overview of Desktop Specifications.
  • The data disk size (user_disk_size_gib) set in the template must be greater than the data disk size (data_disk_size) in the mirror.
BundleName string

The name of the bundle.

Description string

The description of the bundle.

DesktopType string

The desktop type. You can call alicloud.eds.getDesktopTypes to query desktop type.

ImageId string

The ID of the image.

Language string

The language. Valid values: zh-CN, zh-HK, en-US, ja-JP.

RootDiskPerformanceLevel string

The root disk performance level. Valid values: PL0, PL1, PL2, PL3.

RootDiskSizeGib int

The root disk size gib.

UserDiskPerformanceLevel string

The user disk performance level. Valid values: PL0, PL1, PL2, PL3.

UserDiskSizeGibs []int

The size of the data disk. Currently, only one data disk can be set. Unit: GiB.

  • The size of the data disk that supports the setting corresponds to the specification. For more information, see Overview of Desktop Specifications.
  • The data disk size (user_disk_size_gib) set in the template must be greater than the data disk size (data_disk_size) in the mirror.
bundleName String

The name of the bundle.

description String

The description of the bundle.

desktopType String

The desktop type. You can call alicloud.eds.getDesktopTypes to query desktop type.

imageId String

The ID of the image.

language String

The language. Valid values: zh-CN, zh-HK, en-US, ja-JP.

rootDiskPerformanceLevel String

The root disk performance level. Valid values: PL0, PL1, PL2, PL3.

rootDiskSizeGib Integer

The root disk size gib.

userDiskPerformanceLevel String

The user disk performance level. Valid values: PL0, PL1, PL2, PL3.

userDiskSizeGibs List<Integer>

The size of the data disk. Currently, only one data disk can be set. Unit: GiB.

  • The size of the data disk that supports the setting corresponds to the specification. For more information, see Overview of Desktop Specifications.
  • The data disk size (user_disk_size_gib) set in the template must be greater than the data disk size (data_disk_size) in the mirror.
bundleName string

The name of the bundle.

description string

The description of the bundle.

desktopType string

The desktop type. You can call alicloud.eds.getDesktopTypes to query desktop type.

imageId string

The ID of the image.

language string

The language. Valid values: zh-CN, zh-HK, en-US, ja-JP.

rootDiskPerformanceLevel string

The root disk performance level. Valid values: PL0, PL1, PL2, PL3.

rootDiskSizeGib number

The root disk size gib.

userDiskPerformanceLevel string

The user disk performance level. Valid values: PL0, PL1, PL2, PL3.

userDiskSizeGibs number[]

The size of the data disk. Currently, only one data disk can be set. Unit: GiB.

  • The size of the data disk that supports the setting corresponds to the specification. For more information, see Overview of Desktop Specifications.
  • The data disk size (user_disk_size_gib) set in the template must be greater than the data disk size (data_disk_size) in the mirror.
bundle_name str

The name of the bundle.

description str

The description of the bundle.

desktop_type str

The desktop type. You can call alicloud.eds.getDesktopTypes to query desktop type.

image_id str

The ID of the image.

language str

The language. Valid values: zh-CN, zh-HK, en-US, ja-JP.

root_disk_performance_level str

The root disk performance level. Valid values: PL0, PL1, PL2, PL3.

root_disk_size_gib int

The root disk size gib.

user_disk_performance_level str

The user disk performance level. Valid values: PL0, PL1, PL2, PL3.

user_disk_size_gibs Sequence[int]

The size of the data disk. Currently, only one data disk can be set. Unit: GiB.

  • The size of the data disk that supports the setting corresponds to the specification. For more information, see Overview of Desktop Specifications.
  • The data disk size (user_disk_size_gib) set in the template must be greater than the data disk size (data_disk_size) in the mirror.
bundleName String

The name of the bundle.

description String

The description of the bundle.

desktopType String

The desktop type. You can call alicloud.eds.getDesktopTypes to query desktop type.

imageId String

The ID of the image.

language String

The language. Valid values: zh-CN, zh-HK, en-US, ja-JP.

rootDiskPerformanceLevel String

The root disk performance level. Valid values: PL0, PL1, PL2, PL3.

rootDiskSizeGib Number

The root disk size gib.

userDiskPerformanceLevel String

The user disk performance level. Valid values: PL0, PL1, PL2, PL3.

userDiskSizeGibs List<Number>

The size of the data disk. Currently, only one data disk can be set. Unit: GiB.

  • The size of the data disk that supports the setting corresponds to the specification. For more information, see Overview of Desktop Specifications.
  • The data disk size (user_disk_size_gib) set in the template must be greater than the data disk size (data_disk_size) in the mirror.

Import

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

 $ pulumi import alicloud:eds/bundle:Bundle example <id>

Package Details

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

This Pulumi package is based on the alicloud Terraform Provider.