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

com.pulumi.gcp.gkehub.kotlin.outputs.FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfig.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.gkehub.kotlin.outputs

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

/**
 *
 * @property component The identifier for this object. Format specified above.
 * @property containerResources Container resource requirements.
 * Structure is documented below.
 * @property podAffinity Pod affinity configuration.
 * Possible values are: `AFFINITY_UNSPECIFIED`, `NO_AFFINITY`, `ANTI_AFFINITY`.
 * @property podTolerations Pod tolerations of node taints.
 * Structure is documented below.
 * @property replicaCount Pod replica count.
 */
public data class
FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfig(
    public val component: String,
    public val containerResources: FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResources? =
        null,
    public val podAffinity: String? = null,
    public val podTolerations: List? =
        null,
    public val replicaCount: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.gkehub.outputs.FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfig): FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfig =
            FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfig(
                component = javaType.component(),
                containerResources = javaType.containerResources().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.gkehub.kotlin.outputs.FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigContainerResources.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                podAffinity = javaType.podAffinity().map({ args0 -> args0 }).orElse(null),
                podTolerations = javaType.podTolerations().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.gkehub.kotlin.outputs.FeatureFleetDefaultMemberConfigPolicycontrollerPolicyControllerHubConfigDeploymentConfigPodToleration.Companion.toKotlin(args0)
                    })
                }),
                replicaCount = javaType.replicaCount().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy