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

com.pulumi.aws.iam.kotlin.inputs.GetSessionContextPlainArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.iam.kotlin.inputs

import com.pulumi.aws.iam.inputs.GetSessionContextPlainArgs.builder
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

/**
 * A collection of arguments for invoking getSessionContext.
 * @property arn ARN for an assumed role.
 * > If `arn` is a non-role ARN, Pulumi gives no error and `issuer_arn` will be equal to the `arn` value. For STS assumed-role ARNs, Pulumi gives an error if the identified IAM role does not exist.
 */
public data class GetSessionContextPlainArgs(
    public val arn: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.iam.inputs.GetSessionContextPlainArgs =
        com.pulumi.aws.iam.inputs.GetSessionContextPlainArgs.builder()
            .arn(arn.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetSessionContextPlainArgs].
 */
@PulumiTagMarker
public class GetSessionContextPlainArgsBuilder internal constructor() {
    private var arn: String? = null

    /**
     * @param value ARN for an assumed role.
     * > If `arn` is a non-role ARN, Pulumi gives no error and `issuer_arn` will be equal to the `arn` value. For STS assumed-role ARNs, Pulumi gives an error if the identified IAM role does not exist.
     */
    @JvmName("sjilaogptcotrnmi")
    public suspend fun arn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.arn = mapped
    }

    internal fun build(): GetSessionContextPlainArgs = GetSessionContextPlainArgs(
        arn = arn ?: throw PulumiNullFieldException("arn"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy