All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.appengine.kotlin.outputs.StandardAppVersionHandler.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.appengine.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property authFailAction Actions to take when the user is not logged in.
 * Possible values are: `AUTH_FAIL_ACTION_REDIRECT`, `AUTH_FAIL_ACTION_UNAUTHORIZED`.
 * @property login Methods to restrict access to a URL based on login status.
 * Possible values are: `LOGIN_OPTIONAL`, `LOGIN_ADMIN`, `LOGIN_REQUIRED`.
 * @property redirectHttpResponseCode 30x code to use when performing redirects for the secure field.
 * Possible values are: `REDIRECT_HTTP_RESPONSE_CODE_301`, `REDIRECT_HTTP_RESPONSE_CODE_302`, `REDIRECT_HTTP_RESPONSE_CODE_303`, `REDIRECT_HTTP_RESPONSE_CODE_307`.
 * @property script Executes a script to handle the requests that match this URL pattern.
 * Only the auto value is supported for Node.js in the App Engine standard environment, for example "script:" "auto".
 * Structure is documented below.
 * @property securityLevel Security (HTTPS) enforcement for this URL.
 * Possible values are: `SECURE_DEFAULT`, `SECURE_NEVER`, `SECURE_OPTIONAL`, `SECURE_ALWAYS`.
 * @property staticFiles Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static file handlers describe which files in the application directory are static files, and which URLs serve them.
 * Structure is documented below.
 * @property urlRegex URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings.
 * All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path.
 */
public data class StandardAppVersionHandler(
    public val authFailAction: String? = null,
    public val login: String? = null,
    public val redirectHttpResponseCode: String? = null,
    public val script: StandardAppVersionHandlerScript? = null,
    public val securityLevel: String? = null,
    public val staticFiles: StandardAppVersionHandlerStaticFiles? = null,
    public val urlRegex: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.appengine.outputs.StandardAppVersionHandler): StandardAppVersionHandler = StandardAppVersionHandler(
            authFailAction = javaType.authFailAction().map({ args0 -> args0 }).orElse(null),
            login = javaType.login().map({ args0 -> args0 }).orElse(null),
            redirectHttpResponseCode = javaType.redirectHttpResponseCode().map({ args0 -> args0 }).orElse(null),
            script = javaType.script().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.appengine.kotlin.outputs.StandardAppVersionHandlerScript.Companion.toKotlin(args0)
                })
            }).orElse(null),
            securityLevel = javaType.securityLevel().map({ args0 -> args0 }).orElse(null),
            staticFiles = javaType.staticFiles().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.appengine.kotlin.outputs.StandardAppVersionHandlerStaticFiles.Companion.toKotlin(args0)
                })
            }).orElse(null),
            urlRegex = javaType.urlRegex().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy