CorsRuleArgs

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

CORS details.

Constructors

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

Properties

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

The request headers that the origin domain may specify on the CORS request.

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

The methods (HTTP request verbs) that the origin domain may use for a CORS request.

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

The origin domains that are permitted to make a request against the service via CORS.

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

The response headers to expose to CORS clients.

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

The number of seconds that the client/browser should cache a preflight response.

Functions

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