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

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

package com.pulumi.awsnative.sso.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.sso.ApplicationArgs.builder
import com.pulumi.awsnative.sso.kotlin.enums.ApplicationStatus
import com.pulumi.awsnative.sso.kotlin.inputs.ApplicationPortalOptionsConfigurationArgs
import com.pulumi.awsnative.sso.kotlin.inputs.ApplicationPortalOptionsConfigurationArgsBuilder
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 Identity Center (SSO) Application
 * @property applicationProviderArn The ARN of the application provider under which the operation will run
 * @property description The description information for the Identity Center (SSO) Application
 * @property instanceArn The ARN of the instance of IAM Identity Center under which the operation will run
 * @property name The name you want to assign to this Identity Center (SSO) Application
 * @property portalOptions A structure that describes the options for the portal associated with an application
 * @property status Specifies whether the application is enabled or disabled
 * @property tags Specifies tags to be attached to the application
 */
public data class ApplicationArgs(
    public val applicationProviderArn: Output? = null,
    public val description: Output? = null,
    public val instanceArn: Output? = null,
    public val name: Output? = null,
    public val portalOptions: Output? = null,
    public val status: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.sso.ApplicationArgs =
        com.pulumi.awsnative.sso.ApplicationArgs.builder()
            .applicationProviderArn(applicationProviderArn?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .instanceArn(instanceArn?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .portalOptions(portalOptions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .status(status?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var description: Output? = null

    private var instanceArn: Output? = null

    private var name: Output? = null

    private var portalOptions: Output? = null

    private var status: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The ARN of the application provider under which the operation will run
     */
    @JvmName("ikwgmabrhwqlwpko")
    public suspend fun applicationProviderArn(`value`: Output) {
        this.applicationProviderArn = value
    }

    /**
     * @param value The description information for the Identity Center (SSO) Application
     */
    @JvmName("kgyqdyqqriktfpjm")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The ARN of the instance of IAM Identity Center under which the operation will run
     */
    @JvmName("lihaftjrbrbnxsao")
    public suspend fun instanceArn(`value`: Output) {
        this.instanceArn = value
    }

    /**
     * @param value The name you want to assign to this Identity Center (SSO) Application
     */
    @JvmName("pjksicpvcifdscnb")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A structure that describes the options for the portal associated with an application
     */
    @JvmName("lflbfdssfbxvsvbc")
    public suspend fun portalOptions(`value`: Output) {
        this.portalOptions = value
    }

    /**
     * @param value Specifies whether the application is enabled or disabled
     */
    @JvmName("trljqvsukufqdoeu")
    public suspend fun status(`value`: Output) {
        this.status = value
    }

    /**
     * @param value Specifies tags to be attached to the application
     */
    @JvmName("hmemxatqrsmeiksf")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Specifies tags to be attached to the application
     */
    @JvmName("pmqaictgmnneaskx")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The ARN of the application provider under which the operation will run
     */
    @JvmName("xsapgpwbigmmxmik")
    public suspend fun applicationProviderArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationProviderArn = mapped
    }

    /**
     * @param value The description information for the Identity Center (SSO) Application
     */
    @JvmName("jbpdjtijtjayocqr")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The ARN of the instance of IAM Identity Center under which the operation will run
     */
    @JvmName("thbpcjydmcejkjfs")
    public suspend fun instanceArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceArn = mapped
    }

    /**
     * @param value The name you want to assign to this Identity Center (SSO) Application
     */
    @JvmName("mitakfgrpiwgqvct")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A structure that describes the options for the portal associated with an application
     */
    @JvmName("btjlekovlgsjfukk")
    public suspend fun portalOptions(`value`: ApplicationPortalOptionsConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.portalOptions = mapped
    }

    /**
     * @param argument A structure that describes the options for the portal associated with an application
     */
    @JvmName("sweoauxvdhlbpvjo")
    public suspend fun portalOptions(argument: suspend ApplicationPortalOptionsConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = ApplicationPortalOptionsConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.portalOptions = mapped
    }

    /**
     * @param value Specifies whether the application is enabled or disabled
     */
    @JvmName("jschjpmfhuobvhks")
    public suspend fun status(`value`: ApplicationStatus?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value Specifies tags to be attached to the application
     */
    @JvmName("rggohoibbkublwif")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Specifies tags to be attached to the application
     */
    @JvmName("mrnmrmikuqjccefs")
    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 Specifies tags to be attached to the application
     */
    @JvmName("pmbvgysutaipawhx")
    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 Specifies tags to be attached to the application
     */
    @JvmName("egoeubftktcdmrcd")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Specifies tags to be attached to the application
     */
    @JvmName("ghuugweikgkdobmg")
    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(
        applicationProviderArn = applicationProviderArn,
        description = description,
        instanceArn = instanceArn,
        name = name,
        portalOptions = portalOptions,
        status = status,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy