R2BucketArgs

data class R2BucketArgs(val accountId: Output<String>? = null, val jurisdiction: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val storageClass: Output<String>? = null) : ConvertibleToJava<R2BucketArgs>

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleR2Bucket = new cloudflare.R2Bucket("example_r2_bucket", {
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
name: "example-bucket",
location: "apac",
storageClass: "Standard",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_r2_bucket = cloudflare.R2Bucket("example_r2_bucket",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
name="example-bucket",
location="apac",
storage_class="Standard")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleR2Bucket = new Cloudflare.R2Bucket("example_r2_bucket", new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
Name = "example-bucket",
Location = "apac",
StorageClass = "Standard",
});
});
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.NewR2Bucket(ctx, "example_r2_bucket", &cloudflare.R2BucketArgs{
AccountId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
Name: pulumi.String("example-bucket"),
Location: pulumi.String("apac"),
StorageClass: pulumi.String("Standard"),
})
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.R2Bucket;
import com.pulumi.cloudflare.R2BucketArgs;
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 exampleR2Bucket = new R2Bucket("exampleR2Bucket", R2BucketArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.name("example-bucket")
.location("apac")
.storageClass("Standard")
.build());
}
}
resources:
exampleR2Bucket:
type: cloudflare:R2Bucket
name: example_r2_bucket
properties:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
name: example-bucket
location: apac
storageClass: Standard

Import

$ pulumi import cloudflare:index/r2Bucket:R2Bucket example '<account_id>/<bucket_name>/<jurisdiction>'

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, jurisdiction: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, storageClass: Output<String>? = null)

Properties

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

Account ID

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

Jurisdiction of the bucket

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

Location of the bucket Available values: "apac", "eeur", "enam", "weur", "wnam", "oc".

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

Name of the bucket

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

Storage class for newly uploaded objects, unless specified otherwise. Available values: "Standard", "InfrequentAccess".

Functions

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