D1Database

class D1Database : KotlinCustomResource

The D1 Database resource allows you to manage Cloudflare D1 databases. !> When a D1 Database is replaced all the data is lost. Please ensure you have a backup of your data before replacing a D1 Database.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.D1Database;
import com.pulumi.cloudflare.D1DatabaseArgs;
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 D1Database("example", D1DatabaseArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.name("terraform-database")
.build());
}
}

Import

$ pulumi import cloudflare:index/d1Database:D1Database example <account id>/<database id>

Properties

Link copied to clipboard
val accountId: Output<String>

The account identifier to target for the resource.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the D1 Database.

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

The backend version of the database.