com.pulumi.gcp.dataplex.kotlin.inputs.AssetResourceSpecArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.dataplex.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataplex.inputs.AssetResourceSpecArgs.builder
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 name Immutable. Relative name of the cloud resource that contains the data that is being managed within a lake. For example: `projects/{project_number}/buckets/{bucket_id}` `projects/{project_number}/datasets/{dataset_id}`
* @property readAccessMode Optional. Determines how read permissions are handled for each asset and their associated tables. Only available to storage buckets assets. Possible values: DIRECT, MANAGED
* @property type Required. Immutable. Type of resource. Possible values: STORAGE_BUCKET, BIGQUERY_DATASET
* - - -
*/
public data class AssetResourceSpecArgs(
public val name: Output? = null,
public val readAccessMode: Output? = null,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.dataplex.inputs.AssetResourceSpecArgs =
com.pulumi.gcp.dataplex.inputs.AssetResourceSpecArgs.builder()
.name(name?.applyValue({ args0 -> args0 }))
.readAccessMode(readAccessMode?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AssetResourceSpecArgs].
*/
@PulumiTagMarker
public class AssetResourceSpecArgsBuilder internal constructor() {
private var name: Output? = null
private var readAccessMode: Output? = null
private var type: Output? = null
/**
* @param value Immutable. Relative name of the cloud resource that contains the data that is being managed within a lake. For example: `projects/{project_number}/buckets/{bucket_id}` `projects/{project_number}/datasets/{dataset_id}`
*/
@JvmName("rihxlipiwjpyimdb")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Optional. Determines how read permissions are handled for each asset and their associated tables. Only available to storage buckets assets. Possible values: DIRECT, MANAGED
*/
@JvmName("ldamqrwnkkrfgpaw")
public suspend fun readAccessMode(`value`: Output) {
this.readAccessMode = value
}
/**
* @param value Required. Immutable. Type of resource. Possible values: STORAGE_BUCKET, BIGQUERY_DATASET
* - - -
*/
@JvmName("hvaunqciniyxlnhp")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Immutable. Relative name of the cloud resource that contains the data that is being managed within a lake. For example: `projects/{project_number}/buckets/{bucket_id}` `projects/{project_number}/datasets/{dataset_id}`
*/
@JvmName("wumienrwwnwltyqq")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Optional. Determines how read permissions are handled for each asset and their associated tables. Only available to storage buckets assets. Possible values: DIRECT, MANAGED
*/
@JvmName("chcbpwkwrhepyonr")
public suspend fun readAccessMode(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.readAccessMode = mapped
}
/**
* @param value Required. Immutable. Type of resource. Possible values: STORAGE_BUCKET, BIGQUERY_DATASET
* - - -
*/
@JvmName("bqfbovoxwdmedgqa")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): AssetResourceSpecArgs = AssetResourceSpecArgs(
name = name,
readAccessMode = readAccessMode,
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy