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

com.pulumi.awsnative.eks.kotlin.IdentityProviderConfigArgs.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.eks.kotlin

import com.pulumi.awsnative.eks.IdentityProviderConfigArgs.builder
import com.pulumi.awsnative.eks.kotlin.enums.IdentityProviderConfigType
import com.pulumi.awsnative.eks.kotlin.inputs.IdentityProviderConfigOidcIdentityProviderConfigArgs
import com.pulumi.awsnative.eks.kotlin.inputs.IdentityProviderConfigOidcIdentityProviderConfigArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * An object representing an Amazon EKS IdentityProviderConfig.
 * @property clusterName The name of the identity provider configuration.
 * @property identityProviderConfigName The name of the OIDC provider configuration.
 * @property oidc An object representing an OpenID Connect (OIDC) identity provider configuration.
 * @property tags An array of key-value pairs to apply to this resource.
 * @property type The type of the identity provider configuration.
 */
public data class IdentityProviderConfigArgs(
    public val clusterName: Output? = null,
    public val identityProviderConfigName: Output? = null,
    public val oidc: Output? = null,
    public val tags: Output>? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.eks.IdentityProviderConfigArgs =
        com.pulumi.awsnative.eks.IdentityProviderConfigArgs.builder()
            .clusterName(clusterName?.applyValue({ args0 -> args0 }))
            .identityProviderConfigName(identityProviderConfigName?.applyValue({ args0 -> args0 }))
            .oidc(oidc?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .type(type?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [IdentityProviderConfigArgs].
 */
@PulumiTagMarker
public class IdentityProviderConfigArgsBuilder internal constructor() {
    private var clusterName: Output? = null

    private var identityProviderConfigName: Output? = null

    private var oidc: Output? = null

    private var tags: Output>? = null

    private var type: Output? = null

    /**
     * @param value The name of the identity provider configuration.
     */
    @JvmName("mlntdmnaalhexwop")
    public suspend fun clusterName(`value`: Output) {
        this.clusterName = value
    }

    /**
     * @param value The name of the OIDC provider configuration.
     */
    @JvmName("dllicslejldacdvw")
    public suspend fun identityProviderConfigName(`value`: Output) {
        this.identityProviderConfigName = value
    }

    /**
     * @param value An object representing an OpenID Connect (OIDC) identity provider configuration.
     */
    @JvmName("wusjescshmtrdkxu")
    public suspend fun oidc(`value`: Output) {
        this.oidc = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("nvwaodbppobryoms")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("enxyegfnoykcatoc")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("gbpdvjemxxotlonu")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The type of the identity provider configuration.
     */
    @JvmName("qpgithepwpdhosvf")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The name of the identity provider configuration.
     */
    @JvmName("tlpdndqkpmxxbixn")
    public suspend fun clusterName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clusterName = mapped
    }

    /**
     * @param value The name of the OIDC provider configuration.
     */
    @JvmName("aneggdklctfnaibp")
    public suspend fun identityProviderConfigName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identityProviderConfigName = mapped
    }

    /**
     * @param value An object representing an OpenID Connect (OIDC) identity provider configuration.
     */
    @JvmName("vybttknnauiehrdb")
    public suspend fun oidc(`value`: IdentityProviderConfigOidcIdentityProviderConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.oidc = mapped
    }

    /**
     * @param argument An object representing an OpenID Connect (OIDC) identity provider configuration.
     */
    @JvmName("xpftjvffxnebdbcd")
    public suspend fun oidc(argument: suspend IdentityProviderConfigOidcIdentityProviderConfigArgsBuilder.() -> Unit) {
        val toBeMapped = IdentityProviderConfigOidcIdentityProviderConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.oidc = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("ofnljjqwximbvohn")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("yacwycvceyvselmx")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("robcewxgtfmeipjs")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("hytptjfxgporrdsb")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("gotqlssbtkbchaub")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The type of the identity provider configuration.
     */
    @JvmName("ojvcxhrrajtwfdge")
    public suspend fun type(`value`: IdentityProviderConfigType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): IdentityProviderConfigArgs = IdentityProviderConfigArgs(
        clusterName = clusterName,
        identityProviderConfigName = identityProviderConfigName,
        oidc = oidc,
        tags = tags,
        type = type,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy