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

com.pulumi.awsnative.appflow.kotlin.inputs.FlowUpsolverDestinationPropertiesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.appflow.kotlin.inputs

import com.pulumi.awsnative.appflow.inputs.FlowUpsolverDestinationPropertiesArgs.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.jvm.JvmName

/**
 *
 * @property bucketName The Upsolver Amazon S3 bucket name in which Amazon AppFlow places the transferred data.
 * @property bucketPrefix The object key for the destination Upsolver Amazon S3 bucket in which Amazon AppFlow places the files.
 * @property s3OutputFormatConfig The configuration that determines how data is formatted when Upsolver is used as the flow destination.
 */
public data class FlowUpsolverDestinationPropertiesArgs(
    public val bucketName: Output,
    public val bucketPrefix: Output? = null,
    public val s3OutputFormatConfig: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.appflow.inputs.FlowUpsolverDestinationPropertiesArgs =
        com.pulumi.awsnative.appflow.inputs.FlowUpsolverDestinationPropertiesArgs.builder()
            .bucketName(bucketName.applyValue({ args0 -> args0 }))
            .bucketPrefix(bucketPrefix?.applyValue({ args0 -> args0 }))
            .s3OutputFormatConfig(
                s3OutputFormatConfig.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [FlowUpsolverDestinationPropertiesArgs].
 */
@PulumiTagMarker
public class FlowUpsolverDestinationPropertiesArgsBuilder internal constructor() {
    private var bucketName: Output? = null

    private var bucketPrefix: Output? = null

    private var s3OutputFormatConfig: Output? = null

    /**
     * @param value The Upsolver Amazon S3 bucket name in which Amazon AppFlow places the transferred data.
     */
    @JvmName("lerwkabbxiycaqbu")
    public suspend fun bucketName(`value`: Output) {
        this.bucketName = value
    }

    /**
     * @param value The object key for the destination Upsolver Amazon S3 bucket in which Amazon AppFlow places the files.
     */
    @JvmName("syxikrlrxuegkomq")
    public suspend fun bucketPrefix(`value`: Output) {
        this.bucketPrefix = value
    }

    /**
     * @param value The configuration that determines how data is formatted when Upsolver is used as the flow destination.
     */
    @JvmName("nfxhluldcousiska")
    public suspend fun s3OutputFormatConfig(`value`: Output) {
        this.s3OutputFormatConfig = value
    }

    /**
     * @param value The Upsolver Amazon S3 bucket name in which Amazon AppFlow places the transferred data.
     */
    @JvmName("cbagcukpeqdadjqw")
    public suspend fun bucketName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bucketName = mapped
    }

    /**
     * @param value The object key for the destination Upsolver Amazon S3 bucket in which Amazon AppFlow places the files.
     */
    @JvmName("jvvutrtausstmhki")
    public suspend fun bucketPrefix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bucketPrefix = mapped
    }

    /**
     * @param value The configuration that determines how data is formatted when Upsolver is used as the flow destination.
     */
    @JvmName("dceydtmeednmfvlf")
    public suspend fun s3OutputFormatConfig(`value`: FlowUpsolverS3OutputFormatConfigArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.s3OutputFormatConfig = mapped
    }

    /**
     * @param argument The configuration that determines how data is formatted when Upsolver is used as the flow destination.
     */
    @JvmName("jwkfrsiwvcujkwyy")
    public suspend fun s3OutputFormatConfig(argument: suspend FlowUpsolverS3OutputFormatConfigArgsBuilder.() -> Unit) {
        val toBeMapped = FlowUpsolverS3OutputFormatConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.s3OutputFormatConfig = mapped
    }

    internal fun build(): FlowUpsolverDestinationPropertiesArgs =
        FlowUpsolverDestinationPropertiesArgs(
            bucketName = bucketName ?: throw PulumiNullFieldException("bucketName"),
            bucketPrefix = bucketPrefix,
            s3OutputFormatConfig = s3OutputFormatConfig ?: throw
                PulumiNullFieldException("s3OutputFormatConfig"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy