com.pulumi.kubernetes.policy.v1beta1.kotlin.inputs.RunAsGroupStrategyOptionsArgs.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.policy.v1beta1.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import com.pulumi.kubernetes.policy.v1beta1.inputs.RunAsGroupStrategyOptionsArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy.
* @property ranges ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs.
* @property rule rule is the strategy that will dictate the allowable RunAsGroup values that may be set.
*/
public data class RunAsGroupStrategyOptionsArgs(
public val ranges: Output>? = null,
public val rule: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.policy.v1beta1.inputs.RunAsGroupStrategyOptionsArgs =
com.pulumi.kubernetes.policy.v1beta1.inputs.RunAsGroupStrategyOptionsArgs.builder()
.ranges(ranges?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.rule(rule.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RunAsGroupStrategyOptionsArgs].
*/
@PulumiTagMarker
public class RunAsGroupStrategyOptionsArgsBuilder internal constructor() {
private var ranges: Output>? = null
private var rule: Output? = null
/**
* @param value ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs.
*/
@JvmName("hvvqfovrnmcoegdo")
public suspend fun ranges(`value`: Output>) {
this.ranges = value
}
@JvmName("bvusccdfqcicmjro")
public suspend fun ranges(vararg values: Output) {
this.ranges = Output.all(values.asList())
}
/**
* @param values ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs.
*/
@JvmName("twimycvnivjerpap")
public suspend fun ranges(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy