EcsImageComponentArgs

data class EcsImageComponentArgs(val componentType: Output<String>? = null, val content: Output<String>? = null, val description: Output<String>? = null, val imageComponentName: Output<String>? = null, val resourceGroupId: Output<String>? = null, val systemType: Output<String>? = null, val tags: Output<Map<String, Any>>? = null) : ConvertibleToJava<EcsImageComponentArgs>

Provides a ECS Image Component resource. For information about ECS Image Component and how to use it, see What is Image Component.

NOTE: Available in v1.159.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.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
import com.pulumi.alicloud.ecs.EcsImageComponent;
import com.pulumi.alicloud.ecs.EcsImageComponentArgs;
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 default = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
.nameRegex("default")
.build());
var example = new EcsImageComponent("example", EcsImageComponentArgs.builder()
.componentType("Build")
.content("RUN yum update -y")
.description("example_value")
.imageComponentName("example_value")
.resourceGroupId(default_.groups()[0].id())
.systemType("Linux")
.tags(Map.of("Created", "TF"))
.build());
}
}

Import

ECS Image Component can be imported using the id, e.g.

$ pulumi import alicloud:ecs/ecsImageComponent:EcsImageComponent example <id>

Constructors

Link copied to clipboard
fun EcsImageComponentArgs(componentType: Output<String>? = null, content: Output<String>? = null, description: Output<String>? = null, imageComponentName: Output<String>? = null, resourceGroupId: Output<String>? = null, systemType: Output<String>? = null, tags: Output<Map<String, Any>>? = null)

Functions

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

Properties

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

The type of the image component. Only image building components are supported. Valid values: Build.

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

The content of the image component. The content can consist of up to 127 commands.

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

The description of the image component. The description must be 2 to 256 characters in length and cannot start with http:// or https://.

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

The name of the image component. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-).

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

The ID of the resource group to which to assign the image component.

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

The operating system type supported by the image component. Only Linux is supported. Valid values: Linux.

Link copied to clipboard
val tags: Output<Map<String, Any>>? = null

A mapping of tags to assign to the resource.