WorkersKvNamespaceArgs

data class WorkersKvNamespaceArgs(val accountId: Output<String>? = null, val title: Output<String>? = null) : ConvertibleToJava<WorkersKvNamespaceArgs>

Provides the ability to manage Cloudflare Workers KV Namespace features.

This resource uses the Cloudflare account APIs. This requires setting the CLOUDFLARE_ACCOUNT_ID environment variable or account_id provider argument.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.WorkersKvNamespace;
import com.pulumi.cloudflare.WorkersKvNamespaceArgs;
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 WorkersKvNamespace("example", WorkersKvNamespaceArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.title("test-namespace")
.build());
}
}

Import

$ pulumi import cloudflare:index/workersKvNamespace:WorkersKvNamespace example <account_id>/<namespace_id>

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, title: 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 title: Output<String>? = null

Title value of the Worker KV Namespace.

Functions

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