com.pulumi.kubernetes.rbac.v1alpha1.kotlin.outputs.AggregationRule.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-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.kubernetes.rbac.v1alpha1.kotlin.outputs
import com.pulumi.kubernetes.meta.v1.kotlin.outputs.LabelSelector
import kotlin.Suppress
import kotlin.collections.List
/**
* AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole
* @property clusterRoleSelectors ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added
*/
public data class AggregationRule(
public val clusterRoleSelectors: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.rbac.v1alpha1.outputs.AggregationRule): AggregationRule = AggregationRule(
clusterRoleSelectors = javaType.clusterRoleSelectors().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.meta.v1.kotlin.outputs.LabelSelector.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy