getEcsPrefixLists

This data source provides the Ecs Prefix Lists of the current Alibaba Cloud user.

NOTE: Available in v1.152.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.GetEcsPrefixListsArgs;
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 example = EcsFunctions.getEcsPrefixLists(GetEcsPrefixListsArgs.builder()
.ids("E2RY53-xxxx")
.nameRegex("tf-testAcc")
.build());
ctx.export("outputId", example.applyValue(getEcsPrefixListsResult -> getEcsPrefixListsResult.lists()[0].id()));
}
}

Return

A collection of values returned by getEcsPrefixLists.

Parameters

argument

A collection of arguments for invoking getEcsPrefixLists.


suspend fun getEcsPrefixLists(addressFamily: String? = null, enableDetails: Boolean? = null, ids: List<String>? = null, nameRegex: String? = null, outputFile: String? = null): GetEcsPrefixListsResult

Return

A collection of values returned by getEcsPrefixLists.

See also

Parameters

addressFamily

The address family of the prefix list. Valid values:IPv4,IPv6.

enableDetails
ids

A list of Prefix List IDs.

nameRegex

A regex string to filter results by prefix_list_name.

outputFile

File name where to save data source results (after running pulumi preview).


Return

A collection of values returned by getEcsPrefixLists.

See also

Parameters

argument

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