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

com.pulumi.awsnative.cloudfront.kotlin.inputs.KeyGroupConfigArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.cloudfront.kotlin.inputs

import com.pulumi.awsnative.cloudfront.inputs.KeyGroupConfigArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property comment A comment to describe the key group. The comment cannot be longer than 128 characters.
 * @property items A list of the identifiers of the public keys in the key group.
 * @property name A name to identify the key group.
 */
public data class KeyGroupConfigArgs(
    public val comment: Output? = null,
    public val items: Output>,
    public val name: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.cloudfront.inputs.KeyGroupConfigArgs =
        com.pulumi.awsnative.cloudfront.inputs.KeyGroupConfigArgs.builder()
            .comment(comment?.applyValue({ args0 -> args0 }))
            .items(items.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [KeyGroupConfigArgs].
 */
@PulumiTagMarker
public class KeyGroupConfigArgsBuilder internal constructor() {
    private var comment: Output? = null

    private var items: Output>? = null

    private var name: Output? = null

    /**
     * @param value A comment to describe the key group. The comment cannot be longer than 128 characters.
     */
    @JvmName("aitmhgilrtovxhhn")
    public suspend fun comment(`value`: Output) {
        this.comment = value
    }

    /**
     * @param value A list of the identifiers of the public keys in the key group.
     */
    @JvmName("jmdqcycqyljtrmpn")
    public suspend fun items(`value`: Output>) {
        this.items = value
    }

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

    /**
     * @param values A list of the identifiers of the public keys in the key group.
     */
    @JvmName("pabtrxnqdfbwivui")
    public suspend fun items(values: List>) {
        this.items = Output.all(values)
    }

    /**
     * @param value A name to identify the key group.
     */
    @JvmName("bbkoeagsfqkvllay")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A comment to describe the key group. The comment cannot be longer than 128 characters.
     */
    @JvmName("cvxgjlpctugbpojf")
    public suspend fun comment(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.comment = mapped
    }

    /**
     * @param value A list of the identifiers of the public keys in the key group.
     */
    @JvmName("nldagxgajrxrjvai")
    public suspend fun items(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.items = mapped
    }

    /**
     * @param values A list of the identifiers of the public keys in the key group.
     */
    @JvmName("fiwljjgdcpyfpije")
    public suspend fun items(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.items = mapped
    }

    /**
     * @param value A name to identify the key group.
     */
    @JvmName("iyopwhoxvvflifex")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): KeyGroupConfigArgs = KeyGroupConfigArgs(
        comment = comment,
        items = items ?: throw PulumiNullFieldException("items"),
        name = name ?: throw PulumiNullFieldException("name"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy