com.pulumi.gcp.container.kotlin.outputs.AzureNodePoolConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
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.gcp.container.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
/**
*
* @property imageType The OS image type to use on node pool instances.
* @property labels Optional. The initial labels assigned to nodes of this node pool. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
* @property proxyConfig Proxy configuration for outbound HTTP(S) traffic.
* @property rootVolume Optional. Configuration related to the root volume provisioned for each node pool machine. When unspecified, it defaults to a 32-GiB Azure Disk.
* @property sshConfig SSH configuration for how to access the node pool machines.
* @property tags Optional. A set of tags to apply to all underlying Azure resources for this node pool. This currently only includes Virtual Machine Scale Sets. Specify at most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to 255 Unicode characters.
* @property vmSize Optional. The Azure VM size name. Example: `Standard_DS2_v2`. See (/anthos/clusters/docs/azure/reference/supported-vms) for options. When unspecified, it defaults to `Standard_DS2_v2`.
*/
public data class AzureNodePoolConfig(
public val imageType: String? = null,
public val labels: Map? = null,
public val proxyConfig: AzureNodePoolConfigProxyConfig? = null,
public val rootVolume: AzureNodePoolConfigRootVolume? = null,
public val sshConfig: AzureNodePoolConfigSshConfig,
public val tags: Map? = null,
public val vmSize: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.container.outputs.AzureNodePoolConfig): AzureNodePoolConfig = AzureNodePoolConfig(
imageType = javaType.imageType().map({ args0 -> args0 }).orElse(null),
labels = javaType.labels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
proxyConfig = javaType.proxyConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.container.kotlin.outputs.AzureNodePoolConfigProxyConfig.Companion.toKotlin(args0)
})
}).orElse(null),
rootVolume = javaType.rootVolume().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.container.kotlin.outputs.AzureNodePoolConfigRootVolume.Companion.toKotlin(args0)
})
}).orElse(null),
sshConfig = javaType.sshConfig().let({ args0 ->
com.pulumi.gcp.container.kotlin.outputs.AzureNodePoolConfigSshConfig.Companion.toKotlin(args0)
}),
tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
vmSize = javaType.vmSize().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy