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.
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.azurenative.network.kotlin.inputs
import com.pulumi.azurenative.network.inputs.LoadBalancingRuleArgs.builder
import com.pulumi.azurenative.network.kotlin.enums.LoadDistribution
import com.pulumi.azurenative.network.kotlin.enums.TransportProtocol
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* A load balancing rule for a load balancer.
* @property backendAddressPool A reference to a pool of DIPs. Inbound traffic is randomly load balanced across IPs in the backend IPs.
* @property backendAddressPools An array of references to pool of DIPs.
* @property backendPort The port used for internal connections on the endpoint. Acceptable values are between 0 and 65535. Note that value 0 enables "Any Port".
* @property disableOutboundSnat Configures SNAT for the VMs in the backend pool to use the publicIP address specified in the frontend of the load balancing rule.
* @property enableFloatingIP Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint.
* @property enableTcpReset Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP.
* @property frontendIPConfiguration A reference to frontend IP addresses.
* @property frontendPort The port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values are between 0 and 65534. Note that value 0 enables "Any Port".
* @property id Resource ID.
* @property idleTimeoutInMinutes The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP.
* @property loadDistribution The load distribution policy for this rule.
* @property name The name of the resource that is unique within the set of load balancing rules used by the load balancer. This name can be used to access the resource.
* @property probe The reference to the load balancer probe used by the load balancing rule.
* @property protocol The reference to the transport protocol used by the load balancing rule.
*/
public data class LoadBalancingRuleArgs(
public val backendAddressPool: Output? = null,
public val backendAddressPools: Output>? = null,
public val backendPort: Output? = null,
public val disableOutboundSnat: Output? = null,
public val enableFloatingIP: Output? = null,
public val enableTcpReset: Output? = null,
public val frontendIPConfiguration: Output? = null,
public val frontendPort: Output,
public val id: Output? = null,
public val idleTimeoutInMinutes: Output? = null,
public val loadDistribution: Output>? = null,
public val name: Output? = null,
public val probe: Output? = null,
public val protocol: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.network.inputs.LoadBalancingRuleArgs =
com.pulumi.azurenative.network.inputs.LoadBalancingRuleArgs.builder()
.backendAddressPool(
backendAddressPool?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.backendAddressPools(
backendAddressPools?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.backendPort(backendPort?.applyValue({ args0 -> args0 }))
.disableOutboundSnat(disableOutboundSnat?.applyValue({ args0 -> args0 }))
.enableFloatingIP(enableFloatingIP?.applyValue({ args0 -> args0 }))
.enableTcpReset(enableTcpReset?.applyValue({ args0 -> args0 }))
.frontendIPConfiguration(
frontendIPConfiguration?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.frontendPort(frontendPort.applyValue({ args0 -> args0 }))
.id(id?.applyValue({ args0 -> args0 }))
.idleTimeoutInMinutes(idleTimeoutInMinutes?.applyValue({ args0 -> args0 }))
.loadDistribution(
loadDistribution?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
)
.name(name?.applyValue({ args0 -> args0 }))
.probe(probe?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.protocol(
protocol.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [LoadBalancingRuleArgs].
*/
@PulumiTagMarker
public class LoadBalancingRuleArgsBuilder internal constructor() {
private var backendAddressPool: Output? = null
private var backendAddressPools: Output>? = null
private var backendPort: Output? = null
private var disableOutboundSnat: Output? = null
private var enableFloatingIP: Output? = null
private var enableTcpReset: Output? = null
private var frontendIPConfiguration: Output? = null
private var frontendPort: Output? = null
private var id: Output? = null
private var idleTimeoutInMinutes: Output? = null
private var loadDistribution: Output>? = null
private var name: Output? = null
private var probe: Output? = null
private var protocol: Output>? = null
/**
* @param value A reference to a pool of DIPs. Inbound traffic is randomly load balanced across IPs in the backend IPs.
*/
@JvmName("rwheweecxykrlkia")
public suspend fun backendAddressPool(`value`: Output) {
this.backendAddressPool = value
}
/**
* @param value An array of references to pool of DIPs.
*/
@JvmName("nhxdddarsqncbmjr")
public suspend fun backendAddressPools(`value`: Output>) {
this.backendAddressPools = value
}
@JvmName("vkrhijmivwnvylgg")
public suspend fun backendAddressPools(vararg values: Output) {
this.backendAddressPools = Output.all(values.asList())
}
/**
* @param values An array of references to pool of DIPs.
*/
@JvmName("hgbpnjjjbnfaudbt")
public suspend fun backendAddressPools(values: List