
com.pulumi.awsnative.lambda.kotlin.inputs.EventSourceMappingDocumentDbEventSourceConfigArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.lambda.kotlin.inputs
import com.pulumi.awsnative.lambda.inputs.EventSourceMappingDocumentDbEventSourceConfigArgs.builder
import com.pulumi.awsnative.lambda.kotlin.enums.EventSourceMappingDocumentDbEventSourceConfigFullDocument
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* 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 EventSourceMappingDocumentDbEventSourceConfigArgs(
public val collectionName: Output? = null,
public val databaseName: Output? = null,
public val fullDocument: Output? =
null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.lambda.inputs.EventSourceMappingDocumentDbEventSourceConfigArgs =
com.pulumi.awsnative.lambda.inputs.EventSourceMappingDocumentDbEventSourceConfigArgs.builder()
.collectionName(collectionName?.applyValue({ args0 -> args0 }))
.databaseName(databaseName?.applyValue({ args0 -> args0 }))
.fullDocument(fullDocument?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [EventSourceMappingDocumentDbEventSourceConfigArgs].
*/
@PulumiTagMarker
public class EventSourceMappingDocumentDbEventSourceConfigArgsBuilder internal constructor() {
private var collectionName: Output? = null
private var databaseName: Output? = null
private var fullDocument: Output? =
null
/**
* @param value The name of the collection to consume within the database. If you do not specify a collection, Lambda consumes all collections.
*/
@JvmName("halmsebbcktooybj")
public suspend fun collectionName(`value`: Output) {
this.collectionName = value
}
/**
* @param value The name of the database to consume within the DocumentDB cluster.
*/
@JvmName("syrpvgowaqbwcjya")
public suspend fun databaseName(`value`: Output) {
this.databaseName = value
}
/**
* @param value 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.
*/
@JvmName("wqkapdhpimpstrxn")
public suspend fun fullDocument(`value`: Output) {
this.fullDocument = value
}
/**
* @param value The name of the collection to consume within the database. If you do not specify a collection, Lambda consumes all collections.
*/
@JvmName("ijrtugbxcpdqiedg")
public suspend fun collectionName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.collectionName = mapped
}
/**
* @param value The name of the database to consume within the DocumentDB cluster.
*/
@JvmName("usobmtwikbjybexa")
public suspend fun databaseName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.databaseName = mapped
}
/**
* @param value 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.
*/
@JvmName("rlidcdclitedvasp")
public suspend fun fullDocument(`value`: EventSourceMappingDocumentDbEventSourceConfigFullDocument?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.fullDocument = mapped
}
internal fun build(): EventSourceMappingDocumentDbEventSourceConfigArgs =
EventSourceMappingDocumentDbEventSourceConfigArgs(
collectionName = collectionName,
databaseName = databaseName,
fullDocument = fullDocument,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy