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

com.pulumi.awsnative.codeartifact.kotlin.PackageGroupArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.codeartifact.kotlin

import com.pulumi.awsnative.codeartifact.PackageGroupArgs.builder
import com.pulumi.awsnative.codeartifact.kotlin.inputs.PackageGroupOriginConfigurationArgs
import com.pulumi.awsnative.codeartifact.kotlin.inputs.PackageGroupOriginConfigurationArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The resource schema to create a CodeArtifact package group.
 * @property contactInfo The contact info of the package group.
 * @property description The text description of the package group.
 * @property domainName The name of the domain that contains the package group.
 * @property domainOwner The 12-digit account ID of the AWS account that owns the domain.
 * @property originConfiguration The package origin configuration of the package group.
 * @property pattern The package group pattern that is used to gather packages.
 * @property tags An array of key-value pairs to apply to the package group.
 */
public data class PackageGroupArgs(
    public val contactInfo: Output? = null,
    public val description: Output? = null,
    public val domainName: Output? = null,
    public val domainOwner: Output? = null,
    public val originConfiguration: Output? = null,
    public val pattern: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.codeartifact.PackageGroupArgs =
        com.pulumi.awsnative.codeartifact.PackageGroupArgs.builder()
            .contactInfo(contactInfo?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .domainName(domainName?.applyValue({ args0 -> args0 }))
            .domainOwner(domainOwner?.applyValue({ args0 -> args0 }))
            .originConfiguration(
                originConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .pattern(pattern?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [PackageGroupArgs].
 */
@PulumiTagMarker
public class PackageGroupArgsBuilder internal constructor() {
    private var contactInfo: Output? = null

    private var description: Output? = null

    private var domainName: Output? = null

    private var domainOwner: Output? = null

    private var originConfiguration: Output? = null

    private var pattern: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The contact info of the package group.
     */
    @JvmName("jihklrswrqkajaja")
    public suspend fun contactInfo(`value`: Output) {
        this.contactInfo = value
    }

    /**
     * @param value The text description of the package group.
     */
    @JvmName("rrfhoowjykkqdgkw")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The name of the domain that contains the package group.
     */
    @JvmName("ofjbikrfhkwfnoaf")
    public suspend fun domainName(`value`: Output) {
        this.domainName = value
    }

    /**
     * @param value The 12-digit account ID of the AWS account that owns the domain.
     */
    @JvmName("unhopunbrkktxyjr")
    public suspend fun domainOwner(`value`: Output) {
        this.domainOwner = value
    }

    /**
     * @param value The package origin configuration of the package group.
     */
    @JvmName("fkvgmgjdvpuwlhfj")
    public suspend fun originConfiguration(`value`: Output) {
        this.originConfiguration = value
    }

    /**
     * @param value The package group pattern that is used to gather packages.
     */
    @JvmName("mpnxfxijhdtkdabb")
    public suspend fun pattern(`value`: Output) {
        this.pattern = value
    }

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

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

    /**
     * @param values An array of key-value pairs to apply to the package group.
     */
    @JvmName("anlrtmnhkrqchjqa")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The contact info of the package group.
     */
    @JvmName("wtwcopomxwxuuwmc")
    public suspend fun contactInfo(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.contactInfo = mapped
    }

    /**
     * @param value The text description of the package group.
     */
    @JvmName("hmgylcucuycmjtxf")
    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 domain that contains the package group.
     */
    @JvmName("qkutskyjrqemrlqa")
    public suspend fun domainName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domainName = mapped
    }

    /**
     * @param value The 12-digit account ID of the AWS account that owns the domain.
     */
    @JvmName("xgkeuyddfhjivdoq")
    public suspend fun domainOwner(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domainOwner = mapped
    }

    /**
     * @param value The package origin configuration of the package group.
     */
    @JvmName("tjxvoeflyvcbfkrm")
    public suspend fun originConfiguration(`value`: PackageGroupOriginConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.originConfiguration = mapped
    }

    /**
     * @param argument The package origin configuration of the package group.
     */
    @JvmName("hlbhpduqoiieikls")
    public suspend fun originConfiguration(argument: suspend PackageGroupOriginConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = PackageGroupOriginConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.originConfiguration = mapped
    }

    /**
     * @param value The package group pattern that is used to gather packages.
     */
    @JvmName("henluomuyyakhygu")
    public suspend fun pattern(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pattern = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to the package group.
     */
    @JvmName("ncmpvnrgxbcyjvpa")
    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 the package group.
     */
    @JvmName("xatvtpisbtiooynj")
    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 the package group.
     */
    @JvmName("aipgxkowehxhwyit")
    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 the package group.
     */
    @JvmName("pyeuiitaxogjroaa")
    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 the package group.
     */
    @JvmName("ujafkljrfymgwvuw")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): PackageGroupArgs = PackageGroupArgs(
        contactInfo = contactInfo,
        description = description,
        domainName = domainName,
        domainOwner = domainOwner,
        originConfiguration = originConfiguration,
        pattern = pattern,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy