com.pulumi.gcp.compute.kotlin.outputs.HealthCheckGrpcHealthCheck.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 grpcServiceName The gRPC service name for the health check.
* The value of grpcServiceName has the following meanings by convention:
* - Empty serviceName means the overall status of all services at the backend.
* - Non-empty serviceName means the health of that gRPC service, as defined by the owner of the service.
* The grpcServiceName can only be ASCII.
* @property port The port number for the health check request.
* Must be specified if portName and portSpecification are not set
* or if port_specification is USE_FIXED_PORT. Valid values are 1 through 65535.
* @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, gRPC health check follows behavior specified in `port` and
* `portName` fields.
* Possible values are: `USE_FIXED_PORT`, `USE_NAMED_PORT`, `USE_SERVING_PORT`.
*/
public data class HealthCheckGrpcHealthCheck(
public val grpcServiceName: String? = null,
public val port: Int? = null,
public val portName: String? = null,
public val portSpecification: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.HealthCheckGrpcHealthCheck): HealthCheckGrpcHealthCheck = HealthCheckGrpcHealthCheck(
grpcServiceName = javaType.grpcServiceName().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),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy