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

com.pulumi.kubernetes.rbac.v1.kotlin.outputs.AggregationRule.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: 4.18.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.rbac.v1.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.v1.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