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

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

package com.pulumi.awsnative.redshift.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.redshift.ClusterParameterGroupArgs.builder
import com.pulumi.awsnative.redshift.kotlin.inputs.ClusterParameterGroupParameterArgs
import com.pulumi.awsnative.redshift.kotlin.inputs.ClusterParameterGroupParameterArgsBuilder
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

/**
 * Resource Type definition for AWS::Redshift::ClusterParameterGroup
 * @property description A description of the parameter group.
 * @property parameterGroupFamily The Amazon Redshift engine version to which the cluster parameter group applies. The cluster engine version determines the set of parameters.
 * @property parameterGroupName The name of the cluster parameter group.
 * @property parameters An array of parameters to be modified. A maximum of 20 parameters can be modified in a single request.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class ClusterParameterGroupArgs(
    public val description: Output? = null,
    public val parameterGroupFamily: Output? = null,
    public val parameterGroupName: Output? = null,
    public val parameters: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.redshift.ClusterParameterGroupArgs =
        com.pulumi.awsnative.redshift.ClusterParameterGroupArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .parameterGroupFamily(parameterGroupFamily?.applyValue({ args0 -> args0 }))
            .parameterGroupName(parameterGroupName?.applyValue({ args0 -> args0 }))
            .parameters(
                parameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ClusterParameterGroupArgs].
 */
@PulumiTagMarker
public class ClusterParameterGroupArgsBuilder internal constructor() {
    private var description: Output? = null

    private var parameterGroupFamily: Output? = null

    private var parameterGroupName: Output? = null

    private var parameters: Output>? = null

    private var tags: Output>? = null

    /**
     * @param value A description of the parameter group.
     */
    @JvmName("tihtsqgcjngseofa")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The Amazon Redshift engine version to which the cluster parameter group applies. The cluster engine version determines the set of parameters.
     */
    @JvmName("nqmvmyutcakgswse")
    public suspend fun parameterGroupFamily(`value`: Output) {
        this.parameterGroupFamily = value
    }

    /**
     * @param value The name of the cluster parameter group.
     */
    @JvmName("hxkmqupdxrwerdpu")
    public suspend fun parameterGroupName(`value`: Output) {
        this.parameterGroupName = value
    }

    /**
     * @param value An array of parameters to be modified. A maximum of 20 parameters can be modified in a single request.
     */
    @JvmName("ixcsddwlscmfnxys")
    public suspend fun parameters(`value`: Output>) {
        this.parameters = value
    }

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

    /**
     * @param values An array of parameters to be modified. A maximum of 20 parameters can be modified in a single request.
     */
    @JvmName("qrdwtxhoqtpdysuw")
    public suspend fun parameters(values: List>) {
        this.parameters = Output.all(values)
    }

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

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

    /**
     * @param value A description of the parameter group.
     */
    @JvmName("lgekimlphnfqssbo")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The Amazon Redshift engine version to which the cluster parameter group applies. The cluster engine version determines the set of parameters.
     */
    @JvmName("bepjodtttdptxvhs")
    public suspend fun parameterGroupFamily(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameterGroupFamily = mapped
    }

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

    /**
     * @param value An array of parameters to be modified. A maximum of 20 parameters can be modified in a single request.
     */
    @JvmName("onxmujkltkoewdoy")
    public suspend fun parameters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param argument An array of parameters to be modified. A maximum of 20 parameters can be modified in a single request.
     */
    @JvmName("tdnbdtjcxlwnjwnm")
    public suspend fun parameters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ClusterParameterGroupParameterArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument An array of parameters to be modified. A maximum of 20 parameters can be modified in a single request.
     */
    @JvmName("tpojdmrveerjuwoj")
    public suspend fun parameters(vararg argument: suspend ClusterParameterGroupParameterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ClusterParameterGroupParameterArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument An array of parameters to be modified. A maximum of 20 parameters can be modified in a single request.
     */
    @JvmName("ltcpyjjhqeewmhby")
    public suspend fun parameters(argument: suspend ClusterParameterGroupParameterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ClusterParameterGroupParameterArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param values An array of parameters to be modified. A maximum of 20 parameters can be modified in a single request.
     */
    @JvmName("qjossbbecnxwtwvk")
    public suspend fun parameters(vararg values: ClusterParameterGroupParameterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

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

    internal fun build(): ClusterParameterGroupArgs = ClusterParameterGroupArgs(
        description = description,
        parameterGroupFamily = parameterGroupFamily,
        parameterGroupName = parameterGroupName,
        parameters = parameters,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy