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

com.pulumi.awsnative.apprunner.kotlin.VpcIngressConnectionArgs.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.apprunner.kotlin

import com.pulumi.awsnative.apprunner.VpcIngressConnectionArgs.builder
import com.pulumi.awsnative.apprunner.kotlin.inputs.VpcIngressConnectionIngressVpcConfigurationArgs
import com.pulumi.awsnative.apprunner.kotlin.inputs.VpcIngressConnectionIngressVpcConfigurationArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgs
import com.pulumi.awsnative.kotlin.inputs.CreateOnlyTagArgsBuilder
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

/**
 * The AWS::AppRunner::VpcIngressConnection resource is an App Runner resource that specifies an App Runner VpcIngressConnection.
 * @property ingressVpcConfiguration Specifications for the customer’s Amazon VPC and the related AWS PrivateLink VPC endpoint that are used to create the VPC Ingress Connection resource.
 * @property serviceArn The Amazon Resource Name (ARN) of the service.
 * @property tags An optional list of metadata items that you can associate with the VPC Ingress Connection resource. A tag is a key-value pair.
 * @property vpcIngressConnectionName The customer-provided Vpc Ingress Connection name.
 */
public data class VpcIngressConnectionArgs(
    public val ingressVpcConfiguration: Output? =
        null,
    public val serviceArn: Output? = null,
    public val tags: Output>? = null,
    public val vpcIngressConnectionName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.apprunner.VpcIngressConnectionArgs =
        com.pulumi.awsnative.apprunner.VpcIngressConnectionArgs.builder()
            .ingressVpcConfiguration(
                ingressVpcConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .serviceArn(serviceArn?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .vpcIngressConnectionName(vpcIngressConnectionName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [VpcIngressConnectionArgs].
 */
@PulumiTagMarker
public class VpcIngressConnectionArgsBuilder internal constructor() {
    private var ingressVpcConfiguration: Output? =
        null

    private var serviceArn: Output? = null

    private var tags: Output>? = null

    private var vpcIngressConnectionName: Output? = null

    /**
     * @param value Specifications for the customer’s Amazon VPC and the related AWS PrivateLink VPC endpoint that are used to create the VPC Ingress Connection resource.
     */
    @JvmName("thfklvywayukojqw")
    public suspend fun ingressVpcConfiguration(`value`: Output) {
        this.ingressVpcConfiguration = value
    }

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

    /**
     * @param value An optional list of metadata items that you can associate with the VPC Ingress Connection resource. A tag is a key-value pair.
     */
    @JvmName("geocrellqjahmpec")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values An optional list of metadata items that you can associate with the VPC Ingress Connection resource. A tag is a key-value pair.
     */
    @JvmName("haxctptalciucgyv")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The customer-provided Vpc Ingress Connection name.
     */
    @JvmName("jbtxtxfgveejdgha")
    public suspend fun vpcIngressConnectionName(`value`: Output) {
        this.vpcIngressConnectionName = value
    }

    /**
     * @param value Specifications for the customer’s Amazon VPC and the related AWS PrivateLink VPC endpoint that are used to create the VPC Ingress Connection resource.
     */
    @JvmName("bkcislxllxfvmevx")
    public suspend fun ingressVpcConfiguration(`value`: VpcIngressConnectionIngressVpcConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ingressVpcConfiguration = mapped
    }

    /**
     * @param argument Specifications for the customer’s Amazon VPC and the related AWS PrivateLink VPC endpoint that are used to create the VPC Ingress Connection resource.
     */
    @JvmName("rqkmkcqivfhikccw")
    public suspend fun ingressVpcConfiguration(argument: suspend VpcIngressConnectionIngressVpcConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = VpcIngressConnectionIngressVpcConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.ingressVpcConfiguration = mapped
    }

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

    /**
     * @param value An optional list of metadata items that you can associate with the VPC Ingress Connection resource. A tag is a key-value pair.
     */
    @JvmName("agtinjtijeqjwafu")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An optional list of metadata items that you can associate with the VPC Ingress Connection resource. A tag is a key-value pair.
     */
    @JvmName("dgdawbcpjdjplevg")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CreateOnlyTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An optional list of metadata items that you can associate with the VPC Ingress Connection resource. A tag is a key-value pair.
     */
    @JvmName("paxrlfmfqabejqbx")
    public suspend fun tags(vararg argument: suspend CreateOnlyTagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CreateOnlyTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An optional list of metadata items that you can associate with the VPC Ingress Connection resource. A tag is a key-value pair.
     */
    @JvmName("vdjhdwtxswmuinye")
    public suspend fun tags(argument: suspend CreateOnlyTagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(CreateOnlyTagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An optional list of metadata items that you can associate with the VPC Ingress Connection resource. A tag is a key-value pair.
     */
    @JvmName("gasbmytehrgwhyvk")
    public suspend fun tags(vararg values: CreateOnlyTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The customer-provided Vpc Ingress Connection name.
     */
    @JvmName("ymnrembclwduxfoc")
    public suspend fun vpcIngressConnectionName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcIngressConnectionName = mapped
    }

    internal fun build(): VpcIngressConnectionArgs = VpcIngressConnectionArgs(
        ingressVpcConfiguration = ingressVpcConfiguration,
        serviceArn = serviceArn,
        tags = tags,
        vpcIngressConnectionName = vpcIngressConnectionName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy