com.pulumi.gcp.compute.kotlin.outputs.HealthCheckHttp2HealthCheck.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.compute.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property host The value of the host header in the HTTP2 health check request.
* If left empty (default value), the public IP on behalf of which this health
* check is performed will be used.
* @property port The TCP port number for the HTTP2 health check request.
* The default value is 443.
* @property portName Port name as defined in InstanceGroup#NamedPort#name. If both port and
* port_name are defined, port takes precedence.
* @property portSpecification Specifies how port is selected for health checking, can be one of the
* following values:
* * 'USE_FIXED_PORT': The port number in 'port' is used for health checking.
* * 'USE_NAMED_PORT': The 'portName' is used for health checking.
* * 'USE_SERVING_PORT': For NetworkEndpointGroup, the port specified for each
* network endpoint is used for health checking. For other backends, the
* port or named port specified in the Backend Service is used for health
* checking.
* If not specified, HTTP2 health check follows behavior specified in 'port' and
* 'portName' fields. Possible values: ["USE_FIXED_PORT", "USE_NAMED_PORT", "USE_SERVING_PORT"]
* @property proxyHeader Specifies the type of proxy header to append before sending data to the
* backend. Default value: "NONE" Possible values: ["NONE", "PROXY_V1"]
* @property requestPath The request path of the HTTP2 health check request.
* The default value is /.
* @property response The bytes to match against the beginning of the response data. If left empty
* (the default value), any response will indicate health. The response data
* can only be ASCII.
*/
public data class HealthCheckHttp2HealthCheck(
public val host: String? = null,
public val port: Int? = null,
public val portName: String? = null,
public val portSpecification: String? = null,
public val proxyHeader: String? = null,
public val requestPath: String? = null,
public val response: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.HealthCheckHttp2HealthCheck): HealthCheckHttp2HealthCheck = HealthCheckHttp2HealthCheck(
host = javaType.host().map({ args0 -> args0 }).orElse(null),
port = javaType.port().map({ args0 -> args0 }).orElse(null),
portName = javaType.portName().map({ args0 -> args0 }).orElse(null),
portSpecification = javaType.portSpecification().map({ args0 -> args0 }).orElse(null),
proxyHeader = javaType.proxyHeader().map({ args0 -> args0 }).orElse(null),
requestPath = javaType.requestPath().map({ args0 -> args0 }).orElse(null),
response = javaType.response().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy