BucketCorsCorsRuleArgs

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

Constructors

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

Properties

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

Specifies whether the headers specified by Access-Control-Request-Headers in the OPTIONS preflight request are allowed. You can use only one asterisk (*) as the wildcard for allowed header. .

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

The cross-origin request method that is allowed. Valid values: GET, PUT, DELETE, POST, and HEAD.

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

The origins from which cross-origin requests are allowed. .

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

The response headers for allowed access requests from applications, such as an XMLHttpRequest object in JavaScript. .

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

The period of time within which the browser can cache the response to an OPTIONS preflight request for the specified resource. Unit: seconds.

Functions

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