com.pulumi.aws.iam.kotlin.UserPoliciesExclusiveArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.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
© 2015 - 2024 Weber Informatics LLC | Privacy Policy