
com.pulumi.awsnative.iotsitewise.kotlin.outputs.AccessPolicyIdentity.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.outputs
import kotlin.Suppress
/**
* 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 AccessPolicyIdentity(
public val iamRole: AccessPolicyIamRole? = null,
public val iamUser: AccessPolicyIamUser? = null,
public val user: AccessPolicyUser? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.iotsitewise.outputs.AccessPolicyIdentity): AccessPolicyIdentity = AccessPolicyIdentity(
iamRole = javaType.iamRole().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iotsitewise.kotlin.outputs.AccessPolicyIamRole.Companion.toKotlin(args0)
})
}).orElse(null),
iamUser = javaType.iamUser().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iotsitewise.kotlin.outputs.AccessPolicyIamUser.Companion.toKotlin(args0)
})
}).orElse(null),
user = javaType.user().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iotsitewise.kotlin.outputs.AccessPolicyUser.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy