R2BucketCorsArgs

data class R2BucketCorsArgs(val accountId: Output<String>? = null, val bucketName: Output<String>? = null, val jurisdiction: Output<String>? = null, val rules: Output<List<R2BucketCorsRuleArgs>>? = null) : ConvertibleToJava<R2BucketCorsArgs>

Example Usage

resources:
exampleR2BucketCors:
type: cloudflare:R2BucketCors
name: example_r2_bucket_cors
properties:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
bucketName: example-bucket
rules:
- allowed:
methods:
- GET
origins:
- http://localhost:3000
headers:
- x-requested-by
id: Allow Local Development
expose_headers:
- Content-Encoding
max_age_seconds: 3600

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, bucketName: Output<String>? = null, jurisdiction: Output<String>? = null, rules: Output<List<R2BucketCorsRuleArgs>>? = 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 jurisdiction: Output<String>? = null

Jurisdiction of the bucket

Link copied to clipboard
val rules: Output<List<R2BucketCorsRuleArgs>>? = null

Functions

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