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

com.pulumi.awsnative.eks.kotlin.PodIdentityAssociationArgs.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.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.eks.kotlin

import com.pulumi.awsnative.eks.PodIdentityAssociationArgs.builder
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 PodIdentityAssociation.
 * @property clusterName The cluster that the pod identity association is created for.
 * @property namespace The Kubernetes namespace that the pod identity association is created for.
 * @property roleArn The IAM role ARN that the pod identity association is created for.
 * @property serviceAccount The Kubernetes service account that the pod identity association is created for.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class PodIdentityAssociationArgs(
    public val clusterName: Output? = null,
    public val namespace: Output? = null,
    public val roleArn: Output? = null,
    public val serviceAccount: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.eks.PodIdentityAssociationArgs =
        com.pulumi.awsnative.eks.PodIdentityAssociationArgs.builder()
            .clusterName(clusterName?.applyValue({ args0 -> args0 }))
            .namespace(namespace?.applyValue({ args0 -> args0 }))
            .roleArn(roleArn?.applyValue({ args0 -> args0 }))
            .serviceAccount(serviceAccount?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var namespace: Output? = null

    private var roleArn: Output? = null

    private var serviceAccount: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The cluster that the pod identity association is created for.
     */
    @JvmName("vxbkppgisuqochqm")
    public suspend fun clusterName(`value`: Output) {
        this.clusterName = value
    }

    /**
     * @param value The Kubernetes namespace that the pod identity association is created for.
     */
    @JvmName("kcgemeflgiamqpef")
    public suspend fun namespace(`value`: Output) {
        this.namespace = value
    }

    /**
     * @param value The IAM role ARN that the pod identity association is created for.
     */
    @JvmName("keuftviyoivxoiof")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value The Kubernetes service account that the pod identity association is created for.
     */
    @JvmName("vufuqahbdaihmppf")
    public suspend fun serviceAccount(`value`: Output) {
        this.serviceAccount = value
    }

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

    @JvmName("mftyiwqepelsrgif")
    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("rbdmgkkisbeqqvkp")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The cluster that the pod identity association is created for.
     */
    @JvmName("ckivqknannjhjvkp")
    public suspend fun clusterName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clusterName = mapped
    }

    /**
     * @param value The Kubernetes namespace that the pod identity association is created for.
     */
    @JvmName("pbiacsuwfshorqrq")
    public suspend fun namespace(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.namespace = mapped
    }

    /**
     * @param value The IAM role ARN that the pod identity association is created for.
     */
    @JvmName("raxenxmrxjwdgycd")
    public suspend fun roleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    /**
     * @param value The Kubernetes service account that the pod identity association is created for.
     */
    @JvmName("orlyghpshjyxbuif")
    public suspend fun serviceAccount(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceAccount = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("bdfaxioqsvgusrkj")
    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("oqbwmjtdcchtkjna")
    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("hwqglqoneudgcdai")
    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("cbynqymwajghmets")
    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("fyxnmxuncvkrekuj")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): PodIdentityAssociationArgs = PodIdentityAssociationArgs(
        clusterName = clusterName,
        namespace = namespace,
        roleArn = roleArn,
        serviceAccount = serviceAccount,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy