com.pulumi.aws.workspaces.kotlin.inputs.IpGroupRuleArgs.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.workspaces.kotlin.inputs
import com.pulumi.aws.workspaces.inputs.IpGroupRuleArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property description The description of the IP group.
* @property source The IP address range, in CIDR notation, e.g., `10.0.0.0/16`
*/
public data class IpGroupRuleArgs(
public val description: Output? = null,
public val source: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.workspaces.inputs.IpGroupRuleArgs =
com.pulumi.aws.workspaces.inputs.IpGroupRuleArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.source(source.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [IpGroupRuleArgs].
*/
@PulumiTagMarker
public class IpGroupRuleArgsBuilder internal constructor() {
private var description: Output? = null
private var source: Output? = null
/**
* @param value The description of the IP group.
*/
@JvmName("eoodptwjrxaljysd")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The IP address range, in CIDR notation, e.g., `10.0.0.0/16`
*/
@JvmName("tlorodbybdjhtjty")
public suspend fun source(`value`: Output) {
this.source = value
}
/**
* @param value The description of the IP group.
*/
@JvmName("vltvuieeebfqghmf")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value The IP address range, in CIDR notation, e.g., `10.0.0.0/16`
*/
@JvmName("sncpixcbmlyneacg")
public suspend fun source(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.source = mapped
}
internal fun build(): IpGroupRuleArgs = IpGroupRuleArgs(
description = description,
source = source ?: throw PulumiNullFieldException("source"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy