SpacesBucketCorsRuleArgs

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

Constructors

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

Properties

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

A list of headers that will be included in the CORS preflight request's Access-Control-Request-Headers. A header may contain one wildcard (e.g. x-amz-*).

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

A list of HTTP methods (e.g. GET) which are allowed from the specified origin.

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

A list of hosts from which requests using the specified methods are allowed. A host may contain one wildcard (e.g. http://*.example.com).

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

The time in seconds that browser can cache the response for a preflight request. */

Functions

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