AccountCorsRuleArgs

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

Constructors

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

Properties

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

A list of headers that are allowed to be a part of the cross-origin request.

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

A list of HTTP headers that are allowed to be executed by the origin. Valid options are DELETE, GET, HEAD, MERGE, POST, OPTIONS, PUT or PATCH.

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

A list of origin domains that will be allowed by CORS.

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

A list of response headers that are exposed to CORS clients.

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

The number of seconds the client should cache a preflight response. Possible values are between 1 and 2147483647.

Functions

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