
com.pulumi.aws.iam.kotlin.RolePoliciesExclusiveArgs.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.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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy