get Ecs Prefix Lists
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()));
}
}
Content copied to clipboard
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
address Family
The address family of the prefix list. Valid values:IPv4
,IPv6
.
enable Details
ids
A list of Prefix List IDs.
name Regex
A regex string to filter results by prefix_list_name
.
output File
File name where to save data source results (after running pulumi preview
).
suspend fun getEcsPrefixLists(argument: suspend GetEcsPrefixListsPlainArgsBuilder.() -> Unit): GetEcsPrefixListsResult
Return
A collection of values returned by getEcsPrefixLists.
See also
Parameters
argument
Builder for com.pulumi.alicloud.ecs.kotlin.inputs.GetEcsPrefixListsPlainArgs.