com.pulumi.awsnative.lambda.kotlin.inputs.LayerVersionContentArgs.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.lambda.kotlin.inputs
import com.pulumi.awsnative.lambda.inputs.LayerVersionContentArgs.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
/**
*
* @property s3Bucket The Amazon S3 bucket of the layer archive.
* @property s3Key The Amazon S3 key of the layer archive.
* @property s3ObjectVersion For versioned objects, the version of the layer archive object to use.
*/
public data class LayerVersionContentArgs(
public val s3Bucket: Output,
public val s3Key: Output,
public val s3ObjectVersion: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.lambda.inputs.LayerVersionContentArgs =
com.pulumi.awsnative.lambda.inputs.LayerVersionContentArgs.builder()
.s3Bucket(s3Bucket.applyValue({ args0 -> args0 }))
.s3Key(s3Key.applyValue({ args0 -> args0 }))
.s3ObjectVersion(s3ObjectVersion?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [LayerVersionContentArgs].
*/
@PulumiTagMarker
public class LayerVersionContentArgsBuilder internal constructor() {
private var s3Bucket: Output? = null
private var s3Key: Output? = null
private var s3ObjectVersion: Output? = null
/**
* @param value The Amazon S3 bucket of the layer archive.
*/
@JvmName("ulnlfaojkcilcxlx")
public suspend fun s3Bucket(`value`: Output) {
this.s3Bucket = value
}
/**
* @param value The Amazon S3 key of the layer archive.
*/
@JvmName("qtlbgjjonfxpheqs")
public suspend fun s3Key(`value`: Output) {
this.s3Key = value
}
/**
* @param value For versioned objects, the version of the layer archive object to use.
*/
@JvmName("iwfcnrtsijiuhupo")
public suspend fun s3ObjectVersion(`value`: Output) {
this.s3ObjectVersion = value
}
/**
* @param value The Amazon S3 bucket of the layer archive.
*/
@JvmName("qsefbpsbqlodecnb")
public suspend fun s3Bucket(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.s3Bucket = mapped
}
/**
* @param value The Amazon S3 key of the layer archive.
*/
@JvmName("vxgctoqvvuknrslc")
public suspend fun s3Key(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.s3Key = mapped
}
/**
* @param value For versioned objects, the version of the layer archive object to use.
*/
@JvmName("ebwersfvvoknuerk")
public suspend fun s3ObjectVersion(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.s3ObjectVersion = mapped
}
internal fun build(): LayerVersionContentArgs = LayerVersionContentArgs(
s3Bucket = s3Bucket ?: throw PulumiNullFieldException("s3Bucket"),
s3Key = s3Key ?: throw PulumiNullFieldException("s3Key"),
s3ObjectVersion = s3ObjectVersion,
)
}