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

com.pulumi.awsnative.kendra.kotlin.inputs.DataSourceWebCrawlerSeedUrlConfigurationArgs.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.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.awsnative.kendra.inputs.DataSourceWebCrawlerSeedUrlConfigurationArgs.builder
import com.pulumi.awsnative.kendra.kotlin.enums.DataSourceWebCrawlerSeedUrlConfigurationWebCrawlerMode
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property seedUrls The list of seed or starting point URLs of the websites you want to crawl.
 * The list can include a maximum of 100 seed URLs.
 * @property webCrawlerMode You can choose one of the following modes:
 * - `HOST_ONLY` —crawl only the website host names. For example, if the seed URL is "abc.example.com", then only URLs with host name "abc.example.com" are crawled.
 * - `SUBDOMAINS` —crawl the website host names with subdomains. For example, if the seed URL is "abc.example.com", then "a.abc.example.com" and "b.abc.example.com" are also crawled.
 * - `EVERYTHING` —crawl the website host names with subdomains and other domains that the web pages link to.
 * The default mode is set to `HOST_ONLY` .
 */
public data class DataSourceWebCrawlerSeedUrlConfigurationArgs(
    public val seedUrls: Output>,
    public val webCrawlerMode: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.kendra.inputs.DataSourceWebCrawlerSeedUrlConfigurationArgs =
        com.pulumi.awsnative.kendra.inputs.DataSourceWebCrawlerSeedUrlConfigurationArgs.builder()
            .seedUrls(seedUrls.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .webCrawlerMode(
                webCrawlerMode?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

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

    private var webCrawlerMode: Output? = null

    /**
     * @param value The list of seed or starting point URLs of the websites you want to crawl.
     * The list can include a maximum of 100 seed URLs.
     */
    @JvmName("paftsketrffebucr")
    public suspend fun seedUrls(`value`: Output>) {
        this.seedUrls = value
    }

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

    /**
     * @param values The list of seed or starting point URLs of the websites you want to crawl.
     * The list can include a maximum of 100 seed URLs.
     */
    @JvmName("gaidxppgqhttmfst")
    public suspend fun seedUrls(values: List>) {
        this.seedUrls = Output.all(values)
    }

    /**
     * @param value You can choose one of the following modes:
     * - `HOST_ONLY` —crawl only the website host names. For example, if the seed URL is "abc.example.com", then only URLs with host name "abc.example.com" are crawled.
     * - `SUBDOMAINS` —crawl the website host names with subdomains. For example, if the seed URL is "abc.example.com", then "a.abc.example.com" and "b.abc.example.com" are also crawled.
     * - `EVERYTHING` —crawl the website host names with subdomains and other domains that the web pages link to.
     * The default mode is set to `HOST_ONLY` .
     */
    @JvmName("wyqokvmhuldvnths")
    public suspend fun webCrawlerMode(`value`: Output) {
        this.webCrawlerMode = value
    }

    /**
     * @param value The list of seed or starting point URLs of the websites you want to crawl.
     * The list can include a maximum of 100 seed URLs.
     */
    @JvmName("rytmxtrgdgakasjo")
    public suspend fun seedUrls(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.seedUrls = mapped
    }

    /**
     * @param values The list of seed or starting point URLs of the websites you want to crawl.
     * The list can include a maximum of 100 seed URLs.
     */
    @JvmName("qdyixlxureivwxkx")
    public suspend fun seedUrls(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.seedUrls = mapped
    }

    /**
     * @param value You can choose one of the following modes:
     * - `HOST_ONLY` —crawl only the website host names. For example, if the seed URL is "abc.example.com", then only URLs with host name "abc.example.com" are crawled.
     * - `SUBDOMAINS` —crawl the website host names with subdomains. For example, if the seed URL is "abc.example.com", then "a.abc.example.com" and "b.abc.example.com" are also crawled.
     * - `EVERYTHING` —crawl the website host names with subdomains and other domains that the web pages link to.
     * The default mode is set to `HOST_ONLY` .
     */
    @JvmName("ewgontjfcthixaur")
    public suspend fun webCrawlerMode(`value`: DataSourceWebCrawlerSeedUrlConfigurationWebCrawlerMode?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.webCrawlerMode = mapped
    }

    internal fun build(): DataSourceWebCrawlerSeedUrlConfigurationArgs =
        DataSourceWebCrawlerSeedUrlConfigurationArgs(
            seedUrls = seedUrls ?: throw PulumiNullFieldException("seedUrls"),
            webCrawlerMode = webCrawlerMode,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy