![JAR search and dependency download from the Maven repository](/logo.png)
io.cloudshiftdev.awscdk.services.lambda.eventsources.KinesisEventSourceProps.kt Maven / Gradle / Ivy
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.lambda.eventsources
import io.cloudshiftdev.awscdk.Duration
import io.cloudshiftdev.awscdk.common.CdkDslMarker
import io.cloudshiftdev.awscdk.common.CdkObject
import io.cloudshiftdev.awscdk.common.CdkObjectWrappers
import io.cloudshiftdev.awscdk.services.kms.IKey
import io.cloudshiftdev.awscdk.services.lambda.IEventSourceDlq
import io.cloudshiftdev.awscdk.services.lambda.StartingPosition
import kotlin.Any
import kotlin.Boolean
import kotlin.Number
import kotlin.String
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
/**
* Example:
*
* ```
* import io.cloudshiftdev.awscdk.services.kinesis.*;
* import io.cloudshiftdev.awscdk.services.lambda.eventsources.KinesisEventSource;
* Function myFunction;
* Stream stream = new Stream(this, "MyStream");
* myFunction.addEventSource(KinesisEventSource.Builder.create(stream)
* .batchSize(100) // default
* .startingPosition(StartingPosition.TRIM_HORIZON)
* .build());
* ```
*/
public interface KinesisEventSourceProps : StreamEventSourceProps {
/**
* The time from which to start reading, in Unix time seconds.
*
* Default: - no timestamp
*/
public fun startingPositionTimestamp(): Number? = unwrap(this).getStartingPositionTimestamp()
/**
* A builder for [KinesisEventSourceProps]
*/
@CdkDslMarker
public interface Builder {
/**
* @param batchSize The largest number of records that AWS Lambda will retrieve from your event
* source at the time of invoking your function.
* Your function receives an
* event with all the retrieved records.
*
* Valid Range:
*
* * Minimum value of 1
* * Maximum value of:
*
* * 1000 for `DynamoEventSource`
* * 10000 for `KinesisEventSource`, `ManagedKafkaEventSource` and `SelfManagedKafkaEventSource`
*/
public fun batchSize(batchSize: Number)
/**
* @param bisectBatchOnError If the function returns an error, split the batch in two and retry.
*/
public fun bisectBatchOnError(bisectBatchOnError: Boolean)
/**
* @param enabled If the stream event source mapping should be enabled.
*/
public fun enabled(enabled: Boolean)
/**
* @param filterEncryption Add Customer managed KMS key to encrypt Filter Criteria.
*/
public fun filterEncryption(filterEncryption: IKey)
/**
* @param filters Add filter criteria option.
*/
public fun filters(filters: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy