com.pulumi.gcp.compute.kotlin.outputs.RegionHealthCheckSslHealthCheck.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 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 are: `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 is `NONE`.
* Possible values are: `NONE`, `PROXY_V1`.
* @property request The application data to send once the SSL connection has been
* established (default value is empty). If both request and response are
* empty, the connection establishment alone will indicate health. The request
* data can only be ASCII.
* @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 RegionHealthCheckSslHealthCheck(
public val port: Int? = null,
public val portName: String? = null,
public val portSpecification: String? = null,
public val proxyHeader: String? = null,
public val request: String? = null,
public val response: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.RegionHealthCheckSslHealthCheck): RegionHealthCheckSslHealthCheck = RegionHealthCheckSslHealthCheck(
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),
request = javaType.request().map({ args0 -> args0 }).orElse(null),
response = javaType.response().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy