com.pulumi.gcp.appengine.kotlin.outputs.FlexibleAppVersionHandler.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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 FlexibleAppVersionHandler(
public val authFailAction: String? = null,
public val login: String? = null,
public val redirectHttpResponseCode: String? = null,
public val script: FlexibleAppVersionHandlerScript? = null,
public val securityLevel: String? = null,
public val staticFiles: FlexibleAppVersionHandlerStaticFiles? = null,
public val urlRegex: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.appengine.outputs.FlexibleAppVersionHandler): FlexibleAppVersionHandler = FlexibleAppVersionHandler(
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.FlexibleAppVersionHandlerScript.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.FlexibleAppVersionHandlerStaticFiles.Companion.toKotlin(args0)
})
}).orElse(null),
urlRegex = javaType.urlRegex().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy