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

com.pulumi.aws.appsync.kotlin.inputs.FunctionSyncConfigArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.appsync.kotlin.inputs

import com.pulumi.aws.appsync.inputs.FunctionSyncConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property conflictDetection Conflict Detection strategy to use. Valid values are `NONE` and `VERSION`.
 * @property conflictHandler Conflict Resolution strategy to perform in the event of a conflict. Valid values are `NONE`, `OPTIMISTIC_CONCURRENCY`, `AUTOMERGE`, and `LAMBDA`.
 * @property lambdaConflictHandlerConfig Lambda Conflict Handler Config when configuring `LAMBDA` as the Conflict Handler. See `lambda_conflict_handler_config` Block for details.
 */
public data class FunctionSyncConfigArgs(
    public val conflictDetection: Output? = null,
    public val conflictHandler: Output? = null,
    public val lambdaConflictHandlerConfig: Output? =
        null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.appsync.inputs.FunctionSyncConfigArgs =
        com.pulumi.aws.appsync.inputs.FunctionSyncConfigArgs.builder()
            .conflictDetection(conflictDetection?.applyValue({ args0 -> args0 }))
            .conflictHandler(conflictHandler?.applyValue({ args0 -> args0 }))
            .lambdaConflictHandlerConfig(
                lambdaConflictHandlerConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [FunctionSyncConfigArgs].
 */
@PulumiTagMarker
public class FunctionSyncConfigArgsBuilder internal constructor() {
    private var conflictDetection: Output? = null

    private var conflictHandler: Output? = null

    private var lambdaConflictHandlerConfig:
        Output? = null

    /**
     * @param value Conflict Detection strategy to use. Valid values are `NONE` and `VERSION`.
     */
    @JvmName("luitmqhgrgqnrckp")
    public suspend fun conflictDetection(`value`: Output) {
        this.conflictDetection = value
    }

    /**
     * @param value Conflict Resolution strategy to perform in the event of a conflict. Valid values are `NONE`, `OPTIMISTIC_CONCURRENCY`, `AUTOMERGE`, and `LAMBDA`.
     */
    @JvmName("myqmmbdsqeggrods")
    public suspend fun conflictHandler(`value`: Output) {
        this.conflictHandler = value
    }

    /**
     * @param value Lambda Conflict Handler Config when configuring `LAMBDA` as the Conflict Handler. See `lambda_conflict_handler_config` Block for details.
     */
    @JvmName("scvwrxecstjbqqnw")
    public suspend fun lambdaConflictHandlerConfig(`value`: Output) {
        this.lambdaConflictHandlerConfig = value
    }

    /**
     * @param value Conflict Detection strategy to use. Valid values are `NONE` and `VERSION`.
     */
    @JvmName("ooxdeuumasqwccto")
    public suspend fun conflictDetection(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.conflictDetection = mapped
    }

    /**
     * @param value Conflict Resolution strategy to perform in the event of a conflict. Valid values are `NONE`, `OPTIMISTIC_CONCURRENCY`, `AUTOMERGE`, and `LAMBDA`.
     */
    @JvmName("cfrbdfoqnprdiixu")
    public suspend fun conflictHandler(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.conflictHandler = mapped
    }

    /**
     * @param value Lambda Conflict Handler Config when configuring `LAMBDA` as the Conflict Handler. See `lambda_conflict_handler_config` Block for details.
     */
    @JvmName("tucrymmtalxhvslb")
    public suspend fun lambdaConflictHandlerConfig(`value`: FunctionSyncConfigLambdaConflictHandlerConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lambdaConflictHandlerConfig = mapped
    }

    /**
     * @param argument Lambda Conflict Handler Config when configuring `LAMBDA` as the Conflict Handler. See `lambda_conflict_handler_config` Block for details.
     */
    @JvmName("ripoaayckibsotyd")
    public suspend fun lambdaConflictHandlerConfig(argument: suspend FunctionSyncConfigLambdaConflictHandlerConfigArgsBuilder.() -> Unit) {
        val toBeMapped = FunctionSyncConfigLambdaConflictHandlerConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.lambdaConflictHandlerConfig = mapped
    }

    internal fun build(): FunctionSyncConfigArgs = FunctionSyncConfigArgs(
        conflictDetection = conflictDetection,
        conflictHandler = conflictHandler,
        lambdaConflictHandlerConfig = lambdaConflictHandlerConfig,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy