
com.pulumi.aws.lambda.kotlin.inputs.EventSourceMappingDocumentDbEventSourceConfigArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.lambda.kotlin.inputs
import com.pulumi.aws.lambda.inputs.EventSourceMappingDocumentDbEventSourceConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @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. Valid values: `UpdateLookup`, `Default`.
*/
public data class EventSourceMappingDocumentDbEventSourceConfigArgs(
public val collectionName: Output? = null,
public val databaseName: Output,
public val fullDocument: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.aws.lambda.inputs.EventSourceMappingDocumentDbEventSourceConfigArgs =
com.pulumi.aws.lambda.inputs.EventSourceMappingDocumentDbEventSourceConfigArgs.builder()
.collectionName(collectionName?.applyValue({ args0 -> args0 }))
.databaseName(databaseName.applyValue({ args0 -> args0 }))
.fullDocument(fullDocument?.applyValue({ args0 -> args0 })).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("reeegpfuetqoopnx")
public suspend fun collectionName(`value`: Output) {
this.collectionName = value
}
/**
* @param value The name of the database to consume within the DocumentDB cluster.
*/
@JvmName("duuxlyvtaikrgdhk")
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. Valid values: `UpdateLookup`, `Default`.
*/
@JvmName("nixcjpsepnyrbqvm")
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("mwsfnlwuhiyktief")
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("efujriomypdckkoy")
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. Valid values: `UpdateLookup`, `Default`.
*/
@JvmName("xcphqxwiennhdlow")
public suspend fun fullDocument(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.fullDocument = mapped
}
internal fun build(): EventSourceMappingDocumentDbEventSourceConfigArgs =
EventSourceMappingDocumentDbEventSourceConfigArgs(
collectionName = collectionName,
databaseName = databaseName ?: throw PulumiNullFieldException("databaseName"),
fullDocument = fullDocument,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy