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

com.pulumi.awsnative.entityresolution.kotlin.MatchingWorkflow.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.kotlin.outputs.MatchingWorkflowInputSource
import com.pulumi.awsnative.entityresolution.kotlin.outputs.MatchingWorkflowOutputSource
import com.pulumi.awsnative.entityresolution.kotlin.outputs.MatchingWorkflowResolutionTechniques
import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import com.pulumi.awsnative.entityresolution.kotlin.outputs.MatchingWorkflowInputSource.Companion.toKotlin as matchingWorkflowInputSourceToKotlin
import com.pulumi.awsnative.entityresolution.kotlin.outputs.MatchingWorkflowOutputSource.Companion.toKotlin as matchingWorkflowOutputSourceToKotlin
import com.pulumi.awsnative.entityresolution.kotlin.outputs.MatchingWorkflowResolutionTechniques.Companion.toKotlin as matchingWorkflowResolutionTechniquesToKotlin
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin

/**
 * Builder for [MatchingWorkflow].
 */
@PulumiTagMarker
public class MatchingWorkflowResourceBuilder internal constructor() {
    public var name: String? = null

    public var args: MatchingWorkflowArgs = MatchingWorkflowArgs()

    public var opts: CustomResourceOptions = CustomResourceOptions()

    /**
     * @param name The _unique_ name of the resulting resource.
     */
    public fun name(`value`: String) {
        this.name = value
    }

    /**
     * @param block The arguments to use to populate this resource's properties.
     */
    public suspend fun args(block: suspend MatchingWorkflowArgsBuilder.() -> Unit) {
        val builder = MatchingWorkflowArgsBuilder()
        block(builder)
        this.args = builder.build()
    }

    /**
     * @param block A bag of options that control this resource's behavior.
     */
    public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
        this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
    }

    internal fun build(): MatchingWorkflow {
        val builtJavaResource =
            com.pulumi.awsnative.entityresolution.MatchingWorkflow(
                this.name,
                this.args.toJava(),
                this.opts.toJava(),
            )
        return MatchingWorkflow(builtJavaResource)
    }
}

/**
 * MatchingWorkflow defined in AWS Entity Resolution service
 */
public class MatchingWorkflow internal constructor(
    override val javaResource: com.pulumi.awsnative.entityresolution.MatchingWorkflow,
) : KotlinCustomResource(javaResource, MatchingWorkflowMapper) {
    public val createdAt: Output
        get() = javaResource.createdAt().applyValue({ args0 -> args0 })

    /**
     * The description of the MatchingWorkflow
     */
    public val description: Output?
        get() = javaResource.description().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * A list of `InputSource` objects, which have the fields `InputSourceARN` and `SchemaName` .
     */
    public val inputSourceConfig: Output>
        get() = javaResource.inputSourceConfig().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> matchingWorkflowInputSourceToKotlin(args0) })
            })
        })

    /**
     * A list of `OutputSource` objects, each of which contains fields `OutputS3Path` , `ApplyNormalization` , and `Output` .
     */
    public val outputSourceConfig: Output>
        get() = javaResource.outputSourceConfig().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> matchingWorkflowOutputSourceToKotlin(args0) })
            })
        })

    /**
     * An object which defines the `resolutionType` and the `ruleBasedProperties` .
     */
    public val resolutionTechniques: Output
        get() = javaResource.resolutionTechniques().applyValue({ args0 ->
            args0.let({ args0 ->
                matchingWorkflowResolutionTechniquesToKotlin(args0)
            })
        })

    /**
     * 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.
     */
    public val roleArn: Output
        get() = javaResource.roleArn().applyValue({ args0 -> args0 })

    /**
     * The tags used to organize, track, or control access for this resource.
     */
    public val tags: Output>?
        get() = javaResource.tags().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 -> tagToKotlin(args0) })
                })
            }).orElse(null)
        })

    public val updatedAt: Output
        get() = javaResource.updatedAt().applyValue({ args0 -> args0 })

    public val workflowArn: Output
        get() = javaResource.workflowArn().applyValue({ args0 -> args0 })

    /**
     * The name of the MatchingWorkflow
     */
    public val workflowName: Output
        get() = javaResource.workflowName().applyValue({ args0 -> args0 })
}

public object MatchingWorkflowMapper : ResourceMapper {
    override fun supportsMappingOfType(javaResource: Resource): Boolean =
        com.pulumi.awsnative.entityresolution.MatchingWorkflow::class == javaResource::class

    override fun map(javaResource: Resource): MatchingWorkflow = MatchingWorkflow(
        javaResource as
            com.pulumi.awsnative.entityresolution.MatchingWorkflow,
    )
}

/**
 * @see [MatchingWorkflow].
 * @param name The _unique_ name of the resulting resource.
 * @param block Builder for [MatchingWorkflow].
 */
public suspend fun matchingWorkflow(
    name: String,
    block: suspend MatchingWorkflowResourceBuilder.() -> Unit,
): MatchingWorkflow {
    val builder = MatchingWorkflowResourceBuilder()
    builder.name(name)
    block(builder)
    return builder.build()
}

/**
 * @see [MatchingWorkflow].
 * @param name The _unique_ name of the resulting resource.
 */
public fun matchingWorkflow(name: String): MatchingWorkflow {
    val builder = MatchingWorkflowResourceBuilder()
    builder.name(name)
    return builder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy