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

com.pulumi.awsnative.emr.kotlin.inputs.GetStudioSessionMappingPlainArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.emr.kotlin.inputs

import com.pulumi.awsnative.emr.inputs.GetStudioSessionMappingPlainArgs.builder
import com.pulumi.awsnative.emr.kotlin.enums.StudioSessionMappingIdentityType
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property identityName The name of the user or group. For more information, see UserName and DisplayName in the AWS SSO Identity Store API Reference. Either IdentityName or IdentityId must be specified.
 * @property identityType Specifies whether the identity to map to the Studio is a user or a group.
 * @property studioId The ID of the Amazon EMR Studio to which the user or group will be mapped.
 */
public data class GetStudioSessionMappingPlainArgs(
    public val identityName: String,
    public val identityType: StudioSessionMappingIdentityType,
    public val studioId: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.emr.inputs.GetStudioSessionMappingPlainArgs =
        com.pulumi.awsnative.emr.inputs.GetStudioSessionMappingPlainArgs.builder()
            .identityName(identityName.let({ args0 -> args0 }))
            .identityType(identityType.let({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .studioId(studioId.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetStudioSessionMappingPlainArgs].
 */
@PulumiTagMarker
public class GetStudioSessionMappingPlainArgsBuilder internal constructor() {
    private var identityName: String? = null

    private var identityType: StudioSessionMappingIdentityType? = null

    private var studioId: String? = null

    /**
     * @param value The name of the user or group. For more information, see UserName and DisplayName in the AWS SSO Identity Store API Reference. Either IdentityName or IdentityId must be specified.
     */
    @JvmName("xtfgyfbqrbdkdmfo")
    public suspend fun identityName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.identityName = mapped
    }

    /**
     * @param value Specifies whether the identity to map to the Studio is a user or a group.
     */
    @JvmName("lllhqokdebraguum")
    public suspend fun identityType(`value`: StudioSessionMappingIdentityType) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.identityType = mapped
    }

    /**
     * @param value The ID of the Amazon EMR Studio to which the user or group will be mapped.
     */
    @JvmName("ixvbnflfixoglium")
    public suspend fun studioId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.studioId = mapped
    }

    internal fun build(): GetStudioSessionMappingPlainArgs = GetStudioSessionMappingPlainArgs(
        identityName = identityName ?: throw PulumiNullFieldException("identityName"),
        identityType = identityType ?: throw PulumiNullFieldException("identityType"),
        studioId = studioId ?: throw PulumiNullFieldException("studioId"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy