
com.pulumi.awsnative.appflow.kotlin.inputs.FlowSnowflakeDestinationPropertiesArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-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.awsnative.appflow.kotlin.inputs
import com.pulumi.awsnative.appflow.inputs.FlowSnowflakeDestinationPropertiesArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property bucketPrefix The object key for the destination bucket in which Amazon AppFlow places the files.
* @property errorHandlingConfig The settings that determine how Amazon AppFlow handles an error when placing data in the Snowflake destination. For example, this setting would determine if the flow should fail after one insertion error, or continue and attempt to insert every record regardless of the initial failure. `ErrorHandlingConfig` is a part of the destination connector details.
* @property intermediateBucketName The intermediate bucket that Amazon AppFlow uses when moving data into Snowflake.
* @property object The object specified in the Snowflake flow destination.
*/
public data class FlowSnowflakeDestinationPropertiesArgs(
public val bucketPrefix: Output? = null,
public val errorHandlingConfig: Output? = null,
public val intermediateBucketName: Output,
public val `object`: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.appflow.inputs.FlowSnowflakeDestinationPropertiesArgs = com.pulumi.awsnative.appflow.inputs.FlowSnowflakeDestinationPropertiesArgs.builder()
.bucketPrefix(bucketPrefix?.applyValue({ args0 -> args0 }))
.errorHandlingConfig(
errorHandlingConfig?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.intermediateBucketName(intermediateBucketName.applyValue({ args0 -> args0 }))
.`object`(`object`.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [FlowSnowflakeDestinationPropertiesArgs].
*/
@PulumiTagMarker
public class FlowSnowflakeDestinationPropertiesArgsBuilder internal constructor() {
private var bucketPrefix: Output? = null
private var errorHandlingConfig: Output? = null
private var intermediateBucketName: Output? = null
private var `object`: Output? = null
/**
* @param value The object key for the destination bucket in which Amazon AppFlow places the files.
*/
@JvmName("ytkvdrmnpijbemyy")
public suspend fun bucketPrefix(`value`: Output) {
this.bucketPrefix = value
}
/**
* @param value The settings that determine how Amazon AppFlow handles an error when placing data in the Snowflake destination. For example, this setting would determine if the flow should fail after one insertion error, or continue and attempt to insert every record regardless of the initial failure. `ErrorHandlingConfig` is a part of the destination connector details.
*/
@JvmName("hikdensahrtqrjff")
public suspend fun errorHandlingConfig(`value`: Output) {
this.errorHandlingConfig = value
}
/**
* @param value The intermediate bucket that Amazon AppFlow uses when moving data into Snowflake.
*/
@JvmName("fwbvsplnjmyermsf")
public suspend fun intermediateBucketName(`value`: Output) {
this.intermediateBucketName = value
}
/**
* @param value The object specified in the Snowflake flow destination.
*/
@JvmName("gsjlqqrrxhkacivu")
public suspend fun `object`(`value`: Output) {
this.`object` = value
}
/**
* @param value The object key for the destination bucket in which Amazon AppFlow places the files.
*/
@JvmName("peukpuwloyjhfgfa")
public suspend fun bucketPrefix(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.bucketPrefix = mapped
}
/**
* @param value The settings that determine how Amazon AppFlow handles an error when placing data in the Snowflake destination. For example, this setting would determine if the flow should fail after one insertion error, or continue and attempt to insert every record regardless of the initial failure. `ErrorHandlingConfig` is a part of the destination connector details.
*/
@JvmName("xxkrtljjhmmphfuw")
public suspend fun errorHandlingConfig(`value`: FlowErrorHandlingConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.errorHandlingConfig = mapped
}
/**
* @param argument The settings that determine how Amazon AppFlow handles an error when placing data in the Snowflake destination. For example, this setting would determine if the flow should fail after one insertion error, or continue and attempt to insert every record regardless of the initial failure. `ErrorHandlingConfig` is a part of the destination connector details.
*/
@JvmName("hyxuklicbaisotem")
public suspend fun errorHandlingConfig(argument: suspend FlowErrorHandlingConfigArgsBuilder.() -> Unit) {
val toBeMapped = FlowErrorHandlingConfigArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.errorHandlingConfig = mapped
}
/**
* @param value The intermediate bucket that Amazon AppFlow uses when moving data into Snowflake.
*/
@JvmName("cghwupconxeipeia")
public suspend fun intermediateBucketName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.intermediateBucketName = mapped
}
/**
* @param value The object specified in the Snowflake flow destination.
*/
@JvmName("iuxlmeewsvvrhdaq")
public suspend fun `object`(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`object` = mapped
}
internal fun build(): FlowSnowflakeDestinationPropertiesArgs =
FlowSnowflakeDestinationPropertiesArgs(
bucketPrefix = bucketPrefix,
errorHandlingConfig = errorHandlingConfig,
intermediateBucketName = intermediateBucketName ?: throw
PulumiNullFieldException("intermediateBucketName"),
`object` = `object` ?: throw PulumiNullFieldException("object"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy