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

com.pulumi.aws.glue.kotlin.inputs.CrawlerS3TargetArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.glue.kotlin.inputs

import com.pulumi.aws.glue.inputs.CrawlerS3TargetArgs.builder
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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property connectionName The name of a connection which allows crawler to access data in S3 within a VPC.
 * @property dlqEventQueueArn The ARN of the dead-letter SQS queue.
 * @property eventQueueArn The ARN of the SQS queue to receive S3 notifications from.
 * @property exclusions A list of glob patterns used to exclude from the crawl.
 * @property path The path to the Amazon S3 target.
 * @property sampleSize Sets the number of files in each leaf folder to be crawled when crawling sample files in a dataset. If not set, all the files are crawled. A valid value is an integer between 1 and 249.
 */
public data class CrawlerS3TargetArgs(
    public val connectionName: Output? = null,
    public val dlqEventQueueArn: Output? = null,
    public val eventQueueArn: Output? = null,
    public val exclusions: Output>? = null,
    public val path: Output,
    public val sampleSize: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.glue.inputs.CrawlerS3TargetArgs =
        com.pulumi.aws.glue.inputs.CrawlerS3TargetArgs.builder()
            .connectionName(connectionName?.applyValue({ args0 -> args0 }))
            .dlqEventQueueArn(dlqEventQueueArn?.applyValue({ args0 -> args0 }))
            .eventQueueArn(eventQueueArn?.applyValue({ args0 -> args0 }))
            .exclusions(exclusions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .path(path.applyValue({ args0 -> args0 }))
            .sampleSize(sampleSize?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CrawlerS3TargetArgs].
 */
@PulumiTagMarker
public class CrawlerS3TargetArgsBuilder internal constructor() {
    private var connectionName: Output? = null

    private var dlqEventQueueArn: Output? = null

    private var eventQueueArn: Output? = null

    private var exclusions: Output>? = null

    private var path: Output? = null

    private var sampleSize: Output? = null

    /**
     * @param value The name of a connection which allows crawler to access data in S3 within a VPC.
     */
    @JvmName("cqgltjaryxwvpruw")
    public suspend fun connectionName(`value`: Output) {
        this.connectionName = value
    }

    /**
     * @param value The ARN of the dead-letter SQS queue.
     */
    @JvmName("fylruitobslqqggb")
    public suspend fun dlqEventQueueArn(`value`: Output) {
        this.dlqEventQueueArn = value
    }

    /**
     * @param value The ARN of the SQS queue to receive S3 notifications from.
     */
    @JvmName("dbwbhjscjyshaqmj")
    public suspend fun eventQueueArn(`value`: Output) {
        this.eventQueueArn = value
    }

    /**
     * @param value A list of glob patterns used to exclude from the crawl.
     */
    @JvmName("tdatdqoqsrumwkyt")
    public suspend fun exclusions(`value`: Output>) {
        this.exclusions = value
    }

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

    /**
     * @param values A list of glob patterns used to exclude from the crawl.
     */
    @JvmName("yxbcxcvfpvtfisqw")
    public suspend fun exclusions(values: List>) {
        this.exclusions = Output.all(values)
    }

    /**
     * @param value The path to the Amazon S3 target.
     */
    @JvmName("qrertntxsqumosij")
    public suspend fun path(`value`: Output) {
        this.path = value
    }

    /**
     * @param value Sets the number of files in each leaf folder to be crawled when crawling sample files in a dataset. If not set, all the files are crawled. A valid value is an integer between 1 and 249.
     */
    @JvmName("jpexwhueeuojjkhv")
    public suspend fun sampleSize(`value`: Output) {
        this.sampleSize = value
    }

    /**
     * @param value The name of a connection which allows crawler to access data in S3 within a VPC.
     */
    @JvmName("lieriwtjbilbafeo")
    public suspend fun connectionName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connectionName = mapped
    }

    /**
     * @param value The ARN of the dead-letter SQS queue.
     */
    @JvmName("fnvheeeisuhfyqdp")
    public suspend fun dlqEventQueueArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dlqEventQueueArn = mapped
    }

    /**
     * @param value The ARN of the SQS queue to receive S3 notifications from.
     */
    @JvmName("gccrwbvvjmspktqg")
    public suspend fun eventQueueArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.eventQueueArn = mapped
    }

    /**
     * @param value A list of glob patterns used to exclude from the crawl.
     */
    @JvmName("wiracjpqnrkvhita")
    public suspend fun exclusions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.exclusions = mapped
    }

    /**
     * @param values A list of glob patterns used to exclude from the crawl.
     */
    @JvmName("yvmyotqfvkhpcgdq")
    public suspend fun exclusions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.exclusions = mapped
    }

    /**
     * @param value The path to the Amazon S3 target.
     */
    @JvmName("kqgedodakyjncqtq")
    public suspend fun path(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.path = mapped
    }

    /**
     * @param value Sets the number of files in each leaf folder to be crawled when crawling sample files in a dataset. If not set, all the files are crawled. A valid value is an integer between 1 and 249.
     */
    @JvmName("gvovtfcchiqhxchk")
    public suspend fun sampleSize(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sampleSize = mapped
    }

    internal fun build(): CrawlerS3TargetArgs = CrawlerS3TargetArgs(
        connectionName = connectionName,
        dlqEventQueueArn = dlqEventQueueArn,
        eventQueueArn = eventQueueArn,
        exclusions = exclusions,
        path = path ?: throw PulumiNullFieldException("path"),
        sampleSize = sampleSize,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy