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

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

@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.
 * @property conflictHandler The Conflict Resolution strategy to perform in the event of a conflict.
 * @property lambdaConflictHandlerConfig The `LambdaConflictHandlerConfig` when configuring `LAMBDA` as the Conflict Handler.
 */
public data class FunctionConfigurationSyncConfig(
    public val conflictDetection: String,
    public val conflictHandler: String? = null,
    public val lambdaConflictHandlerConfig: FunctionConfigurationLambdaConflictHandlerConfig? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.appsync.outputs.FunctionConfigurationSyncConfig): FunctionConfigurationSyncConfig = FunctionConfigurationSyncConfig(
            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.FunctionConfigurationLambdaConflictHandlerConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy