com.pulumi.awsnative.dynamodb.kotlin.inputs.TableS3BucketSourceArgs.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.dynamodb.kotlin.inputs
import com.pulumi.awsnative.dynamodb.inputs.TableS3BucketSourceArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* The S3 bucket that is being imported from.
* @property s3Bucket The S3 bucket that is being imported from.
* @property s3BucketOwner The account number of the S3 bucket that is being imported from. If the bucket is owned by the requester this is optional.
* @property s3KeyPrefix The key prefix shared by all S3 Objects that are being imported.
*/
public data class TableS3BucketSourceArgs(
public val s3Bucket: Output,
public val s3BucketOwner: Output? = null,
public val s3KeyPrefix: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.dynamodb.inputs.TableS3BucketSourceArgs =
com.pulumi.awsnative.dynamodb.inputs.TableS3BucketSourceArgs.builder()
.s3Bucket(s3Bucket.applyValue({ args0 -> args0 }))
.s3BucketOwner(s3BucketOwner?.applyValue({ args0 -> args0 }))
.s3KeyPrefix(s3KeyPrefix?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TableS3BucketSourceArgs].
*/
@PulumiTagMarker
public class TableS3BucketSourceArgsBuilder internal constructor() {
private var s3Bucket: Output? = null
private var s3BucketOwner: Output? = null
private var s3KeyPrefix: Output? = null
/**
* @param value The S3 bucket that is being imported from.
*/
@JvmName("iregonboexjufpev")
public suspend fun s3Bucket(`value`: Output) {
this.s3Bucket = value
}
/**
* @param value The account number of the S3 bucket that is being imported from. If the bucket is owned by the requester this is optional.
*/
@JvmName("kockyanwyhqbgabt")
public suspend fun s3BucketOwner(`value`: Output) {
this.s3BucketOwner = value
}
/**
* @param value The key prefix shared by all S3 Objects that are being imported.
*/
@JvmName("cvnwjslrryklcatl")
public suspend fun s3KeyPrefix(`value`: Output) {
this.s3KeyPrefix = value
}
/**
* @param value The S3 bucket that is being imported from.
*/
@JvmName("kaxtejwcecdnwuiw")
public suspend fun s3Bucket(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.s3Bucket = mapped
}
/**
* @param value The account number of the S3 bucket that is being imported from. If the bucket is owned by the requester this is optional.
*/
@JvmName("innacjlaijdjtkjg")
public suspend fun s3BucketOwner(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.s3BucketOwner = mapped
}
/**
* @param value The key prefix shared by all S3 Objects that are being imported.
*/
@JvmName("fepnlhivroyerrpn")
public suspend fun s3KeyPrefix(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.s3KeyPrefix = mapped
}
internal fun build(): TableS3BucketSourceArgs = TableS3BucketSourceArgs(
s3Bucket = s3Bucket ?: throw PulumiNullFieldException("s3Bucket"),
s3BucketOwner = s3BucketOwner,
s3KeyPrefix = s3KeyPrefix,
)
}