Pages Domain Args
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",
});
Content copied to clipboard
import pulumi
import pulumi_cloudflare as cloudflare
my_domain = cloudflare.PagesDomain("my-domain",
account_id="f037e56e89293a057740de681ac9abbe",
project_name="my-example-project",
domain="example.com")
Content copied to clipboard
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
resources:
my-domain:
type: cloudflare:PagesDomain
properties:
accountId: f037e56e89293a057740de681ac9abbe
projectName: my-example-project
domain: example.com
Content copied to clipboard
Import
$ pulumi import cloudflare:index/pagesDomain:PagesDomain example <account_id>/<project_name>/<domain-name>
Content copied to clipboard