![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.datafactory.kotlin.inputs.AzureSqlSinkArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.datafactory.kotlin.inputs
import com.pulumi.azurenative.datafactory.inputs.AzureSqlSinkArgs.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 Azure SQL sink.
* @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 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 sqlWriterStoredProcedureName SQL writer stored procedure name. Type: string (or Expression with resultType string).
* @property sqlWriterTableType SQL writer table type. Type: string (or Expression with resultType string).
* @property sqlWriterUseTableLock Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean).
* @property storedProcedureParameters SQL stored procedure parameters.
* @property storedProcedureTableTypeParameterName The stored procedure parameter name of the table type. Type: string (or Expression with resultType string).
* @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 'AzureSqlSink'.
* @property upsertSettings SQL 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. Type: SqlWriteBehaviorEnum (or Expression with resultType SqlWriteBehaviorEnum)
*/
public data class AzureSqlSinkArgs(
public val disableMetricsCollection: Output? = null,
public val maxConcurrentConnections: Output? = null,
public val preCopyScript: Output? = null,
public val sinkRetryCount: Output? = null,
public val sinkRetryWait: Output? = null,
public val sqlWriterStoredProcedureName: Output? = null,
public val sqlWriterTableType: Output? = null,
public val sqlWriterUseTableLock: Output? = null,
public val storedProcedureParameters: Output? = null,
public val storedProcedureTableTypeParameterName: 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.AzureSqlSinkArgs =
com.pulumi.azurenative.datafactory.inputs.AzureSqlSinkArgs.builder()
.disableMetricsCollection(disableMetricsCollection?.applyValue({ args0 -> args0 }))
.maxConcurrentConnections(maxConcurrentConnections?.applyValue({ args0 -> args0 }))
.preCopyScript(preCopyScript?.applyValue({ args0 -> args0 }))
.sinkRetryCount(sinkRetryCount?.applyValue({ args0 -> args0 }))
.sinkRetryWait(sinkRetryWait?.applyValue({ args0 -> args0 }))
.sqlWriterStoredProcedureName(sqlWriterStoredProcedureName?.applyValue({ args0 -> args0 }))
.sqlWriterTableType(sqlWriterTableType?.applyValue({ args0 -> args0 }))
.sqlWriterUseTableLock(sqlWriterUseTableLock?.applyValue({ args0 -> args0 }))
.storedProcedureParameters(storedProcedureParameters?.applyValue({ args0 -> args0 }))
.storedProcedureTableTypeParameterName(
storedProcedureTableTypeParameterName?.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 [AzureSqlSinkArgs].
*/
@PulumiTagMarker
public class AzureSqlSinkArgsBuilder internal constructor() {
private var disableMetricsCollection: Output? = null
private var maxConcurrentConnections: Output? = null
private var preCopyScript: Output? = null
private var sinkRetryCount: Output? = null
private var sinkRetryWait: Output? = null
private var sqlWriterStoredProcedureName: Output? = null
private var sqlWriterTableType: Output? = null
private var sqlWriterUseTableLock: Output? = null
private var storedProcedureParameters: Output? = null
private var storedProcedureTableTypeParameterName: 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 If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean).
*/
@JvmName("aujspcedfytijjxh")
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("tjdmcennxoeucatw")
public suspend fun maxConcurrentConnections(`value`: Output) {
this.maxConcurrentConnections = value
}
/**
* @param value SQL pre-copy script. Type: string (or Expression with resultType string).
*/
@JvmName("wrmscqvvdytuujpi")
public suspend fun preCopyScript(`value`: Output) {
this.preCopyScript = value
}
/**
* @param value Sink retry count. Type: integer (or Expression with resultType integer).
*/
@JvmName("hksjynrwgpumphry")
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("nbopmwvdseppqvtm")
public suspend fun sinkRetryWait(`value`: Output) {
this.sinkRetryWait = value
}
/**
* @param value SQL writer stored procedure name. Type: string (or Expression with resultType string).
*/
@JvmName("nurmeowocxkokkal")
public suspend fun sqlWriterStoredProcedureName(`value`: Output) {
this.sqlWriterStoredProcedureName = value
}
/**
* @param value SQL writer table type. Type: string (or Expression with resultType string).
*/
@JvmName("feyctdnneclqjsuw")
public suspend fun sqlWriterTableType(`value`: Output) {
this.sqlWriterTableType = value
}
/**
* @param value Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean).
*/
@JvmName("dpdmofwtrrqlnuug")
public suspend fun sqlWriterUseTableLock(`value`: Output) {
this.sqlWriterUseTableLock = value
}
/**
* @param value SQL stored procedure parameters.
*/
@JvmName("olswyeormwahepfp")
public suspend fun storedProcedureParameters(`value`: Output) {
this.storedProcedureParameters = value
}
/**
* @param value The stored procedure parameter name of the table type. Type: string (or Expression with resultType string).
*/
@JvmName("uqtfyfjmpgwudney")
public suspend fun storedProcedureTableTypeParameterName(`value`: Output) {
this.storedProcedureTableTypeParameterName = 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("vpppfppjnsrctitp")
public suspend fun tableOption(`value`: Output) {
this.tableOption = value
}
/**
* @param value Copy sink type.
* Expected value is 'AzureSqlSink'.
*/
@JvmName("qsooqoxiqsyppolv")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value SQL upsert settings.
*/
@JvmName("usqreivipmqoadxw")
public suspend fun upsertSettings(`value`: Output) {
this.upsertSettings = value
}
/**
* @param value Write batch size. Type: integer (or Expression with resultType integer), minimum: 0.
*/
@JvmName("hleswljdgywfirgx")
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("lfcwcntuxphqgwgf")
public suspend fun writeBatchTimeout(`value`: Output) {
this.writeBatchTimeout = value
}
/**
* @param value Write behavior when copying data into Azure SQL. Type: SqlWriteBehaviorEnum (or Expression with resultType SqlWriteBehaviorEnum)
*/
@JvmName("fkjtxufrobfehbqk")
public suspend fun writeBehavior(`value`: Output) {
this.writeBehavior = value
}
/**
* @param value If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean).
*/
@JvmName("ywgrecrwwsuhqgji")
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("fkstgpxotvsaxwun")
public suspend fun maxConcurrentConnections(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxConcurrentConnections = mapped
}
/**
* @param value SQL pre-copy script. Type: string (or Expression with resultType string).
*/
@JvmName("eyyidttvehfxvbgi")
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("xeocgiugagrlyrls")
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("yhktykbylrwdlyit")
public suspend fun sinkRetryWait(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sinkRetryWait = mapped
}
/**
* @param value SQL writer stored procedure name. Type: string (or Expression with resultType string).
*/
@JvmName("slhxabjgixucwlkr")
public suspend fun sqlWriterStoredProcedureName(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sqlWriterStoredProcedureName = mapped
}
/**
* @param value SQL writer table type. Type: string (or Expression with resultType string).
*/
@JvmName("coxhcveleqoaoonl")
public suspend fun sqlWriterTableType(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sqlWriterTableType = mapped
}
/**
* @param value Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean).
*/
@JvmName("vyfgqgnpijsarlmu")
public suspend fun sqlWriterUseTableLock(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sqlWriterUseTableLock = mapped
}
/**
* @param value SQL stored procedure parameters.
*/
@JvmName("ftyskocgdgokilnc")
public suspend fun storedProcedureParameters(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.storedProcedureParameters = mapped
}
/**
* @param value The stored procedure parameter name of the table type. Type: string (or Expression with resultType string).
*/
@JvmName("mllvvgajhwrbusdk")
public suspend fun storedProcedureTableTypeParameterName(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.storedProcedureTableTypeParameterName = 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("lwdqbqhplvyveorx")
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 'AzureSqlSink'.
*/
@JvmName("hlnwutmisbtwjxsu")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value SQL upsert settings.
*/
@JvmName("dlmtebalifccsggc")
public suspend fun upsertSettings(`value`: SqlUpsertSettingsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.upsertSettings = mapped
}
/**
* @param argument SQL upsert settings.
*/
@JvmName("qsnoedvodsotxyot")
public suspend fun upsertSettings(argument: suspend SqlUpsertSettingsArgsBuilder.() -> Unit) {
val toBeMapped = SqlUpsertSettingsArgsBuilder().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("ohcpxbqrhqutdxxk")
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("icsiyjncjqbbldcy")
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. Type: SqlWriteBehaviorEnum (or Expression with resultType SqlWriteBehaviorEnum)
*/
@JvmName("wjxaxmibdhaoftbu")
public suspend fun writeBehavior(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.writeBehavior = mapped
}
internal fun build(): AzureSqlSinkArgs = AzureSqlSinkArgs(
disableMetricsCollection = disableMetricsCollection,
maxConcurrentConnections = maxConcurrentConnections,
preCopyScript = preCopyScript,
sinkRetryCount = sinkRetryCount,
sinkRetryWait = sinkRetryWait,
sqlWriterStoredProcedureName = sqlWriterStoredProcedureName,
sqlWriterTableType = sqlWriterTableType,
sqlWriterUseTableLock = sqlWriterUseTableLock,
storedProcedureParameters = storedProcedureParameters,
storedProcedureTableTypeParameterName = storedProcedureTableTypeParameterName,
tableOption = tableOption,
type = type ?: throw PulumiNullFieldException("type"),
upsertSettings = upsertSettings,
writeBatchSize = writeBatchSize,
writeBatchTimeout = writeBatchTimeout,
writeBehavior = writeBehavior,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy