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

com.pulumi.awsnative.cloudfront.kotlin.KeyGroupArgs.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.cloudfront.kotlin

import com.pulumi.awsnative.cloudfront.KeyGroupArgs.builder
import com.pulumi.awsnative.cloudfront.kotlin.inputs.KeyGroupConfigArgs
import com.pulumi.awsnative.cloudfront.kotlin.inputs.KeyGroupConfigArgsBuilder
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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::CloudFront::KeyGroup
 * @property keyGroupConfig The key group configuration.
 */
public data class KeyGroupArgs(
    public val keyGroupConfig: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.cloudfront.KeyGroupArgs =
        com.pulumi.awsnative.cloudfront.KeyGroupArgs.builder()
            .keyGroupConfig(
                keyGroupConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [KeyGroupArgs].
 */
@PulumiTagMarker
public class KeyGroupArgsBuilder internal constructor() {
    private var keyGroupConfig: Output? = null

    /**
     * @param value The key group configuration.
     */
    @JvmName("mgnaduuxgsbschaj")
    public suspend fun keyGroupConfig(`value`: Output) {
        this.keyGroupConfig = value
    }

    /**
     * @param value The key group configuration.
     */
    @JvmName("mgtyqhrrpshlyqyt")
    public suspend fun keyGroupConfig(`value`: KeyGroupConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keyGroupConfig = mapped
    }

    /**
     * @param argument The key group configuration.
     */
    @JvmName("pcnelwebcxoocvse")
    public suspend fun keyGroupConfig(argument: suspend KeyGroupConfigArgsBuilder.() -> Unit) {
        val toBeMapped = KeyGroupConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.keyGroupConfig = mapped
    }

    internal fun build(): KeyGroupArgs = KeyGroupArgs(
        keyGroupConfig = keyGroupConfig,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy