Bundle

class Bundle : KotlinCustomResource

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

NOTE: Available since v1.170.0.

Example Usage

Basic Usage

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.GetImagesArgs;
import com.pulumi.alicloud.eds.inputs.GetDesktopTypesArgs;
import com.pulumi.alicloud.eds.Bundle;
import com.pulumi.alicloud.eds.BundleArgs;
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");
final var defaultImages = EdsFunctions.getImages(GetImagesArgs.builder()
.imageType("SYSTEM")
.osType("Windows")
.desktopInstanceType("eds.hf.4c8g")
.build());
final var defaultDesktopTypes = EdsFunctions.getDesktopTypes(GetDesktopTypesArgs.builder()
.instanceTypeFamily("eds.hf")
.cpuCount(4)
.memorySize(8192)
.build());
var defaultBundle = new Bundle("defaultBundle", BundleArgs.builder()
.description(name)
.desktopType(defaultDesktopTypes.applyValue(getDesktopTypesResult -> getDesktopTypesResult.ids()[0]))
.bundleName(name)
.imageId(defaultImages.applyValue(getImagesResult -> getImagesResult.ids()[0]))
.userDiskSizeGibs(70)
.rootDiskSizeGib(80)
.rootDiskPerformanceLevel("PL1")
.userDiskPerformanceLevel("PL1")
.build());
}
}

Import

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

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

Properties

Link copied to clipboard
val bundleName: Output<String>?

The name of the bundle.

Link copied to clipboard
val description: Output<String>?

The description of the bundle.

Link copied to clipboard
val desktopType: Output<String>

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val imageId: Output<String>

The ID of the image.

Link copied to clipboard
val language: Output<String>?

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard
val rootDiskSizeGib: Output<Int>

The root disk size gib.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

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

Link copied to clipboard
val userDiskSizeGibs: Output<List<Int>>

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