BucketV2CorsRuleArgs

data class BucketV2CorsRuleArgs(val allowedHeaders: Output<List<String>>? = null, val allowedMethods: Output<List<String>>, val allowedOrigins: Output<List<String>>, val exposeHeaders: Output<List<String>>? = null, val maxAgeSeconds: Output<Int>? = null) : ConvertibleToJava<BucketV2CorsRuleArgs>

Constructors

Link copied to clipboard
constructor(allowedHeaders: Output<List<String>>? = null, allowedMethods: Output<List<String>>, allowedOrigins: Output<List<String>>, exposeHeaders: Output<List<String>>? = null, maxAgeSeconds: Output<Int>? = null)

Properties

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

List of headers allowed.

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

One or more HTTP methods that you allow the origin to execute. Can be GET, PUT, POST, DELETE or HEAD.

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

One or more origins you want customers to be able to access the bucket from.

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

One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object).

Link copied to clipboard
val maxAgeSeconds: Output<Int>? = null

Specifies time in seconds that browser can cache the response for a preflight request.

Functions

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