com.pulumi.gcp.compute.kotlin.inputs.RegionHealthCheckSslHealthCheckArgs.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.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.RegionHealthCheckSslHealthCheckArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @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 RegionHealthCheckSslHealthCheckArgs(
public val port: Output? = null,
public val portName: Output? = null,
public val portSpecification: Output? = null,
public val proxyHeader: Output? = null,
public val request: Output? = null,
public val response: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.RegionHealthCheckSslHealthCheckArgs =
com.pulumi.gcp.compute.inputs.RegionHealthCheckSslHealthCheckArgs.builder()
.port(port?.applyValue({ args0 -> args0 }))
.portName(portName?.applyValue({ args0 -> args0 }))
.portSpecification(portSpecification?.applyValue({ args0 -> args0 }))
.proxyHeader(proxyHeader?.applyValue({ args0 -> args0 }))
.request(request?.applyValue({ args0 -> args0 }))
.response(response?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RegionHealthCheckSslHealthCheckArgs].
*/
@PulumiTagMarker
public class RegionHealthCheckSslHealthCheckArgsBuilder internal constructor() {
private var port: Output? = null
private var portName: Output? = null
private var portSpecification: Output? = null
private var proxyHeader: Output? = null
private var request: Output? = null
private var response: Output? = null
/**
* @param value The TCP port number for the HTTP2 health check request.
* The default value is 443.
*/
@JvmName("ejabvyslbgjnuwnx")
public suspend fun port(`value`: Output) {
this.port = value
}
/**
* @param value Port name as defined in InstanceGroup#NamedPort#name. If both port and
* port_name are defined, port takes precedence.
*/
@JvmName("stwrwwpnhgkbsfev")
public suspend fun portName(`value`: Output) {
this.portName = value
}
/**
* @param value 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`.
*/
@JvmName("oceslhqtiqmvtbna")
public suspend fun portSpecification(`value`: Output) {
this.portSpecification = value
}
/**
* @param value Specifies the type of proxy header to append before sending data to the
* backend.
* Default value is `NONE`.
* Possible values are: `NONE`, `PROXY_V1`.
*/
@JvmName("pejuyfnyivvljbrm")
public suspend fun proxyHeader(`value`: Output) {
this.proxyHeader = value
}
/**
* @param value 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.
*/
@JvmName("mfdttwgnghpmboti")
public suspend fun request(`value`: Output) {
this.request = value
}
/**
* @param value 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.
*/
@JvmName("xvjtvdrwhpdbdqij")
public suspend fun response(`value`: Output) {
this.response = value
}
/**
* @param value The TCP port number for the HTTP2 health check request.
* The default value is 443.
*/
@JvmName("bqnaqfvkjsxsgkbi")
public suspend fun port(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.port = mapped
}
/**
* @param value Port name as defined in InstanceGroup#NamedPort#name. If both port and
* port_name are defined, port takes precedence.
*/
@JvmName("uwvoanolfmriiyqx")
public suspend fun portName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.portName = mapped
}
/**
* @param value 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`.
*/
@JvmName("gogqtbyjpluetyhs")
public suspend fun portSpecification(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.portSpecification = mapped
}
/**
* @param value Specifies the type of proxy header to append before sending data to the
* backend.
* Default value is `NONE`.
* Possible values are: `NONE`, `PROXY_V1`.
*/
@JvmName("jtnrypscxwyvlsqk")
public suspend fun proxyHeader(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.proxyHeader = mapped
}
/**
* @param value 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.
*/
@JvmName("dpnitvwntnixadoa")
public suspend fun request(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.request = mapped
}
/**
* @param value 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.
*/
@JvmName("phpdcymokmrrcfnw")
public suspend fun response(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.response = mapped
}
internal fun build(): RegionHealthCheckSslHealthCheckArgs = RegionHealthCheckSslHealthCheckArgs(
port = port,
portName = portName,
portSpecification = portSpecification,
proxyHeader = proxyHeader,
request = request,
response = response,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy