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

com.pulumi.awsnative.lambda.kotlin.outputs.EventSourceMappingDocumentDbEventSourceConfig.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.lambda.kotlin.outputs

import com.pulumi.awsnative.lambda.kotlin.enums.EventSourceMappingDocumentDbEventSourceConfigFullDocument
import kotlin.String
import kotlin.Suppress

/**
 * Specific configuration settings for a DocumentDB event source.
 * @property collectionName The name of the collection to consume within the database. If you do not specify a collection, Lambda consumes all collections.
 * @property databaseName The name of the database to consume within the DocumentDB cluster.
 * @property fullDocument Determines what DocumentDB sends to your event stream during document update operations. If set to UpdateLookup, DocumentDB sends a delta describing the changes, along with a copy of the entire document. Otherwise, DocumentDB sends only a partial document that contains the changes.
 */
public data class EventSourceMappingDocumentDbEventSourceConfig(
    public val collectionName: String? = null,
    public val databaseName: String? = null,
    public val fullDocument: EventSourceMappingDocumentDbEventSourceConfigFullDocument? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.lambda.outputs.EventSourceMappingDocumentDbEventSourceConfig): EventSourceMappingDocumentDbEventSourceConfig =
            EventSourceMappingDocumentDbEventSourceConfig(
                collectionName = javaType.collectionName().map({ args0 -> args0 }).orElse(null),
                databaseName = javaType.databaseName().map({ args0 -> args0 }).orElse(null),
                fullDocument = javaType.fullDocument().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.lambda.kotlin.enums.EventSourceMappingDocumentDbEventSourceConfigFullDocument.Companion.toKotlin(args0)
                    })
                }).orElse(null),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy