R2BucketCorsRuleAllowedArgs

data class R2BucketCorsRuleAllowedArgs(val headers: Output<List<String>>? = null, val methods: Output<List<String>>, val origins: Output<List<String>>) : ConvertibleToJava<R2BucketCorsRuleAllowedArgs>

Constructors

Link copied to clipboard
constructor(headers: Output<List<String>>? = null, methods: Output<List<String>>, origins: Output<List<String>>)

Properties

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

Specifies the value for the Access-Control-Allow-Headers header R2 sets when requesting objects in this bucket from a browser. Cross-origin requests that include custom headers (e.g. x-user-id) should specify these headers as AllowedHeaders.

Link copied to clipboard
val methods: Output<List<String>>

Specifies the value for the Access-Control-Allow-Methods header R2 sets when requesting objects in a bucket from a browser.

Link copied to clipboard
val origins: Output<List<String>>

Specifies the value for the Access-Control-Allow-Origin header R2 sets when requesting objects in a bucket from a browser.

Functions

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