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