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

com.pulumi.awsnative.lookoutmetrics.kotlin.inputs.AnomalyDetectorS3SourceConfigArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.lookoutmetrics.kotlin.inputs

import com.pulumi.awsnative.lookoutmetrics.inputs.AnomalyDetectorS3SourceConfigArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property fileFormatDescriptor Contains information about a source file's formatting.
 * @property historicalDataPathList A list of paths to the historical data files.
 * @property roleArn The ARN of an IAM role that has read and write access permissions to the source S3 bucket.
 * @property templatedPathList A list of templated paths to the source files.
 */
public data class AnomalyDetectorS3SourceConfigArgs(
    public val fileFormatDescriptor: Output,
    public val historicalDataPathList: Output>? = null,
    public val roleArn: Output,
    public val templatedPathList: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lookoutmetrics.inputs.AnomalyDetectorS3SourceConfigArgs =
        com.pulumi.awsnative.lookoutmetrics.inputs.AnomalyDetectorS3SourceConfigArgs.builder()
            .fileFormatDescriptor(
                fileFormatDescriptor.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .historicalDataPathList(
                historicalDataPathList?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .roleArn(roleArn.applyValue({ args0 -> args0 }))
            .templatedPathList(templatedPathList?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [AnomalyDetectorS3SourceConfigArgs].
 */
@PulumiTagMarker
public class AnomalyDetectorS3SourceConfigArgsBuilder internal constructor() {
    private var fileFormatDescriptor: Output? = null

    private var historicalDataPathList: Output>? = null

    private var roleArn: Output? = null

    private var templatedPathList: Output>? = null

    /**
     * @param value Contains information about a source file's formatting.
     */
    @JvmName("ypwxspplmcysmdup")
    public suspend fun fileFormatDescriptor(`value`: Output) {
        this.fileFormatDescriptor = value
    }

    /**
     * @param value A list of paths to the historical data files.
     */
    @JvmName("kvjxixshodwxsmnn")
    public suspend fun historicalDataPathList(`value`: Output>) {
        this.historicalDataPathList = value
    }

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

    /**
     * @param values A list of paths to the historical data files.
     */
    @JvmName("dhamphsekygrbivo")
    public suspend fun historicalDataPathList(values: List>) {
        this.historicalDataPathList = Output.all(values)
    }

    /**
     * @param value The ARN of an IAM role that has read and write access permissions to the source S3 bucket.
     */
    @JvmName("tqbafvqekxvhleyf")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value A list of templated paths to the source files.
     */
    @JvmName("fpycbgxcjkooqevw")
    public suspend fun templatedPathList(`value`: Output>) {
        this.templatedPathList = value
    }

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

    /**
     * @param values A list of templated paths to the source files.
     */
    @JvmName("apnxnrvkhgxtdtyw")
    public suspend fun templatedPathList(values: List>) {
        this.templatedPathList = Output.all(values)
    }

    /**
     * @param value Contains information about a source file's formatting.
     */
    @JvmName("hipnypdvljbmgjbu")
    public suspend fun fileFormatDescriptor(`value`: AnomalyDetectorFileFormatDescriptorArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fileFormatDescriptor = mapped
    }

    /**
     * @param argument Contains information about a source file's formatting.
     */
    @JvmName("kljhaiddpcniqrfg")
    public suspend fun fileFormatDescriptor(argument: suspend AnomalyDetectorFileFormatDescriptorArgsBuilder.() -> Unit) {
        val toBeMapped = AnomalyDetectorFileFormatDescriptorArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.fileFormatDescriptor = mapped
    }

    /**
     * @param value A list of paths to the historical data files.
     */
    @JvmName("bicakavoerrnaoog")
    public suspend fun historicalDataPathList(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.historicalDataPathList = mapped
    }

    /**
     * @param values A list of paths to the historical data files.
     */
    @JvmName("qorvekccjgrsmpgg")
    public suspend fun historicalDataPathList(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.historicalDataPathList = mapped
    }

    /**
     * @param value The ARN of an IAM role that has read and write access permissions to the source S3 bucket.
     */
    @JvmName("pgkufhvpqbbqnpfp")
    public suspend fun roleArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    /**
     * @param value A list of templated paths to the source files.
     */
    @JvmName("rnninbuoqcyttcgp")
    public suspend fun templatedPathList(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.templatedPathList = mapped
    }

    /**
     * @param values A list of templated paths to the source files.
     */
    @JvmName("pvdrfhcagtnymrsl")
    public suspend fun templatedPathList(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.templatedPathList = mapped
    }

    internal fun build(): AnomalyDetectorS3SourceConfigArgs = AnomalyDetectorS3SourceConfigArgs(
        fileFormatDescriptor = fileFormatDescriptor ?: throw
            PulumiNullFieldException("fileFormatDescriptor"),
        historicalDataPathList = historicalDataPathList,
        roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
        templatedPathList = templatedPathList,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy