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

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const my_domain = new cloudflare.PagesDomain("my-domain", {
accountId: "f037e56e89293a057740de681ac9abbe",
projectName: "my-example-project",
domain: "example.com",
});
import pulumi
import pulumi_cloudflare as cloudflare
my_domain = cloudflare.PagesDomain("my-domain",
account_id="f037e56e89293a057740de681ac9abbe",
project_name="my-example-project",
domain="example.com")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var my_domain = new Cloudflare.PagesDomain("my-domain", new()
{
AccountId = "f037e56e89293a057740de681ac9abbe",
ProjectName = "my-example-project",
Domain = "example.com",
});
});
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewPagesDomain(ctx, "my-domain", &cloudflare.PagesDomainArgs{
AccountId: pulumi.String("f037e56e89293a057740de681ac9abbe"),
ProjectName: pulumi.String("my-example-project"),
Domain: pulumi.String("example.com"),
})
if err != nil {
return err
}
return nil
})
}
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")
.projectName("my-example-project")
.domain("example.com")
.build());
}
}
resources:
my-domain:
type: cloudflare:PagesDomain
properties:
accountId: f037e56e89293a057740de681ac9abbe
projectName: my-example-project
domain: example.com

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