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

com.pulumi.azure.lb.kotlin.outputs.GetLBOutboundRuleResult.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.lb.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * A collection of values returned by getLBOutboundRule.
 * @property allocatedOutboundPorts The number of outbound ports used for NAT.
 * @property backendAddressPoolId The ID of the Backend Address Pool. Outbound traffic is randomly load balanced across IPs in the backend IPs.
 * @property frontendIpConfigurations A `frontend_ip_configuration` block as defined below.
 * @property id The provider-assigned unique ID for this managed resource.
 * @property idleTimeoutInMinutes The timeout for the TCP idle connection.
 * @property loadbalancerId
 * @property name The name of the Frontend IP Configuration.
 * @property protocol The transport protocol for the external endpoint.
 * @property tcpResetEnabled Is the bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination enabled? This value is useful when the protocol is set to TCP.
 */
public data class GetLBOutboundRuleResult(
    public val allocatedOutboundPorts: Int,
    public val backendAddressPoolId: String,
    public val frontendIpConfigurations: List,
    public val id: String,
    public val idleTimeoutInMinutes: Int,
    public val loadbalancerId: String,
    public val name: String,
    public val protocol: String,
    public val tcpResetEnabled: Boolean,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.lb.outputs.GetLBOutboundRuleResult): GetLBOutboundRuleResult = GetLBOutboundRuleResult(
            allocatedOutboundPorts = javaType.allocatedOutboundPorts(),
            backendAddressPoolId = javaType.backendAddressPoolId(),
            frontendIpConfigurations = javaType.frontendIpConfigurations().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.lb.kotlin.outputs.GetLBOutboundRuleFrontendIpConfiguration.Companion.toKotlin(args0)
                })
            }),
            id = javaType.id(),
            idleTimeoutInMinutes = javaType.idleTimeoutInMinutes(),
            loadbalancerId = javaType.loadbalancerId(),
            name = javaType.name(),
            protocol = javaType.protocol(),
            tcpResetEnabled = javaType.tcpResetEnabled(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy