FunctionUrlCorsArgs

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

Constructors

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

Functions

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

Properties

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

Whether to allow cookies or other credentials in requests to the function URL. The default is false.

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

The HTTP headers that origins can include in requests to the function URL. For example: ["date", "keep-alive", "x-custom-header"].

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

The HTTP methods that are allowed when calling the function URL. For example: ["GET", "POST", "DELETE"], or the wildcard character (["*"]).

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

The origins that can access the function URL. You can list any number of specific origins (or the wildcard character ("*")), separated by a comma. For example: ["https://www&#46;example&#46;com", "http://localhost:60905"].

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

The HTTP headers in your function response that you want to expose to origins that call the function URL.

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

The maximum amount of time, in seconds, that web browsers can cache results of a preflight request. By default, this is set to 0, which means that the browser doesn't cache results. The maximum value is 86400.