cloudflare.R2CustomDomain
Explore with Pulumi AI
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")
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
})
}
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 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'
Create R2CustomDomain Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new R2CustomDomain(name: string, args: R2CustomDomainArgs, opts?: CustomResourceOptions);
@overload
def R2CustomDomain(resource_name: str,
args: R2CustomDomainArgs,
opts: Optional[ResourceOptions] = None)
@overload
def R2CustomDomain(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
bucket_name: Optional[str] = None,
domain: Optional[str] = None,
enabled: Optional[bool] = None,
zone_id: Optional[str] = None,
jurisdiction: Optional[str] = None,
min_tls: Optional[str] = None)
func NewR2CustomDomain(ctx *Context, name string, args R2CustomDomainArgs, opts ...ResourceOption) (*R2CustomDomain, error)
public R2CustomDomain(string name, R2CustomDomainArgs args, CustomResourceOptions? opts = null)
public R2CustomDomain(String name, R2CustomDomainArgs args)
public R2CustomDomain(String name, R2CustomDomainArgs args, CustomResourceOptions options)
type: cloudflare:R2CustomDomain
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args R2CustomDomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args R2CustomDomainArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args R2CustomDomainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args R2CustomDomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args R2CustomDomainArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var r2customDomainResource = new Cloudflare.R2CustomDomain("r2customDomainResource", new()
{
AccountId = "string",
BucketName = "string",
Domain = "string",
Enabled = false,
ZoneId = "string",
Jurisdiction = "string",
MinTls = "string",
});
example, err := cloudflare.NewR2CustomDomain(ctx, "r2customDomainResource", &cloudflare.R2CustomDomainArgs{
AccountId: pulumi.String("string"),
BucketName: pulumi.String("string"),
Domain: pulumi.String("string"),
Enabled: pulumi.Bool(false),
ZoneId: pulumi.String("string"),
Jurisdiction: pulumi.String("string"),
MinTls: pulumi.String("string"),
})
var r2customDomainResource = new R2CustomDomain("r2customDomainResource", R2CustomDomainArgs.builder()
.accountId("string")
.bucketName("string")
.domain("string")
.enabled(false)
.zoneId("string")
.jurisdiction("string")
.minTls("string")
.build());
r2custom_domain_resource = cloudflare.R2CustomDomain("r2customDomainResource",
account_id="string",
bucket_name="string",
domain="string",
enabled=False,
zone_id="string",
jurisdiction="string",
min_tls="string")
const r2customDomainResource = new cloudflare.R2CustomDomain("r2customDomainResource", {
accountId: "string",
bucketName: "string",
domain: "string",
enabled: false,
zoneId: "string",
jurisdiction: "string",
minTls: "string",
});
type: cloudflare:R2CustomDomain
properties:
accountId: string
bucketName: string
domain: string
enabled: false
jurisdiction: string
minTls: string
zoneId: string
R2CustomDomain Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The R2CustomDomain resource accepts the following input properties:
- Account
Id string - Account ID
- Bucket
Name string - Name of the bucket
- Domain string
- Name of the custom domain to be added
- Enabled bool
- Whether to enable public bucket access at the custom domain. If undefined, the domain will be enabled.
- Zone
Id string - Zone ID of the custom domain
- Jurisdiction string
- Jurisdiction of the bucket
- Min
Tls string - 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".
- Account
Id string - Account ID
- Bucket
Name string - Name of the bucket
- Domain string
- Name of the custom domain to be added
- Enabled bool
- Whether to enable public bucket access at the custom domain. If undefined, the domain will be enabled.
- Zone
Id string - Zone ID of the custom domain
- Jurisdiction string
- Jurisdiction of the bucket
- Min
Tls string - 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".
- account
Id String - Account ID
- bucket
Name String - Name of the bucket
- domain String
- Name of the custom domain to be added
- enabled Boolean
- Whether to enable public bucket access at the custom domain. If undefined, the domain will be enabled.
- zone
Id String - Zone ID of the custom domain
- jurisdiction String
- Jurisdiction of the bucket
- min
Tls String - 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".
- account
Id string - Account ID
- bucket
Name string - Name of the bucket
- domain string
- Name of the custom domain to be added
- enabled boolean
- Whether to enable public bucket access at the custom domain. If undefined, the domain will be enabled.
- zone
Id string - Zone ID of the custom domain
- jurisdiction string
- Jurisdiction of the bucket
- min
Tls string - 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".
- account_
id str - Account ID
- bucket_
name str - Name of the bucket
- domain str
- Name of the custom domain to be added
- enabled bool
- Whether to enable public bucket access at the custom domain. If undefined, the domain will be enabled.
- zone_
id str - Zone ID of the custom domain
- jurisdiction str
- Jurisdiction of the bucket
- min_
tls str - 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".
- account
Id String - Account ID
- bucket
Name String - Name of the bucket
- domain String
- Name of the custom domain to be added
- enabled Boolean
- Whether to enable public bucket access at the custom domain. If undefined, the domain will be enabled.
- zone
Id String - Zone ID of the custom domain
- jurisdiction String
- Jurisdiction of the bucket
- min
Tls String - 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".
Outputs
All input properties are implicitly available as output properties. Additionally, the R2CustomDomain resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Status
R2Custom
Domain Status - Zone
Name string - Zone that the custom domain resides in
- Id string
- The provider-assigned unique ID for this managed resource.
- Status
R2Custom
Domain Status - Zone
Name string - Zone that the custom domain resides in
- id String
- The provider-assigned unique ID for this managed resource.
- status
R2Custom
Domain Status - zone
Name String - Zone that the custom domain resides in
- id string
- The provider-assigned unique ID for this managed resource.
- status
R2Custom
Domain Status - zone
Name string - Zone that the custom domain resides in
- id str
- The provider-assigned unique ID for this managed resource.
- status
R2Custom
Domain Status - zone_
name str - Zone that the custom domain resides in
- id String
- The provider-assigned unique ID for this managed resource.
- status Property Map
- zone
Name String - Zone that the custom domain resides in
Look up Existing R2CustomDomain Resource
Get an existing R2CustomDomain resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: R2CustomDomainState, opts?: CustomResourceOptions): R2CustomDomain
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
bucket_name: Optional[str] = None,
domain: Optional[str] = None,
enabled: Optional[bool] = None,
jurisdiction: Optional[str] = None,
min_tls: Optional[str] = None,
status: Optional[R2CustomDomainStatusArgs] = None,
zone_id: Optional[str] = None,
zone_name: Optional[str] = None) -> R2CustomDomain
func GetR2CustomDomain(ctx *Context, name string, id IDInput, state *R2CustomDomainState, opts ...ResourceOption) (*R2CustomDomain, error)
public static R2CustomDomain Get(string name, Input<string> id, R2CustomDomainState? state, CustomResourceOptions? opts = null)
public static R2CustomDomain get(String name, Output<String> id, R2CustomDomainState state, CustomResourceOptions options)
resources: _: type: cloudflare:R2CustomDomain get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Id string - Account ID
- Bucket
Name string - Name of the bucket
- Domain string
- Name of the custom domain to be added
- Enabled bool
- Whether to enable public bucket access at the custom domain. If undefined, the domain will be enabled.
- Jurisdiction string
- Jurisdiction of the bucket
- Min
Tls string - 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".
- Status
R2Custom
Domain Status - Zone
Id string - Zone ID of the custom domain
- Zone
Name string - Zone that the custom domain resides in
- Account
Id string - Account ID
- Bucket
Name string - Name of the bucket
- Domain string
- Name of the custom domain to be added
- Enabled bool
- Whether to enable public bucket access at the custom domain. If undefined, the domain will be enabled.
- Jurisdiction string
- Jurisdiction of the bucket
- Min
Tls string - 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".
- Status
R2Custom
Domain Status Args - Zone
Id string - Zone ID of the custom domain
- Zone
Name string - Zone that the custom domain resides in
- account
Id String - Account ID
- bucket
Name String - Name of the bucket
- domain String
- Name of the custom domain to be added
- enabled Boolean
- Whether to enable public bucket access at the custom domain. If undefined, the domain will be enabled.
- jurisdiction String
- Jurisdiction of the bucket
- min
Tls String - 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".
- status
R2Custom
Domain Status - zone
Id String - Zone ID of the custom domain
- zone
Name String - Zone that the custom domain resides in
- account
Id string - Account ID
- bucket
Name string - Name of the bucket
- domain string
- Name of the custom domain to be added
- enabled boolean
- Whether to enable public bucket access at the custom domain. If undefined, the domain will be enabled.
- jurisdiction string
- Jurisdiction of the bucket
- min
Tls string - 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".
- status
R2Custom
Domain Status - zone
Id string - Zone ID of the custom domain
- zone
Name string - Zone that the custom domain resides in
- account_
id str - Account ID
- bucket_
name str - Name of the bucket
- domain str
- Name of the custom domain to be added
- enabled bool
- Whether to enable public bucket access at the custom domain. If undefined, the domain will be enabled.
- jurisdiction str
- Jurisdiction of the bucket
- min_
tls str - 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".
- status
R2Custom
Domain Status Args - zone_
id str - Zone ID of the custom domain
- zone_
name str - Zone that the custom domain resides in
- account
Id String - Account ID
- bucket
Name String - Name of the bucket
- domain String
- Name of the custom domain to be added
- enabled Boolean
- Whether to enable public bucket access at the custom domain. If undefined, the domain will be enabled.
- jurisdiction String
- Jurisdiction of the bucket
- min
Tls String - 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".
- status Property Map
- zone
Id String - Zone ID of the custom domain
- zone
Name String - Zone that the custom domain resides in
Supporting Types
R2CustomDomainStatus, R2CustomDomainStatusArgs
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.