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

com.pulumi.aws.iam.kotlin.RolePoliciesExclusiveArgs.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.66.3.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.iam.kotlin

import com.pulumi.aws.iam.RolePoliciesExclusiveArgs.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 `role_name`. For example:
 * ```sh
 * $ pulumi import aws:iam/rolePoliciesExclusive:RolePoliciesExclusive example MyRole
 * ```
 * @property policyNames A list of inline policy names to be assigned to the role. Policies attached to this role but not configured in this argument will be removed.
 * @property roleName IAM role name.
 */
public data class RolePoliciesExclusiveArgs(
    public val policyNames: Output>? = null,
    public val roleName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.iam.RolePoliciesExclusiveArgs =
        com.pulumi.aws.iam.RolePoliciesExclusiveArgs.builder()
            .policyNames(policyNames?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .roleName(roleName?.applyValue({ args0 -> args0 })).build()
}

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

    private var roleName: Output? = null

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

    @JvmName("cknurhgtjxqiopev")
    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 role. Policies attached to this role but not configured in this argument will be removed.
     */
    @JvmName("yvcatlmruptlssxh")
    public suspend fun policyNames(values: List>) {
        this.policyNames = Output.all(values)
    }

    /**
     * @param value IAM role name.
     */
    @JvmName("nrxhlmychjqgmqxp")
    public suspend fun roleName(`value`: Output) {
        this.roleName = value
    }

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

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

    internal fun build(): RolePoliciesExclusiveArgs = RolePoliciesExclusiveArgs(
        policyNames = policyNames,
        roleName = roleName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy