
com.pulumi.awsnative.iotsitewise.kotlin.inputs.AccessPolicyIdentityArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.iotsitewise.kotlin.inputs
import com.pulumi.awsnative.iotsitewise.inputs.AccessPolicyIdentityArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* The identity for this access policy. Choose either an SSO user or group or an IAM user or role.
* @property iamRole An IAM role identity.
* @property iamUser An IAM user identity.
* @property user An IAM Identity Center user identity.
*/
public data class AccessPolicyIdentityArgs(
public val iamRole: Output? = null,
public val iamUser: Output? = null,
public val user: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.iotsitewise.inputs.AccessPolicyIdentityArgs =
com.pulumi.awsnative.iotsitewise.inputs.AccessPolicyIdentityArgs.builder()
.iamRole(iamRole?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.iamUser(iamUser?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.user(user?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [AccessPolicyIdentityArgs].
*/
@PulumiTagMarker
public class AccessPolicyIdentityArgsBuilder internal constructor() {
private var iamRole: Output? = null
private var iamUser: Output? = null
private var user: Output? = null
/**
* @param value An IAM role identity.
*/
@JvmName("agojxwelrkaqwgjv")
public suspend fun iamRole(`value`: Output) {
this.iamRole = value
}
/**
* @param value An IAM user identity.
*/
@JvmName("tlcywxgdmxgnuwnv")
public suspend fun iamUser(`value`: Output) {
this.iamUser = value
}
/**
* @param value An IAM Identity Center user identity.
*/
@JvmName("axgcxashlnolnyim")
public suspend fun user(`value`: Output) {
this.user = value
}
/**
* @param value An IAM role identity.
*/
@JvmName("vjvcxxnodmbneqen")
public suspend fun iamRole(`value`: AccessPolicyIamRoleArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.iamRole = mapped
}
/**
* @param argument An IAM role identity.
*/
@JvmName("otebllnsbnxisdqo")
public suspend fun iamRole(argument: suspend AccessPolicyIamRoleArgsBuilder.() -> Unit) {
val toBeMapped = AccessPolicyIamRoleArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.iamRole = mapped
}
/**
* @param value An IAM user identity.
*/
@JvmName("djbkxgykdjyoqumn")
public suspend fun iamUser(`value`: AccessPolicyIamUserArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.iamUser = mapped
}
/**
* @param argument An IAM user identity.
*/
@JvmName("mfqkrjdhbvbowbss")
public suspend fun iamUser(argument: suspend AccessPolicyIamUserArgsBuilder.() -> Unit) {
val toBeMapped = AccessPolicyIamUserArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.iamUser = mapped
}
/**
* @param value An IAM Identity Center user identity.
*/
@JvmName("pgjouumbhgquplcp")
public suspend fun user(`value`: AccessPolicyUserArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.user = mapped
}
/**
* @param argument An IAM Identity Center user identity.
*/
@JvmName("ewxyitwvlpwdbfqq")
public suspend fun user(argument: suspend AccessPolicyUserArgsBuilder.() -> Unit) {
val toBeMapped = AccessPolicyUserArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.user = mapped
}
internal fun build(): AccessPolicyIdentityArgs = AccessPolicyIdentityArgs(
iamRole = iamRole,
iamUser = iamUser,
user = user,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy