Worker Domain Args
data class WorkerDomainArgs constructor(val accountId: Output<String>? = null, val environment: Output<String>? = null, val hostname: Output<String>? = null, val service: Output<String>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<WorkerDomainArgs>
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleWorkersCustomDomain = new cloudflare.WorkersCustomDomain("example_workers_custom_domain", {
accountId: "9a7806061c88ada191ed06f989cc3dac",
environment: "production",
hostname: "foo.example.com",
service: "foo",
zoneId: "593c9c94de529bbbfaac7c53ced0447d",
});
Content copied to clipboard
import pulumi
import pulumi_cloudflare as cloudflare
example_workers_custom_domain = cloudflare.WorkersCustomDomain("example_workers_custom_domain",
account_id="9a7806061c88ada191ed06f989cc3dac",
environment="production",
hostname="foo.example.com",
service="foo",
zone_id="593c9c94de529bbbfaac7c53ced0447d")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleWorkersCustomDomain = new Cloudflare.WorkersCustomDomain("example_workers_custom_domain", new()
{
AccountId = "9a7806061c88ada191ed06f989cc3dac",
Environment = "production",
Hostname = "foo.example.com",
Service = "foo",
ZoneId = "593c9c94de529bbbfaac7c53ced0447d",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewWorkersCustomDomain(ctx, "example_workers_custom_domain", &cloudflare.WorkersCustomDomainArgs{
AccountId: pulumi.String("9a7806061c88ada191ed06f989cc3dac"),
Environment: pulumi.String("production"),
Hostname: pulumi.String("foo.example.com"),
Service: pulumi.String("foo"),
ZoneId: pulumi.String("593c9c94de529bbbfaac7c53ced0447d"),
})
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.WorkersCustomDomain;
import com.pulumi.cloudflare.WorkersCustomDomainArgs;
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 exampleWorkersCustomDomain = new WorkersCustomDomain("exampleWorkersCustomDomain", WorkersCustomDomainArgs.builder()
.accountId("9a7806061c88ada191ed06f989cc3dac")
.environment("production")
.hostname("foo.example.com")
.service("foo")
.zoneId("593c9c94de529bbbfaac7c53ced0447d")
.build());
}
}
Content copied to clipboard
resources:
exampleWorkersCustomDomain:
type: cloudflare:WorkersCustomDomain
name: example_workers_custom_domain
properties:
accountId: 9a7806061c88ada191ed06f989cc3dac
environment: production
hostname: foo.example.com
service: foo
zoneId: 593c9c94de529bbbfaac7c53ced0447d
Content copied to clipboard
Import
$ pulumi import cloudflare:index/workerDomain:WorkerDomain example '<account_id>/<domain_id>'
Content copied to clipboard