com.pulumi.awsnative.mediaconnect.kotlin.GatewayArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.mediaconnect.kotlin
import com.pulumi.awsnative.mediaconnect.GatewayArgs.builder
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.GatewayNetworkArgs
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.GatewayNetworkArgsBuilder
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
/**
* Resource schema for AWS::MediaConnect::Gateway
* @property egressCidrBlocks The range of IP addresses that contribute content or initiate output requests for flows communicating with this gateway. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
* @property name The name of the gateway. This name can not be modified after the gateway is created.
* @property networks The list of networks in the gateway.
*/
public data class GatewayArgs(
public val egressCidrBlocks: Output>? = null,
public val name: Output? = null,
public val networks: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.mediaconnect.GatewayArgs =
com.pulumi.awsnative.mediaconnect.GatewayArgs.builder()
.egressCidrBlocks(egressCidrBlocks?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.name(name?.applyValue({ args0 -> args0 }))
.networks(
networks?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [GatewayArgs].
*/
@PulumiTagMarker
public class GatewayArgsBuilder internal constructor() {
private var egressCidrBlocks: Output>? = null
private var name: Output? = null
private var networks: Output>? = null
/**
* @param value The range of IP addresses that contribute content or initiate output requests for flows communicating with this gateway. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
*/
@JvmName("dndnopsdhrwldorc")
public suspend fun egressCidrBlocks(`value`: Output>) {
this.egressCidrBlocks = value
}
@JvmName("ijllskwboocoklcw")
public suspend fun egressCidrBlocks(vararg values: Output) {
this.egressCidrBlocks = Output.all(values.asList())
}
/**
* @param values The range of IP addresses that contribute content or initiate output requests for flows communicating with this gateway. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
*/
@JvmName("iafdsouilmftbgej")
public suspend fun egressCidrBlocks(values: List