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

com.pulumi.aws.iam.kotlin.UserPoliciesExclusiveArgs.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.iam.kotlin

import com.pulumi.aws.iam.UserPoliciesExclusiveArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * ## Import
 * Using `pulumi import`, import exclusive management of inline policy assignments using the `user_name`. For example:
 * ```sh
 * $ pulumi import aws:iam/userPoliciesExclusive:UserPoliciesExclusive example MyUser
 * ```
 * @property policyNames A list of inline policy names to be assigned to the user. Policies attached to this user but not configured in this argument will be removed.
 * @property userName IAM user name.
 */
public data class UserPoliciesExclusiveArgs(
    public val policyNames: Output>? = null,
    public val userName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.iam.UserPoliciesExclusiveArgs =
        com.pulumi.aws.iam.UserPoliciesExclusiveArgs.builder()
            .policyNames(policyNames?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .userName(userName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [UserPoliciesExclusiveArgs].
 */
@PulumiTagMarker
public class UserPoliciesExclusiveArgsBuilder internal constructor() {
    private var policyNames: Output>? = null

    private var userName: Output? = null

    /**
     * @param value A list of inline policy names to be assigned to the user. Policies attached to this user but not configured in this argument will be removed.
     */
    @JvmName("mqsplgkbjvurjdwu")
    public suspend fun policyNames(`value`: Output>) {
        this.policyNames = value
    }

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

    /**
     * @param values A list of inline policy names to be assigned to the user. Policies attached to this user but not configured in this argument will be removed.
     */
    @JvmName("cbtswojnbbbvdufs")
    public suspend fun policyNames(values: List>) {
        this.policyNames = Output.all(values)
    }

    /**
     * @param value IAM user name.
     */
    @JvmName("qnjgpvpgbfukcaov")
    public suspend fun userName(`value`: Output) {
        this.userName = value
    }

    /**
     * @param value A list of inline policy names to be assigned to the user. Policies attached to this user but not configured in this argument will be removed.
     */
    @JvmName("hdyhwvbhmddspkqb")
    public suspend fun policyNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policyNames = mapped
    }

    /**
     * @param values A list of inline policy names to be assigned to the user. Policies attached to this user but not configured in this argument will be removed.
     */
    @JvmName("sobmavldiedbixag")
    public suspend fun policyNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.policyNames = mapped
    }

    /**
     * @param value IAM user name.
     */
    @JvmName("rkbskcaykjvrjmmh")
    public suspend fun userName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userName = mapped
    }

    internal fun build(): UserPoliciesExclusiveArgs = UserPoliciesExclusiveArgs(
        policyNames = policyNames,
        userName = userName,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy