AppSpecFunctionCorsArgs

data class AppSpecFunctionCorsArgs(val allowCredentials: Output<Boolean>? = null, val allowHeaders: Output<List<String>>? = null, val allowMethods: Output<List<String>>? = null, val allowOrigins: Output<AppSpecFunctionCorsAllowOriginsArgs>? = null, val exposeHeaders: Output<List<String>>? = null, val maxAge: Output<String>? = null) : ConvertibleToJava<AppSpecFunctionCorsArgs>

Constructors

Link copied to clipboard
constructor(allowCredentials: Output<Boolean>? = null, allowHeaders: Output<List<String>>? = null, allowMethods: Output<List<String>>? = null, allowOrigins: Output<AppSpecFunctionCorsAllowOriginsArgs>? = null, exposeHeaders: Output<List<String>>? = null, maxAge: Output<String>? = null)

Properties

Link copied to clipboard
val allowCredentials: Output<Boolean>? = null

Whether browsers should expose the response to the client-side JavaScript code when the request’s credentials mode is include. This configures the Access-Control-Allow-Credentials header.

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

The set of allowed HTTP request headers. This configures the Access-Control-Allow-Headers header.

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

The set of allowed HTTP methods. This configures the Access-Control-Allow-Methods header.

Link copied to clipboard

The set of allowed CORS origins. This configures the Access-Control-Allow-Origin header.

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

The set of HTTP response headers that browsers are allowed to access. This configures the Access-Control-Expose-Headers header.

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

An optional duration specifying how long browsers can cache the results of a preflight request. This configures the Access-Control-Max-Age header. Example: 5h30m.

Functions

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