R2CustomDomainArgs

data class R2CustomDomainArgs(val accountId: Output<String>? = null, val bucketName: Output<String>? = null, val domain: Output<String>? = null, val enabled: Output<Boolean>? = null, val jurisdiction: Output<String>? = null, val minTls: Output<String>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<R2CustomDomainArgs>

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",
});
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")
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",
});
});
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
})
}
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());
}
}
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'

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, bucketName: Output<String>? = null, domain: Output<String>? = null, enabled: Output<Boolean>? = null, jurisdiction: Output<String>? = null, minTls: Output<String>? = null, zoneId: Output<String>? = null)

Properties

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

Account ID.

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

Name of the bucket.

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

Name of the custom domain to be added.

Link copied to clipboard
val enabled: Output<Boolean>? = null

Whether to enable public bucket access at the custom domain. If undefined, the domain will be enabled.

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

Jurisdiction of the bucket

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

Minimum TLS Version the custom domain will accept for incoming connections. If not set, defaults to 1.0. Available values: "1.0", "1.1", "1.2", "1.3".

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

Zone ID of the custom domain.

Functions

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