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

com.pulumi.awsnative.entityresolution.kotlin.MatchingWorkflowArgs.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: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.entityresolution.kotlin

import com.pulumi.awsnative.entityresolution.MatchingWorkflowArgs.builder
import com.pulumi.awsnative.entityresolution.kotlin.inputs.MatchingWorkflowInputSourceArgs
import com.pulumi.awsnative.entityresolution.kotlin.inputs.MatchingWorkflowInputSourceArgsBuilder
import com.pulumi.awsnative.entityresolution.kotlin.inputs.MatchingWorkflowOutputSourceArgs
import com.pulumi.awsnative.entityresolution.kotlin.inputs.MatchingWorkflowOutputSourceArgsBuilder
import com.pulumi.awsnative.entityresolution.kotlin.inputs.MatchingWorkflowResolutionTechniquesArgs
import com.pulumi.awsnative.entityresolution.kotlin.inputs.MatchingWorkflowResolutionTechniquesArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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.collections.List
import kotlin.jvm.JvmName

/**
 * MatchingWorkflow defined in AWS Entity Resolution service
 * @property description The description of the MatchingWorkflow
 * @property inputSourceConfig A list of `InputSource` objects, which have the fields `InputSourceARN` and `SchemaName` .
 * @property outputSourceConfig A list of `OutputSource` objects, each of which contains fields `OutputS3Path` , `ApplyNormalization` , and `Output` .
 * @property resolutionTechniques An object which defines the `resolutionType` and the `ruleBasedProperties` .
 * @property roleArn The Amazon Resource Name (ARN) of the IAM role. AWS Entity Resolution assumes this role to create resources on your behalf as part of workflow execution.
 * @property tags The tags used to organize, track, or control access for this resource.
 * @property workflowName The name of the MatchingWorkflow
 */
public data class MatchingWorkflowArgs(
    public val description: Output? = null,
    public val inputSourceConfig: Output>? = null,
    public val outputSourceConfig: Output>? = null,
    public val resolutionTechniques: Output? = null,
    public val roleArn: Output? = null,
    public val tags: Output>? = null,
    public val workflowName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.entityresolution.MatchingWorkflowArgs =
        com.pulumi.awsnative.entityresolution.MatchingWorkflowArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .inputSourceConfig(
                inputSourceConfig?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .outputSourceConfig(
                outputSourceConfig?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .resolutionTechniques(
                resolutionTechniques?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .roleArn(roleArn?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .workflowName(workflowName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [MatchingWorkflowArgs].
 */
@PulumiTagMarker
public class MatchingWorkflowArgsBuilder internal constructor() {
    private var description: Output? = null

    private var inputSourceConfig: Output>? = null

    private var outputSourceConfig: Output>? = null

    private var resolutionTechniques: Output? = null

    private var roleArn: Output? = null

    private var tags: Output>? = null

    private var workflowName: Output? = null

    /**
     * @param value The description of the MatchingWorkflow
     */
    @JvmName("elgalgnlokhfaymp")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value A list of `InputSource` objects, which have the fields `InputSourceARN` and `SchemaName` .
     */
    @JvmName("gkuqbnymgsdmqyry")
    public suspend fun inputSourceConfig(`value`: Output>) {
        this.inputSourceConfig = value
    }

    @JvmName("jmaognwobhjfamcb")
    public suspend fun inputSourceConfig(vararg values: Output) {
        this.inputSourceConfig = Output.all(values.asList())
    }

    /**
     * @param values A list of `InputSource` objects, which have the fields `InputSourceARN` and `SchemaName` .
     */
    @JvmName("ruciyxaagavddtqg")
    public suspend fun inputSourceConfig(values: List>) {
        this.inputSourceConfig = Output.all(values)
    }

    /**
     * @param value A list of `OutputSource` objects, each of which contains fields `OutputS3Path` , `ApplyNormalization` , and `Output` .
     */
    @JvmName("ovmsjqqqurtgvjxw")
    public suspend fun outputSourceConfig(`value`: Output>) {
        this.outputSourceConfig = value
    }

    @JvmName("pegawdmekwhnhpof")
    public suspend fun outputSourceConfig(vararg values: Output) {
        this.outputSourceConfig = Output.all(values.asList())
    }

    /**
     * @param values A list of `OutputSource` objects, each of which contains fields `OutputS3Path` , `ApplyNormalization` , and `Output` .
     */
    @JvmName("xlarluiwhwqpukbt")
    public suspend fun outputSourceConfig(values: List>) {
        this.outputSourceConfig = Output.all(values)
    }

    /**
     * @param value An object which defines the `resolutionType` and the `ruleBasedProperties` .
     */
    @JvmName("ivughtxrojeoratu")
    public suspend fun resolutionTechniques(`value`: Output) {
        this.resolutionTechniques = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the IAM role. AWS Entity Resolution assumes this role to create resources on your behalf as part of workflow execution.
     */
    @JvmName("toqagnoanvigmovo")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value The tags used to organize, track, or control access for this resource.
     */
    @JvmName("pyflwusvkykdwwjv")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("vtovrgcbjcfiumcs")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values The tags used to organize, track, or control access for this resource.
     */
    @JvmName("vqejxcihgobcovyj")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The name of the MatchingWorkflow
     */
    @JvmName("awireoffibkyadvk")
    public suspend fun workflowName(`value`: Output) {
        this.workflowName = value
    }

    /**
     * @param value The description of the MatchingWorkflow
     */
    @JvmName("npagnlyypmakfwrf")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value A list of `InputSource` objects, which have the fields `InputSourceARN` and `SchemaName` .
     */
    @JvmName("luqhqfwkrxqlyioj")
    public suspend fun inputSourceConfig(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inputSourceConfig = mapped
    }

    /**
     * @param argument A list of `InputSource` objects, which have the fields `InputSourceARN` and `SchemaName` .
     */
    @JvmName("gjjantclavyqsykw")
    public suspend fun inputSourceConfig(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            MatchingWorkflowInputSourceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.inputSourceConfig = mapped
    }

    /**
     * @param argument A list of `InputSource` objects, which have the fields `InputSourceARN` and `SchemaName` .
     */
    @JvmName("otuogmnmsovddpfh")
    public suspend fun inputSourceConfig(vararg argument: suspend MatchingWorkflowInputSourceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            MatchingWorkflowInputSourceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.inputSourceConfig = mapped
    }

    /**
     * @param argument A list of `InputSource` objects, which have the fields `InputSourceARN` and `SchemaName` .
     */
    @JvmName("caeykvabutarxldq")
    public suspend fun inputSourceConfig(argument: suspend MatchingWorkflowInputSourceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            MatchingWorkflowInputSourceArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.inputSourceConfig = mapped
    }

    /**
     * @param values A list of `InputSource` objects, which have the fields `InputSourceARN` and `SchemaName` .
     */
    @JvmName("cnkbfgsdilijrgsd")
    public suspend fun inputSourceConfig(vararg values: MatchingWorkflowInputSourceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.inputSourceConfig = mapped
    }

    /**
     * @param value A list of `OutputSource` objects, each of which contains fields `OutputS3Path` , `ApplyNormalization` , and `Output` .
     */
    @JvmName("vvledkjuafdelqxj")
    public suspend fun outputSourceConfig(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.outputSourceConfig = mapped
    }

    /**
     * @param argument A list of `OutputSource` objects, each of which contains fields `OutputS3Path` , `ApplyNormalization` , and `Output` .
     */
    @JvmName("pcfnnycsitblqyvo")
    public suspend fun outputSourceConfig(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            MatchingWorkflowOutputSourceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.outputSourceConfig = mapped
    }

    /**
     * @param argument A list of `OutputSource` objects, each of which contains fields `OutputS3Path` , `ApplyNormalization` , and `Output` .
     */
    @JvmName("okxyombxvpiihpff")
    public suspend fun outputSourceConfig(vararg argument: suspend MatchingWorkflowOutputSourceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            MatchingWorkflowOutputSourceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.outputSourceConfig = mapped
    }

    /**
     * @param argument A list of `OutputSource` objects, each of which contains fields `OutputS3Path` , `ApplyNormalization` , and `Output` .
     */
    @JvmName("hpnpykunbcdafkmk")
    public suspend fun outputSourceConfig(argument: suspend MatchingWorkflowOutputSourceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            MatchingWorkflowOutputSourceArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.outputSourceConfig = mapped
    }

    /**
     * @param values A list of `OutputSource` objects, each of which contains fields `OutputS3Path` , `ApplyNormalization` , and `Output` .
     */
    @JvmName("vltyhketxenibiny")
    public suspend fun outputSourceConfig(vararg values: MatchingWorkflowOutputSourceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.outputSourceConfig = mapped
    }

    /**
     * @param value An object which defines the `resolutionType` and the `ruleBasedProperties` .
     */
    @JvmName("waivgvnrtlwxtjef")
    public suspend fun resolutionTechniques(`value`: MatchingWorkflowResolutionTechniquesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resolutionTechniques = mapped
    }

    /**
     * @param argument An object which defines the `resolutionType` and the `ruleBasedProperties` .
     */
    @JvmName("qcbdyswlqdnbmgmu")
    public suspend fun resolutionTechniques(argument: suspend MatchingWorkflowResolutionTechniquesArgsBuilder.() -> Unit) {
        val toBeMapped = MatchingWorkflowResolutionTechniquesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.resolutionTechniques = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the IAM role. AWS Entity Resolution assumes this role to create resources on your behalf as part of workflow execution.
     */
    @JvmName("cammhpnglrdualnn")
    public suspend fun roleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    /**
     * @param value The tags used to organize, track, or control access for this resource.
     */
    @JvmName("xcbogqrtwibqpkmj")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags used to organize, track, or control access for this resource.
     */
    @JvmName("rpcgtkscbdhmswkv")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags used to organize, track, or control access for this resource.
     */
    @JvmName("ffktfdxtmrugdcqj")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags used to organize, track, or control access for this resource.
     */
    @JvmName("csqimgvarhyqjkrr")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The tags used to organize, track, or control access for this resource.
     */
    @JvmName("uxyxanvwryyfrwbf")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The name of the MatchingWorkflow
     */
    @JvmName("xpwrxcimuadljsby")
    public suspend fun workflowName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.workflowName = mapped
    }

    internal fun build(): MatchingWorkflowArgs = MatchingWorkflowArgs(
        description = description,
        inputSourceConfig = inputSourceConfig,
        outputSourceConfig = outputSourceConfig,
        resolutionTechniques = resolutionTechniques,
        roleArn = roleArn,
        tags = tags,
        workflowName = workflowName,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy