CorsRuleArgs

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

Specifies a CORS rule for the Blob service.

Constructors

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

Properties

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

Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.

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

Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.

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

Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains

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

Required if CorsRule element is present. A list of response headers to expose to CORS clients.

Link copied to clipboard
val maxAgeInSeconds: Output<Int>

Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.

Functions

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