Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azurenative.datafactory.kotlin.inputs.DatabricksNotebookActivityArgs.kt Maven / Gradle / Ivy
Go to download
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.azurenative.datafactory.kotlin.inputs
import com.pulumi.azurenative.datafactory.inputs.DatabricksNotebookActivityArgs.builder
import com.pulumi.azurenative.datafactory.kotlin.enums.ActivityOnInactiveMarkAs
import com.pulumi.azurenative.datafactory.kotlin.enums.ActivityState
import com.pulumi.core.Either
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 com.pulumi.kotlin.applySuspend
import kotlin.Any
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* DatabricksNotebook activity.
* @property baseParameters Base parameters to be used for each run of this job.If the notebook takes a parameter that is not specified, the default value from the notebook will be used.
* @property dependsOn Activity depends on condition.
* @property description Activity description.
* @property libraries A list of libraries to be installed on the cluster that will execute the job.
* @property linkedServiceName Linked service reference.
* @property name Activity name.
* @property notebookPath The absolute path of the notebook to be run in the Databricks Workspace. This path must begin with a slash. Type: string (or Expression with resultType string).
* @property onInactiveMarkAs Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when the activity is inactive, the status will be Succeeded by default.
* @property policy Activity policy.
* @property state Activity state. This is an optional property and if not provided, the state will be Active by default.
* @property type Type of activity.
* Expected value is 'DatabricksNotebook'.
* @property userProperties Activity user properties.
*/
public data class DatabricksNotebookActivityArgs(
public val baseParameters: Output>? = null,
public val dependsOn: Output>? = null,
public val description: Output? = null,
public val libraries: Output>>? = null,
public val linkedServiceName: Output? = null,
public val name: Output,
public val notebookPath: Output,
public val onInactiveMarkAs: Output>? = null,
public val policy: Output? = null,
public val state: Output>? = null,
public val type: Output,
public val userProperties: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.datafactory.inputs.DatabricksNotebookActivityArgs =
com.pulumi.azurenative.datafactory.inputs.DatabricksNotebookActivityArgs.builder()
.baseParameters(
baseParameters?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
)
.dependsOn(
dependsOn?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.description(description?.applyValue({ args0 -> args0 }))
.libraries(
libraries?.applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
})
}),
)
.linkedServiceName(linkedServiceName?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.name(name.applyValue({ args0 -> args0 }))
.notebookPath(notebookPath.applyValue({ args0 -> args0 }))
.onInactiveMarkAs(
onInactiveMarkAs?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
)
.policy(policy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.state(
state?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.type(type.applyValue({ args0 -> args0 }))
.userProperties(
userProperties?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [DatabricksNotebookActivityArgs].
*/
@PulumiTagMarker
public class DatabricksNotebookActivityArgsBuilder internal constructor() {
private var baseParameters: Output>? = null
private var dependsOn: Output>? = null
private var description: Output? = null
private var libraries: Output>>? = null
private var linkedServiceName: Output? = null
private var name: Output? = null
private var notebookPath: Output? = null
private var onInactiveMarkAs: Output>? = null
private var policy: Output? = null
private var state: Output>? = null
private var type: Output? = null
private var userProperties: Output>? = null
/**
* @param value Base parameters to be used for each run of this job.If the notebook takes a parameter that is not specified, the default value from the notebook will be used.
*/
@JvmName("ohjjnnfqfvwulrdt")
public suspend fun baseParameters(`value`: Output>) {
this.baseParameters = value
}
/**
* @param value Activity depends on condition.
*/
@JvmName("afonbgmngyayufpo")
public suspend fun dependsOn(`value`: Output>) {
this.dependsOn = value
}
@JvmName("lpaiaqhhuqqprcaf")
public suspend fun dependsOn(vararg values: Output) {
this.dependsOn = Output.all(values.asList())
}
/**
* @param values Activity depends on condition.
*/
@JvmName("drharqfqqoqtghed")
public suspend fun dependsOn(values: List>) {
this.dependsOn = Output.all(values)
}
/**
* @param value Activity description.
*/
@JvmName("estkmoukfqgxwdkr")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value A list of libraries to be installed on the cluster that will execute the job.
*/
@JvmName("ldffjvolyxpmqhtj")
public suspend fun libraries(`value`: Output>>) {
this.libraries = value
}
@JvmName("mfqtrlcvqaydlswj")
public suspend fun libraries(vararg values: Output>) {
this.libraries = Output.all(values.asList())
}
/**
* @param values A list of libraries to be installed on the cluster that will execute the job.
*/
@JvmName("pjcnjylmflevmkht")
public suspend fun libraries(values: List>>) {
this.libraries = Output.all(values)
}
/**
* @param value Linked service reference.
*/
@JvmName("rxspmvvsxqcdcwao")
public suspend fun linkedServiceName(`value`: Output) {
this.linkedServiceName = value
}
/**
* @param value Activity name.
*/
@JvmName("cqhksfrcjtsgyakn")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The absolute path of the notebook to be run in the Databricks Workspace. This path must begin with a slash. Type: string (or Expression with resultType string).
*/
@JvmName("eegejbcfrifodnmo")
public suspend fun notebookPath(`value`: Output) {
this.notebookPath = value
}
/**
* @param value Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when the activity is inactive, the status will be Succeeded by default.
*/
@JvmName("qnmdnmrgimkbojnj")
public suspend fun onInactiveMarkAs(`value`: Output>) {
this.onInactiveMarkAs = value
}
/**
* @param value Activity policy.
*/
@JvmName("oyjrxkdywaattgir")
public suspend fun policy(`value`: Output) {
this.policy = value
}
/**
* @param value Activity state. This is an optional property and if not provided, the state will be Active by default.
*/
@JvmName("mairnrlotvpeoaak")
public suspend fun state(`value`: Output>) {
this.state = value
}
/**
* @param value Type of activity.
* Expected value is 'DatabricksNotebook'.
*/
@JvmName("kdqiwuxkwxaymhbg")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Activity user properties.
*/
@JvmName("ojpmfwjedvaleqry")
public suspend fun userProperties(`value`: Output>) {
this.userProperties = value
}
@JvmName("yjakjjottgybiqid")
public suspend fun userProperties(vararg values: Output) {
this.userProperties = Output.all(values.asList())
}
/**
* @param values Activity user properties.
*/
@JvmName("npdxpbqqasmhwdhi")
public suspend fun userProperties(values: List>) {
this.userProperties = Output.all(values)
}
/**
* @param value Base parameters to be used for each run of this job.If the notebook takes a parameter that is not specified, the default value from the notebook will be used.
*/
@JvmName("tojtpbngfdhksjqo")
public suspend fun baseParameters(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.baseParameters = mapped
}
/**
* @param values Base parameters to be used for each run of this job.If the notebook takes a parameter that is not specified, the default value from the notebook will be used.
*/
@JvmName("oumbjafqcbawmfwh")
public fun baseParameters(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.baseParameters = mapped
}
/**
* @param value Activity depends on condition.
*/
@JvmName("krqsficwinoefotv")
public suspend fun dependsOn(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dependsOn = mapped
}
/**
* @param argument Activity depends on condition.
*/
@JvmName("tjubilxmvameebsc")
public suspend fun dependsOn(argument: List Unit>) {
val toBeMapped = argument.toList().map {
ActivityDependencyArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.dependsOn = mapped
}
/**
* @param argument Activity depends on condition.
*/
@JvmName("wmejulstuaovaeoh")
public suspend fun dependsOn(vararg argument: suspend ActivityDependencyArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
ActivityDependencyArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.dependsOn = mapped
}
/**
* @param argument Activity depends on condition.
*/
@JvmName("karqalnsuxomyyie")
public suspend fun dependsOn(argument: suspend ActivityDependencyArgsBuilder.() -> Unit) {
val toBeMapped = listOf(ActivityDependencyArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.dependsOn = mapped
}
/**
* @param values Activity depends on condition.
*/
@JvmName("pyboptnfdeyhsjkp")
public suspend fun dependsOn(vararg values: ActivityDependencyArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.dependsOn = mapped
}
/**
* @param value Activity description.
*/
@JvmName("rbsmlqmaabptlrvk")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value A list of libraries to be installed on the cluster that will execute the job.
*/
@JvmName("bxkjwbdddctthfav")
public suspend fun libraries(`value`: List>?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.libraries = mapped
}
/**
* @param values A list of libraries to be installed on the cluster that will execute the job.
*/
@JvmName("afwbftmhxhrgpyma")
public suspend fun libraries(vararg values: Map) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.libraries = mapped
}
/**
* @param value Linked service reference.
*/
@JvmName("fcsxgbktkceypync")
public suspend fun linkedServiceName(`value`: LinkedServiceReferenceArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.linkedServiceName = mapped
}
/**
* @param argument Linked service reference.
*/
@JvmName("nvcivlxrotacbduw")
public suspend fun linkedServiceName(argument: suspend LinkedServiceReferenceArgsBuilder.() -> Unit) {
val toBeMapped = LinkedServiceReferenceArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.linkedServiceName = mapped
}
/**
* @param value Activity name.
*/
@JvmName("ygnukyqnhaqhysse")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The absolute path of the notebook to be run in the Databricks Workspace. This path must begin with a slash. Type: string (or Expression with resultType string).
*/
@JvmName("bewwbresosgnjybr")
public suspend fun notebookPath(`value`: Any) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.notebookPath = mapped
}
/**
* @param value Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when the activity is inactive, the status will be Succeeded by default.
*/
@JvmName("vivcnukjkmrwjnuw")
public suspend fun onInactiveMarkAs(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.onInactiveMarkAs = mapped
}
/**
* @param value Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when the activity is inactive, the status will be Succeeded by default.
*/
@JvmName("iybglquovqtkvyxx")
public fun onInactiveMarkAs(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.onInactiveMarkAs = mapped
}
/**
* @param value Status result of the activity when the state is set to Inactive. This is an optional property and if not provided when the activity is inactive, the status will be Succeeded by default.
*/
@JvmName("ahugcwmhapqelejv")
public fun onInactiveMarkAs(`value`: ActivityOnInactiveMarkAs) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.onInactiveMarkAs = mapped
}
/**
* @param value Activity policy.
*/
@JvmName("eraolhbdfskyckjm")
public suspend fun policy(`value`: ActivityPolicyArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.policy = mapped
}
/**
* @param argument Activity policy.
*/
@JvmName("rhuxwhncjpexrjui")
public suspend fun policy(argument: suspend ActivityPolicyArgsBuilder.() -> Unit) {
val toBeMapped = ActivityPolicyArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.policy = mapped
}
/**
* @param value Activity state. This is an optional property and if not provided, the state will be Active by default.
*/
@JvmName("nplafaurwuppjheg")
public suspend fun state(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.state = mapped
}
/**
* @param value Activity state. This is an optional property and if not provided, the state will be Active by default.
*/
@JvmName("eqlihuijyiqpjdbi")
public fun state(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.state = mapped
}
/**
* @param value Activity state. This is an optional property and if not provided, the state will be Active by default.
*/
@JvmName("mveidqnahjwshvpv")
public fun state(`value`: ActivityState) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.state = mapped
}
/**
* @param value Type of activity.
* Expected value is 'DatabricksNotebook'.
*/
@JvmName("qoqmwooqvrvsmpwr")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value Activity user properties.
*/
@JvmName("crprbnnwuprgjaui")
public suspend fun userProperties(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.userProperties = mapped
}
/**
* @param argument Activity user properties.
*/
@JvmName("romoykxubrobwoys")
public suspend fun userProperties(argument: List Unit>) {
val toBeMapped = argument.toList().map {
UserPropertyArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.userProperties = mapped
}
/**
* @param argument Activity user properties.
*/
@JvmName("gililifeouqadjqo")
public suspend fun userProperties(vararg argument: suspend UserPropertyArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
UserPropertyArgsBuilder().applySuspend { it() }.build()
}
val mapped = of(toBeMapped)
this.userProperties = mapped
}
/**
* @param argument Activity user properties.
*/
@JvmName("ilhoeypxllorkqvc")
public suspend fun userProperties(argument: suspend UserPropertyArgsBuilder.() -> Unit) {
val toBeMapped = listOf(UserPropertyArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.userProperties = mapped
}
/**
* @param values Activity user properties.
*/
@JvmName("jivxjqtcshtcolyk")
public suspend fun userProperties(vararg values: UserPropertyArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.userProperties = mapped
}
internal fun build(): DatabricksNotebookActivityArgs = DatabricksNotebookActivityArgs(
baseParameters = baseParameters,
dependsOn = dependsOn,
description = description,
libraries = libraries,
linkedServiceName = linkedServiceName,
name = name ?: throw PulumiNullFieldException("name"),
notebookPath = notebookPath ?: throw PulumiNullFieldException("notebookPath"),
onInactiveMarkAs = onInactiveMarkAs,
policy = policy,
state = state,
type = type ?: throw PulumiNullFieldException("type"),
userProperties = userProperties,
)
}