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

com.pulumi.awsnative.entityresolution.kotlin.IdNamespaceArgs.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.IdNamespaceArgs.builder
import com.pulumi.awsnative.entityresolution.kotlin.enums.IdNamespaceType
import com.pulumi.awsnative.entityresolution.kotlin.inputs.IdNamespaceIdMappingWorkflowPropertiesArgs
import com.pulumi.awsnative.entityresolution.kotlin.inputs.IdNamespaceIdMappingWorkflowPropertiesArgsBuilder
import com.pulumi.awsnative.entityresolution.kotlin.inputs.IdNamespaceInputSourceArgs
import com.pulumi.awsnative.entityresolution.kotlin.inputs.IdNamespaceInputSourceArgsBuilder
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

/**
 * IdNamespace defined in AWS Entity Resolution service
 * @property description The description of the ID namespace.
 * @property idMappingWorkflowProperties Determines the properties of `IdMappingWorflow` where this `IdNamespace` can be used as a `Source` or a `Target` .
 * @property idNamespaceName The name of the ID namespace.
 * @property inputSourceConfig A list of `InputSource` objects, which have the fields `InputSourceARN` and `SchemaName` .
 * @property roleArn The Amazon Resource Name (ARN) of the IAM role. AWS Entity Resolution assumes this role to access the resources defined in this `IdNamespace` on your behalf as part of the workflow run.
 * @property tags The tags used to organize, track, or control access for this resource.
 * @property type The type of ID namespace. There are two types: `SOURCE` and `TARGET` .
 * The `SOURCE` contains configurations for `sourceId` data that will be processed in an ID mapping workflow.
 * The `TARGET` contains a configuration of `targetId` to which all `sourceIds` will resolve to.
 */
public data class IdNamespaceArgs(
    public val description: Output? = null,
    public val idMappingWorkflowProperties: Output>? =
        null,
    public val idNamespaceName: Output? = null,
    public val inputSourceConfig: Output>? = null,
    public val roleArn: Output? = null,
    public val tags: Output>? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.entityresolution.IdNamespaceArgs =
        com.pulumi.awsnative.entityresolution.IdNamespaceArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .idMappingWorkflowProperties(
                idMappingWorkflowProperties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .idNamespaceName(idNamespaceName?.applyValue({ args0 -> args0 }))
            .inputSourceConfig(
                inputSourceConfig?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .roleArn(roleArn?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .type(type?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var idMappingWorkflowProperties: Output>? =
        null

    private var idNamespaceName: Output? = null

    private var inputSourceConfig: Output>? = null

    private var roleArn: Output? = null

    private var tags: Output>? = null

    private var type: Output? = null

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

    /**
     * @param value Determines the properties of `IdMappingWorflow` where this `IdNamespace` can be used as a `Source` or a `Target` .
     */
    @JvmName("hpbxxnliissdukji")
    public suspend fun idMappingWorkflowProperties(`value`: Output>) {
        this.idMappingWorkflowProperties = value
    }

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

    /**
     * @param values Determines the properties of `IdMappingWorflow` where this `IdNamespace` can be used as a `Source` or a `Target` .
     */
    @JvmName("oldqsxksktarecpj")
    public suspend fun idMappingWorkflowProperties(values: List>) {
        this.idMappingWorkflowProperties = Output.all(values)
    }

    /**
     * @param value The name of the ID namespace.
     */
    @JvmName("rtajfllkecuxngpc")
    public suspend fun idNamespaceName(`value`: Output) {
        this.idNamespaceName = value
    }

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

    @JvmName("qrlxsysbykgmgacs")
    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("bccrsqkvcfpnigqn")
    public suspend fun inputSourceConfig(values: List>) {
        this.inputSourceConfig = Output.all(values)
    }

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

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

    @JvmName("hbqgqukxvuxvqjyn")
    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("vjuxikkieklsvgvq")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The type of ID namespace. There are two types: `SOURCE` and `TARGET` .
     * The `SOURCE` contains configurations for `sourceId` data that will be processed in an ID mapping workflow.
     * The `TARGET` contains a configuration of `targetId` to which all `sourceIds` will resolve to.
     */
    @JvmName("jagwcwkewbnaixkm")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

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

    /**
     * @param value Determines the properties of `IdMappingWorflow` where this `IdNamespace` can be used as a `Source` or a `Target` .
     */
    @JvmName("padenpflokkgjxnx")
    public suspend fun idMappingWorkflowProperties(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.idMappingWorkflowProperties = mapped
    }

    /**
     * @param argument Determines the properties of `IdMappingWorflow` where this `IdNamespace` can be used as a `Source` or a `Target` .
     */
    @JvmName("vylpupuajivxymdc")
    public suspend fun idMappingWorkflowProperties(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            IdNamespaceIdMappingWorkflowPropertiesArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.idMappingWorkflowProperties = mapped
    }

    /**
     * @param argument Determines the properties of `IdMappingWorflow` where this `IdNamespace` can be used as a `Source` or a `Target` .
     */
    @JvmName("rhwwvhhuhpsvksao")
    public suspend fun idMappingWorkflowProperties(vararg argument: suspend IdNamespaceIdMappingWorkflowPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            IdNamespaceIdMappingWorkflowPropertiesArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.idMappingWorkflowProperties = mapped
    }

    /**
     * @param argument Determines the properties of `IdMappingWorflow` where this `IdNamespace` can be used as a `Source` or a `Target` .
     */
    @JvmName("fucnxxkogrjcrwtm")
    public suspend fun idMappingWorkflowProperties(argument: suspend IdNamespaceIdMappingWorkflowPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            IdNamespaceIdMappingWorkflowPropertiesArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.idMappingWorkflowProperties = mapped
    }

    /**
     * @param values Determines the properties of `IdMappingWorflow` where this `IdNamespace` can be used as a `Source` or a `Target` .
     */
    @JvmName("demfrcmbhetmfshq")
    public suspend fun idMappingWorkflowProperties(vararg values: IdNamespaceIdMappingWorkflowPropertiesArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.idMappingWorkflowProperties = mapped
    }

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

    /**
     * @param value A list of `InputSource` objects, which have the fields `InputSourceARN` and `SchemaName` .
     */
    @JvmName("bterajqcghetitpq")
    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("mofilcvusacckppn")
    public suspend fun inputSourceConfig(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            IdNamespaceInputSourceArgsBuilder().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("asomsocloqqchpql")
    public suspend fun inputSourceConfig(vararg argument: suspend IdNamespaceInputSourceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            IdNamespaceInputSourceArgsBuilder().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("xxoaftognlmvbmul")
    public suspend fun inputSourceConfig(argument: suspend IdNamespaceInputSourceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(IdNamespaceInputSourceArgsBuilder().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("qxljaaophoatrkay")
    public suspend fun inputSourceConfig(vararg values: IdNamespaceInputSourceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.inputSourceConfig = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the IAM role. AWS Entity Resolution assumes this role to access the resources defined in this `IdNamespace` on your behalf as part of the workflow run.
     */
    @JvmName("hsbylmigjnowoitm")
    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("vdjbkghfqwdmvqci")
    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("ahdfkdowdejqcwef")
    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("ltxfrnjxcqhkekee")
    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("donrnryjhwlavyxg")
    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("gpwhuynfbpbaaaqb")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The type of ID namespace. There are two types: `SOURCE` and `TARGET` .
     * The `SOURCE` contains configurations for `sourceId` data that will be processed in an ID mapping workflow.
     * The `TARGET` contains a configuration of `targetId` to which all `sourceIds` will resolve to.
     */
    @JvmName("dmdlxioaywxamsru")
    public suspend fun type(`value`: IdNamespaceType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): IdNamespaceArgs = IdNamespaceArgs(
        description = description,
        idMappingWorkflowProperties = idMappingWorkflowProperties,
        idNamespaceName = idNamespaceName,
        inputSourceConfig = inputSourceConfig,
        roleArn = roleArn,
        tags = tags,
        type = type,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy