getList

suspend fun getList(argument: GetListPlainArgs): GetListResult

Use this data source to lookup a List.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.CloudflareFunctions;
import com.pulumi.cloudflare.inputs.GetListArgs;
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 = CloudflareFunctions.getList(GetListArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.name("list_name")
.build());
}
}

Return

A collection of values returned by getList.

Parameters

argument

A collection of arguments for invoking getList.


suspend fun getList(accountId: String, name: String): GetListResult

Return

A collection of values returned by getList.

See also

Parameters

accountId

The account identifier to target for the resource.

name

The list name to target for the resource.


suspend fun getList(argument: suspend GetListPlainArgsBuilder.() -> Unit): GetListResult

Return

A collection of values returned by getList.

See also

Parameters

argument

Builder for com.pulumi.cloudflare.kotlin.inputs.GetListPlainArgs.