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

com.pulumi.gcp.compute.kotlin.outputs.GetHealthCheckGrpcHealthCheck.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.12.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 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: ["USE_FIXED_PORT", "USE_NAMED_PORT", "USE_SERVING_PORT"]
 */
public data class GetHealthCheckGrpcHealthCheck(
    public val grpcServiceName: String,
    public val port: Int,
    public val portName: String,
    public val portSpecification: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.GetHealthCheckGrpcHealthCheck): GetHealthCheckGrpcHealthCheck = GetHealthCheckGrpcHealthCheck(
            grpcServiceName = javaType.grpcServiceName(),
            port = javaType.port(),
            portName = javaType.portName(),
            portSpecification = javaType.portSpecification(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy