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

com.pulumi.awsnative.customerprofiles.kotlin.IntegrationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.customerprofiles.kotlin

import com.pulumi.awsnative.customerprofiles.IntegrationArgs.builder
import com.pulumi.awsnative.customerprofiles.kotlin.inputs.IntegrationFlowDefinitionArgs
import com.pulumi.awsnative.customerprofiles.kotlin.inputs.IntegrationFlowDefinitionArgsBuilder
import com.pulumi.awsnative.customerprofiles.kotlin.inputs.IntegrationObjectTypeMappingArgs
import com.pulumi.awsnative.customerprofiles.kotlin.inputs.IntegrationObjectTypeMappingArgsBuilder
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

/**
 * The resource schema for creating an Amazon Connect Customer Profiles Integration.
 * @property domainName The unique name of the domain.
 * @property flowDefinition The configuration that controls how Customer Profiles retrieves data from the source.
 * @property objectTypeName The name of the ObjectType defined for the 3rd party data in Profile Service
 * @property objectTypeNames The mapping between 3rd party event types and ObjectType names
 * @property tags The tags (keys and values) associated with the integration
 * @property uri The URI of the S3 bucket or any other type of data source.
 */
public data class IntegrationArgs(
    public val domainName: Output? = null,
    public val flowDefinition: Output? = null,
    public val objectTypeName: Output? = null,
    public val objectTypeNames: Output>? = null,
    public val tags: Output>? = null,
    public val uri: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.customerprofiles.IntegrationArgs =
        com.pulumi.awsnative.customerprofiles.IntegrationArgs.builder()
            .domainName(domainName?.applyValue({ args0 -> args0 }))
            .flowDefinition(flowDefinition?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .objectTypeName(objectTypeName?.applyValue({ args0 -> args0 }))
            .objectTypeNames(
                objectTypeNames?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .uri(uri?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [IntegrationArgs].
 */
@PulumiTagMarker
public class IntegrationArgsBuilder internal constructor() {
    private var domainName: Output? = null

    private var flowDefinition: Output? = null

    private var objectTypeName: Output? = null

    private var objectTypeNames: Output>? = null

    private var tags: Output>? = null

    private var uri: Output? = null

    /**
     * @param value The unique name of the domain.
     */
    @JvmName("wtjatbyyiuwwkqlo")
    public suspend fun domainName(`value`: Output) {
        this.domainName = value
    }

    /**
     * @param value The configuration that controls how Customer Profiles retrieves data from the source.
     */
    @JvmName("lxxffnyxabacmpir")
    public suspend fun flowDefinition(`value`: Output) {
        this.flowDefinition = value
    }

    /**
     * @param value The name of the ObjectType defined for the 3rd party data in Profile Service
     */
    @JvmName("rkojeticuonloqoc")
    public suspend fun objectTypeName(`value`: Output) {
        this.objectTypeName = value
    }

    /**
     * @param value The mapping between 3rd party event types and ObjectType names
     */
    @JvmName("beepyreekxqgdpun")
    public suspend fun objectTypeNames(`value`: Output>) {
        this.objectTypeNames = value
    }

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

    /**
     * @param values The mapping between 3rd party event types and ObjectType names
     */
    @JvmName("gnopliaddckewijp")
    public suspend fun objectTypeNames(values: List>) {
        this.objectTypeNames = Output.all(values)
    }

    /**
     * @param value The tags (keys and values) associated with the integration
     */
    @JvmName("neqonmojbbvblisg")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The tags (keys and values) associated with the integration
     */
    @JvmName("ckrjkqojmbddmhdh")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The URI of the S3 bucket or any other type of data source.
     */
    @JvmName("fcgmhphvraixtjnv")
    public suspend fun uri(`value`: Output) {
        this.uri = value
    }

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

    /**
     * @param value The configuration that controls how Customer Profiles retrieves data from the source.
     */
    @JvmName("yyeuganipmowvuli")
    public suspend fun flowDefinition(`value`: IntegrationFlowDefinitionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.flowDefinition = mapped
    }

    /**
     * @param argument The configuration that controls how Customer Profiles retrieves data from the source.
     */
    @JvmName("pkyckniwddukdgmi")
    public suspend fun flowDefinition(argument: suspend IntegrationFlowDefinitionArgsBuilder.() -> Unit) {
        val toBeMapped = IntegrationFlowDefinitionArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.flowDefinition = mapped
    }

    /**
     * @param value The name of the ObjectType defined for the 3rd party data in Profile Service
     */
    @JvmName("ofslxsokpuwydqtj")
    public suspend fun objectTypeName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.objectTypeName = mapped
    }

    /**
     * @param value The mapping between 3rd party event types and ObjectType names
     */
    @JvmName("omtvfepoekkptkuw")
    public suspend fun objectTypeNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.objectTypeNames = mapped
    }

    /**
     * @param argument The mapping between 3rd party event types and ObjectType names
     */
    @JvmName("udnekmyxbxuetyec")
    public suspend fun objectTypeNames(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            IntegrationObjectTypeMappingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.objectTypeNames = mapped
    }

    /**
     * @param argument The mapping between 3rd party event types and ObjectType names
     */
    @JvmName("xitbvfasjxqydcrt")
    public suspend fun objectTypeNames(vararg argument: suspend IntegrationObjectTypeMappingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            IntegrationObjectTypeMappingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.objectTypeNames = mapped
    }

    /**
     * @param argument The mapping between 3rd party event types and ObjectType names
     */
    @JvmName("hnbijtofnuyqavmu")
    public suspend fun objectTypeNames(argument: suspend IntegrationObjectTypeMappingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            IntegrationObjectTypeMappingArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.objectTypeNames = mapped
    }

    /**
     * @param values The mapping between 3rd party event types and ObjectType names
     */
    @JvmName("xbrjrlkfjslxdykw")
    public suspend fun objectTypeNames(vararg values: IntegrationObjectTypeMappingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.objectTypeNames = mapped
    }

    /**
     * @param value The tags (keys and values) associated with the integration
     */
    @JvmName("ixfcfkgcexlblypn")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags (keys and values) associated with the integration
     */
    @JvmName("badbbrcpjdqfjhkn")
    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 (keys and values) associated with the integration
     */
    @JvmName("arjeyxfsfqxajbty")
    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 (keys and values) associated with the integration
     */
    @JvmName("mseecdvsivrijwko")
    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 (keys and values) associated with the integration
     */
    @JvmName("rapbixpcgqnikxoh")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The URI of the S3 bucket or any other type of data source.
     */
    @JvmName("sgaejsrflsioonnp")
    public suspend fun uri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.uri = mapped
    }

    internal fun build(): IntegrationArgs = IntegrationArgs(
        domainName = domainName,
        flowDefinition = flowDefinition,
        objectTypeName = objectTypeName,
        objectTypeNames = objectTypeNames,
        tags = tags,
        uri = uri,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy