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

com.pulumi.awsnative.scheduler.kotlin.inputs.ScheduleNetworkConfigurationArgs.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.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.scheduler.kotlin.inputs

import com.pulumi.awsnative.scheduler.inputs.ScheduleNetworkConfigurationArgs.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

/**
 * This structure specifies the network configuration for an ECS task.
 * @property awsvpcConfiguration Specifies the Amazon 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 ScheduleNetworkConfigurationArgs(
    public val awsvpcConfiguration: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.scheduler.inputs.ScheduleNetworkConfigurationArgs =
        com.pulumi.awsnative.scheduler.inputs.ScheduleNetworkConfigurationArgs.builder()
            .awsvpcConfiguration(
                awsvpcConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [ScheduleNetworkConfigurationArgs].
 */
@PulumiTagMarker
public class ScheduleNetworkConfigurationArgsBuilder internal constructor() {
    private var awsvpcConfiguration: Output? = null

    /**
     * @param value Specifies the Amazon 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("uovcmvanucqeskhd")
    public suspend fun awsvpcConfiguration(`value`: Output) {
        this.awsvpcConfiguration = value
    }

    /**
     * @param value Specifies the Amazon 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("pqiaahwclilagmrm")
    public suspend fun awsvpcConfiguration(`value`: ScheduleAwsVpcConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.awsvpcConfiguration = mapped
    }

    /**
     * @param argument Specifies the Amazon 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("eqcyjyqbplmmwthn")
    public suspend fun awsvpcConfiguration(argument: suspend ScheduleAwsVpcConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = ScheduleAwsVpcConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.awsvpcConfiguration = mapped
    }

    internal fun build(): ScheduleNetworkConfigurationArgs = ScheduleNetworkConfigurationArgs(
        awsvpcConfiguration = awsvpcConfiguration,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy