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

com.pulumi.gcp.monitoring.kotlin.outputs.UptimeCheckConfigTcpCheck.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.monitoring.kotlin.outputs

import kotlin.Int
import kotlin.Suppress

/**
 *
 * @property pingConfig Contains information needed to add pings to a TCP check.
 * Structure is documented below.
 * @property port The port to the page to run the check against. Will be combined with host (specified within the `monitored_resource`) to construct the full URL.
 */
public data class UptimeCheckConfigTcpCheck(
    public val pingConfig: UptimeCheckConfigTcpCheckPingConfig? = null,
    public val port: Int,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.monitoring.outputs.UptimeCheckConfigTcpCheck): UptimeCheckConfigTcpCheck = UptimeCheckConfigTcpCheck(
            pingConfig = javaType.pingConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.monitoring.kotlin.outputs.UptimeCheckConfigTcpCheckPingConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            port = javaType.port(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy