com.pulumi.awsnative.vpclattice.kotlin.ServiceNetworkServiceAssociationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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