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

com.pulumi.aws.imagebuilder.kotlin.inputs.DistributionConfigurationDistributionAmiDistributionConfigurationArgs.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.imagebuilder.kotlin.inputs

import com.pulumi.aws.imagebuilder.inputs.DistributionConfigurationDistributionAmiDistributionConfigurationArgs.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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property amiTags Key-value map of tags to apply to the distributed AMI.
 * @property description Description to apply to the distributed AMI.
 * @property kmsKeyId Amazon Resource Name (ARN) of the Key Management Service (KMS) Key to encrypt the distributed AMI.
 * @property launchPermission Configuration block of EC2 launch permissions to apply to the distributed AMI. Detailed below.
 * @property name Name to apply to the distributed AMI.
 * @property targetAccountIds Set of AWS Account identifiers to distribute the AMI.
 */
public data class DistributionConfigurationDistributionAmiDistributionConfigurationArgs(
    public val amiTags: Output>? = null,
    public val description: Output? = null,
    public val kmsKeyId: Output? = null,
    public val launchPermission: Output? =
        null,
    public val name: Output? = null,
    public val targetAccountIds: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.imagebuilder.inputs.DistributionConfigurationDistributionAmiDistributionConfigurationArgs =
        com.pulumi.aws.imagebuilder.inputs.DistributionConfigurationDistributionAmiDistributionConfigurationArgs.builder()
            .amiTags(amiTags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .description(description?.applyValue({ args0 -> args0 }))
            .kmsKeyId(kmsKeyId?.applyValue({ args0 -> args0 }))
            .launchPermission(launchPermission?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .targetAccountIds(targetAccountIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var description: Output? = null

    private var kmsKeyId: Output? = null

    private var launchPermission:
        Output? =
        null

    private var name: Output? = null

    private var targetAccountIds: Output>? = null

    /**
     * @param value Key-value map of tags to apply to the distributed AMI.
     */
    @JvmName("duncjlhkyjumrnir")
    public suspend fun amiTags(`value`: Output>) {
        this.amiTags = value
    }

    /**
     * @param value Description to apply to the distributed AMI.
     */
    @JvmName("xgrufssmgekymjfh")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Amazon Resource Name (ARN) of the Key Management Service (KMS) Key to encrypt the distributed AMI.
     */
    @JvmName("wynprjkfvkobqdbd")
    public suspend fun kmsKeyId(`value`: Output) {
        this.kmsKeyId = value
    }

    /**
     * @param value Configuration block of EC2 launch permissions to apply to the distributed AMI. Detailed below.
     */
    @JvmName("hjawrfrgwafbtkxo")
    public suspend fun launchPermission(`value`: Output) {
        this.launchPermission = value
    }

    /**
     * @param value Name to apply to the distributed AMI.
     */
    @JvmName("bnjyeyyghfkrbnih")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Set of AWS Account identifiers to distribute the AMI.
     */
    @JvmName("cejytdpiirtiowqs")
    public suspend fun targetAccountIds(`value`: Output>) {
        this.targetAccountIds = value
    }

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

    /**
     * @param values Set of AWS Account identifiers to distribute the AMI.
     */
    @JvmName("rlfariubufxaehnl")
    public suspend fun targetAccountIds(values: List>) {
        this.targetAccountIds = Output.all(values)
    }

    /**
     * @param value Key-value map of tags to apply to the distributed AMI.
     */
    @JvmName("segwjneaqehkgfsb")
    public suspend fun amiTags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.amiTags = mapped
    }

    /**
     * @param values Key-value map of tags to apply to the distributed AMI.
     */
    @JvmName("jivhvbornqfnfdey")
    public fun amiTags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.amiTags = mapped
    }

    /**
     * @param value Description to apply to the distributed AMI.
     */
    @JvmName("jewxpykystlyvpvn")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Amazon Resource Name (ARN) of the Key Management Service (KMS) Key to encrypt the distributed AMI.
     */
    @JvmName("suunqdahtcsgwfiw")
    public suspend fun kmsKeyId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kmsKeyId = mapped
    }

    /**
     * @param value Configuration block of EC2 launch permissions to apply to the distributed AMI. Detailed below.
     */
    @JvmName("jcvkuytbjqegobij")
    public suspend fun launchPermission(`value`: DistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermissionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.launchPermission = mapped
    }

    /**
     * @param argument Configuration block of EC2 launch permissions to apply to the distributed AMI. Detailed below.
     */
    @JvmName("dqxrtnngpkpyrulr")
    public suspend fun launchPermission(argument: suspend DistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermissionArgsBuilder.() -> Unit) {
        val toBeMapped =
            DistributionConfigurationDistributionAmiDistributionConfigurationLaunchPermissionArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.launchPermission = mapped
    }

    /**
     * @param value Name to apply to the distributed AMI.
     */
    @JvmName("folkxpvxomddbepm")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Set of AWS Account identifiers to distribute the AMI.
     */
    @JvmName("lnepdtucgbmsrhwf")
    public suspend fun targetAccountIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetAccountIds = mapped
    }

    /**
     * @param values Set of AWS Account identifiers to distribute the AMI.
     */
    @JvmName("wopvjyffssubrnye")
    public suspend fun targetAccountIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetAccountIds = mapped
    }

    internal fun build(): DistributionConfigurationDistributionAmiDistributionConfigurationArgs =
        DistributionConfigurationDistributionAmiDistributionConfigurationArgs(
            amiTags = amiTags,
            description = description,
            kmsKeyId = kmsKeyId,
            launchPermission = launchPermission,
            name = name,
            targetAccountIds = targetAccountIds,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy