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

com.pulumi.awsnative.iotsitewise.kotlin.outputs.AccessPolicyIdentity.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: 1.24.0.0
Show newest version
@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