BundleArgs

data class BundleArgs(val bundleName: Output<String>? = null, val description: Output<String>? = null, val desktopType: Output<String>? = null, val imageId: Output<String>? = null, val language: Output<String>? = null, val rootDiskPerformanceLevel: Output<String>? = null, val rootDiskSizeGib: Output<Int>? = null, val userDiskPerformanceLevel: Output<String>? = null, val userDiskSizeGibs: Output<List<Int>>? = null) : ConvertibleToJava<BundleArgs>

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>

Constructors

Link copied to clipboard
fun BundleArgs(bundleName: Output<String>? = null, description: Output<String>? = null, desktopType: Output<String>? = null, imageId: Output<String>? = null, language: Output<String>? = null, rootDiskPerformanceLevel: Output<String>? = null, rootDiskSizeGib: Output<Int>? = null, userDiskPerformanceLevel: Output<String>? = null, userDiskSizeGibs: Output<List<Int>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): BundleArgs

Properties

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

The name of the bundle.

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

The description of the bundle.

Link copied to clipboard
val desktopType: Output<String>? = null

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

Link copied to clipboard
val imageId: Output<String>? = null

The ID of the image.

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

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

Link copied to clipboard
val rootDiskPerformanceLevel: Output<String>? = null

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

Link copied to clipboard
val rootDiskSizeGib: Output<Int>? = null

The root disk size gib.

Link copied to clipboard
val userDiskPerformanceLevel: Output<String>? = null

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

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

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