com.pulumi.awsnative.appflow.kotlin.inputs.FlowS3DestinationPropertiesArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.appflow.kotlin.inputs
import com.pulumi.awsnative.appflow.inputs.FlowS3DestinationPropertiesArgs.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 Amazon S3 bucket name in which Amazon AppFlow places the transferred data.
* @property bucketPrefix The object key for the destination bucket in which Amazon AppFlow places the files.
* @property s3OutputFormatConfig The configuration that determines how Amazon AppFlow should format the flow output data when Amazon S3 is used as the destination.
*/
public data class FlowS3DestinationPropertiesArgs(
public val bucketName: Output,
public val bucketPrefix: Output? = null,
public val s3OutputFormatConfig: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.appflow.inputs.FlowS3DestinationPropertiesArgs =
com.pulumi.awsnative.appflow.inputs.FlowS3DestinationPropertiesArgs.builder()
.bucketName(bucketName.applyValue({ args0 -> args0 }))
.bucketPrefix(bucketPrefix?.applyValue({ args0 -> args0 }))
.s3OutputFormatConfig(
s3OutputFormatConfig?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [FlowS3DestinationPropertiesArgs].
*/
@PulumiTagMarker
public class FlowS3DestinationPropertiesArgsBuilder internal constructor() {
private var bucketName: Output? = null
private var bucketPrefix: Output? = null
private var s3OutputFormatConfig: Output? = null
/**
* @param value The Amazon S3 bucket name in which Amazon AppFlow places the transferred data.
*/
@JvmName("edlgnoyjqkfmikun")
public suspend fun bucketName(`value`: Output) {
this.bucketName = value
}
/**
* @param value The object key for the destination bucket in which Amazon AppFlow places the files.
*/
@JvmName("jxnyjhijveqflayy")
public suspend fun bucketPrefix(`value`: Output) {
this.bucketPrefix = value
}
/**
* @param value The configuration that determines how Amazon AppFlow should format the flow output data when Amazon S3 is used as the destination.
*/
@JvmName("ffjiapjfvuiydwpl")
public suspend fun s3OutputFormatConfig(`value`: Output) {
this.s3OutputFormatConfig = value
}
/**
* @param value The Amazon S3 bucket name in which Amazon AppFlow places the transferred data.
*/
@JvmName("kmvsufnlamcvirvx")
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 bucket in which Amazon AppFlow places the files.
*/
@JvmName("wxsmjmimasxdvskh")
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 Amazon AppFlow should format the flow output data when Amazon S3 is used as the destination.
*/
@JvmName("gvkwqtgmtqjkvndp")
public suspend fun s3OutputFormatConfig(`value`: FlowS3OutputFormatConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.s3OutputFormatConfig = mapped
}
/**
* @param argument The configuration that determines how Amazon AppFlow should format the flow output data when Amazon S3 is used as the destination.
*/
@JvmName("hkomffdlcxdufkpr")
public suspend fun s3OutputFormatConfig(argument: suspend FlowS3OutputFormatConfigArgsBuilder.() -> Unit) {
val toBeMapped = FlowS3OutputFormatConfigArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.s3OutputFormatConfig = mapped
}
internal fun build(): FlowS3DestinationPropertiesArgs = FlowS3DestinationPropertiesArgs(
bucketName = bucketName ?: throw PulumiNullFieldException("bucketName"),
bucketPrefix = bucketPrefix,
s3OutputFormatConfig = s3OutputFormatConfig,
)
}