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

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

package com.pulumi.awsnative.vpclattice.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.vpclattice.ServiceNetworkServiceAssociationArgs.builder
import com.pulumi.awsnative.vpclattice.kotlin.inputs.ServiceNetworkServiceAssociationDnsEntryArgs
import com.pulumi.awsnative.vpclattice.kotlin.inputs.ServiceNetworkServiceAssociationDnsEntryArgsBuilder
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

/**
 * Associates a service with a service network.
 * @property dnsEntry The DNS information of the service.
 * @property serviceIdentifier The ID or Amazon Resource Name (ARN) of the service.
 * @property serviceNetworkIdentifier The ID or Amazon Resource Name (ARN) of the service network. You must use the ARN if the resources specified in the operation are in different accounts.
 * @property tags The tags for the association.
 */
public data class ServiceNetworkServiceAssociationArgs(
    public val dnsEntry: Output? = null,
    public val serviceIdentifier: Output? = null,
    public val serviceNetworkIdentifier: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.vpclattice.ServiceNetworkServiceAssociationArgs =
        com.pulumi.awsnative.vpclattice.ServiceNetworkServiceAssociationArgs.builder()
            .dnsEntry(dnsEntry?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .serviceIdentifier(serviceIdentifier?.applyValue({ args0 -> args0 }))
            .serviceNetworkIdentifier(serviceNetworkIdentifier?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ServiceNetworkServiceAssociationArgs].
 */
@PulumiTagMarker
public class ServiceNetworkServiceAssociationArgsBuilder internal constructor() {
    private var dnsEntry: Output? = null

    private var serviceIdentifier: Output? = null

    private var serviceNetworkIdentifier: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The DNS information of the service.
     */
    @JvmName("gxnuftygituyguaa")
    public suspend fun dnsEntry(`value`: Output) {
        this.dnsEntry = value
    }

    /**
     * @param value The ID or Amazon Resource Name (ARN) of the service.
     */
    @JvmName("tlarlgunjfhweaeo")
    public suspend fun serviceIdentifier(`value`: Output) {
        this.serviceIdentifier = value
    }

    /**
     * @param value The ID or Amazon Resource Name (ARN) of the service network. You must use the ARN if the resources specified in the operation are in different accounts.
     */
    @JvmName("bpofohkvbutuhhcc")
    public suspend fun serviceNetworkIdentifier(`value`: Output) {
        this.serviceNetworkIdentifier = value
    }

    /**
     * @param value The tags for the association.
     */
    @JvmName("tlitwhibvuimgqlf")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The tags for the association.
     */
    @JvmName("epejrbjegxhjvoxd")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The DNS information of the service.
     */
    @JvmName("ykahpbdlqoccthsi")
    public suspend fun dnsEntry(`value`: ServiceNetworkServiceAssociationDnsEntryArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dnsEntry = mapped
    }

    /**
     * @param argument The DNS information of the service.
     */
    @JvmName("kdvwxobmeubnyygq")
    public suspend fun dnsEntry(argument: suspend ServiceNetworkServiceAssociationDnsEntryArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceNetworkServiceAssociationDnsEntryArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.dnsEntry = mapped
    }

    /**
     * @param value The ID or Amazon Resource Name (ARN) of the service.
     */
    @JvmName("kgxmnhjdmtwlgndi")
    public suspend fun serviceIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceIdentifier = mapped
    }

    /**
     * @param value The ID or Amazon Resource Name (ARN) of the service network. You must use the ARN if the resources specified in the operation are in different accounts.
     */
    @JvmName("sqiblmucyosacejf")
    public suspend fun serviceNetworkIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceNetworkIdentifier = mapped
    }

    /**
     * @param value The tags for the association.
     */
    @JvmName("vssdatumjmhwttcq")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags for the association.
     */
    @JvmName("oasctswgrdjobcuj")
    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 for the association.
     */
    @JvmName("gkcjdohyrcnylcwc")
    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 for the association.
     */
    @JvmName("tfuedbwplvmslyoo")
    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 for the association.
     */
    @JvmName("kxtlvewkcntquhgs")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ServiceNetworkServiceAssociationArgs = ServiceNetworkServiceAssociationArgs(
        dnsEntry = dnsEntry,
        serviceIdentifier = serviceIdentifier,
        serviceNetworkIdentifier = serviceNetworkIdentifier,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy