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

com.pulumi.aws.eks.kotlin.inputs.AccessPolicyAssociationAccessScopeArgs.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.eks.kotlin.inputs

import com.pulumi.aws.eks.inputs.AccessPolicyAssociationAccessScopeArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property namespaces The namespaces to which the access scope applies when type is namespace.
 * @property type Valid values are `namespace` or `cluster`.
 */
public data class AccessPolicyAssociationAccessScopeArgs(
    public val namespaces: Output>? = null,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.eks.inputs.AccessPolicyAssociationAccessScopeArgs =
        com.pulumi.aws.eks.inputs.AccessPolicyAssociationAccessScopeArgs.builder()
            .namespaces(namespaces?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .type(type.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AccessPolicyAssociationAccessScopeArgs].
 */
@PulumiTagMarker
public class AccessPolicyAssociationAccessScopeArgsBuilder internal constructor() {
    private var namespaces: Output>? = null

    private var type: Output? = null

    /**
     * @param value The namespaces to which the access scope applies when type is namespace.
     */
    @JvmName("trpenndrxcylvkjk")
    public suspend fun namespaces(`value`: Output>) {
        this.namespaces = value
    }

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

    /**
     * @param values The namespaces to which the access scope applies when type is namespace.
     */
    @JvmName("hghomkywpeaebtis")
    public suspend fun namespaces(values: List>) {
        this.namespaces = Output.all(values)
    }

    /**
     * @param value Valid values are `namespace` or `cluster`.
     */
    @JvmName("ildthgrfxvfqrdgg")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The namespaces to which the access scope applies when type is namespace.
     */
    @JvmName("xsglgfcrruhuknse")
    public suspend fun namespaces(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.namespaces = mapped
    }

    /**
     * @param values The namespaces to which the access scope applies when type is namespace.
     */
    @JvmName("jbqmkrphwvyhogts")
    public suspend fun namespaces(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.namespaces = mapped
    }

    /**
     * @param value Valid values are `namespace` or `cluster`.
     */
    @JvmName("ixsxjdfgfpumporp")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): AccessPolicyAssociationAccessScopeArgs =
        AccessPolicyAssociationAccessScopeArgs(
            namespaces = namespaces,
            type = type ?: throw PulumiNullFieldException("type"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy