
com.pulumi.awsnative.pipes.kotlin.inputs.PipeSourceDynamoDbStreamParametersArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.pipes.kotlin.inputs
import com.pulumi.awsnative.pipes.inputs.PipeSourceDynamoDbStreamParametersArgs.builder
import com.pulumi.awsnative.pipes.kotlin.enums.PipeDynamoDbStreamStartPosition
import com.pulumi.awsnative.pipes.kotlin.enums.PipeOnPartialBatchItemFailureStreams
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.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property batchSize The maximum number of records to include in each batch.
* @property deadLetterConfig Define the target queue to send dead-letter queue events to.
* @property maximumBatchingWindowInSeconds The maximum length of a time to wait for events.
* @property maximumRecordAgeInSeconds (Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, EventBridge never discards old records.
* @property maximumRetryAttempts (Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, EventBridge retries failed records until the record expires in the event source.
* @property onPartialBatchItemFailure (Streams only) Define how to handle item process failures. `AUTOMATIC_BISECT` halves each batch and retry each half until all the records are processed or there is one failed message left in the batch.
* @property parallelizationFactor (Streams only) The number of batches to process concurrently from each shard. The default value is 1.
* @property startingPosition (Streams only) The position in a stream from which to start reading.
* *Valid values* : `TRIM_HORIZON | LATEST`
*/
public data class PipeSourceDynamoDbStreamParametersArgs(
public val batchSize: Output? = null,
public val deadLetterConfig: Output? = null,
public val maximumBatchingWindowInSeconds: Output? = null,
public val maximumRecordAgeInSeconds: Output? = null,
public val maximumRetryAttempts: Output? = null,
public val onPartialBatchItemFailure: Output? = null,
public val parallelizationFactor: Output? = null,
public val startingPosition: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.pipes.inputs.PipeSourceDynamoDbStreamParametersArgs =
com.pulumi.awsnative.pipes.inputs.PipeSourceDynamoDbStreamParametersArgs.builder()
.batchSize(batchSize?.applyValue({ args0 -> args0 }))
.deadLetterConfig(deadLetterConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.maximumBatchingWindowInSeconds(maximumBatchingWindowInSeconds?.applyValue({ args0 -> args0 }))
.maximumRecordAgeInSeconds(maximumRecordAgeInSeconds?.applyValue({ args0 -> args0 }))
.maximumRetryAttempts(maximumRetryAttempts?.applyValue({ args0 -> args0 }))
.onPartialBatchItemFailure(
onPartialBatchItemFailure?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.parallelizationFactor(parallelizationFactor?.applyValue({ args0 -> args0 }))
.startingPosition(
startingPosition.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [PipeSourceDynamoDbStreamParametersArgs].
*/
@PulumiTagMarker
public class PipeSourceDynamoDbStreamParametersArgsBuilder internal constructor() {
private var batchSize: Output? = null
private var deadLetterConfig: Output? = null
private var maximumBatchingWindowInSeconds: Output? = null
private var maximumRecordAgeInSeconds: Output? = null
private var maximumRetryAttempts: Output? = null
private var onPartialBatchItemFailure: Output? = null
private var parallelizationFactor: Output? = null
private var startingPosition: Output? = null
/**
* @param value The maximum number of records to include in each batch.
*/
@JvmName("xsmpxobldnmgheun")
public suspend fun batchSize(`value`: Output) {
this.batchSize = value
}
/**
* @param value Define the target queue to send dead-letter queue events to.
*/
@JvmName("hdfdumqnuaxidsak")
public suspend fun deadLetterConfig(`value`: Output) {
this.deadLetterConfig = value
}
/**
* @param value The maximum length of a time to wait for events.
*/
@JvmName("jbvlfxsgckeqbtox")
public suspend fun maximumBatchingWindowInSeconds(`value`: Output) {
this.maximumBatchingWindowInSeconds = value
}
/**
* @param value (Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, EventBridge never discards old records.
*/
@JvmName("gmerbnyomwishljk")
public suspend fun maximumRecordAgeInSeconds(`value`: Output) {
this.maximumRecordAgeInSeconds = value
}
/**
* @param value (Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, EventBridge retries failed records until the record expires in the event source.
*/
@JvmName("udiyahemobhkxwfj")
public suspend fun maximumRetryAttempts(`value`: Output) {
this.maximumRetryAttempts = value
}
/**
* @param value (Streams only) Define how to handle item process failures. `AUTOMATIC_BISECT` halves each batch and retry each half until all the records are processed or there is one failed message left in the batch.
*/
@JvmName("fnjhlqrshcbxpjna")
public suspend fun onPartialBatchItemFailure(`value`: Output) {
this.onPartialBatchItemFailure = value
}
/**
* @param value (Streams only) The number of batches to process concurrently from each shard. The default value is 1.
*/
@JvmName("dskvckkgvdyotmyy")
public suspend fun parallelizationFactor(`value`: Output) {
this.parallelizationFactor = value
}
/**
* @param value (Streams only) The position in a stream from which to start reading.
* *Valid values* : `TRIM_HORIZON | LATEST`
*/
@JvmName("drpdnyveresxdvfw")
public suspend fun startingPosition(`value`: Output) {
this.startingPosition = value
}
/**
* @param value The maximum number of records to include in each batch.
*/
@JvmName("uclnybrjkhvwpcgu")
public suspend fun batchSize(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.batchSize = mapped
}
/**
* @param value Define the target queue to send dead-letter queue events to.
*/
@JvmName("fufxxlhexhwonfmx")
public suspend fun deadLetterConfig(`value`: PipeDeadLetterConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.deadLetterConfig = mapped
}
/**
* @param argument Define the target queue to send dead-letter queue events to.
*/
@JvmName("nadojfqhtkirckcw")
public suspend fun deadLetterConfig(argument: suspend PipeDeadLetterConfigArgsBuilder.() -> Unit) {
val toBeMapped = PipeDeadLetterConfigArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.deadLetterConfig = mapped
}
/**
* @param value The maximum length of a time to wait for events.
*/
@JvmName("kkgjvnroghpgtnlr")
public suspend fun maximumBatchingWindowInSeconds(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maximumBatchingWindowInSeconds = mapped
}
/**
* @param value (Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, EventBridge never discards old records.
*/
@JvmName("beimubponmwuthiw")
public suspend fun maximumRecordAgeInSeconds(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maximumRecordAgeInSeconds = mapped
}
/**
* @param value (Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, EventBridge retries failed records until the record expires in the event source.
*/
@JvmName("brtgueyclhmyjffo")
public suspend fun maximumRetryAttempts(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maximumRetryAttempts = mapped
}
/**
* @param value (Streams only) Define how to handle item process failures. `AUTOMATIC_BISECT` halves each batch and retry each half until all the records are processed or there is one failed message left in the batch.
*/
@JvmName("gfyaqvaamojmqgma")
public suspend fun onPartialBatchItemFailure(`value`: PipeOnPartialBatchItemFailureStreams?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.onPartialBatchItemFailure = mapped
}
/**
* @param value (Streams only) The number of batches to process concurrently from each shard. The default value is 1.
*/
@JvmName("bnrjnwfwcbmnrpae")
public suspend fun parallelizationFactor(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.parallelizationFactor = mapped
}
/**
* @param value (Streams only) The position in a stream from which to start reading.
* *Valid values* : `TRIM_HORIZON | LATEST`
*/
@JvmName("osnfvwgqubbbytcu")
public suspend fun startingPosition(`value`: PipeDynamoDbStreamStartPosition) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.startingPosition = mapped
}
internal fun build(): PipeSourceDynamoDbStreamParametersArgs =
PipeSourceDynamoDbStreamParametersArgs(
batchSize = batchSize,
deadLetterConfig = deadLetterConfig,
maximumBatchingWindowInSeconds = maximumBatchingWindowInSeconds,
maximumRecordAgeInSeconds = maximumRecordAgeInSeconds,
maximumRetryAttempts = maximumRetryAttempts,
onPartialBatchItemFailure = onPartialBatchItemFailure,
parallelizationFactor = parallelizationFactor,
startingPosition = startingPosition ?: throw PulumiNullFieldException("startingPosition"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy