BucketCorsConfigurationV2CorsRule

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

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

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

Set of Headers that are specified in the Access-Control-Request-Headers header.

Link copied to clipboard

Set of HTTP methods that you allow the origin to execute. Valid values are GET, PUT, HEAD, POST, and DELETE.

Link copied to clipboard

Set of origins you want customers to be able to access the bucket from.

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

Set of 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 id: String? = null

Unique identifier for the rule. The value cannot be longer than 255 characters.

Link copied to clipboard
val maxAgeSeconds: Int? = null

Time in seconds that your browser is to cache the preflight response for the specified resource.