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.DataLakeAnalyticsUSQLActivityArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.datafactory.kotlin.inputs
import com.pulumi.azurenative.datafactory.inputs.DataLakeAnalyticsUSQLActivityArgs.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
/**
* Data Lake Analytics U-SQL activity.
* @property compilationMode Compilation mode of U-SQL. Must be one of these values : Semantic, Full and SingleBox. Type: string (or Expression with resultType string).
* @property degreeOfParallelism The maximum number of nodes simultaneously used to run the job. Default value is 1. Type: integer (or Expression with resultType integer), minimum: 1.
* @property dependsOn Activity depends on condition.
* @property description Activity description.
* @property linkedServiceName Linked service reference.
* @property name Activity name.
* @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 parameters Parameters for U-SQL job request.
* @property policy Activity policy.
* @property priority Determines which jobs out of all that are queued should be selected to run first. The lower the number, the higher the priority. Default value is 1000. Type: integer (or Expression with resultType integer), minimum: 1.
* @property runtimeVersion Runtime version of the U-SQL engine to use. Type: string (or Expression with resultType string).
* @property scriptLinkedService Script linked service reference.
* @property scriptPath Case-sensitive path to folder that contains the U-SQL script. Type: string (or Expression with resultType string).
* @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 'DataLakeAnalyticsU-SQL'.
* @property userProperties Activity user properties.
*/
public data class DataLakeAnalyticsUSQLActivityArgs(
public val compilationMode: Output? = null,
public val degreeOfParallelism: Output? = null,
public val dependsOn: Output>? = null,
public val description: Output? = null,
public val linkedServiceName: Output? = null,
public val name: Output,
public val onInactiveMarkAs: Output>? = null,
public val parameters: Output>? = null,
public val policy: Output? = null,
public val priority: Output? = null,
public val runtimeVersion: Output? = null,
public val scriptLinkedService: Output,
public val scriptPath: Output,
public val state: Output>? = null,
public val type: Output,
public val userProperties: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.datafactory.inputs.DataLakeAnalyticsUSQLActivityArgs = com.pulumi.azurenative.datafactory.inputs.DataLakeAnalyticsUSQLActivityArgs.builder()
.compilationMode(compilationMode?.applyValue({ args0 -> args0 }))
.degreeOfParallelism(degreeOfParallelism?.applyValue({ args0 -> args0 }))
.dependsOn(
dependsOn?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.description(description?.applyValue({ args0 -> args0 }))
.linkedServiceName(linkedServiceName?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.name(name.applyValue({ args0 -> args0 }))
.onInactiveMarkAs(
onInactiveMarkAs?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
)
.parameters(
parameters?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
)
.policy(policy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.priority(priority?.applyValue({ args0 -> args0 }))
.runtimeVersion(runtimeVersion?.applyValue({ args0 -> args0 }))
.scriptLinkedService(
scriptLinkedService.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.scriptPath(scriptPath.applyValue({ args0 -> args0 }))
.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 [DataLakeAnalyticsUSQLActivityArgs].
*/
@PulumiTagMarker
public class DataLakeAnalyticsUSQLActivityArgsBuilder internal constructor() {
private var compilationMode: Output? = null
private var degreeOfParallelism: Output? = null
private var dependsOn: Output>? = null
private var description: Output? = null
private var linkedServiceName: Output? = null
private var name: Output? = null
private var onInactiveMarkAs: Output>? = null
private var parameters: Output>? = null
private var policy: Output? = null
private var priority: Output? = null
private var runtimeVersion: Output? = null
private var scriptLinkedService: Output? = null
private var scriptPath: Output? = null
private var state: Output>? = null
private var type: Output? = null
private var userProperties: Output>? = null
/**
* @param value Compilation mode of U-SQL. Must be one of these values : Semantic, Full and SingleBox. Type: string (or Expression with resultType string).
*/
@JvmName("xllpiaoydvimdyys")
public suspend fun compilationMode(`value`: Output) {
this.compilationMode = value
}
/**
* @param value The maximum number of nodes simultaneously used to run the job. Default value is 1. Type: integer (or Expression with resultType integer), minimum: 1.
*/
@JvmName("stgepbkfeprarteo")
public suspend fun degreeOfParallelism(`value`: Output) {
this.degreeOfParallelism = value
}
/**
* @param value Activity depends on condition.
*/
@JvmName("dqcqvkhfjgghlcxl")
public suspend fun dependsOn(`value`: Output>) {
this.dependsOn = value
}
@JvmName("vnpfhvdedxpxdsrg")
public suspend fun dependsOn(vararg values: Output) {
this.dependsOn = Output.all(values.asList())
}
/**
* @param values Activity depends on condition.
*/
@JvmName("rguixajvlifigvnl")
public suspend fun dependsOn(values: List>) {
this.dependsOn = Output.all(values)
}
/**
* @param value Activity description.
*/
@JvmName("smdvqvosxpbpxeqq")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value Linked service reference.
*/
@JvmName("ymngrexirgcjrdxg")
public suspend fun linkedServiceName(`value`: Output) {
this.linkedServiceName = value
}
/**
* @param value Activity name.
*/
@JvmName("rhmldiftifoayolu")
public suspend fun name(`value`: Output) {
this.name = 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("fxmxpnjyxpfabgio")
public suspend fun onInactiveMarkAs(`value`: Output>) {
this.onInactiveMarkAs = value
}
/**
* @param value Parameters for U-SQL job request.
*/
@JvmName("rxrdnyqhaoyxjmcq")
public suspend fun parameters(`value`: Output>) {
this.parameters = value
}
/**
* @param value Activity policy.
*/
@JvmName("egfdesuvpfqwywxa")
public suspend fun policy(`value`: Output) {
this.policy = value
}
/**
* @param value Determines which jobs out of all that are queued should be selected to run first. The lower the number, the higher the priority. Default value is 1000. Type: integer (or Expression with resultType integer), minimum: 1.
*/
@JvmName("tcpfkowuekplbfws")
public suspend fun priority(`value`: Output) {
this.priority = value
}
/**
* @param value Runtime version of the U-SQL engine to use. Type: string (or Expression with resultType string).
*/
@JvmName("ofernnbpaudaqgag")
public suspend fun runtimeVersion(`value`: Output) {
this.runtimeVersion = value
}
/**
* @param value Script linked service reference.
*/
@JvmName("nivctxswrdihelbv")
public suspend fun scriptLinkedService(`value`: Output) {
this.scriptLinkedService = value
}
/**
* @param value Case-sensitive path to folder that contains the U-SQL script. Type: string (or Expression with resultType string).
*/
@JvmName("nsqwvdhnosxmxler")
public suspend fun scriptPath(`value`: Output) {
this.scriptPath = value
}
/**
* @param value Activity state. This is an optional property and if not provided, the state will be Active by default.
*/
@JvmName("ufqrwxpfqsuhhmcr")
public suspend fun state(`value`: Output>) {
this.state = value
}
/**
* @param value Type of activity.
* Expected value is 'DataLakeAnalyticsU-SQL'.
*/
@JvmName("kisysliadqpmipll")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Activity user properties.
*/
@JvmName("pabxmuvshwdwvdoc")
public suspend fun userProperties(`value`: Output>) {
this.userProperties = value
}
@JvmName("btaoqsbdlhxajaen")
public suspend fun userProperties(vararg values: Output) {
this.userProperties = Output.all(values.asList())
}
/**
* @param values Activity user properties.
*/
@JvmName("agksrjtruaigktvb")
public suspend fun userProperties(values: List>) {
this.userProperties = Output.all(values)
}
/**
* @param value Compilation mode of U-SQL. Must be one of these values : Semantic, Full and SingleBox. Type: string (or Expression with resultType string).
*/
@JvmName("abnrdbjdeqljtjcs")
public suspend fun compilationMode(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.compilationMode = mapped
}
/**
* @param value The maximum number of nodes simultaneously used to run the job. Default value is 1. Type: integer (or Expression with resultType integer), minimum: 1.
*/
@JvmName("maoasufbfbbtvbxx")
public suspend fun degreeOfParallelism(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.degreeOfParallelism = mapped
}
/**
* @param value Activity depends on condition.
*/
@JvmName("wwjaghotvuskstee")
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("fjfosnaabrvyiukm")
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("rhxoitvqweyvuill")
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("vxfatydmseynoykx")
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("mnymaijjpeeuocao")
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("bmqrprolhohglajo")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value Linked service reference.
*/
@JvmName("vgciippyiijxgchf")
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("uqmkkxtdyfjcpdwo")
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("ebrebvesawsegtln")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = 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("entwaoojdrcpwdrr")
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("vhtdmyacyfgrujnd")
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("cfdxxaioefucuadk")
public fun onInactiveMarkAs(`value`: ActivityOnInactiveMarkAs) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.onInactiveMarkAs = mapped
}
/**
* @param value Parameters for U-SQL job request.
*/
@JvmName("sgwuomarrtgfasdj")
public suspend fun parameters(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.parameters = mapped
}
/**
* @param values Parameters for U-SQL job request.
*/
@JvmName("dhewdewpwccrsoja")
public fun parameters(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.parameters = mapped
}
/**
* @param value Activity policy.
*/
@JvmName("yjxqeawuarishswq")
public suspend fun policy(`value`: ActivityPolicyArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.policy = mapped
}
/**
* @param argument Activity policy.
*/
@JvmName("wvrwxicipqcmwhnm")
public suspend fun policy(argument: suspend ActivityPolicyArgsBuilder.() -> Unit) {
val toBeMapped = ActivityPolicyArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.policy = mapped
}
/**
* @param value Determines which jobs out of all that are queued should be selected to run first. The lower the number, the higher the priority. Default value is 1000. Type: integer (or Expression with resultType integer), minimum: 1.
*/
@JvmName("elgfldubroxhjdqu")
public suspend fun priority(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.priority = mapped
}
/**
* @param value Runtime version of the U-SQL engine to use. Type: string (or Expression with resultType string).
*/
@JvmName("sylvehphvntglykj")
public suspend fun runtimeVersion(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.runtimeVersion = mapped
}
/**
* @param value Script linked service reference.
*/
@JvmName("rblbiqkrgkredgid")
public suspend fun scriptLinkedService(`value`: LinkedServiceReferenceArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.scriptLinkedService = mapped
}
/**
* @param argument Script linked service reference.
*/
@JvmName("arxslyditavwxwae")
public suspend fun scriptLinkedService(argument: suspend LinkedServiceReferenceArgsBuilder.() -> Unit) {
val toBeMapped = LinkedServiceReferenceArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.scriptLinkedService = mapped
}
/**
* @param value Case-sensitive path to folder that contains the U-SQL script. Type: string (or Expression with resultType string).
*/
@JvmName("gshoxfgbrrrcmkok")
public suspend fun scriptPath(`value`: Any) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.scriptPath = mapped
}
/**
* @param value Activity state. This is an optional property and if not provided, the state will be Active by default.
*/
@JvmName("budbdymlsrpfujvq")
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("btrtipienvabbtul")
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("ttgbxxvdjbypjhca")
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 'DataLakeAnalyticsU-SQL'.
*/
@JvmName("hmxhcmsnohgqdcdd")
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("iaiokxahlmtvcefu")
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("ltoxfetlieboqbxg")
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("cgswkvpjjuxaqcnn")
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("xpxtvccskrcjfsoq")
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("uqfsymovatrxkvbh")
public suspend fun userProperties(vararg values: UserPropertyArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.userProperties = mapped
}
internal fun build(): DataLakeAnalyticsUSQLActivityArgs = DataLakeAnalyticsUSQLActivityArgs(
compilationMode = compilationMode,
degreeOfParallelism = degreeOfParallelism,
dependsOn = dependsOn,
description = description,
linkedServiceName = linkedServiceName,
name = name ?: throw PulumiNullFieldException("name"),
onInactiveMarkAs = onInactiveMarkAs,
parameters = parameters,
policy = policy,
priority = priority,
runtimeVersion = runtimeVersion,
scriptLinkedService = scriptLinkedService ?: throw PulumiNullFieldException("scriptLinkedService"),
scriptPath = scriptPath ?: throw PulumiNullFieldException("scriptPath"),
state = state,
type = type ?: throw PulumiNullFieldException("type"),
userProperties = userProperties,
)
}