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

com.pulumi.azurenative.cache.kotlin.RedisEnterpriseArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.cache.kotlin

import com.pulumi.azurenative.cache.RedisEnterpriseArgs.builder
import com.pulumi.azurenative.cache.kotlin.enums.TlsVersion
import com.pulumi.azurenative.cache.kotlin.inputs.ClusterPropertiesEncryptionArgs
import com.pulumi.azurenative.cache.kotlin.inputs.ClusterPropertiesEncryptionArgsBuilder
import com.pulumi.azurenative.cache.kotlin.inputs.EnterpriseSkuArgs
import com.pulumi.azurenative.cache.kotlin.inputs.EnterpriseSkuArgsBuilder
import com.pulumi.azurenative.cache.kotlin.inputs.ManagedServiceIdentityArgs
import com.pulumi.azurenative.cache.kotlin.inputs.ManagedServiceIdentityArgsBuilder
import com.pulumi.core.Either
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Describes the RedisEnterprise cluster
 * Azure REST API version: 2023-03-01-preview. Prior API version in Azure Native 1.x: 2021-03-01.
 * Other available API versions: 2020-10-01-preview, 2023-07-01, 2023-08-01-preview, 2023-10-01-preview, 2023-11-01, 2024-02-01, 2024-03-01-preview, 2024-06-01-preview, 2024-09-01-preview.
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:cache:RedisEnterprise cache1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}
 * ```
 * @property clusterName The name of the RedisEnterprise cluster.
 * @property encryption Encryption-at-rest configuration for the cluster.
 * @property identity The identity of the resource.
 * @property location The geo-location where the resource lives
 * @property minimumTlsVersion The minimum TLS version for the cluster to support, e.g. '1.2'
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 * @property sku The SKU to create, which affects price, performance, and features.
 * @property tags Resource tags.
 * @property zones The Availability Zones where this cluster will be deployed.
 */
public data class RedisEnterpriseArgs(
    public val clusterName: Output? = null,
    public val encryption: Output? = null,
    public val identity: Output? = null,
    public val location: Output? = null,
    public val minimumTlsVersion: Output>? = null,
    public val resourceGroupName: Output? = null,
    public val sku: Output? = null,
    public val tags: Output>? = null,
    public val zones: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.cache.RedisEnterpriseArgs =
        com.pulumi.azurenative.cache.RedisEnterpriseArgs.builder()
            .clusterName(clusterName?.applyValue({ args0 -> args0 }))
            .encryption(encryption?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .location(location?.applyValue({ args0 -> args0 }))
            .minimumTlsVersion(
                minimumTlsVersion?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            )
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .sku(sku?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .zones(zones?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var encryption: Output? = null

    private var identity: Output? = null

    private var location: Output? = null

    private var minimumTlsVersion: Output>? = null

    private var resourceGroupName: Output? = null

    private var sku: Output? = null

    private var tags: Output>? = null

    private var zones: Output>? = null

    /**
     * @param value The name of the RedisEnterprise cluster.
     */
    @JvmName("awpchajoyqmmnxrl")
    public suspend fun clusterName(`value`: Output) {
        this.clusterName = value
    }

    /**
     * @param value Encryption-at-rest configuration for the cluster.
     */
    @JvmName("epjexsuantcgjhdm")
    public suspend fun encryption(`value`: Output) {
        this.encryption = value
    }

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

    /**
     * @param value The geo-location where the resource lives
     */
    @JvmName("edgeinsquqaitkib")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The minimum TLS version for the cluster to support, e.g. '1.2'
     */
    @JvmName("yfuxerdivmpiqodw")
    public suspend fun minimumTlsVersion(`value`: Output>) {
        this.minimumTlsVersion = value
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("thgksvgglevltwpk")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value The SKU to create, which affects price, performance, and features.
     */
    @JvmName("ugrieboxvifnqmka")
    public suspend fun sku(`value`: Output) {
        this.sku = value
    }

    /**
     * @param value Resource tags.
     */
    @JvmName("najusairnndhyvyk")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The Availability Zones where this cluster will be deployed.
     */
    @JvmName("xmywrmkvmhyrtcwq")
    public suspend fun zones(`value`: Output>) {
        this.zones = value
    }

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

    /**
     * @param values The Availability Zones where this cluster will be deployed.
     */
    @JvmName("qvlsnunhqceynkup")
    public suspend fun zones(values: List>) {
        this.zones = Output.all(values)
    }

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

    /**
     * @param value Encryption-at-rest configuration for the cluster.
     */
    @JvmName("chvsounvfgxoexec")
    public suspend fun encryption(`value`: ClusterPropertiesEncryptionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encryption = mapped
    }

    /**
     * @param argument Encryption-at-rest configuration for the cluster.
     */
    @JvmName("sjcdlafffqlnwmvw")
    public suspend fun encryption(argument: suspend ClusterPropertiesEncryptionArgsBuilder.() -> Unit) {
        val toBeMapped = ClusterPropertiesEncryptionArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.encryption = mapped
    }

    /**
     * @param value The identity of the resource.
     */
    @JvmName("fkgvrxyyfbmvsrvh")
    public suspend fun identity(`value`: ManagedServiceIdentityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identity = mapped
    }

    /**
     * @param argument The identity of the resource.
     */
    @JvmName("fxjrmbtfacratfrq")
    public suspend fun identity(argument: suspend ManagedServiceIdentityArgsBuilder.() -> Unit) {
        val toBeMapped = ManagedServiceIdentityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.identity = mapped
    }

    /**
     * @param value The geo-location where the resource lives
     */
    @JvmName("dfvkkrrxscquvwfe")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The minimum TLS version for the cluster to support, e.g. '1.2'
     */
    @JvmName("qtymdqejnnekjbkc")
    public suspend fun minimumTlsVersion(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minimumTlsVersion = mapped
    }

    /**
     * @param value The minimum TLS version for the cluster to support, e.g. '1.2'
     */
    @JvmName("arpljdmvlcwjlrgg")
    public fun minimumTlsVersion(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.minimumTlsVersion = mapped
    }

    /**
     * @param value The minimum TLS version for the cluster to support, e.g. '1.2'
     */
    @JvmName("uvqowpovmwlfklkb")
    public fun minimumTlsVersion(`value`: TlsVersion) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.minimumTlsVersion = mapped
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("exahakrlahqirkpj")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value The SKU to create, which affects price, performance, and features.
     */
    @JvmName("ohvpjnkngpastnvo")
    public suspend fun sku(`value`: EnterpriseSkuArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sku = mapped
    }

    /**
     * @param argument The SKU to create, which affects price, performance, and features.
     */
    @JvmName("mauyqtjarhuiutbo")
    public suspend fun sku(argument: suspend EnterpriseSkuArgsBuilder.() -> Unit) {
        val toBeMapped = EnterpriseSkuArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sku = mapped
    }

    /**
     * @param value Resource tags.
     */
    @JvmName("nlsbihkevbqicwkq")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Resource tags.
     */
    @JvmName("dnkawqcxiaihvfsa")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The Availability Zones where this cluster will be deployed.
     */
    @JvmName("rfwevhwvcmhbyqwn")
    public suspend fun zones(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.zones = mapped
    }

    /**
     * @param values The Availability Zones where this cluster will be deployed.
     */
    @JvmName("vbbxbapgeuhhyovu")
    public suspend fun zones(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.zones = mapped
    }

    internal fun build(): RedisEnterpriseArgs = RedisEnterpriseArgs(
        clusterName = clusterName,
        encryption = encryption,
        identity = identity,
        location = location,
        minimumTlsVersion = minimumTlsVersion,
        resourceGroupName = resourceGroupName,
        sku = sku,
        tags = tags,
        zones = zones,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy