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

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

package com.pulumi.aws.scheduler.kotlin.inputs

import com.pulumi.aws.scheduler.inputs.ScheduleTargetEcsParametersNetworkConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property assignPublicIp Specifies whether the task's elastic network interface receives a public IP address. This attribute is a boolean type, where `true` maps to `ENABLED` and `false` to `DISABLED`. You can specify `true` only when the `launch_type` is set to `FARGATE`.
 * @property securityGroups Set of 1 to 5 Security Group ID-s to be associated with the task. These security groups must all be in the same VPC.
 * @property subnets Set of 1 to 16 subnets to be associated with the task. These subnets must all be in the same VPC.
 */
public data class ScheduleTargetEcsParametersNetworkConfigurationArgs(
    public val assignPublicIp: Output? = null,
    public val securityGroups: Output>? = null,
    public val subnets: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.scheduler.inputs.ScheduleTargetEcsParametersNetworkConfigurationArgs =
        com.pulumi.aws.scheduler.inputs.ScheduleTargetEcsParametersNetworkConfigurationArgs.builder()
            .assignPublicIp(assignPublicIp?.applyValue({ args0 -> args0 }))
            .securityGroups(securityGroups?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .subnets(subnets.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [ScheduleTargetEcsParametersNetworkConfigurationArgs].
 */
@PulumiTagMarker
public class ScheduleTargetEcsParametersNetworkConfigurationArgsBuilder internal constructor() {
    private var assignPublicIp: Output? = null

    private var securityGroups: Output>? = null

    private var subnets: Output>? = null

    /**
     * @param value Specifies whether the task's elastic network interface receives a public IP address. This attribute is a boolean type, where `true` maps to `ENABLED` and `false` to `DISABLED`. You can specify `true` only when the `launch_type` is set to `FARGATE`.
     */
    @JvmName("gkiopkpyjrpdfgbe")
    public suspend fun assignPublicIp(`value`: Output) {
        this.assignPublicIp = value
    }

    /**
     * @param value Set of 1 to 5 Security Group ID-s to be associated with the task. These security groups must all be in the same VPC.
     */
    @JvmName("qbpxpiyvqeqgonjt")
    public suspend fun securityGroups(`value`: Output>) {
        this.securityGroups = value
    }

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

    /**
     * @param values Set of 1 to 5 Security Group ID-s to be associated with the task. These security groups must all be in the same VPC.
     */
    @JvmName("jdwlfejpiinqclfe")
    public suspend fun securityGroups(values: List>) {
        this.securityGroups = Output.all(values)
    }

    /**
     * @param value Set of 1 to 16 subnets to be associated with the task. These subnets must all be in the same VPC.
     */
    @JvmName("mwtuxrcprokpmjkr")
    public suspend fun subnets(`value`: Output>) {
        this.subnets = value
    }

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

    /**
     * @param values Set of 1 to 16 subnets to be associated with the task. These subnets must all be in the same VPC.
     */
    @JvmName("tnpdqvaghtrfbjoy")
    public suspend fun subnets(values: List>) {
        this.subnets = Output.all(values)
    }

    /**
     * @param value Specifies whether the task's elastic network interface receives a public IP address. This attribute is a boolean type, where `true` maps to `ENABLED` and `false` to `DISABLED`. You can specify `true` only when the `launch_type` is set to `FARGATE`.
     */
    @JvmName("ucqwaguxdfqqvabk")
    public suspend fun assignPublicIp(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.assignPublicIp = mapped
    }

    /**
     * @param value Set of 1 to 5 Security Group ID-s to be associated with the task. These security groups must all be in the same VPC.
     */
    @JvmName("felwpkqjdjthiwir")
    public suspend fun securityGroups(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityGroups = mapped
    }

    /**
     * @param values Set of 1 to 5 Security Group ID-s to be associated with the task. These security groups must all be in the same VPC.
     */
    @JvmName("fuoxnqcxftyoawaw")
    public suspend fun securityGroups(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroups = mapped
    }

    /**
     * @param value Set of 1 to 16 subnets to be associated with the task. These subnets must all be in the same VPC.
     */
    @JvmName("xahkdpnrjscgwqpt")
    public suspend fun subnets(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnets = mapped
    }

    /**
     * @param values Set of 1 to 16 subnets to be associated with the task. These subnets must all be in the same VPC.
     */
    @JvmName("nakdtmxkuuiaowlb")
    public suspend fun subnets(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnets = mapped
    }

    internal fun build(): ScheduleTargetEcsParametersNetworkConfigurationArgs =
        ScheduleTargetEcsParametersNetworkConfigurationArgs(
            assignPublicIp = assignPublicIp,
            securityGroups = securityGroups,
            subnets = subnets ?: throw PulumiNullFieldException("subnets"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy