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

com.pulumi.awsnative.events.kotlin.inputs.RuleNetworkConfigurationArgs.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.events.kotlin.inputs

import com.pulumi.awsnative.events.inputs.RuleNetworkConfigurationArgs.builder
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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property awsVpcConfiguration Use this structure to specify the VPC subnets and security groups for the task, and whether a public IP address is to be used. This structure is relevant only for ECS tasks that use the `awsvpc` network mode.
 */
public data class RuleNetworkConfigurationArgs(
    public val awsVpcConfiguration: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.events.inputs.RuleNetworkConfigurationArgs =
        com.pulumi.awsnative.events.inputs.RuleNetworkConfigurationArgs.builder()
            .awsVpcConfiguration(
                awsVpcConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [RuleNetworkConfigurationArgs].
 */
@PulumiTagMarker
public class RuleNetworkConfigurationArgsBuilder internal constructor() {
    private var awsVpcConfiguration: Output? = null

    /**
     * @param value Use this structure to specify the VPC subnets and security groups for the task, and whether a public IP address is to be used. This structure is relevant only for ECS tasks that use the `awsvpc` network mode.
     */
    @JvmName("pgubtkketrdlqnqa")
    public suspend fun awsVpcConfiguration(`value`: Output) {
        this.awsVpcConfiguration = value
    }

    /**
     * @param value Use this structure to specify the VPC subnets and security groups for the task, and whether a public IP address is to be used. This structure is relevant only for ECS tasks that use the `awsvpc` network mode.
     */
    @JvmName("smoefcnhgjwdeyfx")
    public suspend fun awsVpcConfiguration(`value`: RuleAwsVpcConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.awsVpcConfiguration = mapped
    }

    /**
     * @param argument Use this structure to specify the VPC subnets and security groups for the task, and whether a public IP address is to be used. This structure is relevant only for ECS tasks that use the `awsvpc` network mode.
     */
    @JvmName("ojbusjveyossaxhp")
    public suspend fun awsVpcConfiguration(argument: suspend RuleAwsVpcConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = RuleAwsVpcConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.awsVpcConfiguration = mapped
    }

    internal fun build(): RuleNetworkConfigurationArgs = RuleNetworkConfigurationArgs(
        awsVpcConfiguration = awsVpcConfiguration,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy