cloudflare.R2ManagedDomain
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleR2ManagedDomain = new cloudflare.R2ManagedDomain("example_r2_managed_domain", {
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
bucketName: "example-bucket",
enabled: true,
});
import pulumi
import pulumi_cloudflare as cloudflare
example_r2_managed_domain = cloudflare.R2ManagedDomain("example_r2_managed_domain",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
bucket_name="example-bucket",
enabled=True)
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.NewR2ManagedDomain(ctx, "example_r2_managed_domain", &cloudflare.R2ManagedDomainArgs{
AccountId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
BucketName: pulumi.String("example-bucket"),
Enabled: pulumi.Bool(true),
})
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 exampleR2ManagedDomain = new Cloudflare.R2ManagedDomain("example_r2_managed_domain", new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
BucketName = "example-bucket",
Enabled = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.R2ManagedDomain;
import com.pulumi.cloudflare.R2ManagedDomainArgs;
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 exampleR2ManagedDomain = new R2ManagedDomain("exampleR2ManagedDomain", R2ManagedDomainArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.bucketName("example-bucket")
.enabled(true)
.build());
}
}
resources:
exampleR2ManagedDomain:
type: cloudflare:R2ManagedDomain
name: example_r2_managed_domain
properties:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
bucketName: example-bucket
enabled: true
Create R2ManagedDomain Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new R2ManagedDomain(name: string, args: R2ManagedDomainArgs, opts?: CustomResourceOptions);
@overload
def R2ManagedDomain(resource_name: str,
args: R2ManagedDomainArgs,
opts: Optional[ResourceOptions] = None)
@overload
def R2ManagedDomain(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
bucket_name: Optional[str] = None,
enabled: Optional[bool] = None,
jurisdiction: Optional[str] = None)
func NewR2ManagedDomain(ctx *Context, name string, args R2ManagedDomainArgs, opts ...ResourceOption) (*R2ManagedDomain, error)
public R2ManagedDomain(string name, R2ManagedDomainArgs args, CustomResourceOptions? opts = null)
public R2ManagedDomain(String name, R2ManagedDomainArgs args)
public R2ManagedDomain(String name, R2ManagedDomainArgs args, CustomResourceOptions options)
type: cloudflare:R2ManagedDomain
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 R2ManagedDomainArgs
- 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 R2ManagedDomainArgs
- 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 R2ManagedDomainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args R2ManagedDomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args R2ManagedDomainArgs
- 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 r2managedDomainResource = new Cloudflare.R2ManagedDomain("r2managedDomainResource", new()
{
AccountId = "string",
BucketName = "string",
Enabled = false,
Jurisdiction = "string",
});
example, err := cloudflare.NewR2ManagedDomain(ctx, "r2managedDomainResource", &cloudflare.R2ManagedDomainArgs{
AccountId: pulumi.String("string"),
BucketName: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Jurisdiction: pulumi.String("string"),
})
var r2managedDomainResource = new R2ManagedDomain("r2managedDomainResource", R2ManagedDomainArgs.builder()
.accountId("string")
.bucketName("string")
.enabled(false)
.jurisdiction("string")
.build());
r2managed_domain_resource = cloudflare.R2ManagedDomain("r2managedDomainResource",
account_id="string",
bucket_name="string",
enabled=False,
jurisdiction="string")
const r2managedDomainResource = new cloudflare.R2ManagedDomain("r2managedDomainResource", {
accountId: "string",
bucketName: "string",
enabled: false,
jurisdiction: "string",
});
type: cloudflare:R2ManagedDomain
properties:
accountId: string
bucketName: string
enabled: false
jurisdiction: string
R2ManagedDomain 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 R2ManagedDomain resource accepts the following input properties:
- Account
Id string - Account ID
- Bucket
Name string - Name of the bucket
- Enabled bool
- Whether to enable public bucket access at the r2.dev domain
- Jurisdiction string
- Jurisdiction of the bucket
- Account
Id string - Account ID
- Bucket
Name string - Name of the bucket
- Enabled bool
- Whether to enable public bucket access at the r2.dev domain
- Jurisdiction string
- Jurisdiction of the bucket
- account
Id String - Account ID
- bucket
Name String - Name of the bucket
- enabled Boolean
- Whether to enable public bucket access at the r2.dev domain
- jurisdiction String
- Jurisdiction of the bucket
- account
Id string - Account ID
- bucket
Name string - Name of the bucket
- enabled boolean
- Whether to enable public bucket access at the r2.dev domain
- jurisdiction string
- Jurisdiction of the bucket
- account_
id str - Account ID
- bucket_
name str - Name of the bucket
- enabled bool
- Whether to enable public bucket access at the r2.dev domain
- jurisdiction str
- Jurisdiction of the bucket
- account
Id String - Account ID
- bucket
Name String - Name of the bucket
- enabled Boolean
- Whether to enable public bucket access at the r2.dev domain
- jurisdiction String
- Jurisdiction of the bucket
Outputs
All input properties are implicitly available as output properties. Additionally, the R2ManagedDomain resource produces the following output properties:
Look up Existing R2ManagedDomain Resource
Get an existing R2ManagedDomain 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?: R2ManagedDomainState, opts?: CustomResourceOptions): R2ManagedDomain
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
bucket_id: Optional[str] = None,
bucket_name: Optional[str] = None,
domain: Optional[str] = None,
enabled: Optional[bool] = None,
jurisdiction: Optional[str] = None) -> R2ManagedDomain
func GetR2ManagedDomain(ctx *Context, name string, id IDInput, state *R2ManagedDomainState, opts ...ResourceOption) (*R2ManagedDomain, error)
public static R2ManagedDomain Get(string name, Input<string> id, R2ManagedDomainState? state, CustomResourceOptions? opts = null)
public static R2ManagedDomain get(String name, Output<String> id, R2ManagedDomainState state, CustomResourceOptions options)
resources: _: type: cloudflare:R2ManagedDomain 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
Id string - Bucket ID
- Bucket
Name string - Name of the bucket
- Domain string
- Domain name of the bucket's r2.dev domain
- Enabled bool
- Whether to enable public bucket access at the r2.dev domain
- Jurisdiction string
- Jurisdiction of the bucket
- Account
Id string - Account ID
- Bucket
Id string - Bucket ID
- Bucket
Name string - Name of the bucket
- Domain string
- Domain name of the bucket's r2.dev domain
- Enabled bool
- Whether to enable public bucket access at the r2.dev domain
- Jurisdiction string
- Jurisdiction of the bucket
- account
Id String - Account ID
- bucket
Id String - Bucket ID
- bucket
Name String - Name of the bucket
- domain String
- Domain name of the bucket's r2.dev domain
- enabled Boolean
- Whether to enable public bucket access at the r2.dev domain
- jurisdiction String
- Jurisdiction of the bucket
- account
Id string - Account ID
- bucket
Id string - Bucket ID
- bucket
Name string - Name of the bucket
- domain string
- Domain name of the bucket's r2.dev domain
- enabled boolean
- Whether to enable public bucket access at the r2.dev domain
- jurisdiction string
- Jurisdiction of the bucket
- account_
id str - Account ID
- bucket_
id str - Bucket ID
- bucket_
name str - Name of the bucket
- domain str
- Domain name of the bucket's r2.dev domain
- enabled bool
- Whether to enable public bucket access at the r2.dev domain
- jurisdiction str
- Jurisdiction of the bucket
- account
Id String - Account ID
- bucket
Id String - Bucket ID
- bucket
Name String - Name of the bucket
- domain String
- Domain name of the bucket's r2.dev domain
- enabled Boolean
- Whether to enable public bucket access at the r2.dev domain
- jurisdiction String
- Jurisdiction of the bucket
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.