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

com.pulumi.awsnative.appsync.kotlin.outputs.ResolverSyncConfig.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.appsync.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 * 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 ResolverSyncConfig(
    public val conflictDetection: String,
    public val conflictHandler: String? = null,
    public val lambdaConflictHandlerConfig: ResolverLambdaConflictHandlerConfig? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.appsync.outputs.ResolverSyncConfig): ResolverSyncConfig = ResolverSyncConfig(
            conflictDetection = javaType.conflictDetection(),
            conflictHandler = javaType.conflictHandler().map({ args0 -> args0 }).orElse(null),
            lambdaConflictHandlerConfig = javaType.lambdaConflictHandlerConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.appsync.kotlin.outputs.ResolverLambdaConflictHandlerConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy