Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.network.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property host The Hostname used for this Probe. If the Application Gateway is configured for a single site, by default the Host name should be specified as `127.0.0.1`, unless otherwise configured in custom probe. Cannot be set if `pick_host_name_from_backend_http_settings` is set to `true`.
* @property id The ID of the Rewrite Rule Set
* @property interval The Interval between two consecutive probes in seconds. Possible values range from 1 second to a maximum of 86,400 seconds.
* @property match A `match` block as defined above.
* @property minimumServers The minimum number of servers that are always marked as healthy. Defaults to `0`.
* @property name The Name of the Probe.
* @property path The Path used for this Probe.
* @property pickHostNameFromBackendHttpSettings Whether the host header should be picked from the backend HTTP settings. Defaults to `false`.
* @property port Custom port which will be used for probing the backend servers. The valid value ranges from 1 to 65535. In case not set, port from HTTP settings will be used. This property is valid for Standard_v2 and WAF_v2 only.
* @property protocol The Protocol used for this Probe. Possible values are `Http` and `Https`.
* @property timeout The Timeout used for this Probe, which indicates when a probe becomes unhealthy. Possible values range from 1 second to a maximum of 86,400 seconds.
* @property unhealthyThreshold The Unhealthy Threshold for this Probe, which indicates the amount of retries which should be attempted before a node is deemed unhealthy. Possible values are from 1 to 20.
*/
public data class ApplicationGatewayProbe(
public val host: String? = null,
public val id: String? = null,
public val interval: Int,
public val match: ApplicationGatewayProbeMatch? = null,
public val minimumServers: Int? = null,
public val name: String,
public val path: String,
public val pickHostNameFromBackendHttpSettings: Boolean? = null,
public val port: Int? = null,
public val protocol: String,
public val timeout: Int,
public val unhealthyThreshold: Int,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.network.outputs.ApplicationGatewayProbe): ApplicationGatewayProbe = ApplicationGatewayProbe(
host = javaType.host().map({ args0 -> args0 }).orElse(null),
id = javaType.id().map({ args0 -> args0 }).orElse(null),
interval = javaType.interval(),
match = javaType.match().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.network.kotlin.outputs.ApplicationGatewayProbeMatch.Companion.toKotlin(args0)
})
}).orElse(null),
minimumServers = javaType.minimumServers().map({ args0 -> args0 }).orElse(null),
name = javaType.name(),
path = javaType.path(),
pickHostNameFromBackendHttpSettings = javaType.pickHostNameFromBackendHttpSettings().map({ args0 ->
args0
}).orElse(null),
port = javaType.port().map({ args0 -> args0 }).orElse(null),
protocol = javaType.protocol(),
timeout = javaType.timeout(),
unhealthyThreshold = javaType.unhealthyThreshold(),
)
}
}