R2Custom Domain
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleR2CustomDomain = new cloudflare.R2CustomDomain("example_r2_custom_domain", {
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
bucketName: "example-bucket",
domain: "domain",
enabled: true,
zoneId: "zoneId",
minTls: "1.0",
});
Content copied to clipboard
import pulumi
import pulumi_cloudflare as cloudflare
example_r2_custom_domain = cloudflare.R2CustomDomain("example_r2_custom_domain",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
bucket_name="example-bucket",
domain="domain",
enabled=True,
zone_id="zoneId",
min_tls="1.0")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleR2CustomDomain = new Cloudflare.R2CustomDomain("example_r2_custom_domain", new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
BucketName = "example-bucket",
Domain = "domain",
Enabled = true,
ZoneId = "zoneId",
MinTls = "1.0",
});
});
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.NewR2CustomDomain(ctx, "example_r2_custom_domain", &cloudflare.R2CustomDomainArgs{
AccountId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
BucketName: pulumi.String("example-bucket"),
Domain: pulumi.String("domain"),
Enabled: pulumi.Bool(true),
ZoneId: pulumi.String("zoneId"),
MinTls: pulumi.String("1.0"),
})
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.R2CustomDomain;
import com.pulumi.cloudflare.R2CustomDomainArgs;
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 exampleR2CustomDomain = new R2CustomDomain("exampleR2CustomDomain", R2CustomDomainArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.bucketName("example-bucket")
.domain("domain")
.enabled(true)
.zoneId("zoneId")
.minTls("1.0")
.build());
}
}
Content copied to clipboard
resources:
exampleR2CustomDomain:
type: cloudflare:R2CustomDomain
name: example_r2_custom_domain
properties:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
bucketName: example-bucket
domain: domain
enabled: true
zoneId: zoneId
minTls: '1.0'
Content copied to clipboard