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

com.pulumi.awsnative.applicationinsights.kotlin.inputs.ApplicationCustomComponentArgs.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.applicationinsights.kotlin.inputs

import com.pulumi.awsnative.applicationinsights.inputs.ApplicationCustomComponentArgs.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

/**
 * The custom grouped component.
 * @property componentName The name of the component.
 * @property resourceList The list of resource ARNs that belong to the component.
 */
public data class ApplicationCustomComponentArgs(
    public val componentName: Output,
    public val resourceList: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.applicationinsights.inputs.ApplicationCustomComponentArgs =
        com.pulumi.awsnative.applicationinsights.inputs.ApplicationCustomComponentArgs.builder()
            .componentName(componentName.applyValue({ args0 -> args0 }))
            .resourceList(resourceList.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [ApplicationCustomComponentArgs].
 */
@PulumiTagMarker
public class ApplicationCustomComponentArgsBuilder internal constructor() {
    private var componentName: Output? = null

    private var resourceList: Output>? = null

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

    /**
     * @param value The list of resource ARNs that belong to the component.
     */
    @JvmName("lmtrlbjfftewunsr")
    public suspend fun resourceList(`value`: Output>) {
        this.resourceList = value
    }

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

    /**
     * @param values The list of resource ARNs that belong to the component.
     */
    @JvmName("wejsdmnufpxhyhxq")
    public suspend fun resourceList(values: List>) {
        this.resourceList = Output.all(values)
    }

    /**
     * @param value The name of the component.
     */
    @JvmName("ramxitomqxppnkph")
    public suspend fun componentName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.componentName = mapped
    }

    /**
     * @param value The list of resource ARNs that belong to the component.
     */
    @JvmName("xryrqasqmcpclqly")
    public suspend fun resourceList(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resourceList = mapped
    }

    /**
     * @param values The list of resource ARNs that belong to the component.
     */
    @JvmName("fdmyftpybfrjhpdq")
    public suspend fun resourceList(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resourceList = mapped
    }

    internal fun build(): ApplicationCustomComponentArgs = ApplicationCustomComponentArgs(
        componentName = componentName ?: throw PulumiNullFieldException("componentName"),
        resourceList = resourceList ?: throw PulumiNullFieldException("resourceList"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy