ServingConfigArgs

data class ServingConfigArgs(val appAssociation: Output<ServingConfigAppAssociation>? = null, val cleanUrls: Output<Boolean>? = null, val headers: Output<List<HeaderArgs>>? = null, val i18n: Output<I18nConfigArgs>? = null, val redirects: Output<List<RedirectArgs>>? = null, val rewrites: Output<List<RewriteArgs>>? = null, val trailingSlashBehavior: Output<ServingConfigTrailingSlashBehavior>? = null) : ConvertibleToJava<ServingConfigArgs>

The configuration for how incoming requests to a site should be routed and processed before serving content. The URL request paths are matched against the specified URL patterns in the configuration, then Hosting applies the applicable configuration according to a specific priority order.

Constructors

Link copied to clipboard
fun ServingConfigArgs(appAssociation: Output<ServingConfigAppAssociation>? = null, cleanUrls: Output<Boolean>? = null, headers: Output<List<HeaderArgs>>? = null, i18n: Output<I18nConfigArgs>? = null, redirects: Output<List<RedirectArgs>>? = null, rewrites: Output<List<RewriteArgs>>? = null, trailingSlashBehavior: Output<ServingConfigTrailingSlashBehavior>? = null)

Functions

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

Properties

Link copied to clipboard

How to handle well known App Association files.

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

Defines whether to drop the file extension from uploaded files.

Link copied to clipboard
val headers: Output<List<HeaderArgs>>? = null

An array of objects, where each object specifies a URL pattern that, if matched to the request URL path, triggers Hosting to apply the specified custom response headers.

Link copied to clipboard
val i18n: Output<I18nConfigArgs>? = null

Optional. Defines i18n rewrite behavior.

Link copied to clipboard
val redirects: Output<List<RedirectArgs>>? = null

An array of objects (called redirect rules), where each rule specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond with a redirect to the specified destination path.

Link copied to clipboard
val rewrites: Output<List<RewriteArgs>>? = null

An array of objects (called rewrite rules), where each rule specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond as if the service were given the specified destination URL.

Link copied to clipboard

Defines how to handle a trailing slash in the URL path.