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

com.pulumi.awsnative.ec2.kotlin.inputs.InstanceSsmAssociationArgs.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.ec2.kotlin.inputs

import com.pulumi.awsnative.ec2.inputs.InstanceSsmAssociationArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property associationParameters The input parameter values to use with the associated SSM document.
 * @property documentName The name of an SSM document to associate with the instance.
 */
public data class InstanceSsmAssociationArgs(
    public val associationParameters: Output>? = null,
    public val documentName: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.inputs.InstanceSsmAssociationArgs =
        com.pulumi.awsnative.ec2.inputs.InstanceSsmAssociationArgs.builder()
            .associationParameters(
                associationParameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .documentName(documentName.applyValue({ args0 -> args0 })).build()
}

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

    private var documentName: Output? = null

    /**
     * @param value The input parameter values to use with the associated SSM document.
     */
    @JvmName("visvbndmdsfmctjk")
    public suspend fun associationParameters(`value`: Output>) {
        this.associationParameters = value
    }

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

    /**
     * @param values The input parameter values to use with the associated SSM document.
     */
    @JvmName("mjtxcrckmbgmnbce")
    public suspend fun associationParameters(values: List>) {
        this.associationParameters = Output.all(values)
    }

    /**
     * @param value The name of an SSM document to associate with the instance.
     */
    @JvmName("iccvwuiennkjufle")
    public suspend fun documentName(`value`: Output) {
        this.documentName = value
    }

    /**
     * @param value The input parameter values to use with the associated SSM document.
     */
    @JvmName("cxvlxwbhpimsvqqg")
    public suspend fun associationParameters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.associationParameters = mapped
    }

    /**
     * @param argument The input parameter values to use with the associated SSM document.
     */
    @JvmName("bgelxnndwgkxqufu")
    public suspend fun associationParameters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            InstanceAssociationParameterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.associationParameters = mapped
    }

    /**
     * @param argument The input parameter values to use with the associated SSM document.
     */
    @JvmName("xwtvqxpvfpgreyut")
    public suspend fun associationParameters(vararg argument: suspend InstanceAssociationParameterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            InstanceAssociationParameterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.associationParameters = mapped
    }

    /**
     * @param argument The input parameter values to use with the associated SSM document.
     */
    @JvmName("kknknabwcqcbeghd")
    public suspend fun associationParameters(argument: suspend InstanceAssociationParameterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            InstanceAssociationParameterArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.associationParameters = mapped
    }

    /**
     * @param values The input parameter values to use with the associated SSM document.
     */
    @JvmName("qxqhxmjvrleoloau")
    public suspend fun associationParameters(vararg values: InstanceAssociationParameterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.associationParameters = mapped
    }

    /**
     * @param value The name of an SSM document to associate with the instance.
     */
    @JvmName("kcnhptihvjttamjb")
    public suspend fun documentName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.documentName = mapped
    }

    internal fun build(): InstanceSsmAssociationArgs = InstanceSsmAssociationArgs(
        associationParameters = associationParameters,
        documentName = documentName ?: throw PulumiNullFieldException("documentName"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy