
com.pulumi.awsnative.appsync.kotlin.inputs.ResolverSyncConfigArgs.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.appsync.kotlin.inputs
import com.pulumi.awsnative.appsync.inputs.ResolverSyncConfigArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Describes a Sync configuration for a resolver.
* Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked.
* @property conflictDetection The Conflict Detection strategy to use.
* + *VERSION*: Detect conflicts based on object versions for this resolver.
* + *NONE*: Do not detect conflicts when invoking this resolver.
* @property conflictHandler The Conflict Resolution strategy to perform in the event of a conflict.
* + *OPTIMISTIC_CONCURRENCY*: Resolve conflicts by rejecting mutations when versions don't match the latest version at the server.
* + *AUTOMERGE*: Resolve conflicts with the Automerge conflict resolution strategy.
* + *LAMBDA*: Resolve conflicts with an LAMlong function supplied in the ``LambdaConflictHandlerConfig``.
* @property lambdaConflictHandlerConfig The ``LambdaConflictHandlerConfig`` when configuring ``LAMBDA`` as the Conflict Handler.
*/
public data class ResolverSyncConfigArgs(
public val conflictDetection: Output,
public val conflictHandler: Output? = null,
public val lambdaConflictHandlerConfig: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.appsync.inputs.ResolverSyncConfigArgs =
com.pulumi.awsnative.appsync.inputs.ResolverSyncConfigArgs.builder()
.conflictDetection(conflictDetection.applyValue({ args0 -> args0 }))
.conflictHandler(conflictHandler?.applyValue({ args0 -> args0 }))
.lambdaConflictHandlerConfig(
lambdaConflictHandlerConfig?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [ResolverSyncConfigArgs].
*/
@PulumiTagMarker
public class ResolverSyncConfigArgsBuilder internal constructor() {
private var conflictDetection: Output? = null
private var conflictHandler: Output? = null
private var lambdaConflictHandlerConfig: Output? = null
/**
* @param value The Conflict Detection strategy to use.
* + *VERSION*: Detect conflicts based on object versions for this resolver.
* + *NONE*: Do not detect conflicts when invoking this resolver.
*/
@JvmName("lklimtrlgsvoilyc")
public suspend fun conflictDetection(`value`: Output) {
this.conflictDetection = value
}
/**
* @param value The Conflict Resolution strategy to perform in the event of a conflict.
* + *OPTIMISTIC_CONCURRENCY*: Resolve conflicts by rejecting mutations when versions don't match the latest version at the server.
* + *AUTOMERGE*: Resolve conflicts with the Automerge conflict resolution strategy.
* + *LAMBDA*: Resolve conflicts with an LAMlong function supplied in the ``LambdaConflictHandlerConfig``.
*/
@JvmName("skebcmwubytlluvr")
public suspend fun conflictHandler(`value`: Output) {
this.conflictHandler = value
}
/**
* @param value The ``LambdaConflictHandlerConfig`` when configuring ``LAMBDA`` as the Conflict Handler.
*/
@JvmName("sruqfymqakqyxbfg")
public suspend fun lambdaConflictHandlerConfig(`value`: Output) {
this.lambdaConflictHandlerConfig = value
}
/**
* @param value The Conflict Detection strategy to use.
* + *VERSION*: Detect conflicts based on object versions for this resolver.
* + *NONE*: Do not detect conflicts when invoking this resolver.
*/
@JvmName("vmmwmwkixlhxrfwu")
public suspend fun conflictDetection(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.conflictDetection = mapped
}
/**
* @param value The Conflict Resolution strategy to perform in the event of a conflict.
* + *OPTIMISTIC_CONCURRENCY*: Resolve conflicts by rejecting mutations when versions don't match the latest version at the server.
* + *AUTOMERGE*: Resolve conflicts with the Automerge conflict resolution strategy.
* + *LAMBDA*: Resolve conflicts with an LAMlong function supplied in the ``LambdaConflictHandlerConfig``.
*/
@JvmName("bxdgmjvlcuafmwpv")
public suspend fun conflictHandler(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.conflictHandler = mapped
}
/**
* @param value The ``LambdaConflictHandlerConfig`` when configuring ``LAMBDA`` as the Conflict Handler.
*/
@JvmName("ynlbuilamxcsriud")
public suspend fun lambdaConflictHandlerConfig(`value`: ResolverLambdaConflictHandlerConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.lambdaConflictHandlerConfig = mapped
}
/**
* @param argument The ``LambdaConflictHandlerConfig`` when configuring ``LAMBDA`` as the Conflict Handler.
*/
@JvmName("pccuukqpyoxmsdht")
public suspend fun lambdaConflictHandlerConfig(argument: suspend ResolverLambdaConflictHandlerConfigArgsBuilder.() -> Unit) {
val toBeMapped = ResolverLambdaConflictHandlerConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.lambdaConflictHandlerConfig = mapped
}
internal fun build(): ResolverSyncConfigArgs = ResolverSyncConfigArgs(
conflictDetection = conflictDetection ?: throw PulumiNullFieldException("conflictDetection"),
conflictHandler = conflictHandler,
lambdaConflictHandlerConfig = lambdaConflictHandlerConfig,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy