![JAR search and dependency download from the Maven repository](/logo.png)
io.cloudshiftdev.awscdk.services.lambda.eventsources.SqsEventSourceProps.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 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.lambda.eventsources.SqsEventSource;
* Function fn;
* Queue queue = Queue.Builder.create(this, "MyQueue")
* .visibilityTimeout(Duration.seconds(30))
* .build();
* fn.addEventSource(SqsEventSource.Builder.create(queue)
* .batchSize(10) // default
* .maxBatchingWindow(Duration.minutes(5))
* .reportBatchItemFailures(true)
* .build());
* ```
*/
public interface SqsEventSourceProps {
/**
* 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 10.
* If `maxBatchingWindow` is configured, this value can go up to 10,000.
*
* Default: 10
*/
public fun batchSize(): Number? = unwrap(this).getBatchSize()
/**
* If the SQS event source mapping should be enabled.
*
* Default: true
*/
public fun enabled(): Boolean? = unwrap(this).getEnabled()
/**
* Add Customer managed KMS key to encrypt Filter Criteria.
*
* Default: - none
*
* [Documentation](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk)
*/
public fun filterEncryption(): IKey? = unwrap(this).getFilterEncryption()?.let(IKey::wrap)
/**
* Add filter criteria option.
*
* Default: - None
*/
public fun filters(): List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy