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

com.pulumi.awsnative.memorydb.kotlin.ParameterGroupArgs.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.memorydb.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.memorydb.ParameterGroupArgs.builder
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.Any
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The AWS::MemoryDB::ParameterGroup resource creates an Amazon MemoryDB ParameterGroup.
 * @property description A description of the parameter group.
 * @property family The name of the parameter group family that this parameter group is compatible with.
 * @property parameterGroupName The name of the parameter group.
 * @property parameters An map of parameter names and values for the parameter update. You must supply at least one parameter name and value; subsequent arguments are optional.
 * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::MemoryDB::ParameterGroup` for more information about the expected schema for this property.
 * @property tags An array of key-value pairs to apply to this parameter group.
 */
public data class ParameterGroupArgs(
    public val description: Output? = null,
    public val family: Output? = null,
    public val parameterGroupName: Output? = null,
    public val parameters: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.memorydb.ParameterGroupArgs =
        com.pulumi.awsnative.memorydb.ParameterGroupArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .family(family?.applyValue({ args0 -> args0 }))
            .parameterGroupName(parameterGroupName?.applyValue({ args0 -> args0 }))
            .parameters(parameters?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var family: 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("toafdmffwsqwoadr")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The name of the parameter group family that this parameter group is compatible with.
     */
    @JvmName("teortwektnlyfohc")
    public suspend fun family(`value`: Output) {
        this.family = value
    }

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

    /**
     * @param value An map of parameter names and values for the parameter update. You must supply at least one parameter name and value; subsequent arguments are optional.
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::MemoryDB::ParameterGroup` for more information about the expected schema for this property.
     */
    @JvmName("uqkxwkaogrhismpg")
    public suspend fun parameters(`value`: Output) {
        this.parameters = value
    }

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

    @JvmName("oofvaihvlpdsokwl")
    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 parameter group.
     */
    @JvmName("odldycimevktqhau")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

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

    /**
     * @param value The name of the parameter group family that this parameter group is compatible with.
     */
    @JvmName("virbnnbvvbdevopv")
    public suspend fun family(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.family = mapped
    }

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

    /**
     * @param value An map of parameter names and values for the parameter update. You must supply at least one parameter name and value; subsequent arguments are optional.
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::MemoryDB::ParameterGroup` for more information about the expected schema for this property.
     */
    @JvmName("wooeusyttwqkdoqa")
    public suspend fun parameters(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this parameter group.
     */
    @JvmName("ebbmlouiusewsbub")
    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 parameter group.
     */
    @JvmName("byqmccrrlfgwqglp")
    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 parameter group.
     */
    @JvmName("fxjxpcsntctjuayh")
    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 parameter group.
     */
    @JvmName("cwouigqnotjtqdob")
    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 parameter group.
     */
    @JvmName("phdwhsiebndtharf")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ParameterGroupArgs = ParameterGroupArgs(
        description = description,
        family = family,
        parameterGroupName = parameterGroupName,
        parameters = parameters,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy