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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.datafactory.kotlin.inputs
import com.pulumi.azurenative.datafactory.inputs.SqlDWSinkArgs.builder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* A copy activity SQL Data Warehouse sink.
* @property allowCopyCommand Indicates to use Copy Command to copy data into SQL Data Warehouse. Type: boolean (or Expression with resultType boolean).
* @property allowPolyBase Indicates to use PolyBase to copy data into SQL Data Warehouse when applicable. Type: boolean (or Expression with resultType boolean).
* @property copyCommandSettings Specifies Copy Command related settings when allowCopyCommand is true.
* @property disableMetricsCollection If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean).
* @property maxConcurrentConnections The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer).
* @property polyBaseSettings Specifies PolyBase-related settings when allowPolyBase is true.
* @property preCopyScript SQL pre-copy script. Type: string (or Expression with resultType string).
* @property sinkRetryCount Sink retry count. Type: integer (or Expression with resultType integer).
* @property sinkRetryWait Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
* @property sqlWriterUseTableLock Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean).
* @property tableOption The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string).
* @property type Copy sink type.
* Expected value is 'SqlDWSink'.
* @property upsertSettings SQL DW upsert settings.
* @property writeBatchSize Write batch size. Type: integer (or Expression with resultType integer), minimum: 0.
* @property writeBatchTimeout Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
* @property writeBehavior Write behavior when copying data into azure SQL DW. Type: SqlDWWriteBehaviorEnum (or Expression with resultType SqlDWWriteBehaviorEnum)
*/
public data class SqlDWSinkArgs(
public val allowCopyCommand: Output? = null,
public val allowPolyBase: Output? = null,
public val copyCommandSettings: Output? = null,
public val disableMetricsCollection: Output? = null,
public val maxConcurrentConnections: Output? = null,
public val polyBaseSettings: Output? = null,
public val preCopyScript: Output? = null,
public val sinkRetryCount: Output? = null,
public val sinkRetryWait: Output? = null,
public val sqlWriterUseTableLock: Output? = null,
public val tableOption: Output? = null,
public val type: Output,
public val upsertSettings: Output? = null,
public val writeBatchSize: Output? = null,
public val writeBatchTimeout: Output? = null,
public val writeBehavior: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.datafactory.inputs.SqlDWSinkArgs =
com.pulumi.azurenative.datafactory.inputs.SqlDWSinkArgs.builder()
.allowCopyCommand(allowCopyCommand?.applyValue({ args0 -> args0 }))
.allowPolyBase(allowPolyBase?.applyValue({ args0 -> args0 }))
.copyCommandSettings(
copyCommandSettings?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.disableMetricsCollection(disableMetricsCollection?.applyValue({ args0 -> args0 }))
.maxConcurrentConnections(maxConcurrentConnections?.applyValue({ args0 -> args0 }))
.polyBaseSettings(polyBaseSettings?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.preCopyScript(preCopyScript?.applyValue({ args0 -> args0 }))
.sinkRetryCount(sinkRetryCount?.applyValue({ args0 -> args0 }))
.sinkRetryWait(sinkRetryWait?.applyValue({ args0 -> args0 }))
.sqlWriterUseTableLock(sqlWriterUseTableLock?.applyValue({ args0 -> args0 }))
.tableOption(tableOption?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 }))
.upsertSettings(upsertSettings?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.writeBatchSize(writeBatchSize?.applyValue({ args0 -> args0 }))
.writeBatchTimeout(writeBatchTimeout?.applyValue({ args0 -> args0 }))
.writeBehavior(writeBehavior?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SqlDWSinkArgs].
*/
@PulumiTagMarker
public class SqlDWSinkArgsBuilder internal constructor() {
private var allowCopyCommand: Output? = null
private var allowPolyBase: Output? = null
private var copyCommandSettings: Output? = null
private var disableMetricsCollection: Output? = null
private var maxConcurrentConnections: Output? = null
private var polyBaseSettings: Output? = null
private var preCopyScript: Output? = null
private var sinkRetryCount: Output? = null
private var sinkRetryWait: Output? = null
private var sqlWriterUseTableLock: Output? = null
private var tableOption: Output? = null
private var type: Output? = null
private var upsertSettings: Output? = null
private var writeBatchSize: Output? = null
private var writeBatchTimeout: Output? = null
private var writeBehavior: Output? = null
/**
* @param value Indicates to use Copy Command to copy data into SQL Data Warehouse. Type: boolean (or Expression with resultType boolean).
*/
@JvmName("tpyfeiciwhkitdkt")
public suspend fun allowCopyCommand(`value`: Output) {
this.allowCopyCommand = value
}
/**
* @param value Indicates to use PolyBase to copy data into SQL Data Warehouse when applicable. Type: boolean (or Expression with resultType boolean).
*/
@JvmName("eqhqpcsyjrsfmpov")
public suspend fun allowPolyBase(`value`: Output) {
this.allowPolyBase = value
}
/**
* @param value Specifies Copy Command related settings when allowCopyCommand is true.
*/
@JvmName("xwbtfkdlnkvfcplj")
public suspend fun copyCommandSettings(`value`: Output) {
this.copyCommandSettings = value
}
/**
* @param value If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean).
*/
@JvmName("uymjeyhlfwcmcvjf")
public suspend fun disableMetricsCollection(`value`: Output) {
this.disableMetricsCollection = value
}
/**
* @param value The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer).
*/
@JvmName("clsnfwbxaqboypfl")
public suspend fun maxConcurrentConnections(`value`: Output) {
this.maxConcurrentConnections = value
}
/**
* @param value Specifies PolyBase-related settings when allowPolyBase is true.
*/
@JvmName("ndamctgihfiraaak")
public suspend fun polyBaseSettings(`value`: Output) {
this.polyBaseSettings = value
}
/**
* @param value SQL pre-copy script. Type: string (or Expression with resultType string).
*/
@JvmName("euqultngkqjptfen")
public suspend fun preCopyScript(`value`: Output) {
this.preCopyScript = value
}
/**
* @param value Sink retry count. Type: integer (or Expression with resultType integer).
*/
@JvmName("dgbqxvirsxptffao")
public suspend fun sinkRetryCount(`value`: Output) {
this.sinkRetryCount = value
}
/**
* @param value Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
*/
@JvmName("gpjuqkicwwanvnmk")
public suspend fun sinkRetryWait(`value`: Output) {
this.sinkRetryWait = value
}
/**
* @param value Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean).
*/
@JvmName("clwcbbyrbqyrxjbu")
public suspend fun sqlWriterUseTableLock(`value`: Output) {
this.sqlWriterUseTableLock = value
}
/**
* @param value The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string).
*/
@JvmName("gdlnlpsjmlwpnsmy")
public suspend fun tableOption(`value`: Output) {
this.tableOption = value
}
/**
* @param value Copy sink type.
* Expected value is 'SqlDWSink'.
*/
@JvmName("orajvkofekpoftyh")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value SQL DW upsert settings.
*/
@JvmName("efsfvnmvgamfdbsc")
public suspend fun upsertSettings(`value`: Output) {
this.upsertSettings = value
}
/**
* @param value Write batch size. Type: integer (or Expression with resultType integer), minimum: 0.
*/
@JvmName("odanbxsjehdeyvmh")
public suspend fun writeBatchSize(`value`: Output) {
this.writeBatchSize = value
}
/**
* @param value Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
*/
@JvmName("mtuqqhpekllrqwnl")
public suspend fun writeBatchTimeout(`value`: Output) {
this.writeBatchTimeout = value
}
/**
* @param value Write behavior when copying data into azure SQL DW. Type: SqlDWWriteBehaviorEnum (or Expression with resultType SqlDWWriteBehaviorEnum)
*/
@JvmName("cniiodbxvpiqnosm")
public suspend fun writeBehavior(`value`: Output) {
this.writeBehavior = value
}
/**
* @param value Indicates to use Copy Command to copy data into SQL Data Warehouse. Type: boolean (or Expression with resultType boolean).
*/
@JvmName("iwahjaadhdhpbqhw")
public suspend fun allowCopyCommand(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.allowCopyCommand = mapped
}
/**
* @param value Indicates to use PolyBase to copy data into SQL Data Warehouse when applicable. Type: boolean (or Expression with resultType boolean).
*/
@JvmName("viqsruegeshslkup")
public suspend fun allowPolyBase(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.allowPolyBase = mapped
}
/**
* @param value Specifies Copy Command related settings when allowCopyCommand is true.
*/
@JvmName("fpuoeptedclrneuu")
public suspend fun copyCommandSettings(`value`: DWCopyCommandSettingsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.copyCommandSettings = mapped
}
/**
* @param argument Specifies Copy Command related settings when allowCopyCommand is true.
*/
@JvmName("fbklammymnyoyxeu")
public suspend fun copyCommandSettings(argument: suspend DWCopyCommandSettingsArgsBuilder.() -> Unit) {
val toBeMapped = DWCopyCommandSettingsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.copyCommandSettings = mapped
}
/**
* @param value If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean).
*/
@JvmName("gcmsmmxtquhrrdpd")
public suspend fun disableMetricsCollection(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.disableMetricsCollection = mapped
}
/**
* @param value The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer).
*/
@JvmName("poyarujxhqjvfnjr")
public suspend fun maxConcurrentConnections(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxConcurrentConnections = mapped
}
/**
* @param value Specifies PolyBase-related settings when allowPolyBase is true.
*/
@JvmName("aioqbwxuhnfeitqp")
public suspend fun polyBaseSettings(`value`: PolybaseSettingsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.polyBaseSettings = mapped
}
/**
* @param argument Specifies PolyBase-related settings when allowPolyBase is true.
*/
@JvmName("fsiiovejiehkuakt")
public suspend fun polyBaseSettings(argument: suspend PolybaseSettingsArgsBuilder.() -> Unit) {
val toBeMapped = PolybaseSettingsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.polyBaseSettings = mapped
}
/**
* @param value SQL pre-copy script. Type: string (or Expression with resultType string).
*/
@JvmName("uowueaatkxvpltvi")
public suspend fun preCopyScript(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.preCopyScript = mapped
}
/**
* @param value Sink retry count. Type: integer (or Expression with resultType integer).
*/
@JvmName("yvtuxluyxcanfwiv")
public suspend fun sinkRetryCount(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sinkRetryCount = mapped
}
/**
* @param value Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
*/
@JvmName("uaofuqqfuvllaaqc")
public suspend fun sinkRetryWait(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sinkRetryWait = mapped
}
/**
* @param value Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean).
*/
@JvmName("gipqycnorfluuidu")
public suspend fun sqlWriterUseTableLock(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sqlWriterUseTableLock = mapped
}
/**
* @param value The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string).
*/
@JvmName("eqqbuqyixghrtsem")
public suspend fun tableOption(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tableOption = mapped
}
/**
* @param value Copy sink type.
* Expected value is 'SqlDWSink'.
*/
@JvmName("ctcbykiveuditvyh")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value SQL DW upsert settings.
*/
@JvmName("rqkmpvipbcpwuxjp")
public suspend fun upsertSettings(`value`: SqlDWUpsertSettingsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.upsertSettings = mapped
}
/**
* @param argument SQL DW upsert settings.
*/
@JvmName("lsidioybcnqbrdmg")
public suspend fun upsertSettings(argument: suspend SqlDWUpsertSettingsArgsBuilder.() -> Unit) {
val toBeMapped = SqlDWUpsertSettingsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.upsertSettings = mapped
}
/**
* @param value Write batch size. Type: integer (or Expression with resultType integer), minimum: 0.
*/
@JvmName("rqmjwnumhcmbciqb")
public suspend fun writeBatchSize(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.writeBatchSize = mapped
}
/**
* @param value Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
*/
@JvmName("syrcpixujpmrgyup")
public suspend fun writeBatchTimeout(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.writeBatchTimeout = mapped
}
/**
* @param value Write behavior when copying data into azure SQL DW. Type: SqlDWWriteBehaviorEnum (or Expression with resultType SqlDWWriteBehaviorEnum)
*/
@JvmName("noryhgvgovbtoxia")
public suspend fun writeBehavior(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.writeBehavior = mapped
}
internal fun build(): SqlDWSinkArgs = SqlDWSinkArgs(
allowCopyCommand = allowCopyCommand,
allowPolyBase = allowPolyBase,
copyCommandSettings = copyCommandSettings,
disableMetricsCollection = disableMetricsCollection,
maxConcurrentConnections = maxConcurrentConnections,
polyBaseSettings = polyBaseSettings,
preCopyScript = preCopyScript,
sinkRetryCount = sinkRetryCount,
sinkRetryWait = sinkRetryWait,
sqlWriterUseTableLock = sqlWriterUseTableLock,
tableOption = tableOption,
type = type ?: throw PulumiNullFieldException("type"),
upsertSettings = upsertSettings,
writeBatchSize = writeBatchSize,
writeBatchTimeout = writeBatchTimeout,
writeBehavior = writeBehavior,
)
}