
com.pulumi.googlenative.dataplex.v1.kotlin.Lake.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.dataplex.v1.kotlin
import com.pulumi.core.Output
import com.pulumi.googlenative.dataplex.v1.kotlin.outputs.GoogleCloudDataplexV1AssetStatusResponse
import com.pulumi.googlenative.dataplex.v1.kotlin.outputs.GoogleCloudDataplexV1LakeMetastoreResponse
import com.pulumi.googlenative.dataplex.v1.kotlin.outputs.GoogleCloudDataplexV1LakeMetastoreStatusResponse
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.Map
import com.pulumi.googlenative.dataplex.v1.kotlin.outputs.GoogleCloudDataplexV1AssetStatusResponse.Companion.toKotlin as googleCloudDataplexV1AssetStatusResponseToKotlin
import com.pulumi.googlenative.dataplex.v1.kotlin.outputs.GoogleCloudDataplexV1LakeMetastoreResponse.Companion.toKotlin as googleCloudDataplexV1LakeMetastoreResponseToKotlin
import com.pulumi.googlenative.dataplex.v1.kotlin.outputs.GoogleCloudDataplexV1LakeMetastoreStatusResponse.Companion.toKotlin as googleCloudDataplexV1LakeMetastoreStatusResponseToKotlin
/**
* Builder for [Lake].
*/
@PulumiTagMarker
public class LakeResourceBuilder internal constructor() {
public var name: String? = null
public var args: LakeArgs = LakeArgs()
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 LakeArgsBuilder.() -> Unit) {
val builder = LakeArgsBuilder()
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(): Lake {
val builtJavaResource = com.pulumi.googlenative.dataplex.v1.Lake(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Lake(builtJavaResource)
}
}
/**
* Creates a lake resource.
* Auto-naming is currently not supported for this resource.
*/
public class Lake internal constructor(
override val javaResource: com.pulumi.googlenative.dataplex.v1.Lake,
) : KotlinCustomResource(javaResource, LakeMapper) {
/**
* Aggregated status of the underlying assets of the lake.
*/
public val assetStatus: Output
get() = javaResource.assetStatus().applyValue({ args0 ->
args0.let({ args0 ->
googleCloudDataplexV1AssetStatusResponseToKotlin(args0)
})
})
/**
* The time when the lake was created.
*/
public val createTime: Output
get() = javaResource.createTime().applyValue({ args0 -> args0 })
/**
* Optional. Description of the lake.
*/
public val description: Output
get() = javaResource.description().applyValue({ args0 -> args0 })
/**
* Optional. User friendly display name.
*/
public val displayName: Output
get() = javaResource.displayName().applyValue({ args0 -> args0 })
/**
* Optional. User-defined labels for the lake.
*/
public val labels: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy