List

class List : KotlinCustomResource

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>

Properties

Link copied to clipboard
val accountId: Output<String>

The account identifier to target for the resource.

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

An optional description of the list.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val items: Output<List<ListItem>>?
Link copied to clipboard
val kind: Output<String>

The type of items the list will contain.

Link copied to clipboard
val name: Output<String>

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>