PagesDomainArgs

data class PagesDomainArgs(val accountId: Output<String>? = null, val domain: Output<String>? = null, val projectName: Output<String>? = null) : ConvertibleToJava<PagesDomainArgs>

Provides a resource for managing Cloudflare Pages domains.

A DNS record for the domain is not automatically created. You need to create a cloudflare.Record resource for the domain you want to use.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.PagesDomain;
import com.pulumi.cloudflare.PagesDomainArgs;
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 my_domain = new PagesDomain("my-domain", PagesDomainArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.domain("example.com")
.projectName("my-example-project")
.build());
}
}

Import

$ pulumi import cloudflare:index/pagesDomain:PagesDomain example <account_id>/<project_name>/<domain-name>

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, domain: Output<String>? = null, projectName: Output<String>? = null)

Properties

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

The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.

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

Custom domain. Modifying this attribute will force creation of a new resource.

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

Name of the Pages Project. Modifying this attribute will force creation of a new resource.

Functions

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