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

com.pulumi.gcp.compute.kotlin.outputs.RegionHealthCheckTcpHealthCheck.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.compute.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property port The TCP port number for the TCP health check request.
 * The default value is 80.
 * @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, TCP 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 TCP 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 RegionHealthCheckTcpHealthCheck(
    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.RegionHealthCheckTcpHealthCheck): RegionHealthCheckTcpHealthCheck = RegionHealthCheckTcpHealthCheck(
            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