
com.pulumi.googlenative.iap.v1.kotlin.DestGroup.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.iap.v1.kotlin
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
/**
* Builder for [DestGroup].
*/
@PulumiTagMarker
public class DestGroupResourceBuilder internal constructor() {
public var name: String? = null
public var args: DestGroupArgs = DestGroupArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend DestGroupArgsBuilder.() -> Unit) {
val builder = DestGroupArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): DestGroup {
val builtJavaResource = com.pulumi.googlenative.iap.v1.DestGroup(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return DestGroup(builtJavaResource)
}
}
/**
* Creates a new TunnelDestGroup.
*/
public class DestGroup internal constructor(
override val javaResource: com.pulumi.googlenative.iap.v1.DestGroup,
) : KotlinCustomResource(javaResource, DestGroupMapper) {
/**
* Unordered list. List of CIDRs that this group applies to.
*/
public val cidrs: Output>
get() = javaResource.cidrs().applyValue({ args0 -> args0.map({ args0 -> args0 }) })
/**
* Unordered list. List of FQDNs that this group applies to.
*/
public val fqdns: Output>
get() = javaResource.fqdns().applyValue({ args0 -> args0.map({ args0 -> args0 }) })
public val location: Output
get() = javaResource.location().applyValue({ args0 -> args0 })
/**
* Immutable. Identifier for the TunnelDestGroup. Must be unique within the project and contain only lower case letters (a-z) and dashes (-).
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
public val project: Output
get() = javaResource.project().applyValue({ args0 -> args0 })
/**
* Required. The ID to use for the TunnelDestGroup, which becomes the final component of the resource name. This value must be 4-63 characters, and valid characters are `[a-z]-`.
*/
public val tunnelDestGroupId: Output
get() = javaResource.tunnelDestGroupId().applyValue({ args0 -> args0 })
}
public object DestGroupMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.googlenative.iap.v1.DestGroup::class == javaResource::class
override fun map(javaResource: Resource): DestGroup = DestGroup(
javaResource as
com.pulumi.googlenative.iap.v1.DestGroup,
)
}
/**
* @see [DestGroup].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [DestGroup].
*/
public suspend fun destGroup(name: String, block: suspend DestGroupResourceBuilder.() -> Unit): DestGroup {
val builder = DestGroupResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [DestGroup].
* @param name The _unique_ name of the resulting resource.
*/
public fun destGroup(name: String): DestGroup {
val builder = DestGroupResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy