All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.pipes.kotlin.outputs.PipeSourceDynamoDbStreamParameters.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.pipes.kotlin.outputs

import com.pulumi.awsnative.pipes.kotlin.enums.PipeDynamoDbStreamStartPosition
import com.pulumi.awsnative.pipes.kotlin.enums.PipeOnPartialBatchItemFailureStreams
import kotlin.Int
import kotlin.Suppress

/**
 *
 * @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 PipeSourceDynamoDbStreamParameters(
    public val batchSize: Int? = null,
    public val deadLetterConfig: PipeDeadLetterConfig? = null,
    public val maximumBatchingWindowInSeconds: Int? = null,
    public val maximumRecordAgeInSeconds: Int? = null,
    public val maximumRetryAttempts: Int? = null,
    public val onPartialBatchItemFailure: PipeOnPartialBatchItemFailureStreams? = null,
    public val parallelizationFactor: Int? = null,
    public val startingPosition: PipeDynamoDbStreamStartPosition,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.pipes.outputs.PipeSourceDynamoDbStreamParameters): PipeSourceDynamoDbStreamParameters = PipeSourceDynamoDbStreamParameters(
            batchSize = javaType.batchSize().map({ args0 -> args0 }).orElse(null),
            deadLetterConfig = javaType.deadLetterConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.pipes.kotlin.outputs.PipeDeadLetterConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            maximumBatchingWindowInSeconds = javaType.maximumBatchingWindowInSeconds().map({ args0 ->
                args0
            }).orElse(null),
            maximumRecordAgeInSeconds = javaType.maximumRecordAgeInSeconds().map({ args0 ->
                args0
            }).orElse(null),
            maximumRetryAttempts = javaType.maximumRetryAttempts().map({ args0 -> args0 }).orElse(null),
            onPartialBatchItemFailure = javaType.onPartialBatchItemFailure().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.pipes.kotlin.enums.PipeOnPartialBatchItemFailureStreams.Companion.toKotlin(args0)
                })
            }).orElse(null),
            parallelizationFactor = javaType.parallelizationFactor().map({ args0 -> args0 }).orElse(null),
            startingPosition = javaType.startingPosition().let({ args0 ->
                com.pulumi.awsnative.pipes.kotlin.enums.PipeDynamoDbStreamStartPosition.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy