BucketCorArgs

data class BucketCorArgs(val maxAgeSeconds: Output<Int>? = null, val methods: Output<List<String>>? = null, val origins: Output<List<String>>? = null, val responseHeaders: Output<List<String>>? = null) : ConvertibleToJava<BucketCorArgs>

Constructors

Link copied to clipboard
constructor(maxAgeSeconds: Output<Int>? = null, methods: Output<List<String>>? = null, origins: Output<List<String>>? = null, responseHeaders: Output<List<String>>? = null)

Properties

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

The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.

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

The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc) Note: "*" is permitted in the list of methods, and means "any method".

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

The list of Origins eligible to receive CORS response headers. Note: "*" is permitted in the list of origins, and means "any Origin".

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

The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.

Functions

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