com.pulumi.kubernetes.rbac.v1alpha1.kotlin.inputs.AggregationRuleArgs.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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.rbac.v1alpha1.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import com.pulumi.kubernetes.meta.v1.kotlin.inputs.LabelSelectorArgs
import com.pulumi.kubernetes.meta.v1.kotlin.inputs.LabelSelectorArgsBuilder
import com.pulumi.kubernetes.rbac.v1alpha1.inputs.AggregationRuleArgs.builder
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* 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 AggregationRuleArgs(
public val clusterRoleSelectors: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.rbac.v1alpha1.inputs.AggregationRuleArgs =
com.pulumi.kubernetes.rbac.v1alpha1.inputs.AggregationRuleArgs.builder()
.clusterRoleSelectors(
clusterRoleSelectors?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [AggregationRuleArgs].
*/
@PulumiTagMarker
public class AggregationRuleArgsBuilder internal constructor() {
private var clusterRoleSelectors: Output>? = null
/**
* @param value 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
*/
@JvmName("afhaxemfvmiatamc")
public suspend fun clusterRoleSelectors(`value`: Output>) {
this.clusterRoleSelectors = value
}
@JvmName("bmkaxqtxtiigrkhi")
public suspend fun clusterRoleSelectors(vararg values: Output) {
this.clusterRoleSelectors = Output.all(values.asList())
}
/**
* @param values 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
*/
@JvmName("ulvwjwnpyjvmywxj")
public suspend fun clusterRoleSelectors(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy