BucketCorsConfigurationV2CorsRuleArgs

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

Constructors

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

Properties

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

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

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

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

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

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

Link copied to clipboard
val exposeHeaders: Output<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: Output<String>? = null

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

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

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

Functions

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