com.pulumi.aws.scheduler.kotlin.inputs.ScheduleTargetEcsParametersNetworkConfigurationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.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
© 2015 - 2024 Weber Informatics LLC | Privacy Policy