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

com.pulumi.awsnative.kendra.kotlin.inputs.DataSourceWebCrawlerAuthenticationConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.kendra.kotlin.inputs

import com.pulumi.awsnative.kendra.inputs.DataSourceWebCrawlerAuthenticationConfigurationArgs.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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property basicAuthentication The list of configuration information that's required to connect to and crawl a website host using basic authentication credentials.
 * The list includes the name and port number of the website host.
 */
public data class DataSourceWebCrawlerAuthenticationConfigurationArgs(
    public val basicAuthentication: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.kendra.inputs.DataSourceWebCrawlerAuthenticationConfigurationArgs =
        com.pulumi.awsnative.kendra.inputs.DataSourceWebCrawlerAuthenticationConfigurationArgs.builder()
            .basicAuthentication(
                basicAuthentication?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [DataSourceWebCrawlerAuthenticationConfigurationArgs].
 */
@PulumiTagMarker
public class DataSourceWebCrawlerAuthenticationConfigurationArgsBuilder internal constructor() {
    private var basicAuthentication: Output>? = null

    /**
     * @param value The list of configuration information that's required to connect to and crawl a website host using basic authentication credentials.
     * The list includes the name and port number of the website host.
     */
    @JvmName("wtdokfgtsbhmmtun")
    public suspend fun basicAuthentication(`value`: Output>) {
        this.basicAuthentication = value
    }

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

    /**
     * @param values The list of configuration information that's required to connect to and crawl a website host using basic authentication credentials.
     * The list includes the name and port number of the website host.
     */
    @JvmName("ehqlntryjkyxrocl")
    public suspend fun basicAuthentication(values: List>) {
        this.basicAuthentication = Output.all(values)
    }

    /**
     * @param value The list of configuration information that's required to connect to and crawl a website host using basic authentication credentials.
     * The list includes the name and port number of the website host.
     */
    @JvmName("mdntiktmcqvrcwev")
    public suspend fun basicAuthentication(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.basicAuthentication = mapped
    }

    /**
     * @param argument The list of configuration information that's required to connect to and crawl a website host using basic authentication credentials.
     * The list includes the name and port number of the website host.
     */
    @JvmName("avbgyqjinuvdxcrv")
    public suspend fun basicAuthentication(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DataSourceWebCrawlerBasicAuthenticationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.basicAuthentication = mapped
    }

    /**
     * @param argument The list of configuration information that's required to connect to and crawl a website host using basic authentication credentials.
     * The list includes the name and port number of the website host.
     */
    @JvmName("qgcemcnnhwnjyqby")
    public suspend fun basicAuthentication(vararg argument: suspend DataSourceWebCrawlerBasicAuthenticationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DataSourceWebCrawlerBasicAuthenticationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.basicAuthentication = mapped
    }

    /**
     * @param argument The list of configuration information that's required to connect to and crawl a website host using basic authentication credentials.
     * The list includes the name and port number of the website host.
     */
    @JvmName("jwakvvcwbubpntjf")
    public suspend fun basicAuthentication(argument: suspend DataSourceWebCrawlerBasicAuthenticationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            DataSourceWebCrawlerBasicAuthenticationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.basicAuthentication = mapped
    }

    /**
     * @param values The list of configuration information that's required to connect to and crawl a website host using basic authentication credentials.
     * The list includes the name and port number of the website host.
     */
    @JvmName("gllglktsjdkkaagf")
    public suspend fun basicAuthentication(vararg values: DataSourceWebCrawlerBasicAuthenticationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.basicAuthentication = mapped
    }

    internal fun build(): DataSourceWebCrawlerAuthenticationConfigurationArgs =
        DataSourceWebCrawlerAuthenticationConfigurationArgs(
            basicAuthentication = basicAuthentication,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy