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

com.pulumi.aws.transfer.kotlin.inputs.AccessPosixProfileArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.transfer.kotlin.inputs

import com.pulumi.aws.transfer.inputs.AccessPosixProfileArgs.builder
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 kotlin.Int
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property gid The POSIX group ID used for all EFS operations by this user.
 * @property secondaryGids The secondary POSIX group IDs used for all EFS operations by this user.
 * @property uid The POSIX user ID used for all EFS operations by this user.
 */
public data class AccessPosixProfileArgs(
    public val gid: Output,
    public val secondaryGids: Output>? = null,
    public val uid: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.transfer.inputs.AccessPosixProfileArgs =
        com.pulumi.aws.transfer.inputs.AccessPosixProfileArgs.builder()
            .gid(gid.applyValue({ args0 -> args0 }))
            .secondaryGids(secondaryGids?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .uid(uid.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AccessPosixProfileArgs].
 */
@PulumiTagMarker
public class AccessPosixProfileArgsBuilder internal constructor() {
    private var gid: Output? = null

    private var secondaryGids: Output>? = null

    private var uid: Output? = null

    /**
     * @param value The POSIX group ID used for all EFS operations by this user.
     */
    @JvmName("acxpkdjnayfcskwg")
    public suspend fun gid(`value`: Output) {
        this.gid = value
    }

    /**
     * @param value The secondary POSIX group IDs used for all EFS operations by this user.
     */
    @JvmName("otvigethdvtcjepb")
    public suspend fun secondaryGids(`value`: Output>) {
        this.secondaryGids = value
    }

    @JvmName("ugjbssmcfrlrbvri")
    public suspend fun secondaryGids(vararg values: Output) {
        this.secondaryGids = Output.all(values.asList())
    }

    /**
     * @param values The secondary POSIX group IDs used for all EFS operations by this user.
     */
    @JvmName("xfdketvbermyhjjo")
    public suspend fun secondaryGids(values: List>) {
        this.secondaryGids = Output.all(values)
    }

    /**
     * @param value The POSIX user ID used for all EFS operations by this user.
     */
    @JvmName("yxcrqhvhqjlaxmxn")
    public suspend fun uid(`value`: Output) {
        this.uid = value
    }

    /**
     * @param value The POSIX group ID used for all EFS operations by this user.
     */
    @JvmName("sebotyopuevsukhq")
    public suspend fun gid(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.gid = mapped
    }

    /**
     * @param value The secondary POSIX group IDs used for all EFS operations by this user.
     */
    @JvmName("fkxgjnjybvdndlgf")
    public suspend fun secondaryGids(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.secondaryGids = mapped
    }

    /**
     * @param values The secondary POSIX group IDs used for all EFS operations by this user.
     */
    @JvmName("pquumarymvguhpxj")
    public suspend fun secondaryGids(vararg values: Int) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.secondaryGids = mapped
    }

    /**
     * @param value The POSIX user ID used for all EFS operations by this user.
     */
    @JvmName("lgrtaunmfxbsmkxm")
    public suspend fun uid(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.uid = mapped
    }

    internal fun build(): AccessPosixProfileArgs = AccessPosixProfileArgs(
        gid = gid ?: throw PulumiNullFieldException("gid"),
        secondaryGids = secondaryGids,
        uid = uid ?: throw PulumiNullFieldException("uid"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy