ListArgs

data class ListArgs(val accountId: Output<String>? = null, val description: Output<String>? = null, val items: Output<List<ListItemArgs>>? = null, val kind: Output<String>? = null, val name: Output<String>? = null) : ConvertibleToJava<ListArgs>

Provides Lists (IPs, Redirects) to be used in Edge Rules Engine across all zones within the same account.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.List;
import com.pulumi.cloudflare.ListArgs;
import com.pulumi.cloudflare.inputs.ListItemArgs;
import com.pulumi.cloudflare.inputs.ListItemValueArgs;
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) {
var example = new List("example", ListArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.description("example redirects for a list")
.items(
ListItemArgs.builder()
.comment("one")
.value(ListItemValueArgs.builder()
.redirect(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build())
.build(),
ListItemArgs.builder()
.comment("two")
.value(ListItemValueArgs.builder()
.redirect(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build())
.build())
.kind("redirect")
.name("example_list")
.build());
}
}

Import

$ pulumi import cloudflare:index/list:List example <account_id>/<list_id>

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, description: Output<String>? = null, items: Output<List<ListItemArgs>>? = null, kind: Output<String>? = null, name: Output<String>? = null)

Properties

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

The account identifier to target for the resource.

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

An optional description of the list.

Link copied to clipboard
val items: Output<List<ListItemArgs>>? = null
Link copied to clipboard
val kind: Output<String>? = null

The type of items the list will contain.

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

The name of the list. Modifying this attribute will force creation of a new resource.

Functions

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