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

com.pulumi.awsnative.appintegrations.kotlin.ApplicationArgs.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.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.appintegrations.kotlin

import com.pulumi.awsnative.appintegrations.ApplicationArgs.builder
import com.pulumi.awsnative.appintegrations.kotlin.inputs.ApplicationSourceConfigPropertiesArgs
import com.pulumi.awsnative.appintegrations.kotlin.inputs.ApplicationSourceConfigPropertiesArgsBuilder
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

/**
 * Resource Type definition for AWS:AppIntegrations::Application
 * @property applicationSourceConfig Application source config
 * @property description The application description.
 * @property name The name of the application.
 * @property namespace The namespace of the application.
 * @property permissions The configuration of events or requests that the application has access to.
 * @property tags The tags (keys and values) associated with the application.
 */
public data class ApplicationArgs(
    public val applicationSourceConfig: Output? = null,
    public val description: Output? = null,
    public val name: Output? = null,
    public val namespace: Output? = null,
    public val permissions: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.appintegrations.ApplicationArgs =
        com.pulumi.awsnative.appintegrations.ApplicationArgs.builder()
            .applicationSourceConfig(
                applicationSourceConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .description(description?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .namespace(namespace?.applyValue({ args0 -> args0 }))
            .permissions(permissions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ApplicationArgs].
 */
@PulumiTagMarker
public class ApplicationArgsBuilder internal constructor() {
    private var applicationSourceConfig: Output? = null

    private var description: Output? = null

    private var name: Output? = null

    private var namespace: Output? = null

    private var permissions: Output>? = null

    private var tags: Output>? = null

    /**
     * @param value Application source config
     */
    @JvmName("ttoympcbdikeribj")
    public suspend fun applicationSourceConfig(`value`: Output) {
        this.applicationSourceConfig = value
    }

    /**
     * @param value The application description.
     */
    @JvmName("fnanicvlhtauvyyl")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The name of the application.
     */
    @JvmName("iyrehobuklhrbcog")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The namespace of the application.
     */
    @JvmName("gxkiuhfakdpxsoes")
    public suspend fun namespace(`value`: Output) {
        this.namespace = value
    }

    /**
     * @param value The configuration of events or requests that the application has access to.
     */
    @JvmName("eajyuloehyleagxj")
    public suspend fun permissions(`value`: Output>) {
        this.permissions = value
    }

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

    /**
     * @param values The configuration of events or requests that the application has access to.
     */
    @JvmName("wbtapkmwdmulfaqa")
    public suspend fun permissions(values: List>) {
        this.permissions = Output.all(values)
    }

    /**
     * @param value The tags (keys and values) associated with the application.
     */
    @JvmName("arimusaaemgacqpt")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The tags (keys and values) associated with the application.
     */
    @JvmName("vpqahmutctwhnylm")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Application source config
     */
    @JvmName("vndslnmoogfcplhe")
    public suspend fun applicationSourceConfig(`value`: ApplicationSourceConfigPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationSourceConfig = mapped
    }

    /**
     * @param argument Application source config
     */
    @JvmName("tebmkghxskiwkpna")
    public suspend fun applicationSourceConfig(argument: suspend ApplicationSourceConfigPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = ApplicationSourceConfigPropertiesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.applicationSourceConfig = mapped
    }

    /**
     * @param value The application description.
     */
    @JvmName("hlftpqgrfhsdffvk")
    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 application.
     */
    @JvmName("ojythigbggohholh")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The namespace of the application.
     */
    @JvmName("lnhxgkvtntrriqta")
    public suspend fun namespace(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.namespace = mapped
    }

    /**
     * @param value The configuration of events or requests that the application has access to.
     */
    @JvmName("dnlcsshmbuxevjah")
    public suspend fun permissions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.permissions = mapped
    }

    /**
     * @param values The configuration of events or requests that the application has access to.
     */
    @JvmName("hcygpfkqcfykpqjp")
    public suspend fun permissions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.permissions = mapped
    }

    /**
     * @param value The tags (keys and values) associated with the application.
     */
    @JvmName("mxoxpxbhkurypusj")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags (keys and values) associated with the application.
     */
    @JvmName("xmqlsmejsqwmhxqp")
    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 The tags (keys and values) associated with the application.
     */
    @JvmName("wbvdxwwtscupyqhh")
    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 The tags (keys and values) associated with the application.
     */
    @JvmName("ubrohrhntwhjjatq")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The tags (keys and values) associated with the application.
     */
    @JvmName("frgjsujhncrhstrq")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ApplicationArgs = ApplicationArgs(
        applicationSourceConfig = applicationSourceConfig,
        description = description,
        name = name,
        namespace = namespace,
        permissions = permissions,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy