getEcsImagePipeline

This data source provides the Ecs Image Pipelines of the current Alibaba Cloud user.

NOTE: Available in v1.163.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.ecs.EcsFunctions;
import com.pulumi.alicloud.ecs.inputs.GetEcsImagePipelineArgs;
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 = EcsFunctions.getEcsImagePipeline(GetEcsImagePipelineArgs.builder()
.ids("example_value")
.build());
ctx.export("ecsImagePipelineId1", ids.applyValue(getEcsImagePipelineResult -> getEcsImagePipelineResult.pipelines()[0].id()));
final var nameRegex = EcsFunctions.getEcsImagePipeline(GetEcsImagePipelineArgs.builder()
.nameRegex("^my-ImagePipeline")
.build());
ctx.export("ecsImagePipelineId2", nameRegex.applyValue(getEcsImagePipelineResult -> getEcsImagePipelineResult.pipelines()[0].id()));
}
}

Return

A collection of values returned by getEcsImagePipeline.

Parameters

argument

A collection of arguments for invoking getEcsImagePipeline.


suspend fun getEcsImagePipeline(ids: List<String>? = null, name: String? = null, nameRegex: String? = null, outputFile: String? = null, resourceGroupId: String? = null, tags: Map<String, Any>? = null): GetEcsImagePipelineResult

Return

A collection of values returned by getEcsImagePipeline.

See also

Parameters

ids

A list of Image Pipeline ids.

name

The name of the image template.

nameRegex

A regex string to filter results by Image Pipeline name.

outputFile
resourceGroupId

The ID of the resource group to which the image template belongs.

tags

A mapping of tags to assign to the resource.


Return

A collection of values returned by getEcsImagePipeline.

See also

Parameters

argument

Builder for com.pulumi.alicloud.ecs.kotlin.inputs.GetEcsImagePipelinePlainArgs.