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

com.pulumi.azure.batch.kotlin.outputs.PoolNetworkConfigurationEndpointConfiguration.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.batch.kotlin.outputs

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

/**
 *
 * @property backendPort The port number on the compute node. Acceptable values are between `1` and `65535` except for `29876`, `29877` as these are reserved. Changing this forces a new resource to be created.
 * @property frontendPortRange The range of external ports that will be used to provide inbound access to the backendPort on individual compute nodes in the format of `1000-1100`. Acceptable values range between `1` and `65534` except ports from `50000` to `55000` which are reserved by the Batch service. All ranges within a pool must be distinct and cannot overlap. Values must be a range of at least `100` nodes. Changing this forces a new resource to be created.
 * @property name The name of the endpoint. The name must be unique within a Batch pool, can contain letters, numbers, underscores, periods, and hyphens. Names must start with a letter or number, must end with a letter, number, or underscore, and cannot exceed 77 characters. Changing this forces a new resource to be created.
 * @property networkSecurityGroupRules A list of `network_security_group_rules` blocks as defined below that will be applied to the endpoint. The maximum number of rules that can be specified across all the endpoints on a Batch pool is `25`. If no network security group rules are specified, a default rule will be created to allow inbound access to the specified backendPort. Set as documented in the network_security_group_rules block below. Changing this forces a new resource to be created.
 * @property protocol The protocol of the endpoint. Acceptable values are `TCP` and `UDP`. Changing this forces a new resource to be created.
 */
public data class PoolNetworkConfigurationEndpointConfiguration(
    public val backendPort: Int,
    public val frontendPortRange: String,
    public val name: String,
    public val networkSecurityGroupRules: List? = null,
    public val protocol: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.batch.outputs.PoolNetworkConfigurationEndpointConfiguration): PoolNetworkConfigurationEndpointConfiguration =
            PoolNetworkConfigurationEndpointConfiguration(
                backendPort = javaType.backendPort(),
                frontendPortRange = javaType.frontendPortRange(),
                name = javaType.name(),
                networkSecurityGroupRules = javaType.networkSecurityGroupRules().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.azure.batch.kotlin.outputs.PoolNetworkConfigurationEndpointConfigurationNetworkSecurityGroupRule.Companion.toKotlin(args0)
                    })
                }),
                protocol = javaType.protocol(),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy